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

Migrate frontpage post to be lexicon first #199

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tom-sherman
Copy link
Contributor

This is the first PR in a series to migrate us to be "lexicon-first". In that we define our types in atproto lexicon DSL and then generate the types, schemas, and API clients from that.

I'm going type-by-type with the end goal of basically removing all of our frontpage-specific code in the lib/data/atproto folder.

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atproto-browser ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:46pm
frontpage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:46pm
unravel ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:46pm

Comment on lines +151 to +153
await atproto.fyi.unravel.frontpage.post.delete({
rkey,
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is essentialy untyped because of a bug in the lex-cli generated code. See bluesky-social/atproto#2952

I'll probably leave this in draft until a solution is found for that.

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

Successfully merging this pull request may close these issues.

1 participant