-
Notifications
You must be signed in to change notification settings - Fork 641
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
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4f42f34
Lexicon: Add custom label definitions and remove modservice descriptions
pfrazee 4f7ca51
Lexicon: Update moderation prefs
pfrazee 6b53142
SDK updates: remove label groups, reduce builtin labels, update mod-p…
pfrazee 8097adf
Lexicon: Update global labels with new reduced set
pfrazee 6334f33
Lexicon: Remove moderation.getService and add detailed option to getS…
pfrazee be81d51
Lexicons: add severity=none to custom label value defs
pfrazee ce9ffd4
Implement custom label-value definition tooling
pfrazee 36fb2bf
All custom labels are no-self
pfrazee a03632f
Backend impl for labeler lexicon updates (#2258)
dholms 343927e
Lexicon: modservice -> labeler
pfrazee 0f615b5
Remove x- prefix behavior; add label value syntax rules; add custom l…
pfrazee 94d8eb5
Lexicon: Remove the ability to choose a defaultSetting from custom la…
pfrazee e3b33a5
Rework test suites
pfrazee 05331d1
Give behaviors to all labels regardless of target
pfrazee bfd942d
sync up backend with lex changes
dholms 375a4ca
fix labelers in dev-env agent
dholms a34dae9
lint protos
dholms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,6 @@ | |
"uri": { "type": "string", "format": "at-uri" }, | ||
"cid": { "type": "string", "format": "cid" }, | ||
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, | ||
"description": { | ||
"type": "string", | ||
"maxGraphemes": 300, | ||
"maxLength": 3000 | ||
}, | ||
"descriptionFacets": { | ||
"type": "array", | ||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" } | ||
}, | ||
"likeCount": { "type": "integer", "minimum": 0 }, | ||
"viewer": { "type": "ref", "ref": "#modServiceViewerState" }, | ||
"indexedAt": { "type": "string", "format": "datetime" }, | ||
|
@@ -34,15 +25,6 @@ | |
"uri": { "type": "string", "format": "at-uri" }, | ||
"cid": { "type": "string", "format": "cid" }, | ||
"creator": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }, | ||
"description": { | ||
"type": "string", | ||
"maxGraphemes": 300, | ||
"maxLength": 3000 | ||
}, | ||
"descriptionFacets": { | ||
"type": "array", | ||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" } | ||
}, | ||
"policies": { | ||
"type": "ref", | ||
"ref": "app.bsky.moderation.defs#modServicePolicies" | ||
|
@@ -64,29 +46,22 @@ | |
}, | ||
"modServicePolicies": { | ||
"type": "object", | ||
"required": ["reportReasons", "labelValues"], | ||
"required": ["labelValues"], | ||
"properties": { | ||
"description": { | ||
"type": "string", | ||
"maxGraphemes": 10000, | ||
"maxLength": 100000 | ||
}, | ||
"descriptionFacets": { | ||
"type": "array", | ||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" } | ||
}, | ||
"reportReasons": { | ||
"labelValues": { | ||
"type": "array", | ||
"description": "The label values which this labeler publishes. Be sure to prefix custom labels with 'x-'.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just to check - we're doing away with both descriptions? |
||
"items": { | ||
"type": "ref", | ||
"ref": "com.atproto.moderation.defs#reasonType" | ||
"ref": "com.atproto.label.defs#labelValue" | ||
} | ||
}, | ||
"labelValues": { | ||
"customLabelValues": { | ||
"type": "array", | ||
"description": "Label values created by this labeler and scoped exclusively to it.", | ||
"items": { | ||
"type": "ref", | ||
"ref": "com.atproto.label.defs#labelValue" | ||
"ref": "com.atproto.label.defs#labelValueDefinition" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'm dropping the custom report reasons for now, we'll FF with it but I think we gotta eject for now