Skip to content
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

TravelQ Destination Fields Revamp #1532

Merged
merged 32 commits into from
Mar 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0f3c42c
feat(templates): pd form help text;
JVickery-TBS Nov 8, 2024
d8e118c
feat(pd): travelq destination fields;
JVickery-TBS Nov 8, 2024
78c8026
feat(pd): travelq destination fields;
JVickery-TBS Nov 12, 2024
c04c09f
Merge branch 'master' into feature/travel-destination-fields
JVickery-TBS Nov 12, 2024
dc23230
feat(pd): travelq multi destinations;
JVickery-TBS Nov 12, 2024
e6cb543
fix(tests): type cast;
JVickery-TBS Nov 13, 2024
714425d
feat(pd): travelq excel;
JVickery-TBS Nov 13, 2024
2e97c17
feat(tests): travel destination formats;
JVickery-TBS Nov 14, 2024
b1f8284
fix(tests): postgres version;
JVickery-TBS Nov 14, 2024
a0814e4
feat(misc): changelog;
JVickery-TBS Nov 14, 2024
b24ef5a
fix(pd): multi-destination trigger;
JVickery-TBS Nov 15, 2024
46c230f
fix(pd): copy;
JVickery-TBS Nov 15, 2024
294385e
fix(pd): misc;
JVickery-TBS Nov 15, 2024
cd4ca94
fix(pd): travelq destination trigger error;
JVickery-TBS Nov 15, 2024
87bc151
fix(pd): order;
JVickery-TBS Nov 15, 2024
e51a724
fix(tests): travel destinations;
JVickery-TBS Nov 16, 2024
fc088a0
revert(pd): remove destination_3;
JVickery-TBS Nov 18, 2024
a264b0a
misc(stash): ugh;
JVickery-TBS Nov 22, 2024
a45e91e
feat(pd): travelq destination validation;
JVickery-TBS Nov 22, 2024
b37f16f
feat(pd): destination trigger;
JVickery-TBS Nov 22, 2024
c6d2325
feat(pd): travelq destination field text;
JVickery-TBS Nov 25, 2024
e7e7ae4
feat(tests): travelq;
JVickery-TBS Nov 25, 2024
1091e4e
feat(i18n,pd): travelq destination fields;
JVickery-TBS Nov 26, 2024
b5da6be
Merge branch 'master' into feature/travel-destination-fields
JVickery-TBS Jan 22, 2025
48df1f8
Merge branch 'master' into feature/travel-destination-fields
JVickery-TBS Feb 19, 2025
ceae8c7
feat(pd): travelq changes;
JVickery-TBS Feb 19, 2025
a17c221
fix(pd): example;
JVickery-TBS Feb 19, 2025
c13bfee
feat(pd): template warning;
JVickery-TBS Feb 19, 2025
4cfd2fe
feat(i18n): add string;
JVickery-TBS Feb 20, 2025
5dc69f2
fix(pd) start date excel;
JVickery-TBS Feb 20, 2025
ae729fc
feat(pd): travelq example values;
JVickery-TBS Feb 25, 2025
d979b37
fix(misc): syntax;
JVickery-TBS Feb 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(pd): travelq excel;
- Continued excel formulae.
  • Loading branch information
JVickery-TBS committed Nov 13, 2024
commit 714425d1abdda8191b7b58932d1478abeec0aa94
22 changes: 15 additions & 7 deletions ckanext/canada/tables/travelq.yaml
Original file line number Diff line number Diff line change
@@ -198,7 +198,7 @@ resources:
obligation: Mandatory
excel_required: true
#TODO: figure out Excel formula for this...
excel_error_formula: 'AND(NOT(ISBLANK({cell})),IFERROR(REGEX({cell},"^\s*([^,]+?)\s*,\s*([^,]+?)\s*$"),1))'
excel_error_formula: AND(NOT(ISBLANK({cell})), ISNA(REGEX({cell}, "^\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*,\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*$"))
form_required: true
validation:
en: |
@@ -227,7 +227,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
obligation: Optional
excel_required: false
excel_required_formula: NOT(ISBLANK({destination_2_fr}))
#TODO: figure out Excel formula for this...
excel_required_formula: OR(NOT(ISBLANK({destination_2_fr})), AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*,\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*$"))))
form_required: false
format_type:
en: Free text – Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
@@ -249,7 +250,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
obligation: Optional
excel_required: false
excel_required_formula: NOT(ISBLANK({destination_3_fr}))
#TODO: figure out Excel formula for this...
excel_required_formula: OR(NOT(ISBLANK({destination_3_fr})), AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*,\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*$"))))
form_required: false
format_type:
en: Free text – Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
@@ -271,7 +273,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name};{City 2 Name}, {Country 2 Name} (e.g. Ottawa, Canada;New York City, United States of America)
obligation: Optional
excel_required: false
excel_required_formula: NOT(ISBLANK({destination_other_fr}))
#TODO: figure out Excel formula for this...
excel_required_formula: OR(NOT(ISBLANK({destination_other_fr})), AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^([A-Za-zÀ-ÿ''\s\-\.]+,\s*[A-Za-zÀ-ÿ''\s\-\.]+)(?:;\s*([A-Za-zÀ-ÿ''\s\-\.]+,\s*[A-Za-zÀ-ÿ''\s\-\.]+))*$"))))
form_required: false
format_type:
en: Free text – Note, use the format {City Name}, {Country Name};{City 2 Name}, {Country 2 Name} (e.g. Ottawa, Canada;New York City, United States of America)
@@ -293,6 +296,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
obligation: Mandatory
excel_required: true
#TODO: figure out Excel formula for this...
excel_error_formula: AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*,\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*$")))
form_required: true
validation: This field must not be empty
format_type:
@@ -315,7 +320,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
obligation: Optional
excel_required: false
excel_required_formula: NOT(ISBLANK({destination_2_en}))
#TODO: figure out Excel formula for this...
excel_required_formula: OR(NOT(ISBLANK({destination_2_en})), AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*,\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*$"))))
form_required: false
format_type:
en: Free text – Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
@@ -337,7 +343,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
obligation: Optional
excel_required: false
excel_required_formula: NOT(ISBLANK({destination_3_en}))
#TODO: figure out Excel formula for this...
excel_required_formula: OR(NOT(ISBLANK({destination_3_en})), AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*,\s*([A-Za-zÀ-ÿ''\s\-\.]+?)\s*$"))))
form_required: false
format_type:
en: Free text – Note, use the format {City Name}, {Country Name} (e.g. Ottawa, Canada or New York City, United States of America)
@@ -359,7 +366,8 @@ resources:
fr: Note, use the format {City Name}, {Country Name};{City 2 Name}, {Country 2 Name} (e.g. Ottawa, Canada;New York City, United States of America)
obligation: Optional
excel_required: false
excel_required_formula: NOT(ISBLANK({destination_other_en}))
#TODO: figure out Excel formula for this...
excel_required_formula: OR(NOT(ISBLANK({destination_other_en})), AND(NOT(ISBLANK({cell})), IFERROR(REGEX({cell}, "^([A-Za-zÀ-ÿ''\s\-\.]+,\s*[A-Za-zÀ-ÿ''\s\-\.]+)(?:;\s*([A-Za-zÀ-ÿ''\s\-\.]+,\s*[A-Za-zÀ-ÿ''\s\-\.]+))*$"))))
form_required: false
format_type:
en: Free text – Note, use the format {City Name}, {Country Name};{City 2 Name}, {Country 2 Name} (e.g. Ottawa, Canada;New York City, United States of America)
Loading