-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ticket linking of items allows items that do not exist #336
Comments
where? so did the item link or is this in a comment |
agreed this should not occur. |
TBH I don't know how this bug is even possible Using a scenario of linking a non-existing item. The logic was setup purposely to to try and fetch the item by the id provided in the command, if the item does not exist an exception is thrown which prevents linking the item to the ticket. centurion_erp/app/core/lib/slash_commands/linked_model.py Lines 129 to 146 in dfdc5ba
The above code has not changed since it was initially introduced. The only way i see this occurring is the item was linked and later removed. This scenario will create what you have reported. Within the current test env (v1.3.0) I can't link an item that does not exist. Test cases have been added in e9d5b08 to ensure that there is no regression in the requirement, I'm going to assume that what has occured is that the item was linked when it was created, then subsequently deleted. I will add some test cases to ensure that when an item is deleted, the linking to tickets is also cleaned up. |
Added fix in dc55883 to correct the issue where when an item that may be linked to a ticket is deleted, the ticket link is also removed. Test Cases added in e170226 to ensure there is no regression in the requirement "when an item is deleted, remove the ticket link". This issue will be resolved on release of #344. |
When linking an item to a ticket I accidentally selected services instead of software, I entered the id of the software I wanted in this case 16.
Now in the linked items it shows $service-16
This should throw an error as the id does not exist
The text was updated successfully, but these errors were encountered: