esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

`/characters/{character_id}/calendar/` returns incorrect `event_response` #1356

Open joaomlneto opened 1 year ago

joaomlneto commented 1 year ago

Bug

The field event_response in each entry returned by the /characters/{character_id}/calendar/ endpoint should indicate whether the character has accepted/declined/tentative/not yet responded to each event.

However, its value appears to be completely random/nonsense. For example, an event where I haven't responded it can show any value. It also doesn't match the "majority of attendees", as an event with 2/3 declined shows as tentative.

Querying the response from the individual event endpoint (/characters/{character_id}/calendar/{event_id}/) yields the correct value, which matches the one from the EVE client.

As a concrete example, event with ID 2766948 in the EVE client shows as not_responded: image

The "list events" endpoint returns:

[
  {
    "event_id": 2766948,
    "event_response": "tentative",
    …
  }
  …
]

But querying the specific event endpoint yields the correct result:

{
    "event_id": 2766948,
    "response": "not_responded",
}

Checklist

Check all boxes that apply to this issue: