Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: standardize how metadata is stored everywhere #251

Open
elboletaire opened this issue Sep 6, 2023 · 0 comments
Open

feature: standardize how metadata is stored everywhere #251

elboletaire opened this issue Sep 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@elboletaire
Copy link
Member

Describe the feature

Right now we have (at least) two ways of storing metadata:

  • In a almost-free way in elections, allowing us to define the meta as we wish
  • In the type of Array<{key: string, value: any}> for Account.meta

There's no way to limit how account.meta is stored, like we're doing right now; it would be better to have the same type we used for election.meta.

Motivation

Standardization and ease of use.

Proposal

To use the exact same type signature we used for ElectionMeta in 325aa9f

Components affected

Mainly Account, but I'm not sure right now if we have any other meta field a part from the election and the account.. if we have, it may be a good idea to standardize all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants