Skip to content

Commit

Permalink
Tracking pull request to merge release-2.18.0 to master (#2860)
Browse files Browse the repository at this point in the history
* update release number

* update pr #

* update oc-login

* Bump django from 3.2.23 to 3.2.25 in /backend (#2852)

Bumps [django](https://github.com/django/django) from 3.2.23 to 3.2.25.
- [Commits](django/django@3.2.23...3.2.25)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* WIP (#2857)

* Fix: Remove duplicate BCeID user account #1636 - 2844 (#2853)

* update branch bane

* update pr number

* fix: remove duplicate BCeID user account #1636

---------

Co-authored-by: Kuan Fan <[email protected]>

* fix: updated org service calculation for max credit offset to account for credit earning order over time (#2870)

Co-authored-by: Your Name <[email protected]>

* Fix: Supp report logic - 2867 (#2874)

* fix: updated org service calculation for max credit offset to account for credit earning order over time

* fix: pending deductions calc change

---------

Co-authored-by: Your Name <[email protected]>

* Fix: Summary Null Check (#2875)

* fix: updated org service calculation for max credit offset to account for credit earning order over time

* fix: pending deductions calc change

* fix: None check on summary obj

---------

Co-authored-by: Your Name <[email protected]>

* Fix: Credit Offset Exclude Reserved (#2876)

* fix: updated org service calculation for max credit offset to account for credit earning order over time

* fix: pending deductions calc change

* fix: None check on summary obj

* fix: added back exclude reserved

---------

Co-authored-by: Your Name <[email protected]>

* Fix: supp report logic 2867 (#2877)

* fix: updated org service calculation for max credit offset to account for credit earning order over time

* fix: pending deductions calc change

* fix: None check on summary obj

* fix: added back exclude reserved

* fix: test for ignoring pending supplemental deductions

---------

Co-authored-by: Your Name <[email protected]>

* Cleanup 2.18.0 (#2878)

* add cleanup

* update cleanup bc

* update knps for new minio

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kevin-hashimoto <[email protected]>
Co-authored-by: Hamed Valiollahi <[email protected]>
Co-authored-by: Alex Zorkin <[email protected]>
Co-authored-by: Your Name <[email protected]>
  • Loading branch information
6 people committed Apr 30, 2024
1 parent 73f9402 commit f5cecab
Show file tree
Hide file tree
Showing 19 changed files with 357 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch-deploy-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
ref: ${{ inputs.branch-name }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/dev-release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## For each release, the value of name, branches, RELEASE_NAME and PR_NUMBER need to be adjusted accordingly
## For each release, update lib/config.js: version and releaseBranch

name: TFRS Dev release-2.17.0
name: TFRS Dev release-2.18.0

on:
push:
branches: [ release-2.17.0 ]
branches: [ release-2.18.0 ]
paths:
- frontend/**
- backend/**
Expand All @@ -15,8 +15,8 @@ on:
env:
## The pull request number of the Tracking pull request to merge the release branch to main
## Also remember to update the version in .pipeline/lib/config.js
PR_NUMBER: 2849
RELEASE_NAME: release-2.17.0
PR_NUMBER: 2860
RELEASE_NAME: release-2.18.0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -84,8 +84,7 @@ jobs:

## Log in to Openshift with a token of service account
- name: Log in to Openshift
##uses: redhat-actions/oc-login@v1
uses: smlgbl/oc-login@main
uses: redhat-actions/[email protected]
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
Expand Down Expand Up @@ -113,8 +112,7 @@ jobs:
uses: actions/checkout@v3

- name: Log in to Openshift
##uses: redhat-actions/oc-login@v1
uses: smlgbl/oc-login@main
uses: redhat-actions/[email protected]
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-dev-database-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
ref: refs/pull/${{ inputs.pr-number }}/head

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-dev-deploy-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
ref: ${{ inputs.checkout-ref }}

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.openshift-server }}
openshift_token: ${{ secrets.openshift-token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:

- name: Log in to Openshift
uses: redhat-actions/oc-login@v1.2
uses: redhat-actions/oc-login@v1.3
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tfrs-release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## For each release, the value of name, branches, RELEASE_NAME and PR_NUMBER need to be adjusted accordingly
## For each release, update lib/config.js: version and releaseBranch

name: TFRS release-2.17.0
name: TFRS release-2.18.0

on:
workflow_dispatch:
Expand All @@ -10,8 +10,8 @@ on:
env:
## The pull request number of the Tracking pull request to merge the release branch to main
## Also remember to update the version in .pipeline/lib/config.js
PR_NUMBER: 2849
RELEASE_NAME: release-2.17.0
PR_NUMBER: 2860
RELEASE_NAME: release-2.18.0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .pipeline/lib/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const options= require('@bcgov/pipeline-cli').Util.parseArguments()
const changeId = options.pr //aka pull-request
const version = '2.17.0'
const version = '2.18.0'
const name = 'tfrs'
const ocpName = 'apps.silver.devops'

Expand All @@ -13,7 +13,7 @@ options.git.repository='tfrs'
const phases = {
build: { namespace:'0ab226-tools' , name: `${name}`, phase: 'build' , changeId:changeId, suffix: `-build-${changeId}` ,
instance: `${name}-build-${changeId}` , version:`${version}-${changeId}`, tag:`build-${version}-${changeId}`,
releaseBranch: 'release-2.17.0'
releaseBranch: 'release-2.18.0'
},
dev: {namespace:'0ab226-dev' , name: `${name}`, phase: 'dev' , changeId:changeId, suffix: `-dev` ,
instance: `${name}-dev` , version:`${version}`, tag:`dev-${version}`, dbServiceName: 'tfrs-spilo',
Expand Down
33 changes: 33 additions & 0 deletions backend/api/migrations/0023_delete_duplicate_bceid_account_1636.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from django.db import migrations

def delete_user_role(apps, schema_editor):
"""Deletes UserRole objects filtered by user_id=1636."""
db_alias = schema_editor.connection.alias
model = apps.get_model("api", "UserRole")
model.objects.using(db_alias).filter(user_id=1636).delete()

def delete_user_creation_request(apps, schema_editor):
"""Deletes UserCreationRequest objects filtered by user_id=1636."""
db_alias = schema_editor.connection.alias
model = apps.get_model("api", "UserCreationRequest")
model.objects.using(db_alias).filter(user_id=1636).delete()

def delete_user(apps, schema_editor):
"""Deletes User objects filtered by user_id=1636."""
db_alias = schema_editor.connection.alias
model = apps.get_model("api", "User")
model.objects.using(db_alias).filter(id=1636).delete()

class Migration(migrations.Migration):
"""
Defines migration dependencies and operations for deleting user data.
"""
dependencies = [
('api', '0022_update_trade_effective_dates'),
]

operations = [
migrations.RunPython(delete_user_role),
migrations.RunPython(delete_user_creation_request),
migrations.RunPython(delete_user),
]
Loading

0 comments on commit f5cecab

Please sign in to comment.