-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into B-20492-Download-Files
- Loading branch information
Showing
100 changed files
with
1,506 additions
and
357 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.20.2 | ||
FROM alpine:3.20.3 | ||
|
||
# hadolint ignore=DL3017 | ||
RUN apk upgrade --no-cache busybox | ||
|
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,4 +1,4 @@ | ||
FROM alpine:3.20.2 | ||
FROM alpine:3.20.3 | ||
|
||
# hadolint ignore=DL3017 | ||
RUN apk upgrade --no-cache busybox | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:3.20.2 | ||
FROM alpine:3.20.3 | ||
|
||
# hadolint ignore=DL3017 | ||
RUN apk upgrade --no-cache busybox | ||
|
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
26 changes: 26 additions & 0 deletions
26
migrations/app/schema/20240822180409_adding_locked_price_cents_service_param.up.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,26 @@ | ||
INSERT INTO service_item_param_keys | ||
(id,key,description,type,origin,created_at,updated_at) | ||
SELECT '7ec5cf87-a446-4dd6-89d3-50bbc0d2c206','LockedPriceCents', 'Locked price when move was made available to prime', 'INTEGER', 'SYSTEM', now(), now() | ||
WHERE NOT EXISTS | ||
(SELECT 1 | ||
FROM service_item_param_keys s | ||
WHERE s.id = '7ec5cf87-a446-4dd6-89d3-50bbc0d2c206' | ||
); | ||
|
||
INSERT INTO service_params | ||
(id,service_id,service_item_param_key_id,created_at,updated_at,is_optional) | ||
SELECT '22056106-bbde-4ae7-b5bd-e7d2f103ab7d',(SELECT id FROM re_services WHERE code='MS'),(SELECT id FROM service_item_param_keys where key='LockedPriceCents'), now(), now(), 'false' | ||
WHERE NOT EXISTS | ||
( SELECT 1 | ||
FROM service_params s | ||
WHERE s.id = '22056106-bbde-4ae7-b5bd-e7d2f103ab7d' | ||
); | ||
|
||
INSERT INTO service_params | ||
(id,service_id,service_item_param_key_id,created_at,updated_at,is_optional) | ||
SELECT '86f8c20c-071e-4715-b0c1-608f540b3be3',(SELECT id FROM re_services WHERE code='CS'),(SELECT id FROM service_item_param_keys where key='LockedPriceCents'), now(), now(), 'false' | ||
WHERE NOT EXISTS | ||
( SELECT 1 | ||
FROM service_params s | ||
WHERE s.id = '86f8c20c-071e-4715-b0c1-608f540b3be3' | ||
); |
29 changes: 29 additions & 0 deletions
29
migrations/app/schema/20240909194514_pricing_unpriced_ms_cs_service_items.up.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,29 @@ | ||
-- Filling in pricing_estimates for unprices services code MS and CS service items. Service items should not be able to reach this state | ||
-- but some older data exists where unpriced MS and CS items exist | ||
SET statement_timeout = 300000; | ||
SET lock_timeout = 300000; | ||
SET idle_in_transaction_session_timeout = 300000; | ||
|
||
UPDATE mto_service_items AS ms | ||
SET locked_price_cents = | ||
CASE | ||
when price_cents > 0 AND (s.code = 'MS' OR s.code = 'CS') AND ms.re_service_id = s.id then price_cents | ||
when price_cents = 0 AND (s.code = 'MS' OR s.code = 'CS') AND ms.re_service_id = s.id then 0 | ||
END, | ||
pricing_estimate = | ||
CASE | ||
when price_cents > 0 AND (s.code = 'MS' OR s.code = 'CS') AND ms.re_service_id = s.id then price_cents | ||
when price_cents = 0 AND (s.code = 'MS' OR s.code = 'CS') AND ms.re_service_id = s.id then 0 | ||
END | ||
FROM re_task_order_fees AS tf | ||
JOIN re_services AS s | ||
ON tf.service_id = s.id | ||
JOIN re_contract_years AS cy | ||
ON tf.contract_year_id = cy.id | ||
JOIN re_contracts AS ct | ||
ON cy.contract_id = ct.id | ||
JOIN mto_service_items AS msi | ||
ON s.id = msi.re_service_id | ||
JOIN moves AS mo | ||
ON mo.id = msi.move_id | ||
WHERE (s.code = 'MS' OR s.code = 'CS') AND (mo.available_to_prime_at BETWEEN cy.start_date AND cy.end_date) AND ms.re_service_id = s.id AND ms.locked_price_cents is null AND ms.pricing_estimate is null; |
9 changes: 9 additions & 0 deletions
9
...42_populating_locked_price_cents_from_pricing_estimate_for_ms_and_cs_service_items.up.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,9 @@ | ||
-- Customer directed that the current pricing_estimate should be saved as the locked_price for MS and CS | ||
SET statement_timeout = 300000; | ||
SET lock_timeout = 300000; | ||
SET idle_in_transaction_session_timeout = 300000; | ||
|
||
UPDATE mto_service_items AS ms | ||
SET locked_price_cents = pricing_estimate | ||
FROM re_services AS r | ||
WHERE ms.re_service_id = r.id AND (r.code = 'MS' OR r.code = 'CS') |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 28 additions & 1 deletion
29
pkg/gen/ghcapi/ghcoperations/queues/get_services_counseling_queue_parameters.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
pkg/gen/ghcapi/ghcoperations/queues/get_services_counseling_queue_urlbuilder.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.