STAGING ONLY: Grants Monthly#1525
Conversation
JVickery-TBS
left a comment
There was a problem hiding this comment.
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.
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.
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.
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.
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.
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. |
# 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