Skip to content

Commit

Permalink
🐛 Fix tags length (#3294)
Browse files Browse the repository at this point in the history
* 🐛 Allow tag item longer than 25 char

* 📝 Add changeset
  • Loading branch information
foysalit authored Dec 27, 2024
1 parent 22a96d6 commit d90d999
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .changeset/curvy-horses-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@atproto/ozone": patch
"@atproto/api": patch
---

Limit tags filter to 25 max and remove 25 char limit for tag item
2 changes: 1 addition & 1 deletion lexicons/tools/ozone/moderation/queryStatuses.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@
},
"tags": {
"type": "array",
"maxLength": 25,
"items": {
"type": "string",
"maxLength": 25,
"description": "Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters"
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/client/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12515,9 +12515,9 @@ export const schemaDict = {
},
tags: {
type: 'array',
maxLength: 25,
items: {
type: 'string',
maxLength: 25,
description:
'Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/bsky/src/lexicon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2177,13 +2177,13 @@ export class ChatBskyModerationNS {

type SharedRateLimitOpts<T> = {
name: string
calcKey?: (ctx: T) => string | null
calcKey?: (ctx: T) => string
calcPoints?: (ctx: T) => number
}
type RouteRateLimitOpts<T> = {
durationMs: number
points: number
calcKey?: (ctx: T) => string | null
calcKey?: (ctx: T) => string
calcPoints?: (ctx: T) => number
}
type HandlerOpts = { blobLimit?: number }
Expand Down
4 changes: 2 additions & 2 deletions packages/ozone/src/lexicon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2638,13 +2638,13 @@ export class ToolsOzoneTeamNS {

type SharedRateLimitOpts<T> = {
name: string
calcKey?: (ctx: T) => string | null
calcKey?: (ctx: T) => string
calcPoints?: (ctx: T) => number
}
type RouteRateLimitOpts<T> = {
durationMs: number
points: number
calcKey?: (ctx: T) => string | null
calcKey?: (ctx: T) => string
calcPoints?: (ctx: T) => number
}
type HandlerOpts = { blobLimit?: number }
Expand Down
2 changes: 1 addition & 1 deletion packages/ozone/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12515,9 +12515,9 @@ export const schemaDict = {
},
tags: {
type: 'array',
maxLength: 25,
items: {
type: 'string',
maxLength: 25,
description:
'Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/pds/src/lexicon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2638,13 +2638,13 @@ export class ToolsOzoneTeamNS {

type SharedRateLimitOpts<T> = {
name: string
calcKey?: (ctx: T) => string | null
calcKey?: (ctx: T) => string
calcPoints?: (ctx: T) => number
}
type RouteRateLimitOpts<T> = {
durationMs: number
points: number
calcKey?: (ctx: T) => string | null
calcKey?: (ctx: T) => string
calcPoints?: (ctx: T) => number
}
type HandlerOpts = { blobLimit?: number }
Expand Down
2 changes: 1 addition & 1 deletion packages/pds/src/lexicon/lexicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12515,9 +12515,9 @@ export const schemaDict = {
},
tags: {
type: 'array',
maxLength: 25,
items: {
type: 'string',
maxLength: 25,
description:
'Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters',
},
Expand Down

0 comments on commit d90d999

Please sign in to comment.