Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Improvements to published docs and reporting

  • (HIGH) Add additional existing annotations (e.g. toggle_implementation) to published docs

    See

    https://

    discuss

    github.com/openedx

    .org

    /

    t/which-toggle-annotations-should-be-published/4690
  • AC:

    • Create ADR

    • Update sphinx plugin to add new annotations.

  • (HIGH) Include annotations from dependencies in the automated docs:

    • Sphinx docs for toggles

    • Sphinx docs for settings (see open questions)

    • Toggle state report jobs (on-hold until we see this used?)

  • (HIGH) Complete implementation of toggle state report outside of edx-platform

  • See how-to report on new IDA.

  • Apply to credentials, which was already mocked.

  • Update the how-to to provide a simpler example than edx-platform (which overrides the report).

  • Add to cookiecutter-django-ida in

    edx-toggles/issues/287

  • (HIGH) https://github.com/openedx/edx-toggles/issues/288

  • (HIGH) https://github.com/

    edx

    openedx/edx-

    cookiecutters

    toggles/issues/

    ?

    289

  • Include more annotated settings in RTD documentation.

    • Context:

    • Potential Tickets

      • Discovery: How can we capture settings toggles not documented in lms/envs/common.py or cms/envs/common.py but are still in the edx-platform repo

        • AC:

          • Either a POC that captures settings in other places or an ADR to guide us on where these docs should live.

      • Discovery: How do we collect annotations from libraries installed in edx-platform?

  • Allow for formatting in annotations, rather than having everything be plain-text.

  • Remove pylint disable pragmas from annotation output.

  • RTD developer documentation single book for edx-platform

  • CI testing for docs

    • edx-platform doesn’t test make technical-docs (current toggles and settings docs)

    • Spotty support for testing make docs for other repos.

  • Reporting on suspicious toggle state data

    • Examples:

      • Bad data like waffle names with leading or trailing spaces in the database.

      • Potentially orphaned data (data with no annotation and no toggle definition)

    • Toggle State Report may be simplest location, using a new column

...

Toggle

...

  • [RG]* (HIGH)

Toggle Enhancements

  • (HIGH) Enhance BaseToggle with additional methods.

  • Add is_disabled (not is_enabled), is_on (is_enabled) and is_off (not is_enabled)

    • Question: Would is_true() and is_false() be better than is_on/is_off?

      • [Robert Raposa] I like is_true/is_false better. Someone else should second my opinion and we can update this proposal.

  • Makes a variety of conditions more readable when ENABLE_ or DISABLE_ are in the toggle name.

  • For example:

    • not DISABLE_SOME_FEATURE.is_enabled() # BEFORE; brain twister

    • DISABLE_SOME_FEATURE.is_off() # AFTER

      • Question: Is this simpler to understand?:

        • DISABLE_SOME_FEATURE.is_false() # AFTER

  • This problem was discussed on Slack.

    https://github.com/openedx/edx-toggles/issues/290

  • Replace or improve ExperimentWaffleFlag