I am adding multiple tasks through the TaskService to comments added via the CommentService, triggered when a pull request is opened.
I add around 10 tasks right now as a test. Is there a way I can preserve the ordering of the tasks on the page? When I add them all and look at the table in the H2 database, they all have the same CREATED_TIMESTAMP as the millisecond value isn’t being preserved.
I would think that in that case the ID should take precedence (oldest first) but that seems to not be the case.
Is there a way to fix this outside of throttling the calls to the service (very hesitant as this would be 10+ seconds just to execute the code).