Skip to content

IRSA-670: adding NED search #444

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

Merged
merged 3 commits into from
Sep 11, 2017
Merged

IRSA-670: adding NED search #444

merged 3 commits into from
Sep 11, 2017

Conversation

ejoliet
Copy link
Contributor

@ejoliet ejoliet commented Aug 18, 2017

I've added a NED panel and a processor to postprocess the result VOTable.
The panel has been added to the main component used in IRSA: CatalogSelectView.jsx

To test: go to irsaviewer, bring catalog search and go to NED tab. Enter favorite extragalactic object. The result should be a table with a object name column clickable that goes to NED with more details.

Please, have a look and let me know.

@ejoliet ejoliet requested review from wmiipac and loitly August 18, 2017 20:47
@ejoliet
Copy link
Contributor Author

ejoliet commented Aug 18, 2017

@loitly to investigate: although the UI result is ok, the log server shows error. When i'm debugging it, it seems that the search triggers a secondary search that create a statement based on main columns (RA,DEC) (????) here edu/caltech/ipac/firefly/server/query/IpacTablePartProcessor.java:414:

String ic = request.getParam(TableServerRequest.INCL_COLUMNS);
        if (decimateInfo == null && !StringUtils.isEmpty(ic) && !ic.equals("ALL")) {
...
try {
                    DataGroupQueryStatement.parseStatement(sql).executeInline();
                } catch (InvalidStatementException e) {
                    throw new DataAccessException("InvalidStatementException", e);
                }
...

And that triggers a secondary pass on the postProcessData which fails on the resulting second table because it only contains 2 columns (RA,DEC).
Worth investigate.

@ejoliet
Copy link
Contributor Author

ejoliet commented Aug 19, 2017

Ok, I've fixed the problems. It appears that the following requests are from scatter plot and statistic so i've added a way to avoid redoing post-processing when sub-sequence calls. Let me know if it make sense. Thanks!

@ejoliet
Copy link
Contributor Author

ejoliet commented Aug 19, 2017

I've also made the VO search backgroundable.

@ejoliet
Copy link
Contributor Author

ejoliet commented Aug 21, 2017

I see an issue: the object name column is not filterable. How can i make a column with html (links) that i can filter? ( @loitly )

Copy link
Contributor

@wmiipac wmiipac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the fixes, the problem we saw on the vo url searches last Friday is fixed, now that the code distinguish the two (vo and Ned) type of cone searches via url.

as for the linked text filter, I don't know if it can be filtered by the objname keyword, Loi would have better idea.

@ejoliet
Copy link
Contributor Author

ejoliet commented Aug 28, 2017

As @loitly reminded me, if a column has HTML format, is not sortable/filterable. Solution: add new column with link to NED.
I will merge this and open a new ticket for adding a column.

Copy link
Contributor

@loitly loitly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed earlier, the logic in postProcessData should be moved to loadDataFile() so that it get called only once. Also, due to the limitation of filtering/sorting html column, you should add a link column instead of updating it. You can find code sample where a new ipactable is created from the original with added columns. edu.caltech.ipac.firefly.server.catquery.CatMasterTableQuery#getMasterCatalogFile

@ejoliet ejoliet merged commit 6e248a7 into dev Sep 11, 2017
@ejoliet ejoliet deleted the IRSA-670-add-ned-search branch September 11, 2017 18:06
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

Successfully merging this pull request may close these issues.

3 participants