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

Allow validating only unsolved ITIL #18604

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

cconard96
Copy link
Contributor

@cconard96 cconard96 commented Dec 23, 2024

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

While working on #17215, I noticed one place where the search result link for tickets waiting for approval filtered to unsolved tickets only. Some of the issue reported in the bug report was fixed in #18380 but there was still an inconsistency. Instead of hiding the ability to validate closed tickets only, it seems like it makes sense to also block validating solved tickets and changes. Once something is solved, all actions should be considered finished so approvals are expected to happen before that. Once solved, it is just waiting for user validation that the fix worked or validation from technicians in the case of an Observed change.

@Lainow
Copy link
Contributor

Lainow commented Jan 2, 2025

Once a ticket has been resolved, requests can no longer be modified, but once it has been closed, they can be edited again.
image

Copy link
Contributor

@Lainow Lainow left a comment

Choose a reason for hiding this comment

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

See my previous comment

@cconard96 cconard96 force-pushed the fix/validate_not_solved branch from e2ea753 to 3beb5c4 Compare January 15, 2025 11:57
@cconard96 cconard96 requested a review from Lainow January 15, 2025 11:57
Copy link
Contributor

@Lainow Lainow left a comment

Choose a reason for hiding this comment

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

image
When I switch my ticket to Resolu, the approval request form is always at the bottom of my timeline.

When the ticket is closed, everything works perfectly.

@cconard96
Copy link
Contributor Author

I cannot recreate that. I added an approval to myself while the ticket was unsolved and the answer form was shown. I solved the ticket and the answer form disappeared. I closed the ticket and the answer form remained gone.

@trasher
Copy link
Contributor

trasher commented Jan 16, 2025

Should not this one targets 10.0 branch?

@cconard96
Copy link
Contributor Author

Should not this one targets 10.0 branch?

I didn't think so. Less of a bug and more changing a long-standing behavior. I felt better not introducing a behavior change, especially a restriction, in 10.0.

@trasher
Copy link
Contributor

trasher commented Jan 16, 2025

Should not this one targets 10.0 branch?

I didn't think so. Less of a bug and more changing a long-standing behavior. I felt better not introducing a behavior change, especially a restriction, in 10.0.

OK for me

@cedric-anne cedric-anne added this to the 11.0.0 milestone Jan 16, 2025
Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

Technically OK, but I would prefer to have a functional validation from @orthagh before merging this one.

@AdrienClairembault
Copy link
Contributor

AdrienClairembault commented Jan 16, 2025

Seems OK for me, at first I thought I had the same issue as shown in @Lainow's comment but in fact it is the solution approval form which is being displayed in this case, not the validation one.

image

Unrelated but display of the solution is a bit weird tho (I'll open an issue)

@cedric-anne cedric-anne merged commit 8b0a05a into glpi-project:main Jan 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants