-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fixes #740: Expand patterns in settings #741
base: main
Are you sure you want to change the base?
Conversation
778cd01
to
4bc9bff
Compare
c67bc52
to
704fd19
Compare
49ea66f
to
8901f50
Compare
config/local.ini
Outdated
@@ -114,6 +114,9 @@ kinto.signer.autograph.server_url = http://autograph:8000 | |||
kinto.signer.autograph.hawk_id = kintodev | |||
kinto.signer.autograph.hawk_secret = 3isey64n25fim18chqgewirm6z2gwva1mas0eu71e9jtisdwv6bd | |||
|
|||
# quicksuggest collections don't new review | |||
kinto.signer.staging.quicksuggest-(\w+)-(desktop|mobile).to_review_enabled = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice first addition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the bucket wrong :) it's main-workspace
@@ -154,9 +155,11 @@ def includeme(config): | |||
r, ["source", "destination", "preview", "to_review_enabled"] | |||
) | |||
for r in resources.values() | |||
if "(" not in str(r["source"]) # do not show patterns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this line does not affect the unit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I don't agree:
FAILED kinto-remote-settings/tests/signer/test_plugin_setup.py::ExpandedSettingsTest::test_expanded_settings_are_updated_on_collection_creation - AssertionError: assert 'magic-(\\w+)' not in {None, 'source', 'magic-(\\w+)', 'from', 'onecrl'}
fixes #740
With this approach, we turn glob settings into real settings:
Current limitations:
.
in regexps to match collections names (eg([a-zA-Z0-9_-]*)
instead of(.*)
)(
)
to enable expansionsI believe it is good enough to get started with our use case (see issue description)