generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add migration for new project.bcts_manager_name column. Add new field to create/response objects. * Add new spec for swagger. Generated api-client. * Add new bctsMgrName property to project entity. * Fix test issue. * Add bctsMgrName for admin form and necessary annotation(validation) * Add Timber Sales Manager Name field and trigger update when forest client selection is changed. * Add correct validation annotation for bctsMgrName. * Admin view bctsMgrName field. * Add validateTimberSalesManager for project service. * Add condtion to display bctsMgrName. * Fix indentation issue. * Add display Timber Sales manager name to admin summary page. * Adjust comment for Timber Sales string check condition.
- Loading branch information
1 parent
39de058
commit a21c46b
Showing
17 changed files
with
179 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ section { | |
} | ||
|
||
span.name { | ||
@include flex(0 0 12rem); | ||
@include flex(0 0 13rem); | ||
|
||
margin: 0; | ||
} | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ | |
} | ||
|
||
span.name { | ||
@include flex(0 0 12rem); | ||
@include flex(0 0 13rem); | ||
margin: 0; | ||
} | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
27 changes: 27 additions & 0 deletions
27
api/src/migrations/main/1698445357799-project-addColumn-bctsManagerName.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const { MigrationInterface, QueryRunner } = require("typeorm"); | ||
|
||
module.exports = class ProjectAddColumnBctsManagerName1698445357799 { | ||
|
||
async up(queryRunner) { | ||
console.log('Starting project (add new column - bcts_manager_name) migration'); | ||
await queryRunner.query(` | ||
-- add new column - bcts_manager_name | ||
ALTER TABLE app_fom.project ADD COLUMN bcts_manager_name varchar; | ||
-- comment on column - bcts_manager_name | ||
COMMENT ON COLUMN app_fom.project.bcts_manager_name IS | ||
'BCTS timber sales manager''s name when it is a BCTS FOM.'; | ||
`); | ||
} | ||
|
||
async down(queryRunner) { | ||
console.log('Starting project (drop column - bcts_manager_name) migration'); | ||
await queryRunner.query(` | ||
-- drop new column - bcts_manager_name | ||
ALTER TABLE app_fom.project DROP COLUMN bcts_manager_name; | ||
`); | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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