-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[3006.x] Allow synced modules to override salt extensions #65938
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt-project-bot-prod-environment
bot
changed the title
[WIP] Allow synced modules to override salt extensions
[master][WIP] Allow synced modules to override salt extensions
Jan 28, 2024
Core Team, what's the likelihood of allowing a port over to the 3007.x branch so folks can start taking advantage of this sooner? |
Yeah, it is a good idea to merge this in 3007.x, because the extension migration process is already underway and it might break user-supplied overrides |
max-arnold
force-pushed
the
loader-path-priority
branch
2 times, most recently
from
January 28, 2024 14:29
7dbbdaf
to
eacac66
Compare
s0undt3ch
force-pushed
the
loader-path-priority
branch
from
January 31, 2024 11:12
ae652e8
to
c7faecb
Compare
Doc build failures are unrelated and getting fixed on separate PRs. Merging. |
Thank you! |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Swap (3) and (4) in the module search path order, see the Previous Behavior below
Previous Behavior
Current module search path:
It doesn't allow a user to override a module that was migrated to extension.
New Behavior
The new priorities and their use-cases:
This follows a logical progression from a more user-controlled to less user-controlled. And allows user-supplied overrides/extends for each level.
If a user has a custom module in
_modules
that overrides/extends a core module, and the core module was migrated to an extension, the user-supplied override will still work.Merge requirements satisfied?
Commits signed with GPG?
No