feat!: Removed Badges App
fix: restored badges handlers feat: remove FE code for badges fix: resolved failing tests fix: removed test case for badges app fix: unused import error fix: Response Field Count fix: shareable account response length fix: resolved PR comments fix: revert settings override feat!: Removed Badges App fix: restored badges handlers feat: remove FE code for badges fix: resolved failing tests fix: removed test case for badges app fix: unused import error fix: Response Field Count fix: shareable account response length fix: revert subscription badge
This commit is contained in:
committed by
Zaeema Anwar
parent
92731be0dc
commit
0b3e4d73b6
@@ -1,11 +0,0 @@
|
||||
$(function() {
|
||||
'use strict';
|
||||
|
||||
$('.action-share-mozillaopenbadges').click(function(event) {
|
||||
$('.badges-overlay').fadeIn();
|
||||
event.preventDefault();
|
||||
});
|
||||
$('.badges-modal .close').click(function() {
|
||||
$('.badges-overlay').fadeOut();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -81,7 +81,7 @@ describe('Program Details Header View', () => {
|
||||
expect(view.$('.org-logo').attr('alt'))
|
||||
.toEqual(`${context.programData.authoring_organizations[0].name}'s logo`);
|
||||
});
|
||||
|
||||
|
||||
it('should render the subscription badge if subscription is active', () => {
|
||||
expect(view.$('.meta-info .badge').html().trim()).toEqual('Subscribed');
|
||||
});
|
||||
|
||||
@@ -3,7 +3,6 @@ define(['underscore'], function(_) {
|
||||
|
||||
var USER_ACCOUNTS_API_URL = '/api/user/v0/accounts/student';
|
||||
var USER_PREFERENCES_API_URL = '/api/user/v0/preferences/student';
|
||||
var BADGES_API_URL = '/api/badges/v1/assertions/user/student/';
|
||||
var IMAGE_UPLOAD_API_URL = '/api/profile_images/v0/staff/upload';
|
||||
var IMAGE_REMOVE_API_URL = '/api/profile_images/v0/staff/remove';
|
||||
var FIND_COURSES_URL = '/courses';
|
||||
@@ -116,7 +115,6 @@ define(['underscore'], function(_) {
|
||||
social_links: [{platform: 'facebook', social_link: 'https://www.facebook.com/edX'}],
|
||||
language_proficiencies: [{code: '1'}],
|
||||
profile_image: PROFILE_IMAGE,
|
||||
accomplishments_shared: false
|
||||
};
|
||||
var DEFAULT_USER_PREFERENCES_DATA = {
|
||||
'pref-lang': '2',
|
||||
@@ -223,7 +221,6 @@ define(['underscore'], function(_) {
|
||||
return {
|
||||
USER_ACCOUNTS_API_URL: USER_ACCOUNTS_API_URL,
|
||||
USER_PREFERENCES_API_URL: USER_PREFERENCES_API_URL,
|
||||
BADGES_API_URL: BADGES_API_URL,
|
||||
FIND_COURSES_URL: FIND_COURSES_URL,
|
||||
IMAGE_UPLOAD_API_URL: IMAGE_UPLOAD_API_URL,
|
||||
IMAGE_REMOVE_API_URL: IMAGE_REMOVE_API_URL,
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
language_proficiencies: [],
|
||||
requires_parental_consent: true,
|
||||
profile_image: null,
|
||||
accomplishments_shared: false,
|
||||
default_public_account_fields: [],
|
||||
extended_profile: [],
|
||||
secondary_email: ''
|
||||
|
||||
@@ -788,13 +788,9 @@
|
||||
'js/spec/views/message_banner_spec.js',
|
||||
'js/spec/views/notification_spec.js',
|
||||
'learner_profile/js/spec/learner_profile_factory_spec.js',
|
||||
'learner_profile/js/spec/views/badge_list_container_spec.js',
|
||||
'learner_profile/js/spec/views/badge_list_view_spec.js',
|
||||
'learner_profile/js/spec/views/badge_view_spec.js',
|
||||
'learner_profile/js/spec/views/learner_profile_fields_spec.js',
|
||||
'learner_profile/js/spec/views/learner_profile_view_spec.js',
|
||||
'learner_profile/js/spec/views/section_two_tab_spec.js',
|
||||
'learner_profile/js/spec/views/share_modal_view_spec.js',
|
||||
'support/js/spec/collections/enrollment_spec.js',
|
||||
'support/js/spec/models/enrollment_spec.js',
|
||||
'support/js/spec/views/certificates_spec.js',
|
||||
|
||||
Reference in New Issue
Block a user