-
Notifications
You must be signed in to change notification settings - Fork 3
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 NDT-527-Remove-Extra-space-from-dashboard-wh…
…en-sticky-header-enabled
- Loading branch information
Showing
11 changed files
with
157 additions
and
69 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
15 changes: 2 additions & 13 deletions
15
app/backend/lib/emails/templates/assesmentSecondReviewChange.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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const ASSESSMENT_TYPES = { | ||
projectManagement: { | ||
type: 'Project Management assessment', | ||
slug: 'project-management', | ||
}, | ||
permitting: { type: 'Permitting assessment', slug: 'permitting' }, | ||
technical: { type: 'Technical assessment', slug: 'technical' }, | ||
gis: { type: 'GIS assessment', slug: 'gis' }, | ||
financialRisk: { type: 'Financial Risk assessment', slug: 'financial-risk' }, | ||
screening: { type: 'Eligibility Screening', slug: 'screening' }, | ||
}; | ||
|
||
export default ASSESSMENT_TYPES; |
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
19 changes: 19 additions & 0 deletions
19
db/deploy/computed_columns/application_assessment_notifications.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,19 @@ | ||
-- Deploy ccbc:computed_columns/application_assessment_notifications to pg | ||
|
||
BEGIN; | ||
|
||
create or replace function ccbc_public.application_assessment_notifications(application ccbc_public.application) returns setof ccbc_public.notification as | ||
$$ | ||
select distinct on (notification_type) * | ||
from ccbc_public.notification | ||
where application_id = application_id | ||
ORDER BY notification_type, created_at DESC; | ||
$$ language sql stable; | ||
|
||
grant execute on function ccbc_public.application_assessment_notifications to ccbc_analyst; | ||
grant execute on function ccbc_public.application_assessment_notifications to ccbc_admin; | ||
grant execute on function ccbc_public.application_assessment_notifications to ccbc_auth_user; | ||
|
||
comment on function ccbc_public.application_assessment_notifications is 'Computed column to get assessment notifications by assessment type'; | ||
|
||
COMMIT; |
6 changes: 6 additions & 0 deletions
6
db/revert/computed_columns/application_assessment_notifications.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 @@ | ||
|
||
BEGIN; | ||
|
||
drop function ccbc_public.application_assessment_notifications; | ||
|
||
COMMIT; |
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