Skip to content

Commit 9750c63

Browse files
ayesha-warisAyesha Waris
andauthored
temp: adding console statements for testing purpose (#36733)
Co-authored-by: Ayesha Waris <[email protected]>
1 parent 7680bf9 commit 9750c63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lms/static/js/student_account/views/FinishAuthView.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
this.purchaseWorkflow = queryParams.purchaseWorkflow;
6969
if (queryParams.next) {
7070
// Ensure that the next URL is internal for security reasons
71+
this.updateTaskDescription(gettext("query param next is provide"));
7172
if (!window.isExternal(queryParams.next)) {
73+
this.updateTaskDescription(gettext("query param next is internal"));
7274
this.nextUrl = queryParams.next;
7375
}
7476
}
@@ -135,13 +137,15 @@
135137
The track selection page would allow the user to select the course mode
136138
("verified", "honor", etc.) -- or, if the only course mode was "honor",
137139
it would redirect the user to the dashboard. */
140+
this.updateTaskDescription(gettext("course mode param is not provided"));
138141
redirectUrl = this.appendPurchaseWorkflow(this.urls.trackSelection + courseId + '/');
139142
} else if (this.courseMode === 'honor' || this.courseMode === 'audit') {
140143
/* The newer version of the course details page allows the user
141144
to specify which course mode to enroll as. If the student has
142145
chosen "honor", we send them immediately to the next URL
143146
rather than the payment flow. The user may decide to upgrade
144147
from the dashboard later. */
148+
this.updateTaskDescription(gettext("course mode param is provided"));
145149
} else {
146150
/* If the user selected any other kind of course mode, send them
147151
to the payment/verification flow. */
@@ -160,6 +164,7 @@
160164
shoppingCartInterface.addCourseToCart(this.courseId);
161165
} else {
162166
// Otherwise, redirect the user to the next page.
167+
this.updateTaskDescription(gettext(" redirect the user to the next page"));
163168
this.redirect(redirectUrl);
164169
}
165170
},

0 commit comments

Comments
 (0)