Skip to content

Commit

Permalink
Merge pull request #5455 from bcgov/dev-AA-foi-mod-3625
Browse files Browse the repository at this point in the history
#FOIMOD-3625 Updated for personal INF to CRU mapping
  • Loading branch information
nkan-aot2 authored Nov 27, 2024
2 parents 74c957f + 696f6c7 commit 637920f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions historical-search-api/src/sbc-common-components
Submodule sbc-common-components added at 949861
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ def upgrade():
(select programareaid from public."ProgramAreas" where iaocode in ('INF')) sq2
''')

# add INF to Coordinated Response Unit
op.execute('''INSERT INTO public."FOIRequestTeams"( requesttype, requeststatusid, teamid, programareaid, isactive, requeststatuslabel)
select requesttype, requeststatusid, teamid, programareaid, isactive, statuslabel from
(select 'Personal' as requesttype, (select teamid from public."OperatingTeams" where name = 'Coordinated Response Unit') as teamid, requeststatusid, true as isactive, statuslabel
from public."FOIRequestStatuses" where name in (
'Call For Records','Closed','Records Review','Fee Estimate','Consult','Ministry Sign Off','On Hold','Harms Assessment','Response'
)) sq,
(select programareaid from public."ProgramAreas" where iaocode in ('INF')) sq2
''')

op.execute('''UPDATE public."FOIRequestTeams" SET isactive=false WHERE programareaid in(
SELECT programareaid FROM public."ProgramAreas" WHERE iaocode='INF') AND
Expand Down

0 comments on commit 637920f

Please sign in to comment.