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 endpoint for uploading file with target IDs or coordinates #62

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

havok2063
Copy link
Contributor

@havok2063 havok2063 commented Oct 18, 2024

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.

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).
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.

Explore new endpoint for uploading file
1 participant