Skip to content

This pull request refactors the CSV import functionality for the queue API by introducing a dedicated csv module, adds a new (template) Apollo CSV import endpoint, and cleans up test files. #91

Merged
goldlabelapps merged 3 commits intomasterfrom
staging
Apr 18, 2026

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

The main themes are improved modularity for CSV imports, standardization of import routes, and removal of obsolete or redundant tests.

CSV Import Refactoring and Additions:

  • Introduced a new app/api/queue/csv package with __init__.py and a placeholder README.md to organize CSV import routes. [1] [2]
  • Added a new apollo.py file providing a template endpoint for importing Apollo CSV data at /queue/csv/apollo. The implementation is currently a stub with placeholder logic for future development.
  • Moved the LinkedIn import route from routes/import_linkedin.py to csv/linkedin.py, and updated the endpoint to /queue/csv/linkedin for consistency.

API Router Updates:

  • Updated app/api/queue/__init__.py to register the new CSV import routers (linkedin and apollo), removing the old LinkedIn import router and including the new ones under the csv namespace. [1] [2]

Test Cleanup:

  • Removed the tests/test_prompt.py file, which contained both real and mocked LLM API tests, likely to reduce redundancy or because the tests are no longer relevant.

Rename app/api/queue/routes/import_linkedin.py to app/api/queue/import/linkedin.py to reorganize the queue import handlers. No functional changes were made (100% similarity/only a file move).
Reorganize import-related endpoints into a dedicated import_ package. Added package markers (__init__.py) and a placeholder README, moved the existing linkedin importer into app/api/queue/import_ and updated the queue router import paths accordingly. Also added a new apollo.py stub endpoint (/queue/import/apollo) that provides a template for CSV import (includes TODOs for CSV parsing and DB insertion). No functional import logic implemented yet; this change is primarily structural to group import handlers.
Refactor CSV import code by renaming the import_ package to csv and moving apollo/linkedin import modules under app/api/queue/csv. Update FastAPI route paths from /queue/import/... to /queue/csv/... and register the apollo CSV import router in app/api/queue/__init__.py. Add a placeholder CSV README and remove the old import_ package files and an obsolete test (tests/test_prompt.py). This reorganizes import endpoints for clearer CSV-related grouping.
@goldlabelapps goldlabelapps self-assigned this Apr 18, 2026
@goldlabelapps goldlabelapps merged commit 9bbe568 into master Apr 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant