Closed Skillz4Killz closed 6 years ago
According to the JSON API spec, this is valid.
In a single document, you can think of the type and id as a composite key that uniquely references resource objects in another part of the document.
This cannot be "fixed" without rewriting (or duplicating) either team or player objects, which breaks current and future applications that cache that data. :-1:
@schneefux if it was a feature like that would it not be true for every account? For the majority 99% of accounts, this is not the case. However, a few seem to have a bug where their team id and player id are identical. If it was intended to be like this then it would have been true for all accounts.
For example: cUrl: https://api.dc01.gamelockerapp.com/shards/na/matches?page[offset]=0&page[limit]=50&sort=-createdAt&filter[playerNames]=Levatikyn
This will give you a player and team id that is unique. For the majority of users, the id is unique as they should be but for some rare circumstances, it's not.
Yeah, this is definitely weird. You're right, each object should have a globally unique guid, period. It should identify a single object and no duplication should exist across types.
We'll find out if this is a problem with the service, or the game. Strange.
@schneefux can you provide a specific matchID where this is an issue? I notice that got omitted.
FWIW - ShardID and TitleID shouldn't be blank either.
I'm not sure that this is actually a bug, according to the JSON-API spec objects are uniquely identified by (id, type)
, id only has to be unique during creation of a type (that is, no players have the same id).
This seems like more of a failing on the developer side.
PlayerId is supposed to be unique but this is causing some bugs where the playerId is returning the same id value as the team id. It becomes impossible to differentiate the players since the id is no longer unique. With both IGN's and player id no longer being unique to a player, it becomes impossible to be able to identify a player with accuracy.
cUrl: https://api.dc01.gamelockerapp.com/shards/na/matches?page[offset]=0&page[limit]=50&sort=-createdAt&filter[playerNames]=LaidToRest