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

Add adql variants for source-property queries #33

Closed
wants to merge 20 commits into from

Conversation

DougBurke
Copy link
Member

@DougBurke DougBurke commented May 23, 2019

Note

This has been replaced by #50 and #54 so has been closed down.

Details

  • add a panel when selecting sources, where the cone-search center and radius can be given
  • move the "plot source" functionality to this panel from the control panel (icon to button)
  • add the ability to filter the source selection (a limited form of faceted browsing); the UI is not ideal (need to look at ADS interface for inspiration) and the labels need improving before release
  • add an explicit "export" button (as with the plot-source feature moved from an icon on the control panel), with the choice of target (including to the clipboard, so it can be used even without a SAMP hub, issue Can we target a single application with a SAMP query? #31), and the choice of query (issue Can we support different source-property queries (SAMP)? #30)

Could look at expanding the queries.

TODO

  • change "single source property" export-to-samp swoosh icon to this scheme
  • change "export stack event file" export-to-samp swoosh icon to this scheme
  • do we want a "all master columns" query for source properties
  • correct the "No VO apps responded" when calling a single application
  • if no client registered for a mtype then only valid option is 'Copy to clipboard'

@DougBurke DougBurke added the enhancement New feature or request label May 23, 2019
@DougBurke DougBurke force-pushed the add-adql-variants branch 18 times, most recently from 782180f to 5c984d8 Compare May 27, 2019 03:13
@DougBurke DougBurke force-pushed the add-adql-variants branch 2 times, most recently from 104f48a to a0ed6b1 Compare May 28, 2019 20:16
@DougBurke
Copy link
Member Author

Should the "All clients" be selected (rather than "copy to clipboard") when a SAMP client is present (and an update is needed)?

@DougBurke DougBurke force-pushed the add-adql-variants branch 4 times, most recently from 7624fcd to 27a81ed Compare May 30, 2019 17:44
@DougBurke
Copy link
Member Author

Should the "All clients" be selected (rather than "copy to clipboard") when a SAMP client is present (and an update is needed)?

This has been implemented (it's a bit-more than just always select "All Clients").

This panel is used to provide a more-obvious place for the plot and
export-to-samp actions, although the latter is not set up yet.

The plot-source-properties and export-to-samp actions have been moved
from the control panel to this source panel.

The plot code now creates the data for plotting "on the fly" rather
than when the sources are initially selected.
This adds a widget that lets the user control which SAMP client the
search is sent to, *including* a copy-to-clipboard option which does
not require SAMP to be running.

This is only implemented for the "source properties near" search, and
is only partially working. The choice of targets does not react to
changes (e.g. clients being added or removed, or connecting to a hub),
and the visual appearance needs work.
DougBurke and others added 18 commits May 30, 2019 14:00
This adds the 'find clients' option which registers WWT/CSC2 with the
SAMP hub and causes the selection list to get updated with client names.
This list now also updates when clients are added or removed.
…ndow'

The event that triggered the copy-to-clipboard action is now passed
down so that the 'clip window' can be positioned close to the mouse press.
…ifyAll

The notify SAMP call doesn't report whether the client has responded, so
we can't easily determine this information. As the user has selected the
particular application this should be okay from a UI perspective.

Note that the response from notifyAll doesn't guarantee that a client
has received the message, just that one was sent, so it's not a great
indicator, and was added before the recent push to make the SAMP
functionality "more obvious".
…stered

This reworks the target-selection list (for SAMP messages) so that the
"All clients" option is only displayed (for the registered-with-the-hub
case) if there are multiple clients available for the given mtype.
This also reduces the logging from the SAMP checks.
The previous behavior was to always to pick the first element (copy to
clipboard) whenever the SAMP client list changed. The idea now is that
the previous selection is used if it still present, otherwise use (in
decreasing order of priority)

  - client name (single client only) or 'all clients'
  - copy to clipboard

Export symbols and a function from wwtsamp to define the value field of
the options, rather than hard-code the string values.
Allow the source display to be toggled: that is, subset the selected
set of sources. The UI for this simple faceting is confusing, and the
choice of options are

a) not well labelled (needs to be re-written before release)
b) very limited

The plot button doesn't react to the subset.
The plot button is made inactive if all sources have been removed.
The main idea is to remove the chance of a user turning off a
selection and the selected source should now be removed. We could
handle the addition/turning back on case, but easiest just to remove
both panes: source properties and nearest sources.
…option

The ability to subset the source display has been moved behind an
option (turned off by default on the live server).
@DougBurke DougBurke closed this May 31, 2019
@DougBurke DougBurke deleted the add-adql-variants branch May 31, 2019 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant