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

Commits on Oct 18, 2024

  1. Add endpoint for uploading file with target IDs or coordinates

    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).
    havok2063 committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    fa30480 View commit details
    Browse the repository at this point in the history