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

Add new self-paced PL certificate image and generation #56291

Merged
merged 12 commits into from
Feb 14, 2024

Conversation

bethanyaconnor
Copy link
Contributor

@bethanyaconnor bethanyaconnor commented Feb 5, 2024

Adds a certificate for self-paced PL! This certificate isn't linked to anywhere yet, but if you happen to know the obfuscated url for the course, this would allow you to generate a PL-specific certificate.

Examples:

teachinginteractivegamescertificate
teachingcsdiscoveriescertificate

Links

product spec: https://docs.google.com/document/d/1Ee02kw_ei2x6wOS06K768dC-kUhGDlydjoE6BZipbPE/edit

Testing story

Some unit testings, but largely manual testing

@bethanyaconnor bethanyaconnor marked this pull request as ready for review February 13, 2024 13:48
@bethanyaconnor bethanyaconnor requested a review from a team February 13, 2024 13:48
Copy link
Contributor

@TurnerRiley TurnerRiley left a comment

Choose a reason for hiding this comment

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

Looks great! Just one tiny nit that's not worth a rebuild if no other feedback

end

def self.prefilled_title_course?(course)
certificate_template_for(course) != 'blank_certificate.png'
certificate_template_for(course) != 'blank_certificate.png' && certificate_template_for(course) != 'self_paced_pl_certificate.png'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: ['blank_certificate.png', 'self_paced_pl_certificate.png'].include? certificate_template_for(course) (not worth a rebuild though if no other changes)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that! Don't mind a rebuild -- this PR isn't urgent :)

@bethanyaconnor bethanyaconnor merged commit 97749fd into staging Feb 14, 2024
2 checks passed
@bethanyaconnor bethanyaconnor deleted the bethany/pl-certificates/virtual-pl-certificate branch February 14, 2024 12:41
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.

None yet

2 participants