Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character limit on select field #234

Open
Fingel opened this issue Feb 23, 2021 · 4 comments
Open

Character limit on select field #234

Fingel opened this issue Feb 23, 2021 · 4 comments

Comments

@Fingel
Copy link

Fingel commented Feb 23, 2021

Hi,

I'm trying to use the API to automate querying this stored query: https://lasair.roe.ac.uk/myquery/115/

Though the response from the server indicates that the size of the "select" parameter is too large:

{"selected":["Ensure this field has no more than 1024 characters."]}

Two things:

  1. Is there a way around this size limit?
  2. Even better would be if we could use the api to get results from a stored query instead of supplying the query directly. For example: GET https://lasair-iris.roe.ac.uk/api/query/stored/115 would return the results of that stored query. That way we can edit and visualize the query using your excellent online tool, and changes would be reflected in our code without having to update the query text stored elsewhere.

Thanks!

@RoyWilliams
Copy link
Collaborator

RoyWilliams commented Feb 24, 2021 via email

@Fingel
Copy link
Author

Fingel commented Feb 24, 2021

Hi Roy,

I think I catch your drift. So instead of using the API to send the query directly (polling) we can just follow the stream log. This is very cool.

For some reason I had equated streaming == real time, but now I realize it's real time on your end only, and we can just follow the log.

Thank you!

@Fingel Fingel closed this as completed Feb 24, 2021
@Fingel
Copy link
Author

Fingel commented Feb 24, 2021

Hi Roy,

I think I'm a bit confused on the difference between lasair and lasair-iris. The query our project has been working on is here:

https://lasair.roe.ac.uk/streamdigest/13TDE-candidatesv3.1/

But it doesn't look like it's available as JSON anywhere. Additionally, the query uses the Candidate table, which doesn't appear on the Iris side.

Thanks for the copied query you created, we'll look at that, but it'd be good to get a better understanding of the differences.

@Fingel Fingel reopened this Feb 24, 2021
@RoyWilliams
Copy link
Collaborator

RoyWilliams commented Feb 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants