-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MDS-5712] AMS Application Purpose #3036
Conversation
… in Callour, GroupCheckbox
…stly match mockup
…ows, add new columns
…en received on the FE, and update the form accordingly. Fix some validation, radio button, checkbox label that is a form section issues
…, transform payload on FE
… and 'MINES ACT PERMIT' UI according to AC/mockups, make the list of checkboxes be validated
…date authorization interface, update data mocks
…ving on CORE, and bug on new records
elif authorization.get('project_summary_authorization_type') == 'OTHER': | ||
v = Validator(other_schema, purge_unknown=True) | ||
|
||
if not v.validate(authorization): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The errors aren't terribly pretty (by default...) but they get the job done. I found it easier to use this than to do all the if
's and len
's and not in
's I'd be doing otherwise. It's not specific about which authorization is causing the issue, for the reason that I didn't want to cause a 500 trying to get an attribute that may be causing the 400, so just logged the whole record on the BE if it's invalid.
Documentation: https://docs.python-cerberus.org/validation-rules.html
…authorization description
Quality Gate failed for 'bcgov-sonarcloud_mds_minespace-web'Failed conditions |
Quality Gate failed for 'bcgov-sonarcloud_mds_common'Failed conditions |
Quality Gate failed for 'bcgov-sonarcloud_mds_core-web'Failed conditions |
Quality Gate failed for 'bcgov-sonarcloud_mds_core-api'Failed conditions |
import { BaseInputProps, getFormItemLabel } from "./BaseInput"; | ||
|
||
/** | ||
* Just can't conform the UI to play nice with redux-form? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 Love it. Reminds me of an infomercial. "Has this ever happened to you!?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol the PR needs sizing for reviewing too. Nice work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks some fancy dancy SQL. Nice work!
other_types text[]; | ||
type_count integer; | ||
delete_guids uuid[]; | ||
BEGIN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work with the sql scrip here 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of work done, great job!
* change around authorizations involved, convert to TS, fix some issues in Callout, GroupCheckbox * add 'help' text to radio buttons, make authorizations form section mostly match mockup * make field names closer to mappings, tooltip * migration to separate out AMS amended authorizations into their own rows, add new columns * update BE response to include new fields, format a bit differently when received on the FE, and update the form accordingly. Fix some validation, radio button, checkbox label that is a form section issues * fix issue with label and with radio buttons, process & validate on BE, transform payload on FE * move authorizations involved into common, put in CORE, change 'OTHER' and 'MINES ACT PERMIT' UI according to AC/mockups, make the list of checkboxes be validated * make a hidden field component to handle most of the redux-y stuff, update authorization interface, update data mocks * fix style issues on CORE * fix issues with multiselect changing value onBlur, fix issues with saving on CORE, and bug on new records * add loading indicator on multiselect, remove console log, snaps * remove failing line from cypress test * fill in an authorization for cypress test * make required fields consistent and also don't show an empty item in multiselect * rename migration for order, and update data with 'OTHER' type to use authorization description
Objective
MDS-5712
Why are you making this change? Provide a short explanation and/or screenshots
This is what it looks like when one of the required fields is missing on the BE:
Tech debt: