Skip to content

Conversation

@JVickery-TBS
Copy link
Contributor

@JVickery-TBS JVickery-TBS commented Jan 28, 2025

- Include link to referenced table and filter.
- Fix delete errors.
- Bring back upload form errors.
- Only markup safe the errors we output, specifically the constraint errors that do not have user input.
- Handle the upsert constraint error messages.
- Further improvements to constraint errors.
- Further improvements to constraint errors.
- Flake8 fixes.
- Pyright fixes.
- Added change log files.
@JVickery-TBS
Copy link
Contributor Author

@wardi I know we do this all at the View level, the formatting of error strings and DB trigger strings etc.

But would it be better to do it at the logic level? That way we don't need to keep formatting the error strings in Recombinant and Canada views? And the error strings would be available in the API the same way they show in the views?

- Build sql strings from ds info for ref records export to Excel.
@wardi
Copy link
Member

wardi commented Jan 31, 2025

Yes, it would be much better to have all the direct datastore SQL and parsing of error messages in the datastore/backends/postgres.py module. The view code should be only responsible for taking the results of action calls and rendering them with templates.

- Included linked records in Excel template.
- Updated code for new ckan ds fk error handling.
- Flake8 fixes.
- Pyright fixes.
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.

This looks much better @JVickery-TBS

We should steal the table designer delete UI at some point to simplify deletion in recombinant.

@JVickery-TBS JVickery-TBS merged commit 4600942 into master Feb 10, 2025
4 of 6 checks passed
@JVickery-TBS JVickery-TBS deleted the feature/fk-constraint-improvements branch February 10, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants