Skip to content

SE-2483 Unhide student-generated certificates toggle - #23735

Closed
samuelallan72 wants to merge 1 commit into
openedx:masterfrom
open-craft:samuel/unhide-certificates-toggle
Closed

SE-2483 Unhide student-generated certificates toggle#23735
samuelallan72 wants to merge 1 commit into
openedx:masterfrom
open-craft:samuel/unhide-certificates-toggle

Conversation

@samuelallan72

@samuelallan72 samuelallan72 commented Apr 16, 2020

Copy link
Copy Markdown
Contributor

Student-generated certificates are meant to be auto-enabled through
signal for self-paced courses, but it has been observed that this
behaviour is flaky. When this happens, we are left in a state where it
is impossible to enable student-generated certificates because the
section is hidden in the instructor dashboard.

Also by unconditionally displaying the toggle button, this allows more
flexibility for instructors. For example, it may be desirable for
student-generated certificates to be disabled for a self-paced course.

JIRA tickets: OSPR-4389

External discussions:

Others appear to be having similar issues with certificates, that may be helped by the changes in this PR: https://discuss.openedx.org/t/certificate-link-is-not-appearing-on-instructor-dashboard/936/11

Dependencies: None

Screenshots:

1587014540

Sandbox URL:

Merge deadline: None

Test instructions:

  1. Create a self-paced course (or change an existing course to be self-paced)
  2. visit the instructor dashboard for the self-paced course
  3. navigate to the Certificates tab
  4. verify that the 'Student-Generated Certificates' section is visible along with the toggle button
  5. verify that clicking the toggle button toggles this setting correctly

Reviewers:

Settings

@openedx-webhooks

openedx-webhooks commented Apr 16, 2020

Copy link
Copy Markdown

Thanks for the pull request, @swalladge! I've created OSPR-4389 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@pomegranited pomegranited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@samuelallan72

Copy link
Copy Markdown
Contributor Author

Thanks @pomegranited !

@natabene this is ready for edX review. 😄

@natabene

Copy link
Copy Markdown
Contributor

@swalladge Thanks, queueing it for our review.

@natabene

Copy link
Copy Markdown
Contributor

@marcotuts Please take a look once you have a chance.

@marcotuts

Copy link
Copy Markdown
Contributor

This isn't something we'd like to expose / show to all instructors, but I can understand how some instances might want to not make the same choice here. I don't think this is something we would merge as is. Any other options to address your concerns without introducing this button to all instructors once again?

@samuelallan72

Copy link
Copy Markdown
Contributor Author

@marcotuts

Any other options to address your concerns without introducing this button to all instructors once again?

I think some instances definitely need access to be able to toggle on student-generated certificates for these edge cases. The backend already allows users with the ENABLE_CERTIFICATE_GENERATION permission to toggle this setting, so would it be acceptable to conditionally show that toggle button only if the user has that permission?

@pomegranited

Copy link
Copy Markdown
Contributor

Hi @marcotuts , do you have time to address the most recent proposal on this OSPR? CC @natabene

pomegranited referenced this pull request in open-craft/openedx-platform Jul 18, 2020
cf https://github.com/edx/edx-platform/pull/23735

Unhide student-generated certificates toggle

Student-generated certificates are meant to be auto-enabled through
signal for self-paced courses, but it has been observed that this
behaviour is flaky. When this happens, we are left in a state where it
is impossible to enable student-generated certificates because the
section is hidden in the instructor dashboard.

Also by unconditionally displaying the toggle button, this allows more
flexibility for instructors. For example, it may be desirable for
student-generated certificates to be disabled for a self-paced course.

(cherry picked from commit 86acd244d964e6281f3564d14e370e5bc79c2fbb)
toxinu referenced this pull request in open-craft/openedx-platform Sep 16, 2020
cf https://github.com/edx/edx-platform/pull/23735

Unhide student-generated certificates toggle

Student-generated certificates are meant to be auto-enabled through
signal for self-paced courses, but it has been observed that this
behaviour is flaky. When this happens, we are left in a state where it
is impossible to enable student-generated certificates because the
section is hidden in the instructor dashboard.

Also by unconditionally displaying the toggle button, this allows more
flexibility for instructors. For example, it may be desirable for
student-generated certificates to be disabled for a self-paced course.

(cherry picked from commit 86acd244d964e6281f3564d14e370e5bc79c2fbb)
@samuelallan72

Copy link
Copy Markdown
Contributor Author

@marcotuts @natabene any updates on when this might get another review pass? Thanks. :)

@natabene

Copy link
Copy Markdown
Contributor

@swalladge Sorry, not yet. Will try next week.

@pomegranited

Copy link
Copy Markdown
Contributor

Hi @natabene @marcotuts , this has been blocked for a really long time, and it's at the top of our priority list. Do you have an idea of when it might be reviewed?

@fghaas

fghaas commented Jan 15, 2021

Copy link
Copy Markdown
Contributor

+1 on @pomegranited's comment; we're also carrying this patch locally at the moment and would love to see it land upstream.

@natabene

Copy link
Copy Markdown
Contributor

@pomegranited Sorry about that, we will try to address this today.

@fghaas

fghaas commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

@natabene: it's been another month, any news on this one?

@samuelallan72
samuelallan72 force-pushed the samuel/unhide-certificates-toggle branch from 86acd24 to 7ac2e68 Compare February 18, 2021 01:24
@samuelallan72

Copy link
Copy Markdown
Contributor Author

Rebased on master to check tests.

Student-generated certificates are meant to be auto-enabled through
signal for self-paced courses, but it has been observed that this
behaviour is flaky. When this happens, we are left in a state where it
is impossible to enable student-generated certificates because the
section is hidden in the instructor dashboard.

Also by unconditionally displaying the toggle button, this allows more
flexibility for instructors. For example, it may be desirable for
student-generated certificates to be disabled for a self-paced course.
@edx-status-bot

Copy link
Copy Markdown

Your PR has finished running tests. There were no failures.

@samuelallan72

Copy link
Copy Markdown
Contributor Author

@natabene @marcotuts any updates on this? 🙂

@natabene

natabene commented Mar 4, 2021

Copy link
Copy Markdown
Contributor

@swalladge No, not yet, but it is lined to be reviewed in the coming weeks hopefully. Do you have a timeline you need to meet?

@samuelallan72

Copy link
Copy Markdown
Contributor Author

@natabene thanks for the update. No, we don't have a timeline; we were just running routine checks on PRs that have been open for a while. :)

@natabene

Copy link
Copy Markdown
Contributor

Update: we are still looking into this from product perspective, we need to reach out to a couple more people internally. Stay tuned.

@natabene

Copy link
Copy Markdown
Contributor

@pomegranited UPDATE: we will need to hold until the team has the time to review, unless this is causing CAT-1/2 issues for your clients. We are currently reviewing the learner-generated certificate functionality overall, so we'll need a bit more time.

@staubina

staubina commented Jun 2, 2021

Copy link
Copy Markdown

I apologize for the major delays in this PR. My team and I are just coming up to speed on this. I am sorry if these questions have already been addressed in the past.

As @marcotuts mentioned we would like to avoid exposing this option if possible. We are trying to move away from manual certificate generation. We have numerous auto certificate generation improvements coming.

Would it be possible to articulate the flakiness issues that you are seeing that lead to the need to open this option up to others?

One of the lines in your description of the PR concerns me when I look at the PR that originally added this check: https://github.com/edx/edx-platform/pull/12210

Student-generated certificates are meant to be auto-enabled through
signal for self-paced courses, but it has been observed that this
behavior is flaky

