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]: Ordering parameter in API (Tasks-Table) #1097

Open
gpascal123 opened this issue Oct 2, 2024 · 4 comments
Open

[BUG]: Ordering parameter in API (Tasks-Table) #1097

gpascal123 opened this issue Oct 2, 2024 · 4 comments
Assignees
Labels
bug Something isn't working server Hashtopolis API/Server related ui Hashtopolis UI related

Comments

@gpascal123
Copy link

gpascal123 commented Oct 2, 2024

f, for example, you sort by Dispatched/Searched, the table is initially sorted correctly. If you switch to another page and then back again or reload the tasks page, the following error message appears.
Image

Error in the API:
Image

Error occurs when sorting by

  • Name (parameter taskName)
  • Dispatched/Searched (parameter clientSignature)**
@gpascal123 gpascal123 converted this from a draft issue Oct 2, 2024
@gpascal123 gpascal123 added bug Something isn't working server Hashtopolis API/Server related ui Hashtopolis UI related labels Oct 2, 2024
@gpascal123 gpascal123 moved this to 📝 Todo in 🍺 Sprint October '24 Oct 2, 2024
@gpascal123 gpascal123 changed the title [BUG]: Ordering parameter in API [BUG]: Ordering parameter in API (Tasks-Table) Oct 2, 2024
@gluafamichl
Copy link
Contributor

gluafamichl commented Oct 15, 2024

I think the problem is an incorrect dataKey in tasks-table.component.ts (line 139). The dataKey 'clientSignature' does not exist in the Tasks table, that's why the PHP backend correctly throws an exception.
Currently I can't see, what the correct dataKey for this table column should be, what information is displayed in this special column?

@gluafamichl gluafamichl moved this from 📝 Todo to 🚧 In progress in 🍺 Sprint October '24 Oct 15, 2024
@gluafamichl
Copy link
Contributor

Just checked the old PHP UI, Dispatched/Searched column is excluded from sorting, maybe that's the correct solution for the new UI, too?

@gluafamichl
Copy link
Contributor

We have to check all tables in the new Web UI, there are quite a lot of mismatches in the dataKey settings (key names do not exist in Backend DB tables)
Sounds like a perfect bug to add some more unit tests ;-)

@gluafamichl
Copy link
Contributor

Will be checked again when reviewing new paging backend API.

@gluafamichl gluafamichl moved this from 🚧 In progress to ⏳🙄 Waiting for in 🍺 Sprint November '24 Nov 8, 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 server Hashtopolis API/Server related ui Hashtopolis UI related
Projects
Status: ⏳🙄 Waiting for
Status: 🚧 In progress
Status: No status
Development

No branches or pull requests

2 participants