Skip to content

Conversation

meisterT
Copy link
Member

@meisterT meisterT commented Oct 6, 2024

This has been added in ef8c832

The first eventid will be 1. If the event feed reading client does not pass in a since_token or since_id, we set since_id to -1 to signal start reading from the beginning. In that case there is no previous event that can be expected to exist.

This was also reported as broken in a side comment of #2728

This has been added in DOMjudge@ef8c832

The first `eventid` will be 1. If the event feed reading client does not
pass in a `since_token` or `since_id`, we set `since_id` to `-1` to
signal start reading from the beginning. In that case there is no
previous event that can be expected to exist.
Copy link

sentry-io bot commented Oct 6, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: webapp/src/Controller/API/ContestController.php

Function Unhandled Issue
App\Controller\API\ContestController::getEventFeedAction Symfony\Component\HttpKernel\Exception\NotFoundHttpException: Contest with ID 'nwerc19' not found /src/Controller/API/ContestController.php in App\C...
Event Count: 1
App\Controller\API\ContestController::getEventFeedAction Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Invalid parameter "since_token" requested with value "33874". /src/Controller/API/Cont...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

@meisterT meisterT requested a review from eldering October 6, 2024 10:37
@eldering
Copy link
Member

eldering commented Oct 8, 2024

Looks like a typo I overlooked and that wasn't tested.

Copy link
Contributor

@Kevinjil Kevinjil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed while testing #2740

@meisterT meisterT added this pull request to the merge queue Oct 22, 2024
Merged via the queue into DOMjudge:main with commit fa8b8f5 Oct 22, 2024
26 checks passed
@meisterT meisterT deleted the eventfeedlast branch October 22, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants