Skip to content

Commit

Permalink
249 OpenAPI endpoint implementation findCapitalCommitmentsByManagingC…
Browse files Browse the repository at this point in the history
…odeCapitalProjectId

     - Updated OpenAPI documentation to remove "under construction" emoji glag

     Implement find capital commitments by managing code / capital project id id endpoint
     - cap com by mng code cap proj id controller, module, repository and service
     - e2e and service unit tests
     - added copy to README to add context regarding schema changes
Co-authored-by: horatio <[email protected]>
Co-authored-by: tangoyankee <[email protected]>
  • Loading branch information
horatiorosa committed Jul 12, 2024
1 parent 4ecdb0b commit b541304
Show file tree
Hide file tree
Showing 18 changed files with 1,458 additions and 25 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ The application is running on port `3000`
This site reflects the documentation at the point where the command was written. Viewing changes to
the OpenAPI documentation requires restarting the development server).

### Schema changes
If you make changes to any database schema in `src/schema`, it will be necessary to generate migration files in order for the changes to be reflected in the database. Database schemas are indicated by their use of the drizzle `pgTable` method. (Changes to the Zod "entity" schemas do not require database migrations)
```sh
npm run drizzle:generate
```

## Production builds
Running a production version of the site is a two step process.
First, generate production versions of the OpenAPI documentation and API.
Expand Down
7 changes: 7 additions & 0 deletions db/migration/0016_condemned_hammerhead.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE "agency_budget" ALTER COLUMN "type" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "agency_budget" ALTER COLUMN "sponsor" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment_fund" ALTER COLUMN "value" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "type" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "planned_date" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "budget_line_code" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "budget_line_id" SET NOT NULL;
Loading

0 comments on commit b541304

Please sign in to comment.