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

Bug GUI Workflow Requests Tickets.without tasknumber #2647

Open
alf-cactus opened this issue Nov 11, 2024 · 3 comments
Open

Bug GUI Workflow Requests Tickets.without tasknumber #2647

alf-cactus opened this issue Nov 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working customer driven

Comments

@alf-cactus
Copy link
Collaborator

In GUI Workflow Requests Tickets. If you create a ticket with tasks with API and passed no tasknumber:

The Ticket is written to database but breaks the GUI. No more tickets, even valid ones, are displayed.

Fix: remove the ticket via API

Solutions: Either make tasknumber mandatory (@alf-cactus could do that) or change GUI behavior

@alf-cactus alf-cactus added bug Something isn't working customer driven labels Nov 11, 2024
@tpurschke
Copy link
Contributor

tpurschke commented Nov 12, 2024

@abarz722 what do you think - is there any contra-indication regarding mandatory task numbers from your side?

not sure if solving this on the db side with triggers is a better solution - https://chatgpt.com/share/67338b0d-058c-8007-a500-348e56d6a449

@abarz722
Copy link
Contributor

As the task number is only used as a sort criterion, a default value of 0 would probably be sufficient for the beginning. I have several tickets with all task numbers 0 in my database without causing problems.

@tpurschke
Copy link
Contributor

@abarz722 could we not simply drop the task_number and use the id of the reqtask table for sorting assuming tasks are created in the correct order?
So we would just have to generate the task number actually displayed (in the UI) - similar to the rule number.

@tpurschke tpurschke added this to the next consolidation issues milestone Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer driven
Projects
None yet
Development

No branches or pull requests

3 participants