-
Notifications
You must be signed in to change notification settings - Fork 51
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: make level type and subjects field optional for masters courses #1000
Conversation
adbfeec
to
6b58c8e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1000 +/- ##
==========================================
+ Coverage 68.04% 68.06% +0.01%
==========================================
Files 129 129
Lines 3248 3250 +2
Branches 943 946 +3
==========================================
+ Hits 2210 2212 +2
+ Misses 993 990 -3
- Partials 45 48 +3 ☔ View full report in Codecov by Sentry. |
Instead of hiding the fields altogether, make them optional in case some teams want to add the values. |
1f71a58
to
67f792c
Compare
@@ -1007,7 +1007,7 @@ export class BaseEditCourseForm extends React.Component { | |||
extraInput={{ onInvalid: this.openCollapsible }} | |||
options={levelTypeOptions} | |||
disabled={disabled} | |||
required={isSubmittingForReview} | |||
required={isSubmittingForReview && showMarketingFields} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add appropriate unit tests.
67f792c
to
bd6131a
Compare
1e66a94
to
2bdab04
Compare
2bdab04
to
8e7d98d
Compare
PROD-3254
This PR puts Level Type and Primary Subject as non-marketable fields i.e. make them optional for masters courses (and all the non-marketable courses)