Skip to content

Add report_type: DB column#219

Open
shreeyaadhikari wants to merge 1 commit into
mainfrom
add-report-type
Open

Add report_type: DB column#219
shreeyaadhikari wants to merge 1 commit into
mainfrom
add-report-type

Conversation

@shreeyaadhikari
Copy link
Copy Markdown

@shreeyaadhikari shreeyaadhikari commented May 26, 2026

ℹ️ Issue

Closes #176

📝 Description

Summary: Add report_type to reports so each report is classified as technical or narrative.
Files changed: db_setup.sql, report-service.ts, handler.ts, openapi.yaml, db-types.d.ts.

✔️ Verification

What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.

db_setup.sql showing report_type line:
image

report-service.ts insertion & returning of report_type:
image

handler.ts POST response including report_type:
image

openapi.yaml snippet showing the enum:
image

🏕️ (Optional) Future Work / Notes

Run the DB migration before deploying

@github-actions github-actions Bot requested a review from Vaibhav978 May 26, 2026 02:52
github-actions Bot added a commit that referenced this pull request May 26, 2026
@shreeyaadhikari shreeyaadhikari changed the title Add report_type: DB column, persistence, API response Add report_type: DB column May 26, 2026
Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

One note on testing: We would usually test something like this by running the app locally and hitting the POST endpoint. this is a simple change so I have high confidence

github-actions Bot added a commit that referenced this pull request Jun 2, 2026
@shreeyaadhikari shreeyaadhikari added this pull request to the merge queue Jun 4, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 4, 2026
@shreeyaadhikari shreeyaadhikari added this pull request to the merge queue Jun 4, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 4, 2026
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.

Add report type to the reports database

3 participants