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

Loop refresh on fun course for pedagogical team (Firefox only) #727

Open
brospars opened this issue Jun 30, 2022 · 0 comments
Open

Loop refresh on fun course for pedagogical team (Firefox only) #727

brospars opened this issue Jun 30, 2022 · 0 comments
Labels

Comments

@brospars
Copy link

Hi,
For some time we experience this bug that the page refresh endlessly in Firefox.
Using debug breakpoints I identify the cause is an ajax call made to masquerade :

function masquerade(selectedOption) {
      var data = {
          role: selectedOption.val() === 'staff' ? 'staff' : 'student',
          user_partition_id: 1765775040,
          group_id: selectedOption.data('group-id'),
          user_name: selectedOption.val() === 'specific student' ? userNameElement.val() : null
      };
      $.ajax({
          url: '/courses/course-v1:inria+41xxx+demotest/masquerade',
          type: 'POST',
          dataType: 'json',
          contentType: 'application/json',
          data: JSON.stringify(data),
          success: function(result) {
              if (result.success) {
                  location.reload(); // <------------------ this
              } else {
                  alert(result.error);
              }
          },
          error: function() {
              alert('Error: cannot connect to server');
          }
      });
  }

To reproduce :

  • Using Firefox
  • Login as pedagogical team member
  • Go on a course
@jmaupetit jmaupetit added the bug label Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants