Skip to content

Add flag/hide columns and PATCH endpoint#39

Merged
goldlabelapps merged 1 commit into
masterfrom
staging
Apr 2, 2026
Merged

Add flag/hide columns and PATCH endpoint#39
goldlabelapps merged 1 commit into
masterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

Bump package version and add DB migration to introduce boolean flag and hide columns on the prospects table. Include a SQL migration file and a small runner (app/api/prospects/database/run_migration.py) that executes the SQL using get_db_connection. Update prospects API: add ProspectUpdate Pydantic schema, import Body and HTTPException, and implement a PATCH /prospects/{id} endpoint to update flag and/or hide with validation, DB update, error handling and commit/rollback. Also ensure single-record read endpoint returns meta+data.

Bump package version and add DB migration to introduce boolean `flag` and `hide` columns on the `prospects` table. Include a SQL migration file and a small runner (app/api/prospects/database/run_migration.py) that executes the SQL using get_db_connection. Update prospects API: add ProspectUpdate Pydantic schema, import Body and HTTPException, and implement a PATCH /prospects/{id} endpoint to update `flag` and/or `hide` with validation, DB update, error handling and commit/rollback. Also ensure single-record read endpoint returns meta+data.
@goldlabelapps goldlabelapps marked this pull request as ready for review April 2, 2026 06:27
@goldlabelapps goldlabelapps self-assigned this Apr 2, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Python Apr 2, 2026
@goldlabelapps goldlabelapps added this to the Proof of Concept milestone Apr 2, 2026
@goldlabelapps goldlabelapps merged commit abaedb4 into master Apr 2, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Python Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant