Skip to content

[BD-21] Backport override_waffle_switch from edx-platform - #75

Merged
regisb merged 2 commits into
openedx:masterfrom
regisb:regisb/override-waffle
Oct 26, 2020
Merged

[BD-21] Backport override_waffle_switch from edx-platform#75
regisb merged 2 commits into
openedx:masterfrom
regisb:regisb/override-waffle

Conversation

@regisb

@regisb regisb commented Oct 23, 2020

Copy link
Copy Markdown
Contributor

Description: Backport override_waffle_switch from edx-platform. This utility function is used in edx-platform, but also in edx/completion.

JIRA: https://openedx.atlassian.net/wiki/spaces/COMM/pages/1596358943

Merge deadline: Before https://github.com/edx/edx-platform/pull/25417

Reviewers:

Merge checklist:

  • All reviewers approved
  • CI build is green
  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Commits are squashed

Post merge:

  • Create a tag
  • Check new version is pushed to PyPi after tag-triggered build is
    finished.
  • Delete working branch (if not needed anymore)

@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @regisb! I've created BLENDED-641 to keep track of it in Jira. More details are on the BD-21 project page.

When this pull request is ready, tag your edX technical lead.

@regisb

regisb commented Oct 23, 2020

Copy link
Copy Markdown
Contributor Author

@robrap This is ready to review.

Comment thread edx_toggles/toggles/internal/waffle.py
@regisb
regisb force-pushed the regisb/override-waffle branch 3 times, most recently from e7bb308 to b4b0b4d Compare October 26, 2020 10:29
This utility function is used in edx-platform, but also in
edx/completion.
Comment thread edx_toggles/toggles/internal/waffle.py Outdated
This will be useful to replace the `override_for_request` method which
was used in edx-platform.
@regisb
regisb force-pushed the regisb/override-waffle branch from b4b0b4d to a434244 Compare October 26, 2020 18:28
@regisb

regisb commented Oct 26, 2020

Copy link
Copy Markdown
Contributor Author

I did exactly what I said I wouldn't and squashed my changes... Sorry about that @robrap!

@robrap robrap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A combo of the conversation and these changes made this much simpler to review. Thank you!

Comment thread edx_toggles/toggles/internal/waffle.py
Comment thread edx_toggles/toggles/internal/waffle.py
Comment thread edx_toggles/toggles/internal/waffle.py
@regisb
regisb merged commit 15eb43b into openedx:master Oct 26, 2020
@regisb
regisb deleted the regisb/override-waffle branch October 26, 2020 19:10
"""
Returns and caches whether the given waffle switch is enabled.
"""
value = self.get_request_cache(switch_name)

@regisb regisb Oct 27, 2020

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid there was a bug here @robrap 😓 I'll open a PR.

EDIT: #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blended PR is managed through 2U's blended developmnt program merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants