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 Mar 23, 2026
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
search_vectortsvector column to theproducttable, populates it using relevant fields (such astitle,Pack_Description, andHierarchy1-3), and creates a GIN index to enable fast full-text search.data/seed.csvfor improved organization.API Improvements:
/seedchild route.Versioning:
1.0.9to1.1.0to reflect these enhancements.Testing:
/productsendpoint 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.