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

Push labels to PDS #1423

Merged
merged 8 commits into from
Aug 3, 2023
Merged

Push labels to PDS #1423

merged 8 commits into from
Aug 3, 2023

Conversation

devinivy
Copy link
Collaborator

@devinivy devinivy commented Aug 2, 2023

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.

"com.atproto.repo.strongRef"
]
},
"createLabelVals": {
Copy link
Collaborator

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

Copy link
Collaborator Author

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(() =>
Copy link
Collaborator

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 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup!

Copy link
Collaborator

@dholms dholms left a 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

Copy link
Collaborator

@dholms dholms left a comment

Choose a reason for hiding this comment

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

:shipit:

@devinivy devinivy merged commit e5e24d5 into main Aug 3, 2023
@devinivy devinivy deleted the push-pds-labels branch August 3, 2023 16:25
mloar pushed a commit to mloar/atproto that referenced this pull request Sep 26, 2023
* 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
mloar pushed a commit to mloar/atproto that referenced this pull request Nov 15, 2023
* 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
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

Successfully merging this pull request may close these issues.

2 participants