esi-issues icon indicating copy to clipboard operation
esi-issues copied to clipboard

Calendar event summaries endpoint retrieving past events

Open joaomlneto opened this issue 1 year ago • 0 comments

Bug

When querying the calendar endpoint without specifying from_event, the response returns event summaries from the past, instead of the expected upcoming events in chronological order from the current date as per the spec:

If no from_event ID is given, the resource will return the next 50 chronological event summaries from now.

Request

Be sure to include the HTTP method, path (including version), and any relevant parameters. Please do not include auth tokens. E.g.:

GET https://esi.evetech.net/latest/characters/401563624/calendar/?datasource=tranquility

Response

Status Code

200

Headers

Include relevant headers received. Timestamps and request ID is nice, you may not have all these values, fill out what you received (don't worry about headers not listed here, unless pertinent to your issue). E.g.:

Date: Sun, 20 Oct 2024 11:21:46 GMT
Expires: Sun, 20 Oct 2024 11:21:51 GMT
Last-Modified: Sun, 20 Oct 2024 11:21:46 GMT
X-ESI-Request-ID: 405b190e-3219-4ecc-950b-b7761bc3ac9e
ETag: "ec5d967d9cdc953f6005cc9b51ec8c66ed8829a31de306c9414e7cf3"

Body

[{
    "event_date": "2010-05-27T19:00:00Z",
    "event_id": 2695,
    "event_response": "not_responded",
    "importance": 0,
    "title": "REDACTED"
}, {
    "event_date": "2010-05-27T22:00:00Z",
    "event_id": 2687,
    "event_response": "tentative",
    "importance": 0,
    "title": "REDACTED"
},
…
]

Expected

Entries returned should be in the future.

Checklist

Check all boxes that apply to this issue:

  • [x] Bug description is provided
  • [x] Request path is provided
  • [x] Response status code is provided
  • [x] Response headers are provided
  • [x] Response body is provided
  • [x] Expected response is provided

joaomlneto avatar Oct 20 '24 11:10 joaomlneto