Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: SUIT
-
Labels:
-
Story Points:2
-
Epic Link:
-
Team:Science User Interface
Description
When the Portal ("suit" application) is started up on the lsst-lsp-int instance of the LSST Science Platform, the initial TAP screen comes up pointed at the lsst-lsp-stable.ncsa.illinois.edu TAP service. Both the -stable and -int services are configured into the TAP service menu, which used to work semi-accidentally, but now that authorization is fully enabled, only the matching TAP service will be accessible (-stable Portal must talk to -stable TAP, -int Portal must talk to -int TAP).
This "instance matching" has been in the design all along.
The TAP service list is currently statically configured in https://github.com/lsst/suit/blob/master/src/suit/js/SUIT.js
Can we change this code to get the LSST TAP service URL by extracting the base URL from the URL of the currently displayed page? (Technically, by extracting everything before "/portal".)
We need this change not only to get `-int` working properly by default, but also to get this working on cloud-based LSP deployments. Whatever the Portal URL is, let's say "https://lsst.codes/lsp/portal", the TAP service URL needs to be "https://lsst.codes/lsp/api/tap".
Attachments
Issue Links
- links to
I don't pretend that this is competent Javascript coding, but this is more or less what I have in mind:
// Obtain the location of the LSST TAP service for *this* instance of the LSP.
// If the Portal is at https://xyzzy.lsst.org/lsp/portal/app, then the TAP service
// will be at https://xyzzy.lsst.org/lsp/api/tap .
// At NCSA this is normally https://lsst-lsp-{stable,int}.ncsa.illinois.edu/api/tap ,
// but this knowledge should not be embedded in the Firefly code.
lsptaplabel.concat( lsptapurl );
// ... now prepend to the TAP service list