It seems that the intent of the PR that added this check was to make it so that we default to automatically generating certificates in new self-paced courses. I am still investigating the current state because the PR in question was made 5 years ago and much has changed since then. (https://github.com/edx/edx-platform/pull/12210

Also by unconditionally displaying the toggle button, this allows more
flexibility for instructors. For example, it may be desirable for
student-generated certificates to be disabled for a self-paced course.

I will check in with Product on this goal. I currently believe that auto-generation is enabled by default on Master and we would like all of the courses to be that way.

I think some instances definitely need access to be able to toggle on student-generated certificates for these edge cases. The backend already allows users with the ENABLE_CERTIFICATE_GENERATION permission to toggle this setting, so would it be acceptable to conditionally show that toggle button only if the user has that permission?

I am going to look into this permission you are mentioning to see how it is applied and if it will work.

The last question for now, is certificate auto generation enabled on the deployments that are running into this flakiness?

The answer to this question will help to provide suggestions on moving forward.

samuelallan72 referenced this pull request in open-craft/openedx-platform Jun 3, 2021
This reverts commit 8910ccf.

Our clients are no longer using this feature, and edX won't accept this
upstream as-is currently.  See https://github.com/edx/edx-platform/pull/23735 for more information.

Reverting to reduce code drift from upstream.
@samuelallan72

Copy link
Copy Markdown
Contributor Author

@staubina thanks for the update. Our clients are no longer using this, so we don't have the budget to investigate further or users to test the changes with, so we'll stop development on this.

@openedx-webhooks openedx-webhooks added rejected and removed product review PR requires product review before merging labels Jun 3, 2021
@openedx-webhooks

Copy link
Copy Markdown

@swalladge Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

@staubina

staubina commented Jun 3, 2021

Copy link
Copy Markdown

@swalladge Thank you for the update and for your time working on this.

@fghaas

fghaas commented Jun 3, 2021

Copy link
Copy Markdown
Contributor

@staubina Please see the linked doc PR. I believe the fact that the documentation still pretends that this is a supported feature might potentially lead other contributors to believe that its non-functionality is a bug to be fixed. As evident from this discussion that is not the case, so it's probably best to explain that in the docs.

dliberat referenced this pull request in open-craft/openedx-platform Jul 8, 2021
This reverts commit 8910ccf.

Our clients are no longer using this feature, and edX won't accept this
upstream as-is currently.  See https://github.com/edx/edx-platform/pull/23735 for more information.

Reverting to reduce code drift from upstream.
gabor-boros referenced this pull request in open-craft/openedx-platform Jul 14, 2021
* [SE-4101] fix: address VisibleBlocks caching race condition (openedx#27359) (#349)

* fix: address VisibleBlocks caching race condition
* sets visual block creation in an atomic transaction
* refactor: add logging statement to bulk create

Co-authored-by: Raul Gallegos <raul@opencraft.com>

Co-authored-by: Raul Gallegos <raul@opencraft.com>

* BB-3954 Add toggle for enrollment behavior (#351)

Adds toggle REDIRECT_UNAUTHENTICATED_USER_TO_LOGIN_ON_ENROLL
for enrollment behaviour for unauthenticated user.
If true, the user will be redirected to 'signin_user' route.

Co-authored-by: Arjun Singh Yadav <arjun@opencraft.com>

* [BB-3622] feat:Restrict user create course (#319) (#352)

* Add course creation condition for organization

The condition added to ensure that if the feature is enabled
user will not be able to create the course outside of the organization
in which they belong.

Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>

* fix: update the xblock-lti-consumer commit

* Added new setting CERTIFICATE_DATE_FORMAT for easy customization of (#354)

certificate issued date

(cherry picked from commit 421e661)

* fix: Produce grade report when subsections have future start dates

When getting a subsection grade for a user, instead of failing
if the user can't access that subsection,
fallback to the collected structure.

* Revert "Unhide student-generated certificates toggle"

This reverts commit 8910ccf.

Our clients are no longer using this feature, and edX won't accept this
upstream as-is currently.  See https://github.com/edx/edx-platform/pull/23735 for more information.

Reverting to reduce code drift from upstream.

* chore: update Arabic translations

* fix:Fix function call to check MFE (#359)

Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>

* fix: don't cache ajax request

* feat: add site language config

Cherry-picked from: https://github.com/edx/edx-platform/pull/27696

* Revert "[FAL-1813] fix: codejail issue when using matplotlib (#343)" (#365)

This reverts commit 2143f84.

* Update celery routing for celery 4+ (openedx#25567)

* Update celery routing

- Used routing function instead of class
- Move task queues dictionary to Django settings
- Removed routing_key parameter
- Refactored routing for singleton celery instantiation

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
(cherry picked from commit e3b4d23)

* fix: add missing set_code_owner_attribute imports

(cherry picked from commit d1060d2)

* chore: bump edx-django-utils to 3.12.0

The required `set_code_owner_attribute` decorator was introduced in
v3.12.0, therefore we need to bump the dependency.

(cherry picked from commit f52b84e)

* [SE-4482] Allow delete course content in Studio only for admin users (#360)

Co-authored-by: Nizar Mahmoud <nizarmah@hotmail.com>

* fix: Password reset page throwing not found error (#364)

Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>

* fix: change buttons in wiki modal to anchor tags

The action buttons in wiki modal have href attribute
but does not have an event listener for click.
This PR changes the buttons to anchor tags so that they
work as expected when clicked.

* fix: use high priority queue for celery heartbeat check

Makes HIGH_PRIORITY_QUEUE a derived setting, which allows
HEARTBEAT_CELERY_ROUTING_KEY to use the correct config variant default.

(cherry picked from commit 2a9067a)

* fix: prevent invalidation of allowlisted certificates

The allowlisted certificates were getting invalidated upon visiting the Course
Progress page by users.

This is a rough backport of the Lilac fix (edx#26356). In Lilac, this is gated
by the `certificates_revamp.use_allowlist` Waffle flag. In post-Lilac branches,
this is working out of the box (the flag has been removed in edx#27576).

Jira ticket: BB-4287

* feat: add celery beat configuration

Co-authored-by: Raul Gallegos <raul@opencraft.com>
Co-authored-by: Farhaan Bukhsh <farhaan@opencraft.com>
Co-authored-by: Arjun Singh Yadav <arjun@opencraft.com>
Co-authored-by: pkulkark <pooja@opencraft.com>
Co-authored-by: Shimul Chowdhury <shimul@opencraft.com>
Co-authored-by: João Cabrita <joao.cabrita@opencraft.com>
Co-authored-by: Samuel Walladge <samuel@opencraft.com>
Co-authored-by: Giovanni Cimolin da Silva <giovannicimolin@gmail.com>
Co-authored-by: 0x29a <demid@opencraft.com>
Co-authored-by: Dmitry Gamanenko <dmitry.gamanenko@raccoongang.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com>
Co-authored-by: Sandeep Choudhary <sandeep@opencraft.com>
Co-authored-by: Nizar Mahmoud <nizarmah@hotmail.com>
Co-authored-by: Agrendalath <piotr@surowiec.it>
@Agrendalath
Agrendalath deleted the samuel/unhide-certificates-toggle branch May 23, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U rejected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants