You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Explore option for new endpoint for uploading a file with a list of targets ids or coordinates to search on. Related to sdss/zora#70. We'll need to think about whether this route would do the search, or if it should only validate the file inputs and the return the validated targets, to allow the user to append query options to it. We don't necessarily want to maintain a third way for people to search.
The text was updated successfully, but these errors were encountered:
Fixes#59
Add a new endpoint for uploading a file with a list of target IDs or coordinates to search on.
* Add a new endpoint in `python/valis/routes/query.py` to handle file uploads and process the contents for target searches.
* Validate the file inputs, extract target IDs or coordinates, and perform the search.
* Validate the target IDs in the uploaded file and return an error response with a clear message indicating the invalid IDs if any are found.
* Support CSV and TXT file formats for upload.
* Add unit tests in `tests/test_queries.py` for the new endpoint to handle file uploads and process the contents for target searches.
* Test validation of the file inputs, extraction of target IDs or coordinates, and performing a fake search.
* Test validation of the target IDs in the uploaded file and returning an error response with a clear message indicating the invalid IDs if any are found.
* Test support for CSV and TXT file formats for upload.
* Test for both target ids and coordinates.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/sdss/valis/issues/59?shareId=XXXX-XXXX-XXXX-XXXX).
Explore option for new endpoint for uploading a file with a list of targets ids or coordinates to search on. Related to sdss/zora#70. We'll need to think about whether this route would do the search, or if it should only validate the file inputs and the return the validated targets, to allow the user to append query options to it. We don't necessarily want to maintain a third way for people to search.
The text was updated successfully, but these errors were encountered: