-
Notifications
You must be signed in to change notification settings - Fork 722
❇️ Ozone user agent #3991
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
base: main
Are you sure you want to change the base?
❇️ Ozone user agent #3991
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,8 @@ | |
"createdBy": { "type": "string", "format": "did" }, | ||
"createdAt": { "type": "string", "format": "datetime" }, | ||
"creatorHandle": { "type": "string" }, | ||
"subjectHandle": { "type": "string" } | ||
"subjectHandle": { "type": "string" }, | ||
"userAgent": { "type": "ref", "ref": "#userAgent" } | ||
} | ||
}, | ||
"modEventViewDetail": { | ||
|
@@ -103,7 +104,8 @@ | |
"items": { "type": "ref", "ref": "#blobView" } | ||
}, | ||
"createdBy": { "type": "string", "format": "did" }, | ||
"createdAt": { "type": "string", "format": "datetime" } | ||
"createdAt": { "type": "string", "format": "datetime" }, | ||
"userAgent": { "type": "ref", "ref": "#userAgent" } | ||
} | ||
}, | ||
"subjectStatusView": { | ||
|
@@ -894,6 +896,21 @@ | |
"description": "The total number of records labeled as a result of the user's reports." | ||
} | ||
} | ||
}, | ||
"userAgent": { | ||
"type": "object", | ||
"description": "User agent information for tracing the source of the action", | ||
"required": ["name"], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name/identifier of the source (e.g., 'automod', 'ozone/workspace')" | ||
}, | ||
"extra": { | ||
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.
|
||
"type": "unknown", | ||
"description": "Additional arbitrary metadata about the source" | ||
} | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,19 @@ | |
}, | ||
"subjectBlobCids": { | ||
"type": "array", | ||
"items": { "type": "string", "format": "cid" } | ||
"items": { | ||
"type": "string", | ||
"format": "cid" | ||
} | ||
}, | ||
"createdBy": { "type": "string", "format": "did" } | ||
"createdBy": { | ||
"type": "string", | ||
"format": "did" | ||
}, | ||
"userAgent": { | ||
"type": "ref", | ||
"ref": "tools.ozone.moderation.defs 6D4E #userAgent" | ||
} | ||
Comment on lines
+56
to
+59
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. My only confusion about this kind of usage is that there is also the |
||
} | ||
} | ||
}, | ||
|
@@ -57,7 +67,11 @@ | |
"ref": "tools.ozone.moderation.defs#modEventView" | ||
} | ||
}, | ||
"errors": [{ "name": "SubjectHasAction" }] | ||
"errors": [ | ||
{ | ||
"name": "SubjectHasAction" | ||
} | ||
] | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 assume also using an actual user-agent string (in this sense) would also be welcome.