Skip to content
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] Add more loader dunders to cp module. #65674

Merged
merged 7 commits into from Apr 11, 2024

Conversation

dwoz
Copy link
Contributor

@dwoz dwoz commented Dec 7, 2023

Using cp module to dip our feet into more explicit loader dunders. Most all of the existing dunders can be imported already. The one outlier being used by the cp module is opts.

What does this PR do?

What issues does this PR fix or reference?

Fixes:

Previous Behavior

Remove this section if not relevant

New Behavior

Remove this section if not relevant

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@dwoz dwoz added the test:full Run the full test suite label Dec 7, 2023
@dwoz dwoz requested a review from a team as a code owner December 7, 2023 00:01
@dwoz dwoz requested review from whytewolf and removed request for a team December 7, 2023 00:01
@salt-project-bot-prod-environment salt-project-bot-prod-environment bot changed the title Add more loader dunders to cp module. [3006.x] Add more loader dunders to cp module. Dec 7, 2023
@dwoz dwoz changed the title [3006.x] Add more loader dunders to cp module. [wip] [3006.x] Add more loader dunders to cp module. Dec 7, 2023
dwoz added 7 commits April 8, 2024 13:36
Using cp module to dip our feet into more explicit loader dunders. Most
all of the existing dunders can be imported already. The one outlier
being used by the cp module is __opts__.
- Detect when a loader is returning a NamedLoaderContext and return the
  value. This will cut down on how often we need to call value() in
  loaded modules.
- Add some tests to show newly defined behavior
@dwoz dwoz force-pushed the issue/3006.x/test_more_dunder branch from 28ba1c3 to b478675 Compare April 8, 2024 20:36
@dwoz dwoz changed the title [wip] [3006.x] Add more loader dunders to cp module. [3006.x] Add more loader dunders to cp module. Apr 11, 2024
@dwoz dwoz merged commit 02cba2d into saltstack:3006.x Apr 11, 2024
235 checks passed
@dwoz dwoz self-assigned this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test:full Run the full test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants