Skip to content

Conversation

btry
Copy link
Collaborator

@btry btry commented Sep 4, 2022

if a ticket has several valodators, the sync issue fails to recreate the row
the HAVING COUNT() clause finds 2 rows instead of 1
The solution is to drop the validator user and validator group and find them dynamically with JOIN.
this also allows to find all ticket validators

Changes description

Remove users_id_validator and groups_id_validator from the issues table. As side effect, this allows to get several validators from a ticket, and (starting from GLPI 10.1) several validator groups from a ticket.

Checklist

Please check if your PR fulfills the following specifications:

  • Tests for the changes have been added
  • Docs have been added/updated

References

Closes #N/A

@btry btry force-pushed the bugfix/24707_multiple_ticket_validator_syncissues branch 7 times, most recently from 9df13c0 to 628dfeb Compare September 9, 2022 07:04
@btry btry force-pushed the bugfix/24707_multiple_ticket_validator_syncissues branch 2 times, most recently from f62e087 to db8f75f Compare September 20, 2022 13:57
@btry btry changed the title WIP: Sync issue automatic action WIP: Sync issues problem when a ticket has several validators Oct 11, 2022
@btry btry force-pushed the bugfix/24707_multiple_ticket_validator_syncissues branch 5 times, most recently from 5a42dc4 to 4f26444 Compare October 13, 2022 08:08
@btry btry force-pushed the bugfix/24707_multiple_ticket_validator_syncissues branch 2 times, most recently from c77a8f3 to 5275bd4 Compare October 21, 2022 08:00
if a ticket has several validators, the sync issue fails to recreate the row
the HAVING COUNT() clause finds 2 rows instead of 1
The solution is to drop the user and group validators and find them dynamically with JOIN.
this also allows to find all ticket validators
@btry btry force-pushed the bugfix/24707_multiple_ticket_validator_syncissues branch from 5275bd4 to b5cb148 Compare October 27, 2022 12:13
@btry btry changed the title WIP: Sync issues problem when a ticket has several validators Sync issues problem when a ticket has several validators Oct 27, 2022
@btry btry added this to the 2.13.3 milestone Oct 27, 2022
@btry btry force-pushed the bugfix/24707_multiple_ticket_validator_syncissues branch 2 times, most recently from 4721616 to cb98a29 Compare October 27, 2022 13:50
@btry btry merged commit f3bd00a into pluginsGLPI:support/2.13.0 Oct 27, 2022
@btry btry deleted the bugfix/24707_multiple_ticket_validator_syncissues branch October 27, 2022 13:51
btry added a commit that referenced this pull request Oct 31, 2022
btry added a commit that referenced this pull request Nov 24, 2022
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.

1 participant