Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

[BUG] Tasking Manager validation time too big #327

Open
NicolasGrosjean opened this issue Sep 18, 2022 · 3 comments
Open

[BUG] Tasking Manager validation time too big #327

NicolasGrosjean opened this issue Sep 18, 2022 · 3 comments
Assignees
Labels
type:bug Something isn't working

Comments

@NicolasGrosjean
Copy link
Contributor

NicolasGrosjean commented Sep 18, 2022

Describe the bug

The validation time of the tasking manager is too big.

I suppose, the time are aggregated without manage the fact a user validate several tasks at the same time.

To Reproduce

Execute /mapathon/detail with the following request body

{"fromTimestamp":"2022-09-15T08:00:00.000","toTimestamp":"2022-09-15T08:15:00.000","projectIds":[13503],"hashtags":[]}

Expected behavior

All time are lower than 7,200 (2 hours in seconds).

Screenshots

image

@NicolasGrosjean NicolasGrosjean added the type:bug Something isn't working label Sep 18, 2022
@NicolasGrosjean
Copy link
Contributor Author

NicolasGrosjean commented Sep 18, 2022

TODO list:

@NicolasGrosjean
Copy link
Contributor Author

Example of SQL to reproduce issue after using #329

-- Copy values which are in reality in project 13503 and tasks 2, 3 and 47, done by another user
COPY public.task_history (id, project_id, task_id, action, action_text, action_date, user_id) FROM stdin;
22217985	1	169	LOCKED_FOR_VALIDATION	01:26:17.469080	2022-09-15 14:26:01.778760	360183
22217986	1	170	LOCKED_FOR_VALIDATION	01:26:17.487379	2022-09-15 14:26:01.804268	360183
22217994	1	171	LOCKED_FOR_VALIDATION	01:26:17.534701	2022-09-15 14:26:02.108510	360183
22218532	1	169	STATE_CHANGE	VALIDATED	2022-09-15 15:52:19.237511	360183
22218533	1	170	STATE_CHANGE	VALIDATED	2022-09-15 15:52:19.286513	360183
22218541	1	171	STATE_CHANGE	VALIDATED	2022-09-15 15:52:19.637390	360183
\.

@kshitijrajsharma
Copy link
Member

kshitijrajsharma commented Sep 19, 2022

Interesting issue ! Thank you for this detailed info on your issue ! @NicolasGrosjean I will also look deeply in to this , So that i can provide support !
cc : @ramyaragupathy

@emi420 emi420 self-assigned this Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants