Skip to content

This pull request introduces several improvements to the NX AI FastAPI application, focusing on enhancing the product seeding process, adding full-text search capabilities, updating API metadata, and expanding test coverage. #22

Merged
goldlabelapps merged 1 commit intomasterfrom
staging
Mar 23, 2026

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

This pull request introduces several improvements to the NX AI FastAPI application, focusing on enhancing the product seeding process, adding full-text search capabilities, updating API metadata, and expanding test coverage. The most important changes are grouped below:

Database and Seeding Enhancements:

  • The product seeding process now adds a search_vector tsvector column to the product table, populates it using relevant fields (such as title, Pack_Description, and Hierarchy1-3), and creates a GIN index to enable fast full-text search.
  • The seed data CSV path was updated to point to data/seed.csv for improved organization.

API Improvements:

  • The root endpoint metadata was updated with a new title and now includes a hierarchical structure for the products endpoint, listing its /seed child route.

Versioning:

  • The application version was bumped from 1.0.9 to 1.1.0 to reflect these enhancements.

Testing:

  • Added a new test to verify that the /products endpoint returns a list (even if empty) and includes the expected response structure.Bump package version to 1.1.0, move product CSVs into app/api/products/data and update seed path. Extend products seeding to add a search_vector tsvector column, populate it from title/Pack_Description/Hierarchy fields, and create a GIN index for full-text search. Update root endpoint metadata/title and expose a products/seed child link. Minor cleanup in main.py and add a test to assert /products returns a list structure.

Bump package version to 1.1.0, move product CSVs into app/api/products/data and update seed path. Extend products seeding to add a search_vector tsvector column, populate it from title/Pack_Description/Hierarchy fields, and create a GIN index for full-text search. Update root endpoint metadata/title and expose a products/seed child link. Minor cleanup in main.py and add a test to assert /products returns a list structure.
@goldlabelapps goldlabelapps merged commit 1400430 into master Mar 23, 2026
2 checks passed
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.

1 participant