Open yourheropaul opened 4 years ago
Isn't the application_id
field in the same struct what you are looking for?
edit:
Here I meant are you confusing application_id
with curator_opening_id
field..
Or are you proposing adding a new map opening id -> to a vector of application id ?
... because there is a one to many relationship between an opening and application
Note: this was replicated using PR #103, which may be outdated. All calls are assumed to be via polkadot.js via Pioneer
Problem
When a new content curators working group application has been made successfully to an active opening, the
curator_opening_id
seems to be a sequential ID for the opening. This does not correlate with theCuratorApplicationById
storage. This is quite counter-intuitive.Steps to reproduce
A
) and make sure it's accepting applications. Then create a second group -B
- and make sure that's also accepting applications.A
, then make a second application toB
, and a third application toA
.application_id
andcurator_opening_id
field values for the applications toA
. Ideally, theircurator_opening_id
values would represent the values in theCuratorApplicationById
storage, not their sequential IDs.Example
The screenshot below illustrates the issue using the nascent roles admin tab, starting with a fresh, local devnet at block 1.
Here, two openings have been created, following the steps above; the one at the top is effectively
A
and the bottom isB
. After the openings were created, three applications were made in the patternA
,B
,A
as described in the steps above.The first column (
WG ID
) contains the value ofcurator_opening_id
for each application. As you can see, this value is sequential, and is not the map key forCuratorApplicationById
.What I'd like to see
The value of
curator_opening_id
for each application should be the same asCuratorApplicationById
. This will allow Pioneer to look up application data with only the working group ID.┆Issue is synchronized with this Asana task by Unito