Skip to content

SCAL-304413: Add TSE event for RefreshLiveboardBrowserCache#497

Open
ajeet-lakhani-ts wants to merge 1 commit intomainfrom
SCAL-304413--add-tse-event-for-lb-cache
Open

SCAL-304413: Add TSE event for RefreshLiveboardBrowserCache#497
ajeet-lakhani-ts wants to merge 1 commit intomainfrom
SCAL-304413--add-tse-event-for-lb-cache

Conversation

@ajeet-lakhani-ts
Copy link
Copy Markdown
Collaborator

No description provided.

@ajeet-lakhani-ts ajeet-lakhani-ts requested a review from a team as a code owner April 7, 2026 08:52
@ajeet-lakhani-ts ajeet-lakhani-ts force-pushed the SCAL-304413--add-tse-event-for-lb-cache branch from 11e8d08 to ec297f4 Compare April 7, 2026 08:53
@sonar-prod-ts
Copy link
Copy Markdown

sonar-prod-ts bot commented Apr 7, 2026

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the RefreshLiveboardBrowserCache member to the EmbedEvent, HostEvent, and Action enums to support clearing the browser cache for Liveboard ChartViz containers. The review feedback correctly identifies that the JSDoc examples for these new members contain placeholder logic and irrelevant payload properties (such as sendToSelf) likely copied from existing events; these examples should be updated to accurately reflect the cache refresh functionality.

Comment on lines +3695 to +3698
* liveboardEmbed.on(EmbedEvent.RefreshLiveboardBrowserCache, (payload) => {
* console.log('Send test email', payload);
* // payload: { liveboardId: string, sendToSelf: boolean }
* })
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The example code for EmbedEvent.RefreshLiveboardBrowserCache contains a console.log message and payload description that appear to be copied from another event. The log message should be updated to be relevant to refreshing the cache, and the payload for this event likely does not include sendToSelf.

Suggested change
* liveboardEmbed.on(EmbedEvent.RefreshLiveboardBrowserCache, (payload) => {
* console.log('Send test email', payload);
* // payload: { liveboardId: string, sendToSelf: boolean }
* })
* liveboardEmbed.on(EmbedEvent.RefreshLiveboardBrowserCache, (payload) => {
* console.log('Liveboard browser cache refreshed', payload);
* // payload: { liveboardId: string }
* })

Comment on lines +5781 to +5793
* @example
* ```js
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache, {
* sendToSelf: true,
* })
* ```
* @example
* ```js
* // Send to all recipients
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache, {
* sendToSelf: false,
* })
* ```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The examples for HostEvent.RefreshLiveboardBrowserCache seem to be copy-pasted from SendTestScheduleEmail. The sendToSelf payload and the comment // Send to all recipients are not relevant for an event that clears the browser cache. This event likely doesn't require a payload, and the two examples can be consolidated into one.

Suggested change
* @example
* ```js
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache, {
* sendToSelf: true,
* })
* ```
* @example
* ```js
* // Send to all recipients
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache, {
* sendToSelf: false,
* })
* ```
* @example
* liveboardEmbed.trigger(HostEvent.RefreshLiveboardBrowserCache);

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@thoughtspot/visual-embed-sdk@497

commit: ec297f4

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.

1 participant