-
Notifications
You must be signed in to change notification settings - Fork 172
THREESCALE-12133 optimize configuration reload #1564
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
Changes from all commits
aa7346b
ad0342d
771ea26
2a13c8e
e5d8629
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -193,12 +193,15 @@ function _M:add_policy(name, version, ...) | |
| end | ||
| end | ||
|
|
||
| local default_policy_order_check = PolicyOrderChecker.new(policy_manifests_loader.get_all()) | ||
|
|
||
| -- Checks if there are any policies placed in the wrong place in the chain. | ||
| -- It doesn't return anything, it prints error messages when there's a problem. | ||
| function _M:check_order(manifests) | ||
| PolicyOrderChecker.new( | ||
| manifests or policy_manifests_loader.get_all() | ||
| ):check(self) | ||
| if manifests then | ||
| return PolicyOrderChecker.new(manifests):check(self) | ||
| end | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A nit, it looks like the method is only called in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably the idea was to use the manifest cache somewhere? In any case - why is this change implemented? 🤔 It seems to me that:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still why do we need this condition if we never call the method with parameters? Anyway, not super important as I said. |
||
| default_policy_order_check:check(self) | ||
| end | ||
|
|
||
| local function call_chain(phase_name) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.