Skip to content

Conversation

@davidjoy
Copy link
Contributor

@davidjoy davidjoy commented Feb 4, 2020

JIRA: https://openedx.atlassian.net/browse/TNL-6982

  1. This is a partial check-in. It causes jump_to links in the header user menu to work, but doesn’t address any other dashboard links.
  2. I also need to figure out the best way to test this, having not tested a toggle like this before.

Please consider the following when opening a pull request:

  • Link to the relevant JIRA ticket(s) and tag any relevant team(s).
  • Squash your changes down into one or more discrete commits.
    In each commit, include description that could help a developer
    several months from now.
  • If running make upgrade, run as close to the time of merging as possible
    to avoid accidentally downgrading someone else's package.
    Put the output of make upgrade in its own separate commit,
    decoupled from other code changes.
  • Aim for comprehensive test coverage, but remember that
    automated testing isn't a substitute for manual verification.
  • Carefully consider naming, code organization, dependencies when adding new code.
    Code that is amenable to refactoring and improvement benefits all platform developers,
    especially given the size and scope of edx-platform.
    Consult existing Architectural Decision Records (ADRs),
    including those concerning the app(s) you are changing and
    those concerning edx-platform as a whole.

@davidjoy davidjoy requested review from a team and abutterworth February 4, 2020 18:29
@davidjoy davidjoy force-pushed the djoy/learning_mfe_waffle_flag branch 3 times, most recently from 3590d4b to 87500e6 Compare February 7, 2020 16:55
@davidjoy
Copy link
Contributor Author

davidjoy commented Feb 7, 2020

jenkins run python

@davidjoy
Copy link
Contributor Author

jenkins run quality

@davidjoy
Copy link
Contributor Author

jenkins run bokchoy

@davidjoy davidjoy force-pushed the djoy/learning_mfe_waffle_flag branch 2 times, most recently from 4d5f557 to b548d92 Compare February 11, 2020 18:43
@davidjoy
Copy link
Contributor Author

jenkins run quality

David Joy added 2 commits February 21, 2020 11:44
1. This is a partial check-in.  It causes jump_to links in the header user menu to work, but doesn’t address any other dashboard links.
2. I also need to figure out the best way to test this, having not tested a toggle like this before.
@davidjoy davidjoy force-pushed the djoy/learning_mfe_waffle_flag branch from b548d92 to fe19425 Compare February 21, 2020 16:45
We decided this approach - of redirecting to the new courseware MFE when users hit the page - won’t be feasible because there are still circumstances when we want that page to load.  For instance, exams, or if an instructor wants to go back to the old experience.  Instead of doing this, we need to track down all the links to the courseware page and put the waffle flag check on those instead.
@davidjoy davidjoy force-pushed the djoy/learning_mfe_waffle_flag branch from 2a14a36 to 18e0020 Compare February 21, 2020 20:43
@davidjoy
Copy link
Contributor Author

jenkins run bokchoy

This will ultmately be put back in as part of TNL-6982, but for now we don’t want this code to be associated with the waffle flag.
@davidjoy davidjoy force-pushed the djoy/learning_mfe_waffle_flag branch from 18e0020 to e427fad Compare February 24, 2020 15:30
@edx-status-bot
Copy link

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

Copy link
Contributor

@ormsbee ormsbee left a comment

Choose a reason for hiding this comment

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

Quick paranoia question.

return redirect_url


def get_microfrontend_redirect_url(course_key, path=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Who is the caller of this? Is path always derived from sanitized information that we have (i.e. real blocks), or does it sometimes get provided by the browser calling?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It may be that I should just remove this method from the PR. It was being called by redirects which I removed from this PR, and will be again when we put those back in. It's not currently in use, which now that I say it out loud, probably means I should just pull it for now. 😄

The path is derived from path_to_location when it's used, so yes, I believe it's always sanitized.

@davidjoy davidjoy merged commit ce29521 into master Feb 25, 2020
@davidjoy davidjoy deleted the djoy/learning_mfe_waffle_flag branch February 25, 2020 15:04
@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.

@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.

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.

5 participants