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

Update schema records on merge to main #2

Open
ngerakines opened this issue Nov 29, 2024 · 5 comments
Open

Update schema records on merge to main #2

ngerakines opened this issue Nov 29, 2024 · 5 comments
Labels
enhancement New feature or request infra Changes to infrastructure or related tooling to support the repository

Comments

@ngerakines
Copy link
Contributor

When a PR with changes to community/lexicon/** is merged into the main branch, update the corresponding records in the @lexicon.community PDS.

Depends on #1.

@ngerakines ngerakines added enhancement New feature or request infra Changes to infrastructure or related tooling to support the repository labels Nov 29, 2024
@ebwinters
Copy link
Contributor

@ngerakines Do you have any outline of how this can be done? Are you thinking of having some migration endpoint on the PDS that GH actions will call into and update all records? Maybe I am also misunderstanding the idea here. Curious to hear any rough plans around this and happy to help as well

@ngerakines
Copy link
Contributor Author

A python script with env variables (GH action secrets) to adjust DNS records and then to make the "repository put" API call. Waiting on the RFC for lexicon resolution to move before starting on that.

@bnewbold
Copy link

I'm working on a goat sub-command which publishes individual lexicons to a repo. It wouldn't be hard to "sync" an entire directory of lexicon JSON files (recursively), in a way that can be used for CI/CD, if that would be helpful. Would need to find a way to distribute goat... docker? or maybe just invoking go run or go get.

@bnewbold
Copy link

Here is that goat tool, still in a PR, if you want to experiment with it or have feedback:
bluesky-social/indigo#888

The "public" functionality is pretty minimal. In theory it could do something more complex like a "sync" command to recursively update from a directory of lexicon JSON files.

@ngerakines
Copy link
Contributor Author

@bnewbold that is awesome! Looking at the code, the reverse NSID with _lexicon. maps to a plain DID (no prefix, suffix, or quotes). Sounds pretty straight forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infra Changes to infrastructure or related tooling to support the repository
Projects
None yet
Development

No branches or pull requests

3 participants