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

goat feature request: fetch record from appview #794

Open
snarfed opened this issue Nov 8, 2024 · 2 comments
Open

goat feature request: fetch record from appview #794

snarfed opened this issue Nov 8, 2024 · 2 comments

Comments

@snarfed
Copy link
Contributor

snarfed commented Nov 8, 2024

Hey @bnewbold! Thanks again for goat, it's great! Any chance you could add a flag to get and record * to make it talk to the appview instead of the PDS? I routinely debug cases where a record may or may not have made it all the way through the appview, so I'd love to be able to easily see if a record is on both, or just the PDS, or neither.

Thanks in advance!

@bnewbold
Copy link
Collaborator

bnewbold commented Nov 8, 2024

oh wow!

https://api.bsky.app/xrpc/com.atproto.repo.getRecord?repo=did:plc:dyyvywontyeuaegemczcushz&collection=app.bsky.feed.post&rkey=3laf6a5r77h2m

I didn't actually realize the appview implemented that endpoint! jeez.

ok, I think the way to do this will be having a "service" argument which allows specifying a specific host to fetch from. That would work with the appview or relay or manually specifying a PDS. does that work for you?

FWIW we should probably have that endpoint return an HTTP header indicating the last processed rev of the repo, which would help with debugging. And then goat would need some way to surface that.

@snarfed
Copy link
Contributor Author

snarfed commented Nov 8, 2024

--service sgtm, and last processed rev too!

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

No branches or pull requests

2 participants