Skip to content

Conversation

wardi
Copy link
Contributor

@wardi wardi commented May 29, 2023

Fixes #7617

Proposed fixes:

Add a datastore_rw_resource_url_types helper that lists url_type values that may be edited without passing force=True

Improve error message when force=True is required but not passed.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

@wardi
Copy link
Contributor Author

wardi commented May 30, 2023

feedback from call: use configuration option that can be updated from plugins instead. Although we still need a helper for templates to check the R/W state, and I can't think of a case of a user wanting to configure this setting in their environment/ini file. 🤔

@smotornyuk
Copy link
Member

smotornyuk commented Jun 1, 2023

If you are going to use it in templates or somewhere else, it's justified. Initially, I got the impression, that this list of resource types is going to be used solely by this validation check. And registering a helpers function just as an extension point for a validation check doesn't sound like a good idea:)

@smotornyuk smotornyuk merged commit c118f2d into master Jun 1, 2023
@smotornyuk smotornyuk deleted the 7617-more-rw-datastore branch June 1, 2023 10:23
@wardi wardi mentioned this pull request Oct 30, 2023
5 tasks
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.

Customize R/W datastore resource url_types
2 participants