Skip to content

Revert "Pass workspaceId to Tables iframe via parentData for dashboard filtering"#1627

Merged
cezudas merged 1 commit intomainfrom
revert-1609-cezudas/OPS-3008
Nov 17, 2025
Merged

Revert "Pass workspaceId to Tables iframe via parentData for dashboard filtering"#1627
cezudas merged 1 commit intomainfrom
revert-1609-cezudas/OPS-3008

Conversation

@cezudas
Copy link
Copy Markdown
Contributor

@cezudas cezudas commented Nov 17, 2025

Reverts #1609
Part of OPS-3008.

@linear
Copy link
Copy Markdown

linear Bot commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts changes that passed workspaceId to the Tables iframe via parentData for dashboard filtering (related to OPS-3008). The revert removes the logic that retrieved workspaceId from either the project or organization context and simplified the parentData object back to only include Candu-related properties.

Key changes:

  • Removed project and platform hooks that were used to fetch workspaceId
  • Simplified parentData object to only include Candu properties (isCanduEnabled, userId, canduClientToken)
  • Removed workspaceId retrieval logic and type assertions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const parentData = encodeURIComponent(JSON.stringify(parentDataObj));
const parentData = encodeURIComponent(
JSON.stringify({ isCanduEnabled, userId: canduUserId, canduClientToken }),
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parentData object includes isCanduEnabled directly without conditionally checking if Candu is enabled. This differs from the reverted code which only included isCanduEnabled: true when it was actually enabled. If isCanduEnabled is false, it will now be passed as false rather than being omitted, which may cause unintended behavior in the iframe.

Suggested change
JSON.stringify({ isCanduEnabled, userId: canduUserId, canduClientToken }),
JSON.stringify({
...(isCanduEnabled ? { isCanduEnabled: true } : {}),
userId: canduUserId,
canduClientToken,
}),

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

@cezudas cezudas merged commit fbe5a81 into main Nov 17, 2025
22 checks passed
@cezudas cezudas deleted the revert-1609-cezudas/OPS-3008 branch November 17, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants