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

docs: document ENABLE_HIDE_FROM_TOC_UI feature toggle #34377

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

mariajgrimaldi
Copy link
Member

@mariajgrimaldi mariajgrimaldi commented Mar 15, 2024

Description

This PR adds documentation for the ENABLE_HIDE_FROM_TOC_UI feature toggle so it can be extracted by the feature toggle sphinx plugin.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Mar 15, 2024
@openedx-webhooks
Copy link

openedx-webhooks commented Mar 15, 2024

Thanks for the pull request, @mariajgrimaldi! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@mariajgrimaldi mariajgrimaldi marked this pull request as ready for review March 15, 2024 12:46
# .. toggle_implementation: DjangoSetting
# .. toggle_default: False
# .. toggle_description: When enabled, exposes hide_from_toc xblock attribute so course authors can configure it as
# a section visibility option in Studio.
Copy link
Contributor

Choose a reason for hiding this comment

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

This may need 1 more space at the beginning to parse correctly.

# a section visibility option in Studio.
# .. toggle_use_cases: open_edx
# .. toggle_creation_date: 2024-02-29
# .. toggle_target_removal_date: None
Copy link
Contributor

Choose a reason for hiding this comment

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

This is optional.

Suggested change
# .. toggle_target_removal_date: None

@@ -551,6 +551,17 @@
# https://github.com/openedx/openedx-events/issues/265
# .. toggle_tickets: https://github.com/edx/edx-arch-experiments/issues/381
'ENABLE_SEND_XBLOCK_LIFECYCLE_EVENTS_OVER_BUS': False,

# .. toggle_name: FEATURES['ENABLE_HIDE_FROM_TOC_UI']
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: There is an open issue that claims an intent to deprecate the features dict in favor of top-level settings. Each time I see a new one, I’m reminded that we haven’t actually made a decision around that. This PR doesn’t necessarily need to change. FYI: @kdmccormick

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for the heads up. In the meantime, should we avoid adding new feature entries? If so, could add a message somewhere with this suggestion?

Copy link
Contributor

Choose a reason for hiding this comment

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

@mariajgrimaldi: See #33026 for more details. It also discusses a potential change in naming convention as well. You are welcome to participate in that discussion. And, I do not think this PR needs to change at this time. Hopefully someday we'll have more clarity on this front.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

@pomegranited pomegranited left a comment

Choose a reason for hiding this comment

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

👍 Thanks for documenting this flag @mariajgrimaldi !

  • I tested this N/A -- docs change only.
  • I read through the change, and ensured it covers all the required toggle documentation fields.
  • I checked for accessibility issues N/A
  • Includes documentation
  • User-facing strings are extracted for translation N/A

@mariajgrimaldi mariajgrimaldi merged commit 9600a90 into master Mar 19, 2024
67 checks passed
@mariajgrimaldi mariajgrimaldi deleted the MJG/hide-from-toc-toggle-docs branch March 19, 2024 13:08
@openedx-webhooks
Copy link

@mariajgrimaldi 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants