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

Add PL grade type and Make levelbuilders and universal instructors able to join any section #45924

Merged
merged 13 commits into from Apr 24, 2022

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented Apr 21, 2022

Change 1

To help keep the data for sections as clear as possible we are going to set the grade for professional learnign sections to 'pl' behind the scenes.

I discussed this with RED to make sure this was the best direction to support them.

Change 2

Make sure Levelbuilders and Universal Instructors can join any section.

Links

ENG plan

Testing story

  • Unit Tests

@dmcavoy dmcavoy changed the base branch from staging to eptools/dani/ui-test-pl-courses April 21, 2022 16:32
@@ -1379,8 +1379,8 @@ describe('teacherSectionsRedux', () => {
);
server.respondWith(
'GET',
'/dashboardapi/sections/valid_course_offerings',
successResponse([])
'/dashboardapi/sections/available_participant_types',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Intentional: Realized there were two calls to valid course offerings and none to available participant types in this test

@dmcavoy dmcavoy requested review from davidsbailey and a team April 21, 2022 16:34
@dmcavoy dmcavoy changed the title Eptools/dani/pl grade type Add PL grade type and Make levelbuilders and universal instructors able to join any section Apr 21, 2022
@@ -52,6 +52,8 @@ module SharedConstants

STUDENT_GRADE_LEVELS = %w(K 1 2 3 4 5 6 7 8 9 10 11 12 Other).freeze

PL_GRADE_VALUE = 'pl'.freeze
Copy link
Member

Choose a reason for hiding this comment

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

special values are concerning. can you help me understand why this is necessary, rather than using other properties of the section to determine whether it is a PL section?

Copy link
Member

Choose a reason for hiding this comment

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

after offline conversation, it sounds like we will not have logic predicated on this field and it is just needed for RED purposes. I think this would be great to capture in a comment

Copy link
Member

Choose a reason for hiding this comment

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

also, having a validation here eliminates my worry about duplicate state getting out of sync 👍

participant_type 'facilitator'
grade 'pl'
login_type 'email'
end
Copy link
Member

Choose a reason for hiding this comment

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

nice cleanup!

Base automatically changed from eptools/dani/ui-test-pl-courses to staging April 22, 2022 00:07
@dmcavoy dmcavoy merged commit b6cdfa6 into staging Apr 24, 2022
@dmcavoy dmcavoy deleted the eptools/dani/pl-grade-type branch April 24, 2022 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants