botblock / BotBlock.org

BotBlock - The List of Discord Bot Lists and Services
https://botblock.org/
Mozilla Public License 2.0
28 stars 8 forks source link

Add/edit/remove API libs from the web #12

Closed MattIPv4 closed 3 years ago

MattIPv4 commented 4 years ago

Website/API Suggestion

Description

The API libraries page runs off of a database table that contains all the library information that is displayed. This should have a way on the website to be able to add, edit & remove API libraries without having to manually access the database to make the changes.

Auth restrictions on this page:

Why

No one likes having to manually edit a database to make changes to a website page, let's make this moderator friendly by having a page on the website for it.

Andre601 commented 4 years ago

And maybe also have a sub-page/place here where the info is stored? Like a /libraries folder containing yml files where people could PR updates to the information?

MattIPv4 commented 4 years ago

This is stored in the database, not files. YAML files are only used for development seed data. If there are changes that need to be made, the best place to let us know would be the Discord server, or creating an issue here to request the change.

A-Trash-Coder commented 3 years ago

Is there an updated seed for the libraries table, or is the one in the repo the latest?

MattIPv4 commented 3 years ago

The seed data in the repo is pretty old but should still work just fine to development :)

A-Trash-Coder commented 3 years ago

My bad, I'm meaning the columns in the table, looking at other aspects of the site, there seems to be other columns that aren't included

A-Trash-Coder commented 3 years ago

Cause I really have no way to look at columns in the tables rather than the migration files, which look to be old

MattIPv4 commented 3 years ago

Request logging + kv cache have been added since the last seed export, but neither need or expect seed data.

A-Trash-Coder commented 3 years ago

https://github.com/botblock/BotBlock.org/pull/81