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

[autovalidator] manual subnet synchronization button #22

Open
ppolewicz opened this issue Aug 19, 2024 · 0 comments
Open

[autovalidator] manual subnet synchronization button #22

ppolewicz opened this issue Aug 19, 2024 · 0 comments
Assignees

Comments

@ppolewicz
Copy link
Contributor

ppolewicz commented Aug 19, 2024

We should add a button which will be exposed on the top right in the django admin interface of subnets, where if someone clicks it, the new definitions of subnets are pulled from https://github.com/taostat/subnets-infos/blob/main/subnets.json and a difference between what's already in the database is calculated against what has just been downloaded from taostats / other similar source, in form of "the following subnets have been added" / removed / changed and finally if the operator would approve the changes, the state from the view would be synchronized to the state in the database. The validator operators would go to this interface every time they want to service a new subnet, click that, then subsequently they'd create a server for the given subnet and install the validator on it (manually or automatically)

The button should be right next to ADD SUBNET on the subnet list view.

As for the view, how it might look like, if you go select any parent entity in django admin and select delete from the dropdown on the top and click GO, it'll display a summary page which displays what would happen to the rest of the objects if you would confirm a delete.

Basically we need to re-use the frontend elements from django for synchronization of subnets. We'll later have another button which will get subnet developers from a different json, and finally we'll do a fully automated mode where the button will sort of click itself so that the operator doesn't need to do anything (if they trust the supply chain, that is).

To be done by Fel

Image

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

No branches or pull requests

2 participants