jwql icon indicating copy to clipboard operation
jwql copied to clipboard

Fix API view for filenames per proposal and preview images

Open bhilbert4 opened this issue 2 years ago • 4 comments

This PR fixes a small bug in the API view for retrieving a list of filenames for a given proposal.

bhilbert4 avatar Sep 22 '22 15:09 bhilbert4

@mfixstsci I think I've fixed these issues. I think we should remove the API view that shows all preview image filenames for an instrument (and same with the list of thumbnails per instrument). These lists are already long enough that they are creating bad gateway errors. With these views removed, a user could still build up a list of all files by looping over proposals for a given instrument and getting the preview images for each proposal.

Do you agree? Or maybe we should keep the options but comment them out for now, and hope that the bad gateway errors will be resolved independently?

bhilbert4 avatar Sep 22 '22 16:09 bhilbert4

All tests in data_containers are now passing, including those that are skipped on Github.

bhilbert4 avatar Sep 22 '22 17:09 bhilbert4

Current status: API documentation and view have been cleaned up such that they are all working and reference in-flight data. Checking the views in the browser show that everything looks good. So from that standpoint, this is ready for review. However, programmatic access is failing because the requests all return the SSO page.

bhilbert4 avatar Sep 23 '22 17:09 bhilbert4

Current status: API documentation and view have been cleaned up such that they are all working and reference in-flight data. Checking the views in the browser show that everything looks good. So from that standpoint, this is ready for review. However, programmatic access is failing because the requests all return the SSO page.

Thanks @bhilbert4 I am rebasing the branch now. I submitted a ticket to IT for them see if there is a way to bypass the SSO page.

mfixstsci avatar Sep 26 '22 12:09 mfixstsci

@mfixstsci conflicts are resolved and the unrelated test failures have resolved themselves. I think this is ready to go.

bhilbert4 avatar Jan 10 '23 21:01 bhilbert4

@fix, assuming the latest test pass, are you ok with merging this? The changes to the tests that are in this PR should fix the failures seen in the filesystem monitor PR.

bhilbert4 avatar Jan 27 '23 22:01 bhilbert4