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

Content directory smart contracts: Languages, categories and licenses #1919

Open
Lezek123 opened this issue Dec 15, 2020 · 0 comments
Open

Comments

@Lezek123
Copy link
Contributor

Lezek123 commented Dec 15, 2020

If we'd only rely on the initial idea described in #1816, then in order to update the set of avilable languages / categories / licenses we would need to update the metadata json schema that includes them (ie. in form of json-schema enum type), create a PR, publish new version of content directory lib and CLI and possibly update and re-deploy all other projects that rely on the previous schema (ie. query node and possibly Atlas once it includes uploading / channel management)

The easiest way to avoid that would be have some representation of categories and languages in smart contracts instead. This seems to be the only way to handle "choice type" video/channel properties for which we want curators / lead to be able to add new possible choices without the need to change any actual code (so perhaps that would also include licenses?)

In that case each language, category and license would have it's own distinct metadata (provided as json string) and the contracts would expose methods to add / update / remove entities, executable by the lead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants