Skip to content

Conversation

@RabiaSajjad
Copy link
Member

@RabiaSajjad RabiaSajjad commented Oct 29, 2024

Mock PR for diff of table definition: #1526

Copy link
Contributor

@JVickery-TBS JVickery-TBS left a 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

RabiaSajjad and others added 23 commits October 30, 2024 12:15
- 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.
@JVickery-TBS JVickery-TBS changed the title new pd table for grants (monthly) STAGING ONLY: Grants Monthly Mar 5, 2025
- Flake8 fixes.
JVickery-TBS and others added 2 commits October 17, 2025 18:06
# 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.
Copy link
Member

@wardi wardi left a 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.
Copy link
Member

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
Copy link
Member

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

Comment on lines 222 to 224
LEN({cell})-LEN(SUBSTITUTE({cell},"-",""))>0,
LEN({cell})-LEN(SUBSTITUTE({cell},".",""))>0,
LEN({cell})-LEN(SUBSTITUTE({cell},",",""))>0
Copy link
Member

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
Copy link
Member

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.
Copy link
Member

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

RabiaSajjad and others added 12 commits November 3, 2025 14:35
# 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants