-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into mds-6285-esup-detonator-magazine-missing
- Loading branch information
Showing
95 changed files
with
2,430 additions
and
934 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
1 change: 1 addition & 0 deletions
1
migrations/sql/V2024.12.03.13.1__add_permit_condition_meta_column.sql
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 @@ | ||
ALTER TABLE permit_conditions ADD COLUMN IF NOT EXISTS meta JSONB NULL; |
1 change: 1 addition & 0 deletions
1
migrations/sql/V2024.12.06.11.1__add_mine_report_definition_report_name_column.sql
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 @@ | ||
ALTER TABLE mine_report_permit_requirement ADD COLUMN report_name VARCHAR(255) NULL; |
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,26 @@ | ||
CREATE TABLE "user" | ||
( | ||
sub VARCHAR PRIMARY KEY, | ||
email VARCHAR NOT NULL, | ||
given_name VARCHAR NOT NULL, | ||
family_name VARCHAR NOT NULL, | ||
display_name VARCHAR NOT NULL, | ||
idir_username VARCHAR NOT NULL, | ||
identity_provider VARCHAR NOT NULL, | ||
idir_user_guid VARCHAR NOT NULL, | ||
last_logged_in TIMESTAMPTZ, | ||
create_user VARCHAR(255) NOT NULL, | ||
create_timestamp timestamp with time zone DEFAULT now() NOT NULL, | ||
update_user VARCHAR(255) NOT NULL, | ||
update_timestamp timestamp with time zone DEFAULT now() NOT NULL, | ||
deleted_ind BOOLEAN DEFAULT false | ||
); | ||
|
||
ALTER TABLE "user" | ||
OWNER TO mds; | ||
|
||
-- | ||
-- Name: TABLE user; Type: COMMENT; Schema: public; Owner: mds | ||
-- | ||
|
||
COMMENT ON TABLE "user" IS 'User Profile data sourced from keycloak'; |
1 change: 1 addition & 0 deletions
1
migrations/sql/V2024.12.11.15.1__add_permit_condition_history_meta_column.sql
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 @@ | ||
ALTER TABLE permit_conditions_version ADD COLUMN IF NOT EXISTS meta JSONB NULL; |
24 changes: 24 additions & 0 deletions
24
migrations/sql/V2024.12.11.22.32__add_user_version_history_table.sql
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,24 @@ | ||
-- This file was generated by the generate_history_table_ddl command | ||
-- The file contains the corresponding history table definition for the {table} table | ||
CREATE TABLE user_version ( | ||
create_user VARCHAR(60), | ||
create_timestamp TIMESTAMP WITHOUT TIME ZONE, | ||
update_user VARCHAR(60), | ||
update_timestamp TIMESTAMP WITHOUT TIME ZONE, | ||
deleted_ind BOOLEAN default FALSE, | ||
sub VARCHAR NOT NULL, | ||
email VARCHAR, | ||
given_name VARCHAR, | ||
family_name VARCHAR, | ||
display_name VARCHAR, | ||
idir_username VARCHAR, | ||
identity_provider VARCHAR, | ||
idir_user_guid VARCHAR, | ||
transaction_id BIGINT NOT NULL, | ||
end_transaction_id BIGINT, | ||
operation_type SMALLINT NOT NULL, | ||
PRIMARY KEY (sub, transaction_id) | ||
); | ||
CREATE INDEX ix_user_version_operation_type ON user_version (operation_type); | ||
CREATE INDEX ix_user_version_end_transaction_id ON user_version (end_transaction_id); | ||
CREATE INDEX ix_user_version_transaction_id ON user_version (transaction_id); |
6 changes: 6 additions & 0 deletions
6
migrations/sql/V2024.12.11.22.33__add_user_version_history_table_backfill.sql
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,6 @@ | ||
-- This file was generated by the generate_history_table_ddl command | ||
-- The file contains the data migration to backfill history records for the {table} table | ||
with transaction AS (insert into transaction(id) values(DEFAULT) RETURNING id) | ||
insert into user_version (transaction_id, operation_type, end_transaction_id, "create_user", "create_timestamp", "update_user", "update_timestamp", "deleted_ind", "sub", "email", "given_name", "family_name", "display_name", "idir_username", "identity_provider", "idir_user_guid") | ||
select t.id, '0', null, "create_user", "create_timestamp", "update_user", "update_timestamp", "deleted_ind", "sub", "email", "given_name", "family_name", "display_name", "idir_username", "identity_provider", "idir_user_guid" | ||
from "user",transaction t; |
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
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
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
2 changes: 2 additions & 0 deletions
2
services/common/src/interfaces/permits/mineReportPermitRequirements.interface.ts
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
export interface IMineReportPermitRequirement { | ||
report_name: string; | ||
mine_report_permit_requirement_id: number; | ||
cim_or_cpo: string; | ||
ministry_recipient: string[]; | ||
permit_condition_id: number; | ||
due_date_period_months: number; | ||
initial_due_date: Date; | ||
} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./userInfo.interface"; | ||
export * from "./user.interface"; |
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,8 @@ | ||
export interface IUser { | ||
sub: string; | ||
display_name: string; | ||
email: string; | ||
family_name: string; | ||
given_name: string; | ||
last_logged_in: string; | ||
} |
20 changes: 0 additions & 20 deletions
20
services/common/src/redux/actionCreators/userActionCreator.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.