-
Notifications
You must be signed in to change notification settings - Fork 554
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
Push labels to PDS #1423
Push labels to PDS #1423
Conversation
"com.atproto.repo.strongRef" | ||
] | ||
}, | ||
"createLabelVals": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i kinda want this to just take already formatted labels 🤔
so all the pds has to do is dumb shuffling of them off to the database, no formatting or anything & nowhere that the labels could get out of sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like that more—on it 👍
}, | ||
}) | ||
|
||
const res = await retryHttp(() => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does max of 3 right? seems good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems solid 👍
as i mentioned, i'm inclined to do this with full label objects instead of create/deleteLabelVals
. Just seems simpler & less prone to small bugs. But also not married to it & think this is totally fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* add lexicon for unspecced applyLabels procedure * implement label push to pds via unspecced.applyLabels * add hive retry to bsky appview * build * update applyLabels to work with raw label data * update bsky hive labeler * remove build
* add lexicon for unspecced applyLabels procedure * implement label push to pds via unspecced.applyLabels * add hive retry to bsky appview * build * update applyLabels to work with raw label data * update bsky hive labeler * remove build
Allows the appview to push labels to the PDS using an unspecced route, as a temporary measure. Also adds an http retry to the hive labeler.