Skip to content

Commit

Permalink
Merge branch 'main' into MAIN-B-21509
Browse files Browse the repository at this point in the history
  • Loading branch information
msaki-caci committed Nov 13, 2024
2 parents 1eab6b2 + 6a7bd45 commit 2401338
Show file tree
Hide file tree
Showing 462 changed files with 18,660 additions and 3,023 deletions.
1 change: 1 addition & 0 deletions .dccache

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/tls/dod-sw-ca-75.pem
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ dIfLjWrPbLuPSKLxJlPqME1q962+ql+f5Mg5w9CeBi1ORJynkX/yz332sydCgQ3G
kLz8YRyvZH5Jrdg6vDQr4qFMt2kmBUIWq7UDI/G1fmUI7Q7R7qsfnyHhqOdUNBNi
is8yooe7hRBl0TaIiNCmItMFaTl7G38ZI8gL2prAGNHITpTjbaWrlC2CYCgtCoWo
GmlNqlYB/qPgCvk50sSvxFL7dQ==
-----END CERTIFICATE-----
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ require (
github.com/gobuffalo/validate/v3 v3.3.3
github.com/gocarina/gocsv v0.0.0-20221216233619-1fea7ae8d380
github.com/gofrs/uuid v4.4.0+incompatible
github.com/golang-jwt/jwt/v4 v4.5.0
github.com/golang-jwt/jwt/v4 v4.5.1
github.com/gomodule/redigo v1.9.2
github.com/google/go-github/v31 v31.0.0
github.com/gorilla/csrf v1.7.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRx
github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA=
github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo=
github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
Expand Down
9 changes: 9 additions & 0 deletions migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,8 @@
20240917165710_update_duty_locations_provides_services_counseling.up.sql
20240927145659_update_mobile_home_factor.up.sql
20240930171315_updatePostalCodeToGbloc233BGNC.up.sql
20240930224757_add_transportation_office_assignments.up.sql
20241001122750_fix-tget-data.up.sql
20241001144741_update_boat_factor.up.sql
20241001174400_add_is_oconus_column.up.sql
20241001193619_market-code-enum.up.sql
Expand All @@ -1020,6 +1022,13 @@
20241007224427_update_addresses_us_post_region_cities_id.up.sql
20241008212243_populate_market_code_on_shipments_table.up.sql
20241009210749_create_view_v_locations.up.sql
20241011201326_changes_for_actual_expense_reimbursement_field.up.sql
20241017183144_add_AK_HI_duty_locations.up.sql
20241023130404_create_re_service_items.up.sql
20241023184337_create_ports_table.up.sql
20241023184350_create_port_locations_table.up.sql
20241023184437_insert_ports.up.sql
20241024114748_create_gbloc_aors.up.sql
20241029125015_add_orders_type_enum.up.sql
20241029144404_hdt-614-adjust-accomack-county.up.sql
20241111223224_change_international_sit_services_to_accessorials.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS public.transportation_office_assignments (
id uuid NOT NULL,
transportation_office_id uuid NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT null,
primary_office bool
);

INSERT INTO public.transportation_office_assignments SELECT id, transportation_office_id, created_at, updated_at FROM office_users;

UPDATE public.transportation_office_assignments toa SET primary_office = true FROM public.office_users ofusr WHERE ofusr.transportation_office_id = toa.transportation_office_id;
87 changes: 87 additions & 0 deletions migrations/app/schema/20241001122750_fix-tget-data.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
-- Set temp timeout due to large modification
-- Time is 5 minutes in milliseconds
SET statement_timeout = 300000;
SET lock_timeout = 300000;
SET idle_in_transaction_session_timeout = 300000;

-- remove trailing spaces and reset empty strings to null of tget tables

UPDATE transportation_accounting_codes
SET
tac_sys_id = CASE WHEN TRIM(tac_sys_id) = '' THEN NULL ELSE TRIM(tac_sys_id) END,
loa_sys_id = CASE WHEN TRIM(loa_sys_id) = '' THEN NULL ELSE TRIM(loa_sys_id) END,
tac_fn_bl_mod_cd = CASE WHEN TRIM(tac_fn_bl_mod_cd) = '' THEN NULL ELSE TRIM(tac_fn_bl_mod_cd) END,
org_grp_dfas_cd = CASE WHEN TRIM(org_grp_dfas_cd) = '' THEN NULL ELSE TRIM(org_grp_dfas_cd) END,
tac_mvt_dsg_id = CASE WHEN TRIM(tac_mvt_dsg_id) = '' THEN NULL ELSE TRIM(tac_mvt_dsg_id) END,
tac_fy_txt = CASE WHEN TRIM(tac_fy_txt) = '' THEN NULL ELSE TRIM(tac_fy_txt) END,
tac_ty_cd = CASE WHEN TRIM(tac_ty_cd) = '' THEN NULL ELSE TRIM(tac_ty_cd) END,
tac_use_cd = CASE WHEN TRIM(tac_use_cd) = '' THEN NULL ELSE TRIM(tac_use_cd) END,
tac_maj_clmt_id = CASE WHEN TRIM(tac_maj_clmt_id) = '' THEN NULL ELSE TRIM(tac_maj_clmt_id) END,
tac_bill_act_txt = CASE WHEN TRIM(tac_bill_act_txt) = '' THEN NULL ELSE TRIM(tac_bill_act_txt) END,
tac_cost_ctr_nm = CASE WHEN TRIM(tac_cost_ctr_nm) = '' THEN NULL ELSE TRIM(tac_cost_ctr_nm) END,
buic = CASE WHEN TRIM(buic) = '' THEN NULL ELSE TRIM(buic) END,
tac_hist_cd = CASE WHEN TRIM(tac_hist_cd) = '' THEN NULL ELSE TRIM(tac_hist_cd) END,
tac_stat_cd = CASE WHEN TRIM(tac_stat_cd) = '' THEN NULL ELSE TRIM(tac_stat_cd) END,
trnsprtn_acnt_tx = CASE WHEN TRIM(trnsprtn_acnt_tx) = '' THEN NULL ELSE TRIM(trnsprtn_acnt_tx) END,
dd_actvty_adrs_id = CASE WHEN TRIM(dd_actvty_adrs_id) = '' THEN NULL ELSE TRIM(dd_actvty_adrs_id) END,
tac_blld_add_frst_ln_tx = CASE WHEN TRIM(tac_blld_add_frst_ln_tx) = '' THEN NULL ELSE TRIM(tac_blld_add_frst_ln_tx) END,
tac_blld_add_scnd_ln_tx = CASE WHEN TRIM(tac_blld_add_scnd_ln_tx) = '' THEN NULL ELSE TRIM(tac_blld_add_scnd_ln_tx) END,
tac_blld_add_thrd_ln_tx = CASE WHEN TRIM(tac_blld_add_thrd_ln_tx) = '' THEN NULL ELSE TRIM(tac_blld_add_thrd_ln_tx) END,
tac_blld_add_frth_ln_tx = CASE WHEN TRIM(tac_blld_add_frth_ln_tx) = '' THEN NULL ELSE TRIM(tac_blld_add_frth_ln_tx) END,
tac_fnct_poc_nm = CASE WHEN TRIM(tac_fnct_poc_nm) = '' THEN NULL ELSE TRIM(tac_fnct_poc_nm) END;

UPDATE lines_of_accounting
SET
loa_sys_id = CASE WHEN TRIM(loa_sys_id) = '' THEN NULL ELSE TRIM(loa_sys_id) END,
loa_dpt_id = CASE WHEN TRIM(loa_dpt_id) = '' THEN NULL ELSE TRIM(loa_dpt_id) END,
loa_tnsfr_dpt_nm = CASE WHEN TRIM(loa_tnsfr_dpt_nm) = '' THEN NULL ELSE TRIM(loa_tnsfr_dpt_nm) END,
loa_baf_id = CASE WHEN TRIM(loa_baf_id) = '' THEN NULL ELSE TRIM(loa_baf_id) END,
loa_trsy_sfx_tx = CASE WHEN TRIM(loa_trsy_sfx_tx) = '' THEN NULL ELSE TRIM(loa_trsy_sfx_tx) END,
loa_maj_clm_nm = CASE WHEN TRIM(loa_maj_clm_nm) = '' THEN NULL ELSE TRIM(loa_maj_clm_nm) END,
loa_op_agncy_id = CASE WHEN TRIM(loa_op_agncy_id) = '' THEN NULL ELSE TRIM(loa_op_agncy_id) END,
loa_allt_sn_id = CASE WHEN TRIM(loa_allt_sn_id) = '' THEN NULL ELSE TRIM(loa_allt_sn_id) END,
loa_pgm_elmnt_id = CASE WHEN TRIM(loa_pgm_elmnt_id) = '' THEN NULL ELSE TRIM(loa_pgm_elmnt_id) END,
loa_tsk_bdgt_sbln_tx = CASE WHEN TRIM(loa_tsk_bdgt_sbln_tx) = '' THEN NULL ELSE TRIM(loa_tsk_bdgt_sbln_tx) END,
loa_df_agncy_alctn_rcpnt_id = CASE WHEN TRIM(loa_df_agncy_alctn_rcpnt_id) = '' THEN NULL ELSE TRIM(loa_df_agncy_alctn_rcpnt_id) END,
loa_jb_ord_nm = CASE WHEN TRIM(loa_jb_ord_nm) = '' THEN NULL ELSE TRIM(loa_jb_ord_nm) END,
loa_sbaltmt_rcpnt_id = CASE WHEN TRIM(loa_sbaltmt_rcpnt_id) = '' THEN NULL ELSE TRIM(loa_sbaltmt_rcpnt_id) END,
loa_wk_cntr_rcpnt_nm = CASE WHEN TRIM(loa_wk_cntr_rcpnt_nm) = '' THEN NULL ELSE TRIM(loa_wk_cntr_rcpnt_nm) END,
loa_maj_rmbsmt_src_id = CASE WHEN TRIM(loa_maj_rmbsmt_src_id) = '' THEN NULL ELSE TRIM(loa_maj_rmbsmt_src_id) END,
loa_dtl_rmbsmt_src_id = CASE WHEN TRIM(loa_dtl_rmbsmt_src_id) = '' THEN NULL ELSE TRIM(loa_dtl_rmbsmt_src_id) END,
loa_cust_nm = CASE WHEN TRIM(loa_cust_nm) = '' THEN NULL ELSE TRIM(loa_cust_nm) END,
loa_obj_cls_id = CASE WHEN TRIM(loa_obj_cls_id) = '' THEN NULL ELSE TRIM(loa_obj_cls_id) END,
loa_srv_src_id = CASE WHEN TRIM(loa_srv_src_id) = '' THEN NULL ELSE TRIM(loa_srv_src_id) END,
loa_spcl_intr_id = CASE WHEN TRIM(loa_spcl_intr_id) = '' THEN NULL ELSE TRIM(loa_spcl_intr_id) END,
loa_bdgt_acnt_cls_nm = CASE WHEN TRIM(loa_bdgt_acnt_cls_nm) = '' THEN NULL ELSE TRIM(loa_bdgt_acnt_cls_nm) END,
loa_doc_id = CASE WHEN TRIM(loa_doc_id) = '' THEN NULL ELSE TRIM(loa_doc_id) END,
loa_cls_ref_id = CASE WHEN TRIM(loa_cls_ref_id) = '' THEN NULL ELSE TRIM(loa_cls_ref_id) END,
loa_instl_acntg_act_id = CASE WHEN TRIM(loa_instl_acntg_act_id) = '' THEN NULL ELSE TRIM(loa_instl_acntg_act_id) END,
loa_lcl_instl_id = CASE WHEN TRIM(loa_lcl_instl_id) = '' THEN NULL ELSE TRIM(loa_lcl_instl_id) END,
loa_fms_trnsactn_id = CASE WHEN TRIM(loa_fms_trnsactn_id) = '' THEN NULL ELSE TRIM(loa_fms_trnsactn_id) END,
loa_dsc_tx = CASE WHEN TRIM(loa_dsc_tx) = '' THEN NULL ELSE TRIM(loa_dsc_tx) END,
loa_fnct_prs_nm = CASE WHEN TRIM(loa_fnct_prs_nm) = '' THEN NULL ELSE TRIM(loa_fnct_prs_nm) END,
loa_stat_cd = CASE WHEN TRIM(loa_stat_cd) = '' THEN NULL ELSE TRIM(loa_stat_cd) END,
loa_hist_stat_cd = CASE WHEN TRIM(loa_hist_stat_cd) = '' THEN NULL ELSE TRIM(loa_hist_stat_cd) END,
loa_hs_gds_cd = CASE WHEN TRIM(loa_hs_gds_cd) = '' THEN NULL ELSE TRIM(loa_hs_gds_cd) END,
org_grp_dfas_cd = CASE WHEN TRIM(org_grp_dfas_cd) = '' THEN NULL ELSE TRIM(org_grp_dfas_cd) END,
loa_uic = CASE WHEN TRIM(loa_uic) = '' THEN NULL ELSE TRIM(loa_uic) END,
loa_trnsn_id = CASE WHEN TRIM(loa_trnsn_id) = '' THEN NULL ELSE TRIM(loa_trnsn_id) END,
loa_sub_acnt_id = CASE WHEN TRIM(loa_sub_acnt_id) = '' THEN NULL ELSE TRIM(loa_sub_acnt_id) END,
loa_bet_cd = CASE WHEN TRIM(loa_bet_cd) = '' THEN NULL ELSE TRIM(loa_bet_cd) END,
loa_fnd_ty_fg_cd = CASE WHEN TRIM(loa_fnd_ty_fg_cd) = '' THEN NULL ELSE TRIM(loa_fnd_ty_fg_cd) END,
loa_bgt_ln_itm_id = CASE WHEN TRIM(loa_bgt_ln_itm_id) = '' THEN NULL ELSE TRIM(loa_bgt_ln_itm_id) END,
loa_scrty_coop_impl_agnc_cd = CASE WHEN TRIM(loa_scrty_coop_impl_agnc_cd) = '' THEN NULL ELSE TRIM(loa_scrty_coop_impl_agnc_cd) END,
loa_scrty_coop_dsgntr_cd = CASE WHEN TRIM(loa_scrty_coop_dsgntr_cd) = '' THEN NULL ELSE TRIM(loa_scrty_coop_dsgntr_cd) END,
loa_scrty_coop_ln_itm_id = CASE WHEN TRIM(loa_scrty_coop_ln_itm_id) = '' THEN NULL ELSE TRIM(loa_scrty_coop_ln_itm_id) END,
loa_agnc_dsbr_cd = CASE WHEN TRIM(loa_agnc_dsbr_cd) = '' THEN NULL ELSE TRIM(loa_agnc_dsbr_cd) END,
loa_agnc_acntng_cd = CASE WHEN TRIM(loa_agnc_acntng_cd) = '' THEN NULL ELSE TRIM(loa_agnc_acntng_cd) END,
loa_fnd_cntr_id = CASE WHEN TRIM(loa_fnd_cntr_id) = '' THEN NULL ELSE TRIM(loa_fnd_cntr_id) END,
loa_cst_cntr_id = CASE WHEN TRIM(loa_cst_cntr_id) = '' THEN NULL ELSE TRIM(loa_cst_cntr_id) END,
loa_prj_id = CASE WHEN TRIM(loa_prj_id) = '' THEN NULL ELSE TRIM(loa_prj_id) END,
loa_actvty_id = CASE WHEN TRIM(loa_actvty_id) = '' THEN NULL ELSE TRIM(loa_actvty_id) END,
loa_cst_cd = CASE WHEN TRIM(loa_cst_cd) = '' THEN NULL ELSE TRIM(loa_cst_cd) END,
loa_wrk_ord_id = CASE WHEN TRIM(loa_wrk_ord_id) = '' THEN NULL ELSE TRIM(loa_wrk_ord_id) END,
loa_fncl_ar_id = CASE WHEN TRIM(loa_fncl_ar_id) = '' THEN NULL ELSE TRIM(loa_fncl_ar_id) END,
loa_scrty_coop_cust_cd = CASE WHEN TRIM(loa_scrty_coop_cust_cd) = '' THEN NULL ELSE TRIM(loa_scrty_coop_cust_cd) END,
loa_bgt_rstr_cd = CASE WHEN TRIM(loa_bgt_rstr_cd) = '' THEN NULL ELSE TRIM(loa_bgt_rstr_cd) END,
loa_bgt_sub_act_cd = CASE WHEN TRIM(loa_bgt_sub_act_cd) = '' THEN NULL ELSE TRIM(loa_bgt_sub_act_cd) END;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- adding boolean for actual expense reimbursement for ppm shipments
ALTER TABLE ppm_shipments
ADD COLUMN IF NOT EXISTS is_actual_expense_reimbursement BOOLEAN DEFAULT FALSE;
COMMENT on COLUMN ppm_shipments.is_actual_expense_reimbursement IS 'Whether or not the ppm is an actual expense reimbursement';
Loading

0 comments on commit 2401338

Please sign in to comment.