Skip to content

Conversation

@JVickery-TBS
Copy link
Contributor

feat(dev): ds dump, delete old cols;

  • DataStore dump for sysadmins only.
  • Delete old columns.

Came across a couple issues with loading in Excel templates, basically we already know if the resources' DS fields are out of sync with the Schema with the datastore_correct. So just doing something with it to "refresh" the datastore table which will also now delete columns that are NOT in the schema, aligning any API users with datastore_search with the Schema of the Recombinant resource.

Also, we came across a need to migrate just a couple of orgs' PD data for combining them into one org. So I have modified the load_csv and read_csv cli methods a bit to allow for this. And then added the DataStore Dump button for sysadmins here. This part requires: open-data/ckan#190

- DataStore dump for sysadmins only.
- Delete old columns.
- Added change log files.
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.

looks good (with comments above)

- Added delete_fields to recombinant update logic aciton method.
- Only allow sysadmins to refresh resources via the UI.
@JVickery-TBS JVickery-TBS merged commit 9db64c0 into master Feb 10, 2025
5 of 6 checks passed
@JVickery-TBS JVickery-TBS deleted the feature/sysadmin-ds-dump branch February 10, 2025 18: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