-
Notifications
You must be signed in to change notification settings - Fork 16
FIREFLY-1787: Default filters for Spatial Search Position Columns #1831
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
Conversation
{fieldKey: lonKey, doQuoteNonAlphanumeric, colTblId: 'posCol', onSearchBtnClicked: () => filterMappedColFldTbl(cols, 'posCol', 'pos.eq.ra,pos.galactic.lon,pos.ecliptic.lon')}, | ||
{fieldKey: latKey, doQuoteNonAlphanumeric, colTblId: 'posCol', onSearchBtnClicked: () => filterMappedColFldTbl(cols, 'posCol', 'pos.eq.dec,pos.galactic.lat,pos.ecliptic.lat')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to support pos.eq
. This is when the ra and dec are in the same column.
test on TAP with CANFAR -> pgm -> gaiadr2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean. If I just add pos.eq
though, we'll end up seeing all ra/dec possibilities for both lon
and lat
col.
I did notice that for the table you mentioned, the single value for both ra/dec (named pos
) has the following UCD:
pos.eq;meta.main
And normally for other ra/dec values, meta.main
doesn't show up. Can I assume meta.main
always shows up for these same column ra/dec values?
In that case my filter could become something like :
pos.eq;meta.main, pos.eq.ra, pos.galactic.lon, pos.ecliptic.lon
Let me know what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might take a little more code but pos.eq
does not have to match pos.eq.ra
. If you can’t make that work then pos.eq;meta.main
is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this a little more. Yes, just go with pos.eq;meta.main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, yes with a little more code I can get your first suggestion going, but if pos.eq;meta.main
works just as well then yes that's much more straightforward.
ca25459
to
f7bb1e6
Compare
@robyww so I was stuck on this for a bit running into some bugs, but I think we only support one So if I have a filter like:
then only the first filter gets applied. But if we have only 2 (or 1) filters, then they both get applied. I'm happy to work on a fix for this later (unless this is intended behavior for some reason) but I wasn't able to get to it in time for tomorrow. But according to the ticket, @gpdf mentioned to use equatorial values if we can't do ORs. But since we can do one
So this will at least support the 2 most common use cases for this filter (you can try this on the table with single column for both ra/dec you mentioned above) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
f2b4342
to
de1da84
Compare
Ticket: FIREFLY-1787
Testing: https://fireflydev.ipac.caltech.edu/firefly-1787-tap-col-improvement/firefly