Skip to content

Commit

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

* update pr number

* fix: incorrect 21 warnings (#1973)

* update create release

* update create release

---------

Co-authored-by: tim738745 <[email protected]>
  • Loading branch information
kuanfandevops and tim738745 authored Sep 29, 2023
1 parent a8b80b2 commit c80dfc3
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 20 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ on:
- 'master'

jobs:

create-release:
runs-on: ubuntu-latest
env:
releasename: ${{ github.event.pull_request.head.ref }}
steps:
- uses: actions/checkout@v3
- name: Replace release name
uses: mad9000/actions-find-and-replace-string@4
with:
source: ${{ github.event.pull_request.head.ref }}
find: 'release-'
replace: 'v'
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: ${releasename/release-/v}
tag_name: ${releasename/release-/v}
name: ${{ github.event.pull_request.head.ref }}
tag_name: ${{ github.event.pull_request.head.ref }}
body: |
${{ github.event.pull_request.body }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/dev-build.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## For each release, please update the value of workflow name, branches and PR_NUMBER
## Also update frontend/package.json version

name: Dev Build 1.51.0
name: Dev Build 1.52.0

on:
push:
branches: [ release-1.51.0 ]
branches: [ release-1.52.0 ]
paths:
- frontend/**
- backend/**
Expand All @@ -14,8 +14,8 @@ on:

env:
## The pull request number of the Tracking pull request to merge the release branch to main
PR_NUMBER: 1951
VERSION: 1.51.0
PR_NUMBER: 1972
VERSION: 1.52.0
GIT_URL: https://github.com/bcgov/zeva.git
TOOLS_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools
DEV_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev
Expand All @@ -32,7 +32,7 @@ jobs:
call-unit-test:
uses: ./.github/workflows/unit-test-template.yaml
with:
pr-number: 1951
pr-number: 1972

build:

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## For each release, please update the value of workflow name, branches and PR_NUMBER
## Also update frontend/package.json version

name: Release Build 1.51.0
name: Release Build 1.52.0

on:
workflow_dispatch:
workflow_call:

env:
## The pull request number of the Tracking pull request to merge the release branch to main
PR_NUMBER: 1951
VERSION: 1.51.0
PR_NUMBER: 1972
VERSION: 1.52.0
GIT_URL: https://github.com/bcgov/zeva.git
TOOLS_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools
DEV_NAMESPACE: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-dev
Expand All @@ -27,7 +27,7 @@ jobs:
call-unit-test:
uses: ./.github/workflows/unit-test-template.yaml
with:
pr-number: 1951
pr-number: 1972

build:

Expand Down
6 changes: 4 additions & 2 deletions backend/api/services/sales_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def populate_date_warnings(warnings, sales_submission_contents):
sale_date = parse(str(content.xls_sale_date), fuzzy=True)
except ValueError:
add_warning(warnings, content_id, invalid_date_warning)

if sale_date is not None and sale_date < datetime.datetime(2018, 1, 2):
add_warning(warnings, content_id, expired_date_warning)

Expand All @@ -326,7 +326,9 @@ def populate_already_awarded_warnings(
matching_records = []
for sale_record in sale_records:
if (
sale_record.submission != content.submission
sale_record.submission.validation_status
!= SalesSubmissionStatuses.REJECTED
and sale_record.submission != content.submission
and sale_record.create_timestamp < content.update_timestamp
):
matching_records.append(sale_record)
Expand Down
8 changes: 4 additions & 4 deletions charts/zeva-spilo/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ spilo:

resources:
limits:
cpu: 720m
memory: 800Mi
cpu: 1200m
memory: 1000Mi
requests:
cpu: 360m
memory: 400Mi
cpu: 500m
memory: 500Mi

podDisruptionBudget:
enabled: false
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zeva-frontend",
"version": "1.51.0",
"version": "1.52.0",
"private": true,
"dependencies": {
"@babel/eslint-parser": "^7.19.1",
Expand Down

0 comments on commit c80dfc3

Please sign in to comment.