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(badging): Merging in prior release changes. #158

Merged

Conversation

ztraboo
Copy link

@ztraboo ztraboo commented Mar 29, 2022

No description provided.

@ztraboo ztraboo self-assigned this Mar 29, 2022
@ztraboo ztraboo added this to the cu-release/maple.1 milestone Mar 29, 2022
@ztraboo ztraboo linked an issue Mar 29, 2022 that may be closed by this pull request
33 tasks
@ztraboo ztraboo force-pushed the feature.maple/ztraboo/feat-badging-merge-prior-release branch 9 times, most recently from 3b6b6c7 to 363443b Compare April 9, 2022 02:00
@ztraboo ztraboo force-pushed the feature.maple/ztraboo/feat-badging-merge-prior-release branch 2 times, most recently from fd445d2 to 9caff10 Compare April 11, 2022 17:04
We need to create a new Django app that is integrated into the platform since it uses base class CourseTab that is currently not setup to be used outside of the platform code. The code currently just makes the plugin setup but does not define calls to integrate badging-frontend code at the moment.

This code update defines #4 from this page by adding new Django app to the platform codebase.
https://openedx.atlassian.net/wiki/spaces/AC/pages/30965856/How+to+add+a+new+feature+to+LMS+or+Studio
Added plugin for `course_badges` to openedx features. EW-405

This provides a plugin extension for badges where a learner can view their badge progress for within a course.
Fix issue with courseware tab for `Badges` not being highlighted when selected. EW-405


Additional changes needed for Juniper release for badges tab. EW-525
This badging configuration model is to be used with assigning course events to BadgeClass models. When a chapter is complete we would award this configured BadgeClass model to the learner.
- Passed in user information to the lmsContext for badgesfrontend
- Adjusted the footer to be max-width of 1920px
- Updated badge_class.image to be full LMS Media path
…View` API endpoint.

`Juniper` release. EW-526
…s a complete section.

- Setup link for `View Badges` to go to the course badge progress page.
- Adjusted styling for `View Badges` button. Todo: Eddie mentioned changing this to `fas-award` instead to avoid long text.
- Moved handling of `award_section_badges` to handler.py file.
- Cleaned up code.
…dge` from the course outline.

Course outline page when no badge configuration for that section was not setup. EW-407
…se. EW-497

Following has changed:
- Setup the Open edX BadgeClass `slug` to have default random value of 22 alphanumeric characters prefixed with `edx_` to help it standout from Badgr BadgeClass entityID which updates it automatically when the Badgr BadgeClass is created. This prevents us from having to manually create a BadgeClass with defined `slug` value in the Django admin page everytime a course is created.
- Added `openedx__course` BadgeClass `issuing_component` to the `course_complete` code.
…-418

* Learner Profile > Accomplishments > Share
* Certificate Share Screen > Add to Badgr
…orrect paths for MFE. EW-422

To fix issues when building out /dist for production there are additional *.min.{css|js} files needed.
…ect *.{css|js} files.

For `badges-frontend` MFE. EW-237
…rse complete event. EW-237

- Minor fix with the evidence url pulling SITE_NAME  being site configuration to help with rendering of subsite specific certificate template.
… given subsite. EW-439

In a AWS (production) environment the `Evidence URL` kept showing the default site domain even for a subsite. This fixes the issue since `configuration_helpers.get_value` was always was checking for the `openedx.core.djangoapps.theming.helpers.py:get_current_site()` which was turning up Empty since production uses Celery task (`lms_high_mem_1`) to regenerate the certificate.
When serializing the `tabs` for field for `lms.djangoapps.courseware.tabs.CourseInfoTab` there was an error retrieving the `issue_badges` property for the `course` instance for `CourseBadgesTab` since the instance was a `CourseOverview` class. That field is found from the `CourseDescriptorWithMixins` class only for that course advanced field setting. This commit fixes that issue.
…frontend-app-learning`.

Added in `course_home_api` endpoint for `course_metadata` for MFE course navigation elements even though this is not being used by the `frontend-app-learning` yet for this Juniper release.
Previously we had made these changes, however, they are not needed anymore since the maple release handles this appropriately. The honor certificates will only be added to be ineligible if the DISABLE_HONOR_CERTIFICATES flag is enabled and the status of prior certificates awarded doesn't equal downloadable status meaning they have previously been awarded. Since we use honor certificates we'll never enable the DISABLE_HONOR_CERTIFICATES setting.

a8caa55
The following changes were made:
- Updated Course Tab for Badges
- Recursively mark `badge_progress` when getting outline tree
-  Moved Badges plugin to fall inline with `lms.djangoapps.courseware.tabs`.
- Course `chapter` location is now show with name instead of UsageKey (e.g. "block-v1:").
- Fix `AttributeError: 'tuple' object has no attribute 'lower'` with `BadgeClass.get_badge_class`.
- Fix `ValidationError` with `test_get_badge_class_data_validate`.
@ztraboo ztraboo force-pushed the feature.maple/ztraboo/feat-badging-merge-prior-release branch from 9caff10 to b4ecb2e Compare April 12, 2022 18:34
@ztraboo ztraboo merged commit 1cfed32 into develop/maple.1 Apr 13, 2022
@becdavid becdavid mentioned this pull request Sep 26, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge Badging into Maple release.
1 participant