Skip to content

Update certificate to show issue date#3271

Open
annagav wants to merge 2 commits intomainfrom
ag/issue_date
Open

Update certificate to show issue date#3271
annagav wants to merge 2 commits intomainfrom
ag/issue_date

Conversation

@annagav
Copy link
Contributor

@annagav annagav commented Feb 5, 2026

What are the relevant tickets?

Related to https://github.com/mitodl/mitxonline/pull/3025/changes

Description (What does it do?)

Update certificate to show issue date

Screenshots (if appropriate):

Screenshot 2026-02-04 at 9 34 21 PM

How can this be tested?

Created a certificate, go to view it

Make sure that the date shown is the issue date.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

OpenAPI Changes

Show/hide ## Changes for v0.yaml:
## Changes for v0.yaml:


## Changes for v1.yaml:


## Changes for v2.yaml:


Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

@rachellougee rachellougee self-assigned this Feb 5, 2026
Copy link
Contributor

@rachellougee rachellougee left a comment

Choose a reason for hiding this comment

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

The certificate now displays issue_date when it's set, but shows empty when it isn't. Since issue_date is not required, we should add a default value.

Image

"learner_name": self.certificate.user.get_full_name(),
"start_date": start_date,
"end_date": end_date,
"issue_date": self.certificate.issue_date,
Copy link
Contributor

@rachellougee rachellougee Feb 5, 2026

Choose a reason for hiding this comment

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

This works if issue_date is set, but over 2000 certificates don't have an issue_date, can we add a default? maybe created_on?

e.g. https://mitxonline.mit.edu/admin/courses/courseruncertificate/59293/change/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants