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

feat: add & expose courseware.use_learning_sequences_api flag #27993

Merged

Conversation

kdmccormick
Copy link
Member

Description

feat: add & expose courseware.use_learning_sequences_api flag 

Add a Waffle Flag. When enabled, the courseware pages of the
Learning MFE should use the Learning Sequences HTTP API instead
of the Course Blocks HTTP API in order to load course structure
data. We expect that this switchover will lead to performance
improvements and a more comprehensible system.

(We are putting the switchover behind a temporary flag in order to
enable debugging, incremental rollout, and comparison testing.)

The flag is exposed to the MFE via the Course API.
As of this commit, the new flag is not enabled in any environment,
and the MFE does not have any code to act on the flag's value.
So, this commit on its own should have no production impact.

Supporting information

TNL-8330

Deadline

Soft deadline of 6/25 (weekly goal)

@kdmccormick kdmccormick force-pushed the kdmccormick/courseware-use-learning-seq-api-waffle branch from a68d841 to 32e768f Compare June 22, 2021 13:37
Copy link
Contributor

@doctoryes doctoryes left a comment

Choose a reason for hiding this comment

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

Just one nit.

button, etc. This has been done so far using the Course Blocks API.
We are switching the views to instead use the Learning Sequences API,
which we expect to be significantly faster. We are putting the transition
behind a flag, for now, to allow incremental rollout and comparison testing.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Should this docstring (or the waffle flag comments above) say anything about incrementally honoring this flag in courseware calls? We'll have an interim period where this flag will be somewhat misleading - making someone reading the code to think that it actually controls the whether the Learning Sequences API is used - when it doesn't yet in all cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed! I'll call that out better.

Add a Waffle Flag. When enabled, the courseware pages of the
Learning MFE should use the Learning Sequences HTTP API instead
of the Course Blocks HTTP API in order to load course structure
data. We expect that this switchover will lead to performance
improvements and a more comprehensible system.

(We are putting the switchover behind a temporary flag in order to
enable debugging, incremental rollout, and comparison testing.)

The flag is exposed to the MFE via the Course API.
As of this commit, the new flag is not enabled in any environment,
and the MFE does not have any code to act on the flag's value.
So, this commit on its own should have no production impact.

TNL-8330
@kdmccormick kdmccormick force-pushed the kdmccormick/courseware-use-learning-seq-api-waffle branch from 32e768f to 9ea561f Compare June 25, 2021 14:35
@edx-status-bot
Copy link

Your PR has finished running tests. There were no failures.

@kdmccormick kdmccormick merged commit 78f1e2b into master Jun 25, 2021
@kdmccormick kdmccormick deleted the kdmccormick/courseware-use-learning-seq-api-waffle branch June 25, 2021 15:19
@edx-pipeline-bot
Copy link
Contributor

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

@edx-pipeline-bot
Copy link
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

blarghmatey pushed a commit to mitodl/edx-platform that referenced this pull request Aug 2, 2021
…x#27993)

Add a Waffle Flag. When enabled, the courseware pages of the
Learning MFE should use the Learning Sequences HTTP API instead
of the Course Blocks HTTP API in order to load course structure
data. We expect that this switchover will lead to performance
improvements and a more comprehensible system.

(We are putting the switchover behind a temporary flag in order to
enable debugging, incremental rollout, and comparison testing.)

The flag is exposed to the MFE via the Course API.
As of this commit, the new flag is not enabled in any environment,
and the MFE does not have any code to act on the flag's value.
So, this commit on its own should have no production impact.

TNL-8330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants