Joystream / joystream

Joystream Monorepo
http://www.joystream.org
GNU General Public License v3.0
1.42k stars 115 forks source link

Query Node: Council term numbering causing issues (`electedCouncilId`) #4805

Open mochet opened 1 year ago

mochet commented 1 year ago

Problem

When using the query node with the following query: query MyQuery { electionRounds { id isFinished referendumStageVoting { id startedAtBlock } referendumStageRevealing { id startedAtBlock } endedAtBlock electedCouncilId electedCouncil { electedAtBlock endedAtBlock id } cycleId } }

there is a problem with electedCouncilId in that for the first few elections it returns normal numbers but upon reaching 9 switches to 0000000a, 0000000b, 0000000c and so on.

I do not understand why it does this but it has caused problems with Dapplooker.com (the dashboard team that builds us dashboards which shows view of council spending etc)