Skip to content

Commit

Permalink
Merge pull request #1545 from zazuko/fix-1544
Browse files Browse the repository at this point in the history
fix: too long queries sent as GET
  • Loading branch information
giacomociti authored Oct 17, 2024
2 parents 5e6e9a6 + eb83409 commit 601b817
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-grapes-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cube-creator/shared-dimensions-api": patch
---

Querying hierarchies could cause `414 (URI Too Long)` error (re #1544)
4 changes: 3 additions & 1 deletion apis/shared-dimensions/lib/domain/shared-dimensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export async function getSharedTerms<C extends StreamClient | ParsingClient>({ s
}

const { constructQuery } = await shapeToQuery()
return constructQuery(shape).execute(client) as any
return constructQuery(shape).execute(client, {
operation: 'postDirect',
}) as any
}

async function loadShape(shape: string) {
Expand Down

0 comments on commit 601b817

Please sign in to comment.