-
Notifications
You must be signed in to change notification settings - Fork 35
STAGING ONLY: Grants Monthly #1525
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
base: master
Are you sure you want to change the base?
Conversation
JVickery-TBS
left a comment
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.
Going to make a mock PR soon to see diffs between the templates just to make it easier to review
…ld in grantsmonthly
- Array value for example.
- Include grants monthly prep.
# Conflicts: # ckanext/canada/i18n/ckanext-canada.pot # ckanext/canada/i18n/en/LC_MESSAGES/ckanext-canada.po # ckanext/canada/i18n/fr/LC_MESSAGES/ckanext-canada.po ### RESOLVED.
- `text` -> `_text` - Added test class for grants monthly.
- Flake8 fixes.
# Conflicts: # ckanext/canada/i18n/ckanext-canada.pot # ckanext/canada/i18n/en/LC_MESSAGES/ckanext-canada.po # ckanext/canada/i18n/fr/LC_MESSAGES/ckanext-canada.po ### RESOLVED.
wardi
left a comment
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.
enforced validation (trigger) for the new fields hasn't been implemented yet, and a few small comments/wishlist items above
| The "Recipient postal code" is a mandatory field that serves to identify the specific area in which the recipient operates. In cases where this field cannot be populated this field may be left blank. | ||
| Text format locked to "X#X #X#"; The Canada Post tool for looking up a postal code can be found on the Canada Post website. | ||
| Should be in the format "A1A 1A1"; The Canada Post tool for looking up a postal code can be found on the Canada Post website. |
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.
Definitely sad if users are expected to input these one at a time into the canada post website. We should have bulk geocoding tools that fill these in automatically and validate addresses at the same time.
| fr: Numéro de la circonscription fédérale où réside le bénéficiaire. Les départements peuvent consulter le site-web d’Élections Canada pour trouver le numéro de la circonscription fédérale. http://www.elections.ca/content.aspx?section=res&dir=cir/list&document=index338&lang=f | ||
| obligation: Optional | ||
| format_type: Free text | ||
| en: The federal riding number is based on the riding in which the recipient resides. Departments can consult the Elections Canada website in order to retrieve the federal riding number. http://www.elections.ca/content.aspx?section=res&dir=cir/list&document=index338&lang=e |
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.
Same here re:obviously missing geocoding tools
| LEN({cell})-LEN(SUBSTITUTE({cell},"-",""))>0, | ||
| LEN({cell})-LEN(SUBSTITUTE({cell},".",""))>0, | ||
| LEN({cell})-LEN(SUBSTITUTE({cell},",",""))>0 |
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.
these could be one check instead of 3, like:
LEN({cell})-LEN(
SUBSTITUTE(SUBSTITUTE(SUBSTITUTE({cell},",",""),".",""),"-","")
)>0
| excel_required_formula: 'AND(NOT(ISBLANK({agreement_start_date})),VALUE({agreement_start_date})>=DATE(2025,11,1))' | ||
| datastore_type: text | ||
| form_attrs: | ||
| size: 60 |
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.
do you want to make the excel column width larger too?
| validation: | ||
| en: | | ||
| This field must not be empty. | ||
| Date can’t be in the future. |
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.
date can't be after the end date
# Conflicts: # ckanext/canada/i18n/ckanext-canada.pot # ckanext/canada/i18n/en/LC_MESSAGES/ckanext-canada.po # ckanext/canada/i18n/fr/LC_MESSAGES/ckanext-canada.po # ckanext/canada/tests/test_grants.py ### RESOLVED.
# Conflicts: # ckanext/canada/i18n/ckanext-canada.pot # ckanext/canada/i18n/en/LC_MESSAGES/ckanext-canada.po # ckanext/canada/i18n/fr/LC_MESSAGES/ckanext-canada.po ### RESOLVED.
- Added js evals for the Grants Pilot pd type.
Mock PR for diff of table definition: #1526