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: make level type and subjects field optional for masters courses #1000

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

Ali-D-Akbar
Copy link
Contributor

@Ali-D-Akbar Ali-D-Akbar commented Feb 20, 2025

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)

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.06%. Comparing base (5c19a5c) to head (8e7d98d).
Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@DawoudSheraz
Copy link
Contributor

Instead of hiding the fields altogether, make them optional in case some teams want to add the values.

@Ali-D-Akbar Ali-D-Akbar force-pushed the aakbar/PROD-3254 branch 2 times, most recently from 1f71a58 to 67f792c Compare February 24, 2025 09:23
@@ -1007,7 +1007,7 @@ export class BaseEditCourseForm extends React.Component {
extraInput={{ onInvalid: this.openCollapsible }}
options={levelTypeOptions}
disabled={disabled}
required={isSubmittingForReview}
required={isSubmittingForReview && showMarketingFields}
Copy link
Contributor

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.

@Ali-D-Akbar Ali-D-Akbar changed the title feat: hide level type and subjects field for masters courses feat: make level type and subjects field optional for masters courses Feb 24, 2025
@Ali-D-Akbar Ali-D-Akbar force-pushed the aakbar/PROD-3254 branch 3 times, most recently from 1e66a94 to 2bdab04 Compare February 24, 2025 20:00
@Ali-D-Akbar Ali-D-Akbar merged commit e4b291f into master Feb 25, 2025
6 checks passed
@Ali-D-Akbar Ali-D-Akbar deleted the aakbar/PROD-3254 branch February 25, 2025 09:57
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.

3 participants