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

Make Instructor and Participant redirect to Teacher and Student #43627

Merged
merged 3 commits into from
Nov 16, 2021

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented Nov 16, 2021

A first step toward updating viewAsRedux to use participant and instructor instead of teacher and student. This PR will make it so you can use viewAs=Instructor and viewAs=Participant and they will redirect to Teacher and Student views. This should make it safer to merge #43432

Links

Testing story

  • Added new Unit tests

const viewType = action.viewType;
if (!ViewType[viewType]) {
let viewType = action.viewType;
if (viewType === 'Instructor') {
Copy link
Contributor

Choose a reason for hiding this comment

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

(minor) It's probably useful to include a comment here to indicate that this is a temporary change, why it's there, and when it's safe to remove. Just in case it lives for longer than we originally intended. :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for always helping to make our codebase easier to use by making sure we include documentation!

Copy link
Member

@davidsbailey davidsbailey left a comment

Choose a reason for hiding this comment

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

Great first step! LGTM after addressing James's comment.

@dmcavoy dmcavoy merged commit bcf3de8 into staging Nov 16, 2021
@dmcavoy dmcavoy deleted the viewAs-step-1 branch November 16, 2021 19:05
snickell pushed a commit that referenced this pull request Feb 3, 2024
Make Instructor and Participant redirect to Teacher and Student
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.

None yet

3 participants