Skip to content

Allow auto-generation of certs (e.g., on passing grade) for Honor mode - #794

Merged
bryanlandia merged 1 commit into
appsembler/tahoe/developfrom
bryan/allow-auto-generated-certs-for-honor
Dec 28, 2020
Merged

Allow auto-generation of certs (e.g., on passing grade) for Honor mode#794
bryanlandia merged 1 commit into
appsembler/tahoe/developfrom
bryan/allow-auto-generated-certs-for-honor

Conversation

@bryanlandia

@bryanlandia bryanlandia commented Dec 23, 2020

Copy link
Copy Markdown

Even as of Koa, auto-generation of certs is not allowed for Audit or Honor. It is allowed for Verified, Credit, Professional, and No ID Professional. https://github.com/edx/edx-platform/blob/151bd136667d27bf85256e382ed5b5ea0144e00f/lms/djangoapps/certificates/signals.py#L145

None of the allowed modes work for Tahoe because:

  • A payment workflow is enforced for enrollment with mode Verified, Professional, and No ID Professional
  • Credit is meant to a purchased add-on mode after course completion and expects a credit provider id. Also Credit mode will block Certificates page from showing up in Studio (at least as of Hawthorn)... why, I do not know.

So, we should just allow auto-certs for Honor. This PR does that.

@bryanlandia

bryanlandia commented Dec 23, 2020

Copy link
Copy Markdown
Author

Also, auto-cert generation isn't turned on for Tahoe SaaS anyhow (probably because it requires PersistentGrades), but we are using it for DHIS2 on Tahoe standalone. Some info on enabling it is here https://appsembler.atlassian.net/wiki/spaces/BLA/pages/62652425/DHIS2+Hawthorn+upgrade+plan#1b.-Manual-configuration

@OmarIthawi OmarIthawi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks @bryanlandia! This is helpful!

Please add a feature flag for it so it's maintainable and we can quickly find the related code for it.

We'll also need to add something like this in the Tahoe settings overrides openedx/core/djangoapps/appsembler/settings/settings/common.py:

# Appsembler allows generating honor certs
settings.FEATURES['TAHOE_AUTO_GENERATE_HONOR_CERTS'] = True

Comment thread lms/djangoapps/certificates/signals.py Outdated
Comment thread lms/djangoapps/certificates/tests/test_signals.py Outdated
Comment thread lms/djangoapps/certificates/tests/test_signals.py Outdated
Use FEATURE setting to enable Honor mode auto-certs
Committing Omar's suggestions
Co-authored-by: Omar Al-Ithawi <i@omardo.com>

Fix settings imports for Tahoe certs signals changes for Honor auto-certs, related tests.

Add related default FEATURE setting in appsembler.settings
@bryanlandia
bryanlandia force-pushed the bryan/allow-auto-generated-certs-for-honor branch from f819437 to 7db75ba Compare December 23, 2020 19:04
@bryanlandia

Copy link
Copy Markdown
Author

Updated with your suggestions @OmarIthawi and related fixes, then squashed.

@OmarIthawi

Copy link
Copy Markdown

Looks great!

@bryanlandia
bryanlandia merged commit bc00049 into appsembler/tahoe/develop Dec 28, 2020
@bryanlandia
bryanlandia deleted the bryan/allow-auto-generated-certs-for-honor branch December 28, 2020 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants