fix: "Course Number Display String" option doesn't influence certificate - #34465
Conversation
|
Thanks for the pull request, @DmytroAlipov! 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 as you can:
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. |
8391c43 to
7f81d41
Compare
"Course organization display string" option in Advanced settings doesn't influence certificate
7f81d41 to
806d735
Compare
|
Hi @DmytroAlipov, I was just taking a look at these changes this morning and it's a good catch. Are there any tests that can be added or updated? |
|
Hi @justinhynes |
|
OK! Thanks for the heads up. I'm not very familiar (personally) with the test suites around this functionality, I'll try take a look this morning. Worst case, we toss a story in our backlog to take a deeper look at improving test coverage in the future. |
justinhynes
left a comment
There was a problem hiding this comment.
Great catch and thanks for the fix!
As you had warned, I didn't find an easy place to slot in some new tests, so I did a bit of manual testing just to ensure I understood the problem and change.
Long story short, this looks good :) 👍
|
@DmytroAlipov 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
|
2U Release Notice: This PR has been deployed to the edX production environment. |
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
Description
In Advanced Settings, it is possible to redefine the name for the Course Organization as well as for the Course Number. However, a bug was discovered in replacing this name on the certificate:

For Course Number Display String everything works correctly:

But the name of the organization is always taken from the Organizations model. In this case, the definition from Advanced Settings is ignored:

For other pages, the override works correctly for both settings:

I slightly changed the logic for prioritizing the selection of the organization name for the certificate. Now everything is replaced correctly:
