From 9750c63f746b8e644f219312620342d3c0663261 Mon Sep 17 00:00:00 2001 From: ayesha waris <73840786+ayesha-waris@users.noreply.github.com> Date: Fri, 16 May 2025 21:55:27 +0500 Subject: [PATCH] temp: adding console statements for testing purpose (#36733) Co-authored-by: Ayesha Waris --- lms/static/js/student_account/views/FinishAuthView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/static/js/student_account/views/FinishAuthView.js b/lms/static/js/student_account/views/FinishAuthView.js index f9ae7157ed..02f94c89a7 100644 --- a/lms/static/js/student_account/views/FinishAuthView.js +++ b/lms/static/js/student_account/views/FinishAuthView.js @@ -68,7 +68,9 @@ this.purchaseWorkflow = queryParams.purchaseWorkflow; if (queryParams.next) { // Ensure that the next URL is internal for security reasons + this.updateTaskDescription(gettext("query param next is provide")); if (!window.isExternal(queryParams.next)) { + this.updateTaskDescription(gettext("query param next is internal")); this.nextUrl = queryParams.next; } } @@ -135,6 +137,7 @@ The track selection page would allow the user to select the course mode ("verified", "honor", etc.) -- or, if the only course mode was "honor", it would redirect the user to the dashboard. */ + this.updateTaskDescription(gettext("course mode param is not provided")); redirectUrl = this.appendPurchaseWorkflow(this.urls.trackSelection + courseId + '/'); } else if (this.courseMode === 'honor' || this.courseMode === 'audit') { /* The newer version of the course details page allows the user @@ -142,6 +145,7 @@ chosen "honor", we send them immediately to the next URL rather than the payment flow. The user may decide to upgrade from the dashboard later. */ + this.updateTaskDescription(gettext("course mode param is provided")); } else { /* If the user selected any other kind of course mode, send them to the payment/verification flow. */ @@ -160,6 +164,7 @@ shoppingCartInterface.addCourseToCart(this.courseId); } else { // Otherwise, redirect the user to the next page. + this.updateTaskDescription(gettext(" redirect the user to the next page")); this.redirect(redirectUrl); } },