Skip to content

Commit

Permalink
Release/1.0 (#189)
Browse files Browse the repository at this point in the history
* more verbose error

* Add form spoiling functionality

* spoil form and unlease IDs if user forcefully reloads page or closes tab

* Feature/fixvips (#205)

* updated vips doc create payload

* updated comments

* updated vips payload

* Feature/fixvips (#206)

* updated vips doc create payload

* updated comments

* updated vips payload

* updated vips payload

* updated vips payloadupdate vips payload

* updated vips payload

* updated vips payload

* BCDL 0 Padding (#202)

* fix bug

* Update forms, add back name of copy, move IDs around, fix bug

* update down_revision of migration yesterday

* offline mode changes (#209)

* Feature/fixicbcapi (#211)

* updated icbc payloads

* updated icbc payload

* updated icbc payloads

* fixed vi check digit

* updated icbc payloads

* fixed migrations

* docker file change (#210)

* new package lock (#212)

* updated dockerfile

* updated icbc payload

* fixed icbc payload

* offline mode (#213)

* fixed vehicle color

* updated docker

* updated env

* updated sw

* sw

* updated sw

* updated task sched

* fix icbc legacy city name mapping (#214)

* Pre launch bugs (#215)

* Make driver given name not required

* make nsc_prov_state default null, update validation rules for nsc_prov_state and nsc_no

* remove test

* update eCOS text

* make reasonable grounds require at least one option

* make date of impound not able to be a future date

* undo console log

* Fix date of impound not being a future date

* fix error related to dl scanner

* Fix/changetaskscheduler2 (#216)

* updated form handler to not log rabbit mq logs

* updated task scheduler log config

* pdated new task processing status for better tracking of backend poling tasks (#217)

* updated log text prefixes (#218)

* updated log text prefixes for all backend

* fixed rabbit mq connection

* fixed rabbitmq connection error

* updating rabbitmq error

* fixing rabbot error

* added toast messages for error handling, fixed IRP number issues (#219)

* sort dashboard rows by date

* add "return to dashboard" button to view past event

* fix extra text 12h ecos

* fix typo

* add date and time of release to 12h private tow

* remove "estimated time to complete"

* fix case where date released was 1969

* Assorted bug fixes (#221)

* small fix to make printing work properly again (#224)

* updated vips api mapping (#226)

* updated event field

* fixed gender field type

* updating agency field query

* updating to solve error with agency id in vips api

* fixed ilo mapping with cross ref (#230)

* trigger

* updated vips mapping

* add tooltip to motorcycle checkbox

* change coords of print layout

* admin dashboard fix (#225)

* updated logging for icbc and vips services

* add gender and date of expiry to dl scan

* sort vehicle years by descending

* remove quote

* add missing text

* update table

* updated jursdiction look up for vips api

* updated nsc prov mapping for vips

* indexeddb update (#234)

* updated vips mappings

* test

* trigger test

* fix incedent details not showing up after print preview is shown

* default VIPS RO DL number to blank

* trigger build

* update ILO table

* Add shorthand ILO names to front end form

* clear reasonable grounds other reason

* clear date/time of test

* clear hidden fields

* fix df-2911

* fix some cut off text in incident details

* add bootstrap table package, fix DF-2914

* fix print issues

* fix IDs not being unleased

* DF-2909: Set timeout to 60s

* add required asterisk

* fix hanging validation errors

* Fixes DF-2922

* Fixes: DF-2884

* fixes: DF-2918

* Fixes: DF-2884

* update vips integration

* (maybe) fixes: DF-2870

* fixes: DF-2912

* (maybe) fixes: DF-2908

* Various bug fixes and updated data migrations (#243)

* fixes: DF-2822

* Add sorting to date & surname

* DF-2840 & fix dl expiry date print

* fix misnomer

* Bump max word count for incident details to 3600

* Reduce incident details to 3000

* DF-2881

* DF-2848

* ignore legacy deps (#244)

* initial values missed (#245)

* changes to static jurisdiction checks (#246)

* removed outdated package, add custom sort function (#247)

* Quick fix (#248)

* spoiled and navigate away fixes, ICBC plate lookup fixes (#249)

* DF-2835

* issue with vips and icbc jurisdiction (#250)

* DF-2848

* remove None type values from VIPS payload

* DF-2735

* DF-2929

* DF-2940

* DF-2939

* bonus: fix scanner crash

* DF-2561

* clean up code

* missed province cd (#252)

* fix df-2935

* remove superfluous console logs

* needds to be null (#254)

* Missed ICBC province code (#255)

* icbc plate jurisdiction fix (#256)

* Dec 20 fixes (#257)

* ICBC plate lookup issues, Province print code fixes (#258)

* make model data (#259)

* remove vipsLicenceCreateObj

* move incident details to bottom of page

* swap dl number and jurisdiction fields

* Add redux to application, watch for updated SW and refresh

* Fix codes (#261)

* new logo (#262)

* remove ilo name print, add check for print_name

* text updates (df-2964)

* text update

* add field to drug details

* update validation

* add checkbox to print

* layout changes for vehicle province (#264)

* NSC ICBC issue (#265)

* df-2570

* do not show IRP fields

* update validation rules

* add logging

* update business logic

* fix critical error with ICBC

* updates to navigation and service worker registration

* don't send VI to VIPS

* bonus: fix 404?

* update flow to hyrbid VI

* update title at bottom of page for 12h/24h police copy

* update validation rule for vi + 24h reason for imp.

* fix text being cut off at top of landscape forms

* undo change

* DF-2969

* DF-2987

* DF-2988

* DF-2989

* DF-2990

* DF-2991

* DF-2992

* remove superfluous console logs

* fix nsc_prov_state set wrong sending to icbc

* DF-2969

* add PACIFIC TIME to eCOS

* try to fix 404

* DF-2994

* DF-2995

* update icbc button

* fix critical error printing forms

* add logging for ICBC DL lookiup

* fix extra incident details page

* update row sorting

* update variable name

* clear unlicensed fields

* fix IRP

* don't fetch IRP

* create failsafe messaging to user to print form when disconnected

* small fixes

* Never fetch existing form ID for user (#281)

* Na n error message (#282)

* df-2999

* add vehicle search sorting

* small bug fixes and missed location of vehicle for 12 hour (#284)

* modify existing modal with new flow and language (#285)

* updated send to vips email action (#286)

* remove hybrid flow code and several stale modals (#287)

* only fetch one of each ID

* Make NSC number field numeric only

* updated db migrate workflow to support future branches

* remove comment

* add missing validation rule (#291)

* search by registration number instead of plate number

* swap fields

* updated split image (#293)

* update moment validation

* icbc query fixes

* revert changes to registration number lookup

* Save in progress form (#297)

* Feature/pdfmultipages (#298)

* wip

* updated split page identification logic on backend

* fix barcode

* changes to fix issues with ilo print and save in progress (#300)

* add regex rule

* bug fixes (#302)

* validation issues (#303)

* updated version

---------

Co-authored-by: Sam Warren <[email protected]>
Co-authored-by: Amlan Chakladar <[email protected]>
Co-authored-by: Sam Warren <[email protected]>
Co-authored-by: David Kerins <[email protected]>
  • Loading branch information
5 people authored Mar 19, 2024
1 parent 83c8c30 commit 90b64d7
Show file tree
Hide file tree
Showing 177 changed files with 58,600 additions and 8,581 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
REACT_APP_BASE_URL=${{ secrets.REACT_APP_BASE_URL_DEV }}
REACT_APP_API_BASE_URL=${{ secrets.REACT_APP_API_BASE_URL }}
REACT_APP_GIT_COMMIT_HASH=${{ github.event.pull_request.head.sha }}
PUBLIC_URL: ${{ secrets.PUBLIC_URL }}
PUBLIC_URL=${{ secrets.PUBLIC_URL }}
REACT_APP_GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}
tags: ${{ secrets.DOCKER_REGISTRY }}/dbe7-images/${{ inputs.DOCKER_IMAGE_NAME }}:${{ inputs.DOCKER_IMAGE_TAG }}
- name: Authenticate and set context for tools namespace
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/task_scheduler-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: task_scheduler-cd

on:
# push:
# branches:
# - master
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- master
- main
paths:
- python/*.py
- python/common/**
- python/task_scheduler/**
- .github/workflows/task_scheduler-cd.yml
- trigger.txt

jobs:
CD:
uses: ./.github/workflows/cd-workflow.yml
with:
DOCKER_CONTEXT: python
DOCKER_FILE: python/task_scheduler/Dockerfile
DOCKER_IMAGE_NAME: rsbc-roadside-forms-task-scheduler
secrets: inherit
34 changes: 34 additions & 0 deletions .github/workflows/task_scheduler-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: task_scheduler-ci

# on:
# push:
# branches_ignore:
# - master
# paths:
# - python/*.py
# - python/common/**
# - python/form_handler/**
# - .github/workflows/form_handler-ci.yml
# - trigger.txt

on:
pull_request:
types: [opened, reopened, edited, synchronize]
branches-ignore:
- master
- main
paths:
# - python/*.py
# - python/common/**
- python/task_scheduler/**
- .github/workflows/task_scheduler-ci.yml
# - trigger.txt

jobs:
CI:
uses: ./.github/workflows/ci-workflow.yml
with:
DOCKER_CONTEXT: python
DOCKER_FILE: python/task_scheduler/Dockerfile
DOCKER_IMAGE_NAME: rsbc-roadside-forms-task-scheduler
secrets: inherit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ htmlcov/
encryptDecryptPdf
.env
.run
env2
env3
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
Scorecard](https://api.securityscorecards.dev/projects/github.com/bcgov/rsbc-digital-forms/badge)](https://api.securityscorecards.dev/projects/github.com/bcgov/rsbc-digital-forms) [![CodeQL](https://github.com/bcgov/rsbc-digital-forms/actions/workflows/codeql.yml/badge.svg)](https://github.com/bcgov/rsbc-digital-forms/actions/workflows/codeql.yml) [![trivy-scan](https://github.com/bcgov/rsbc-digital-forms/actions/workflows/trivy-scan.yml/badge.svg?branch=main)](https://github.com/bcgov/rsbc-digital-forms/actions/workflows/trivy-scan.yml)
# rsbc-digital-forms
Repository for all components related to Digital forms application managed by RSBC team


2 changes: 1 addition & 1 deletion backups/form_handler/actions copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def prep_vips_payload(**args)->tuple:

if "driver_licence_no" in event_data: vips_licence_create_obj["driverLicenceNo"]=event_data["driver_licence_no"]
if "driver_jurisdiction" in event_data: vips_licence_create_obj["dlJurisdictionCd"]=event_data["driver_jurisdiction"]
vipsRegigCreateObj["vipsLicenceCreateObj"]=vips_licence_create_obj
# vipsRegigCreateObj["vipsLicenceCreateObj"]=vips_licence_create_obj

# vipsVehicleCreate payload
# TODO: to confirm
Expand Down
Loading

0 comments on commit 90b64d7

Please sign in to comment.