-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracking pull request to merge release-1.59.0 to master (#2153)
* initial changes for 1.59.0 * update pr number * fix: 2145 - compliance calculator rounding (#2154) * Cleanup job (#2164) * remove used apps (#2165) * chore: 2156 - snapshot compliance ratio reductions (#2162) * fix: adds effective/expiration date to model year object creation so those new years can be included in the ingest_sales_spreadsheet script (#2167) * fix: zeva 2161 - Error When Attempting to Resubmit Deleted Rejected ZEV Models (#2169) * fix: allows deleted vehicles to be resubmitted as drafts * fix: adds missing model * Tests for Dashboard Container (#2170) * Bump gunicorn from 20.0.4 to 22.0.0 in /backend (#2159) Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 20.0.4 to 22.0.0. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](benoitc/gunicorn@20.0.4...22.0.0) --- updated-dependencies: - dependency-name: gunicorn dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump idna from 2.8 to 3.7 in /backend (#2157) Bumps [idna](https://github.com/kjd/idna) from 2.8 to 3.7. - [Release notes](https://github.com/kjd/idna/releases) - [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst) - [Commits](kjd/idna@v2.8...v3.7) --- updated-dependencies: - dependency-name: idna dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: julianforeman <[email protected]> * Bump sqlparse from 0.4.4 to 0.5.0 in /backend (#2158) Bumps [sqlparse](https://github.com/andialbrecht/sqlparse) from 0.4.4 to 0.5.0. - [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG) - [Commits](andialbrecht/sqlparse@0.4.4...0.5.0) --- updated-dependencies: - dependency-name: sqlparse dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * --- (#2173) updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: 2172 - supplementary report credits fix (#2174) * Bump django from 3.2.20 to 3.2.25 in /backend (#2152) Bumps [django](https://github.com/django/django) from 3.2.20 to 3.2.25. - [Commits](django/django@3.2.20...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> * give up artifactory (#2175) * pull from docker directly * Bump cryptography from 3.4.7 to 42.0.4 in /backend (#2151) Bumps [cryptography](https://github.com/pyca/cryptography) from 3.4.7 to 42.0.4. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@3.4.7...42.0.4) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: julianforeman <[email protected]> * update cleanup cron * update setup node version * fix: 2178 - supp report ldv sales value + error upon issuance (#2179) * fix: 2185 - supplemental report rounding (#2187) * fix: 2185 - supplementary report rounding * associated changes * a fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: tim738745 <[email protected]> Co-authored-by: Emily <[email protected]> Co-authored-by: JulianForeman <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: julianforeman <[email protected]>
- Loading branch information
1 parent
c708259
commit d5db7e5
Showing
58 changed files
with
624 additions
and
1,953 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
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 |
---|---|---|
|
@@ -18,13 +18,13 @@ jobs: | |
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.20.0 | ||
node-version: 20 | ||
|
||
- name: Frontend Jest coverage report | ||
uses: ArtiomTr/[email protected] | ||
|
@@ -44,7 +44,7 @@ jobs: | |
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ inputs.pr-number }}/head | ||
|
||
|
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 |
---|---|---|
|
@@ -86,7 +86,8 @@ elif [[ -f requirements.txt ]]; then | |
pip install -r requirements.txt | ||
else | ||
echo "---> Installing dependencies from artifactory ..." | ||
pip install -i https://$ARTIFACTORY_USER:$ARTIFACTORY_PASSWORD@artifacts.developer.gov.bc.ca/artifactory/api/pypi/pypi-remote/simple -r requirements.txt | ||
# pip install -i https://$ARTIFACTORY_USER:[email protected]/artifactory/api/pypi/pypi-remote/simple -r requirements.txt | ||
pip install -r requirements.txt | ||
fi | ||
fi | ||
|
||
|
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,18 @@ | ||
# Generated by Django 3.2.18 on 2024-04-25 16:41 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0004_auto_20231024_0908'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='modelyearreportcomplianceobligation', | ||
name='reduction_value', | ||
field=models.DecimalField(blank=True, decimal_places=2, max_digits=20, null=True), | ||
) | ||
] |
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,22 @@ | ||
# Generated by Django 3.2.20 on 2024-05-08 22:53 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0005_auto_20240425_0941'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='vehicle', | ||
unique_together=set(), | ||
), | ||
migrations.AddConstraint( | ||
model_name='vehicle', | ||
constraint=models.UniqueConstraint(condition=models.Q(('validation_status', 'DELETED'), _negated=True), fields=('make', 'model_name', 'vehicle_zev_type', 'model_year'), name='unique_non_deleted_vehicles'), | ||
), | ||
] |
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Stage 1: Use yarn to build the app | ||
FROM artifacts.developer.gov.bc.ca/docker-remote/node:16.20.0 as builder | ||
# FROM artifacts.developer.gov.bc.ca/docker-remote/node:16.20.0 as builder | ||
FROM node:16.20.0 as builder | ||
WORKDIR /usr/src/app | ||
COPY ./ ./ | ||
RUN npm install -g [email protected] \ | ||
|
@@ -8,7 +9,8 @@ RUN npm install -g [email protected] \ | |
RUN yes | npm run dist | ||
|
||
# Stage 2: Copy the JS React SPA into the Nginx HTML directory | ||
FROM artifacts.developer.gov.bc.ca/docker-remote/bitnami/nginx:1.21.6 | ||
# FROM artifacts.developer.gov.bc.ca/docker-remote/bitnami/nginx:1.21.6 | ||
FROM bitnami/nginx:1.21.6 | ||
COPY ./nginx.conf /opt/bitnami/nginx/conf/ | ||
COPY --from=builder /usr/src/app/public/build /app | ||
EXPOSE 8080 | ||
|
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
23 changes: 13 additions & 10 deletions
23
frontend/src/app/utilities/constructReassessmentReductions.js
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,16 @@ | ||
import Big from 'big.js' | ||
|
||
const getSnapshottedComplianceRatioReductions = (complianceResponseDetails) => { | ||
const result = {} | ||
const reductionValueCategories = ['complianceRatioTotalReduction', 'complianceRatioClassAReduction', 'complianceRatioUnspecifiedReduction'] | ||
complianceResponseDetails.forEach((item) => { | ||
const category = item.category | ||
const reductionValue = item.reductionValue | ||
if (reductionValue !== undefined && reductionValue !== null && reductionValueCategories.indexOf(category) > -1) { | ||
result[category] = new Big(reductionValue) | ||
} | ||
}) | ||
return result | ||
} | ||
|
||
export default getSnapshottedComplianceRatioReductions |
Oops, something went wrong.