Skip to content

Commit

Permalink
Merge pull request #730 from bcgov/dev-marshal-DV-merge-main-1
Browse files Browse the repository at this point in the history
changes from main to dev-marshal (foi-docreviewer)
  • Loading branch information
divyav-aot authored Jan 19, 2024
2 parents 12917df + 721a408 commit 949a182
Show file tree
Hide file tree
Showing 45 changed files with 894 additions and 561 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "api/**"
- ".github/workflows/api-cd.yml"
Expand Down Expand Up @@ -59,7 +61,21 @@ jobs:
echo "TAG_NAME=test-marshal" >> $GITHUB_ENV
echo "BRANCH_NAME=test-marshal" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=dev-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=dev-rook" >> $GITHUB_ENV
echo "ENV_NAME=dev" >> $GITHUB_ENV
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=test-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=test-rook" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
run: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/dedupe-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "computingservices/DedupeServices/**"
- ".github/workflows/dedupe-cd.yml"
Expand Down Expand Up @@ -62,6 +64,22 @@ jobs:
echo "BRANCH_NAME=test-marshal" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=dev-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=dev-rook" >> $GITHUB_ENV
echo "ENV_NAME=dev" >> $GITHUB_ENV
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=test-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=test-rook" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
run: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/fileconv-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "MCS.FOI.S3FileConversion/**"
- ".github/workflows/fileconv-cd.yml"
Expand Down Expand Up @@ -62,6 +64,22 @@ jobs:
echo "BRANCH_NAME=test-marshal" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=dev-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=dev-rook" >> $GITHUB_ENV
echo "ENV_NAME=dev" >> $GITHUB_ENV
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=test-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=test-rook" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
run: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pdfstitch-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "computingservices/PDFStitchServices/**"
- ".github/workflows/pdfstitch-cd.yml"
Expand Down Expand Up @@ -61,6 +63,22 @@ jobs:
echo "TAG_NAME=test-marshal" >> $GITHUB_ENV
echo "BRANCH_NAME=test-marshal" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=dev-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=dev-rook" >> $GITHUB_ENV
echo "ENV_NAME=dev" >> $GITHUB_ENV
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=test-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=test-rook" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pdfstitch-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "computingservices/PDFStitchServices/**"

Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/web-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "web/**"
- ".github/workflows/web-cd.yml"
Expand Down Expand Up @@ -61,6 +63,22 @@ jobs:
echo "TAG_NAME=test-marshal" >> $GITHUB_ENV
echo "BRANCH_NAME=test-marshal" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=dev-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=dev-rook" >> $GITHUB_ENV
echo "ENV_NAME=dev" >> $GITHUB_ENV
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=test-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=test-rook" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/zippingservice-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "computingservices/ZippingServices/**"
- ".github/workflows/zippingservice-cd.yml"
Expand Down Expand Up @@ -61,6 +63,22 @@ jobs:
echo "TAG_NAME=test-marshal" >> $GITHUB_ENV
echo "BRANCH_NAME=test-marshal" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Set ENV variables for dev-rook branch
if: ${{ github.ref_name == 'dev-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=dev-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=dev-rook" >> $GITHUB_ENV
echo "ENV_NAME=dev" >> $GITHUB_ENV
- name: Set ENV variables for test-rook branch
if: ${{ github.ref_name == 'test-rook' }}
run: |
echo "For ${{ github.ref_name }} branch"
echo "TAG_NAME=test-rook" >> $GITHUB_ENV
echo "BRANCH_NAME=test-rook" >> $GITHUB_ENV
echo "ENV_NAME=test" >> $GITHUB_ENV
- name: Login Openshift
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/zippingservice-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- dev
- dev-marshal
- test-marshal
- dev-rook
- test-rook
paths:
- "computingservices/ZippingServices/**"

Expand Down
43 changes: 43 additions & 0 deletions api/migrations/versions/549893ea9059_oipc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"""empty message
Revision ID: 549893ea9059
Revises: 2045c976ea60
Create Date: 2023-11-23 22:53:32.071886
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '549893ea9059'
down_revision = '2045c976ea60'
branch_labels = None
depends_on = None


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('AnnotationSections', sa.Column('redactionlayerid', sa.Integer, nullable=False, server_default='1'))
op.create_foreign_key(None, 'AnnotationSections', 'RedactionLayers', ['redactionlayerid'], ['redactionlayerid'])
op.execute(
'ALTER TABLE public."AnnotationSections" DROP CONSTRAINT "annotationsection_version_key";'
)
op.execute(
'ALTER TABLE public."AnnotationSections" ADD CONSTRAINT annotationsection_version_redactionlayerid_key UNIQUE (annotationname, version, redactionlayerid);'
)
op.execute('Update public."AnnotationSections" set redactionlayerid = 1 where redactionlayerid is null ')

# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('AnnotationSections', 'redactionlayerid')
op.execute(
'ALTER TABLE public."AnnotationSections" DROP CONSTRAINT "annotationsection_version_redactionlayerid_key";'
)
op.execute(
'ALTER TABLE public."AnnotationSections" ADD CONSTRAINT annotationsection_version_key UNIQUE (annotationname, version);'
)
# ### end Alembic commands ###
Loading

0 comments on commit 949a182

Please sign in to comment.