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

[issue_tracker] Do not display inactive users in issue form #8841

Conversation

charlottesce
Copy link
Contributor

Brief summary of changes

Inactive users are not displayed in dropdowns to assign / watch an issue

Testing instructions (if applicable)

  1. Go to Tools -> Issue Tracker
  2. Make a new issue / edit an existing one -> ensure you don't see any inactive user in the "Assignee" nor "Add others to watching" dropdowns

Note

This is a CCNA override - https://github.com/aces/CCNA/pull/4100

@charlottesce charlottesce added the Priority: Projects PR or issue is a priority for at least one project and should be a higher priority for LORIS label Jul 19, 2023
@CamilleBeau CamilleBeau self-assigned this Aug 10, 2023
@laemtl laemtl requested review from laemtl and removed request for laemtl August 10, 2023 14:07
Copy link
Contributor

@CamilleBeau CamilleBeau left a comment

Choose a reason for hiding this comment

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

This is working well! I am however wondering now if we should also not display users that have Pending_approval='Y'?

modules/issue_tracker/php/edit.class.inc Outdated Show resolved Hide resolved
@CamilleBeau CamilleBeau added the Passed Manual Tests PR has undergone proper testing by at least one peer label Aug 10, 2023
Copy link
Contributor

@CamilleBeau CamilleBeau left a comment

Choose a reason for hiding this comment

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

As per Dave's request, can we add the assignee / watchers that are currently assigned to the issue to the drop down even if they are inactive? Should be simple to do with a join on issues using issueID from $values, and an OR statement

@CamilleBeau CamilleBeau added Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix and removed Passed Manual Tests PR has undergone proper testing by at least one peer labels Aug 10, 2023
@charlottesce
Copy link
Contributor Author

Two other changes have been added as bug fixes I noticed during testing:

  1. Added a getBreadcrumbs function for the edit class, otherwise we get the following error when clicking on the 'Issue' link of the path on the top left of the page, as it links to 'issue_tracker/issue' which doesn't exist.
    image

  2. The updateComments function of the edit class can now take a null value as input, otherwise if someone tries to update an issue without adding a comment, a PHP error is raised that updateComments expects a string while null is given.

@charlottesce charlottesce removed the Needs Work PR awaiting additional changes by the author or contains issues that the author needs to fix label Aug 14, 2023
@CamilleBeau
Copy link
Contributor

Working well!

@CamilleBeau CamilleBeau added the Passed Manual Tests PR has undergone proper testing by at least one peer label Oct 24, 2023
@driusan driusan merged commit d746654 into aces:24.1-release Nov 7, 2023
9 checks passed
@ridz1208 ridz1208 added this to the 24.1.6 milestone Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Manual Tests PR has undergone proper testing by at least one peer Priority: Projects PR or issue is a priority for at least one project and should be a higher priority for LORIS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants