Organization Validation for Service Inventory - #1668
Open
JVickery-TBS wants to merge 54 commits into
Open
Conversation
- Started working on reference tables for pd data.
- Continued script to generate service reference data. - Continued schema for ref tables. - Improved pd subcommand for loading ref data.
- Finalized script to generate service ref data. - Added more recombinant schema key/values.
- Made JSONB index. - Added choices_filter_query. - Added recombinant org_name to the temp ds table. - Started writing the database validation.
wardi
reviewed
Apr 10, 2026
- Finalized ref value checks and errors in the db func. - Fixed up some other logic things.
- Started working on fiscal year function.
- Finalized fiscal year db function.
wardi
reviewed
Apr 17, 2026
wardi
reviewed
Apr 17, 2026
wardi
reviewed
Apr 18, 2026
wardi
reviewed
Apr 18, 2026
Member
|
just those minor things otherwise LGTM |
- Added change log file.
- Pyright fixes. - Flake8 fixes.
- Made service name fields computed ones. - Modified filter scripts for service name lookups.
- Filter script typo.
- Filter script typo.
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
- Created new workflow to semi-automate stuffs.
- Removed service name computed fields.
- Trigger type cast.
- Org validation for make service test.
- Trying to fix `Prep Test Coverage Split File`
- Trying to fix `Prep Test Coverage Split File`
# Conflicts: # ckanext/canada/tests/filters.py # ckanext/canada/tests/test_service.py ### RESOLVED.
- Rebuild service inventory ref data. - Add fixme comment for overwritting dict assignment.
- Support multiple org names for one umd.
- Do not count new lines in max char func. - Added test coverage.
- Added functionality for the new recombinant CLI markers. - Added choice suffix to service inventory program_id. - Added test coverage. - Added support for old choice values in the recombinant webforms. - If `service_migration` marker is set, invalid program_ids will be suffixed with -INV.
- Renamed the datastore_user temp table to be more accurate as an app_context table.
- Better handle legacy choices. - Better handle choice suffixing. - Handle insecure firefox preventing window.confirm
- Added change log files.
- Pyright fixes. - Flake8 fixes.
- Pyright fixes. - Flake8 fixes.
wardi
reviewed
Jul 31, 2026
- Various changes from feedback. - Change contextual datastore flags to just be one text[] db field.
- Improved suffix choices. - Minor logic changes for service inventory suffixes. - Fix newlines not displaying in pd datatables.
- Pytests don't like f string.
- Flake8 fixes. - Test fix for db func change. - Pyright fixes.
Contributor
Author
|
@wardi I think this is ready for another review now. |
wardi
reviewed
Aug 16, 2026
Member
|
otherwise LGTM |
# Conflicts: # .github/workflows/pytest.yml # ckanext/canada/assets/public/canada_public.css ### RESOLVED.
- Bypass validation during migrations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We are able to consistently use the releases from the SI github to generate the CSV ref data we need. We have commands which load it into the tables which we define in an sql script in here. The part we were tripped on was relation between Service IDs and Program IDs, but there is no relation that is being defined or maintained currently so don't have to worry about that.
Just extended the temp datastore table to add an optional org_name to it, which we then use in the triggers. The Service ID one works fine, need to make the error message for it still.
The Program IDs one is gunna be interesting as Program IDs is a multiple select.