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

SAK-49700 Assignments grades entered in GB not displayed in Assignments #12332

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hornersa
Copy link
Contributor

@hornersa hornersa commented Jan 31, 2024

Jira: https://sakaiproject.atlassian.net/browse/SAK-49700

The proposed fix conforms to the change introduced with Sakai 23, whereby the association between Assignments and GB items created in GB are now based on the GB item's ID instead of the GB item's name/title as before.

@ern
Copy link
Contributor

ern commented Feb 1, 2024

@hornersa This is ok to do but you do make sure that it is backwards compatible so it should still work with existing associations.

@hornersa
Copy link
Contributor Author

hornersa commented Feb 1, 2024

This PR does not attempt any backwards compatibility. I reported the broader backwards compatibility issue for ASN-GB associations last July, with the following Critical priority jira: https://sakaiproject.atlassian.net/browse/SAK-49097.

After not seeing any response to that jira for a few months, I wrote a PHP script for local use to run after the SQL update scripts to modify DB records for relevant Assignment properties to accommodate to the new use of GB item ID prevalent in Sakai 23 code.

Is there backwards compatibility implemented elsewhere in Sakai 23/24 for these ASN-GB associations that I may have missed?

@ern ern marked this pull request as draft February 6, 2024 16:18
@ern
Copy link
Contributor

ern commented Feb 6, 2024

@hornersa I converted this to a draft while there is further discussion.

@ern ern changed the title SAK-49700 Assignments: Grades entered in GB not displayed in Assignments SAK-49700 Assignments grades entered in GB not displayed in Assignments Apr 26, 2024
public Optional<Assignment> getAssignmentForGradebookLink(String context, String linkId) throws IdUnusedException, PermissionException {
if (StringUtils.isNoneBlank(context, linkId)) {
public Optional<Assignment> getAssignmentForGradebookLink(String context, Long linkId) throws IdUnusedException, PermissionException {
if (StringUtils.isNoneBlank(context) && linkId != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (StringUtils.isNoneBlank(context) && linkId != null) {
if (StringUtils.isNotBlank(context) && linkId != null) {

@ern
Copy link
Contributor

ern commented Apr 26, 2024

@hornersa I don't think this PR can be accepted as is. A conversion SQL script would be needed. otherwise it needs to be compatible with both String and Long linkIds.

@hornersa
Copy link
Contributor Author

@ern - To expedite a solution to this jira while also managing the related issues pertaining to backwards compatibility, SQL script updates, etc., I think it might to close this PR and let someone else take over this solution's development. The above is not something I can commit to at the moment. I'll proceed to remove myself as Assignee to the jira.

@bgarciaentornos
Copy link
Contributor

Thanks for your work @hornersa

Adding bugs and regressions is a part of the lifecycle of a product, but I think it's a bit worrying that some attempts to fix regressions are blocked and left on hold with nobody jumping in to fix them, see also #11682

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants