-
Notifications
You must be signed in to change notification settings - Fork 179
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
[issue_tracker] Fix bug that prevents new issue creation #9643
base: main
Are you sure you want to change the base?
Conversation
@@ -1564,7 +1564,7 @@ CREATE TABLE `issues_history` ( | |||
`issueHistoryID` int(11) unsigned NOT NULL AUTO_INCREMENT, | |||
`newValue` longtext NOT NULL, | |||
`dateAdded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |||
`fieldChanged` enum('assignee','status','comment','sessionID','centerID','title','category','module','lastUpdatedBy','priority','candID', 'description','watching','instrument') NOT NULL DEFAULT 'comment', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is right. The CandID is the field that should be exposed to the user. The sequential CandidateID should not be leaked to the frontend anywhere, but only used for joins.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After investigating, I think this is actually fine. As long as it doesn't get brought to the front-end (which it does), but it isn't because of its presence in this enum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following issue was not necessarily introduced by this PR.
I don't think CandidateID
should be brought to the front end.
There are a few locations where SELECT issues.*
(or i.*
) is used, instead of unsetting or omitting CandidateID
, and candidate.CandID
is also being brought to the front-end, without seemingly being used.
The payloads to the front-end should definitely not include CandidateID
; present in at least both Browse and Edit.
After a thorough investigation, I am otherwise satisfied with how things are done.
@jeffersoncasimir did you try to find the source of this bug #9606. From which table is this PSCID being called/stored? The ![]() ![]() The CandID is replaced with CandidateID in the issues tbl https://github.com/jeffersoncasimir/Loris/blob/e37ad6e670a415a2b8687c4b34449afcf6269cec/SQL/New_patches/2025_02_05_change_candid_fk_to_id.sql#L3 |
@jeffersoncasimir I have successfully hidden the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Tested and approved!
Related to #9606
To Test: