Skip to content
Snippets Groups Projects
  1. Sep 10, 2021
    • julianajlk's avatar
    • Olivia Ruiz-Knott's avatar
      Merge pull request #28692 from edx/ork/MICROBA-1489_notify-credentials-and-date-overrides · 1495981e
      Olivia Ruiz-Knott authored
      feat: notify_credentials of changed overrides
    • Tim McCormack's avatar
      fix: Fix Studio logout by pointing to correct logout view (#28714) · 0c164ad4
      Tim McCormack authored
      This changes the "Sign out" link on Studio to point to Studio's own logout
      view, which clears the session and then redirects to LMS's logout page. The
      LMS logout page then skips loading the Studio logout because it is seen in
      the Referer header.
      
      This change also brings Studio better into line with how other IDAs perform
      their logouts.
      
      Background:
      
      After the rollout of Studio OAuth, logouts initiated on Studio failed to
      actually log out Studio (but all other IDAs were logged out). This was
      because the LMS logout view loads the logout pages of other IDAs but skips
      any that is a *prefix* match on the Referer header, and browsers now often
      send a truncated version of the Referer for privacy. Therefore, Studio was
      always skipped when coming from Studio.
      
      The fix is to make sure that Studio has already performed its logout by the
      time the LMS logout page is loaded.
      
      One wrinkle here is that the LMS logout view is activated ...
    • oliviaruizknott's avatar
      feat: notify_credentials of changed overrides · dbfe2a3f
      oliviaruizknott authored
      We use the `notify_credentials` management command to keep certificate-
      related data in the LMS and Credentials service in sync. We can run it
      with specific arguments (user_ids, course_keys, etc.) when we notice a
      data discrepancy; and it is run regularly by a Jenkins job with the
      `--auto` flag every ~4 hours to keep things up-to-date.
      
      Because we probably never want to notify credentials of of ALL the
      GeneratedCertificates, the celery task must be given some arguments
      to filter down to the relevant certificates. Running the management
      command with the `--auto` flag (as the Jenkins job does) adds
      `start_date` and `end_date` arguments of 4 hours ago and now,
      respectively.
      
      The handle_notify_credentials celery task then takes those arguments and
      looks for any GeneratedCertificates that have been modified within the
      given time range by checking the GeneratedCertificate modified_date.
      It will send the current data for those certificates to credentials.
      
      However, we also want to notify credentials about certificates that have
      an associated CertificateDateOverride that has changed within that time
      range: added, updated, or deleted. But changes to a
      CertificateDateOverride won’t affect the GeneratedCertificate’s modified
      date, and therefore wouldn’t be included in the list of certs cent to
      credentials.
      
      This commit adds a check for changed CertificateDateOverrides and
      includes their associated GeneratedCertificates in the list of certs. We
      use the CertificateDateOverride’s history model for this check so that
      we can include certificates whose override was deleted.
      
      MICROBA-1489
      dbfe2a3f
    • Albert (AJ) St. Aubin's avatar
    • Farhaan Bukhsh's avatar
      feat: grant course/library creation rights by organization (#26616) · 48ad7eff
      Farhaan Bukhsh authored
      Current State (before this commit):
      
        Studio, as of today doesn't have a way to restrict a user to
        create a course in a particular organization. What Studio
        provides right now is a CourseCreator permission which gives
        an Admin the power to grant a user the permission to create
        a course.
      
        For example: If the Admin has given a user Spiderman the
        permission to create courses, Spiderman can now create courses
        in any organization i.e Marvel as well as DC.
        There is no way to restrict Spiderman from creating courses
        under DC.
      
      Purpose of this commit:
      
        The changes done here gives Admin the ability to restrict a
        user on an Organization level from creating courses via the
        Course Creators section of the Studio Django administration
        panel.
      
        For example: Now, the Admin can give the user Spiderman the
        privilege of creating courses only under Marvel organization.
        The moment Spiderman tries to create a course under some
        other organization(i.e DC), Studio will show an error message.
      
        This change is available to all Studio instances that
        enable the FEATURES['ENABLE_CREATOR_GROUP'] flag.
        Regardless of the flag, it will not affect any instances that choose
        not to use it.
      
      BB-3622
    • Binod Pant's avatar
      feat: upgrade for ent-4784 (#28711) · 42035b66
      Binod Pant authored
      fixes issue with get_remote_id when multiple idps
    • Michael Terry's avatar
      Merge pull request #28698 from edx/mikix/hide-after-due-mfe · d5bacad8
      Michael Terry authored
      feat: notify MFE when a sequence is hidden-after-due
    • Andrew Shultz's avatar
      Merge pull request #28688 from edx/ashultz0/idv-submitted-name · ced1bca9
      Andrew Shultz authored
      Do not immediately update profile name from IDV when name affirmation is on
    • Aarif's avatar
    • Aarif's avatar
  2. Sep 09, 2021
  3. Sep 08, 2021