Hi, we (the Lasair broker team) are looking at a possible use case where a user wants to follow up some object that they have discovered through the broker in the RSP. One obvious thing to do is to send them to the portal with a canned query based on the object ID if we know it, or the ra and dec if not, to get them started. I’ve demoed a mockup of this and got a fairly enthusiastic response from the astronomers present so I think it’s worth persuing. The question is, what is the “proper” way to do this?
Obviously I can just link to something like https://rsp.lsst.ac.uk/portal/app/?__action=table.search&request{"startIdx":0,"serviceUrl":"https://rsp.lsst.ac.uk/api/tap", "QUERY":"<iNSERT QUERY HERE>","META_INFO":{<INSERT META HERE>}&options={<INSERT OPTIONS HERE>}
.
This kind of works. However, it’s a bit messy, I can’t find any good documentation for what should go in META_INFO, it doesn’t work unless you include the right parameters for things like tbl_id
and it’s not at all obvious what these should be. It therefore feels very fragile.
What’s the correct way to do this? I can see there’s a Javascript API for Firefly, but it’s not obvious how that would work and frontend development is not my natural habitat.
As an aside, the above also only works if the user is already logged in to the RSP. If you go to /portal/app
when not logged in then you get asked to log in; if you go to /portal/app/?__action=table.search
without a login then it looks like you just get an empty page, but that’s a secondary issue.
– Gareth