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

Add custom label definitions and tune various behaviors #2237

Merged
merged 17 commits into from
Mar 4, 2024

Conversation

pfrazee
Copy link
Collaborator

@pfrazee pfrazee commented Feb 28, 2024

This PR updates the 3p-labelers with custom label definitions and some simplifications to labeler declarations and label management. This PR leaves multiple TODOs but it's at a good stopping-point to review the approach being taken.

  • Adds custom label definitions
    • Added com.atproto.label.defs#labelValueDefinition
    • Added labelerDid?: string to the label preference
    • Added tooling for custom label definitions to be passed into the moderate methods (unfortunately required another change to the ModerationOpts signature)
  • Drops moderation.getService and updates the batch method to support a detailed flag (still needs backend implementation)
  • Drops the concept of label-groups entirely (we now configure label preferences directly)
  • Dramatically reduces the set of globally-defined labels

@@ -64,29 +46,22 @@
},
"modServicePolicies": {
"type": "object",
"required": ["reportReasons", "labelValues"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm dropping the custom report reasons for now, we'll FF with it but I think we gotta eject for now

@pfrazee pfrazee marked this pull request as ready for review February 29, 2024 21:56
"type": "array",
"description": "The label values which this labeler publishes. Be sure to prefix custom labels with 'x-'.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

just to check - we're doing away with both descriptions?

@pfrazee pfrazee force-pushed the 3p-labelers-lexicon-updates branch from d41cda1 to 343927e Compare March 2, 2024 19:01
@dholms dholms merged commit 8f48d4d into 3p-labelers Mar 4, 2024
10 checks passed
@dholms dholms deleted the 3p-labelers-lexicon-updates branch March 4, 2024 20:24
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