Title: fix(confluence): normalize space identifiers by BillLeoutsakosvl346 · Pull Request #7324 · simstudioai/sim · GitHub
Open Graph Title: fix(confluence): normalize space identifiers by BillLeoutsakosvl346 · Pull Request #7324 · simstudioai/sim
X Title: fix(confluence): normalize space identifiers by BillLeoutsakosvl346 · Pull Request #7324 · simstudioai/sim
Description: Summary Fixes Confluence workflow failures caused by mixing human-readable space keys with numeric Confluence Cloud space IDs. The mismatch pre-existed PR #7185: selectors could save a key such as ENG, while the Confluence V2 runtime paths and bodies require the numeric space ID. This PR: keeps numeric-ID selector semantics for V2 operations; gives search_in_space a key-based selector because V1 CQL searches by space key; migrates legacy saved search fields without changing public tool contracts; resolves legacy keys to numeric IDs for V2 calls, and legacy numeric IDs to keys for V1 search; checks current and archived spaces and requires an exact key match; leaves Confluence connectors unchanged because their CQL and sync behavior intentionally uses space keys. Affected operations Numeric V2 ID semantics: create_page get_space update_space delete_space list_pages_in_space create_blogpost list_blogposts_in_space list_space_labels list_space_permissions list_space_properties create_space_property delete_space_property Key semantics: search_in_space Atlassian API evidence V2 Space API documents numeric IDs for space paths and supports filtering the space collection by key. V2 Page API documents an integer space path ID for pages in a space. V2 Blog Post API documents an integer space path ID and spaceId request fields. V2 Space Properties API uses space IDs in property paths. V1 Search API accepts CQL. CQL Space field explicitly searches by space key. Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing Focused behavior-level coverage was added without duplicating every operation: legacy basic and advanced search values migrate, serialize, and reach the tool as spaceKey; a representative V2 operation resolves ENG to 12345, uses /spaces/12345/pages, and passes numeric 12345 through without lookup; legacy numeric search input resolves to ENG before constructing key-based V1 CQL. Validation completed: bun run test -- blocks/blocks/confluence.test.ts lib/internal/confluence/operations.test.ts lib/internal/confluence/execute-tool.test.ts lib/selectors/server/providers/confluence.test.ts connectors/confluence/confluence.test.ts blocks/blocks.test.ts — 6 files, 199 tests passed bun run apps/sim/scripts/check-canvas-sentences.ts --block=confluence_v2 — 46/46 passed targeted Biome checks — passed bun run type-check — passed bun run check:api-validation — passed git diff --check — passed Browser validation was attempted, but the stored Confluence OAuth credential returned Atlassian HTTP 401. No live provider result or screenshots are included; the PR was opened after that browser gate was explicitly waived. Reviewers should focus on selector value semantics, the search-only subblock migration, exact-match legacy normalization, and unchanged connector behavior. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) Screenshots/Videos Not included: live browser validation was blocked by the expired Confluence OAuth credential.
Open Graph Description: Summary Fixes Confluence workflow failures caused by mixing human-readable space keys with numeric Confluence Cloud space IDs. The mismatch pre-existed PR #7185: selectors could save a key such as ...
X Description: Summary Fixes Confluence workflow failures caused by mixing human-readable space keys with numeric Confluence Cloud space IDs. The mismatch pre-existed PR #7185: selectors could save a key such as ...
Opengraph URL: https://github.com/simstudioai/sim/pull/7324
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:868ec1f9-bcbb-52b2-5611-625dee78452b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E8DE:34FC0A:66EFC9:8DAD97:6AFB411C |
| html-safe-nonce | 89d8255f3c7b6dcc6983ee4e351d9ebfd101b2755e3483b5896eca3620da8b0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOERFOjM0RkMwQTo2NkVGQzk6OERBRDk3OjZBRkI0MTFDIiwidmlzaXRvcl9pZCI6IjEzODA4MjAxMTYxNjkyNDQ5NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 373a5315f382ad43ffeac5ab67d52d55a42043e3ead4747b973afbbc8720840b |
| hovercard-subject-tag | pull_request:4407478452 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/7324/files |
| twitter:image | https://avatars.githubusercontent.com/u/157128530?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/157128530?s=400&v=4 |
| og:image:alt | Summary Fixes Confluence workflow failures caused by mixing human-readable space keys with numeric Confluence Cloud space IDs. The mismatch pre-existed PR #7185: selectors could save a key such as ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a6c2f87cbcb6414452377b4967858ed6a66f1109 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width