bluesky-social / atproto

Social networking technology created by Bluesky
Other
6.17k stars 432 forks source link

:construction: Proposal for ozone config lexicons #2560

Closed foysalit closed 1 month ago

foysalit commented 3 months ago

This proposal introduces a new entity config which is essentially a list of key value pairs where each key may have one or many values.

A few open questions

  1. Updates are tricky. The current proposal does not include updating a key or update values by wildcard.
  2. Create and update allows array input but delete only allows key and wildcard value input, do we want array input for deletion too?

One of the primary reasons why I'm in favor of calling this config and generalizing this is to facilitate storing shareable config for entire instance, that are currently browser based and as a result, user specific or stored in env var. For instance, our queue config is only stored in the env var of the client build and we could move that to the db under configs where each row with key queue would be the config for an individual queue. We also have external labeler config currently in review but ideally, we would want to store these on the server so that all mods using the instance see labels from same external labelers.

foysalit commented 1 month ago

We're moving forward with sets api instead of config https://github.com/bluesky-social/atproto/pull/2636