-
Notifications
You must be signed in to change notification settings - Fork 6
worksheet terminology update, SCAL-278257 fix #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ShashiSubramanya
commented
Oct 17, 2025
- Replaced Worksheet terminology with Model
- Updated description text for HostEvent.GetIframeUrl as per SCAL-278257
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Summary of ChangesHello @ShashiSubramanya, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on refining the codebase's terminology by consistently replacing 'Worksheet' with 'Model' to ensure uniformity across the application's interfaces and documentation. Additionally, it includes a minor but important documentation update for the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this 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 updates the terminology from 'Worksheet' to 'Model' across various files and also updates a description for HostEvent.GetIframeUrl. The changes are mostly in comments and string literals. I've noticed a few places where property or constant names were not updated, leading to inconsistencies between the code and its documentation. I've left specific comments with suggestions to address these for better code clarity and maintainability. I also found a typo in a constant name.
| * The ID of the worksheet to use for the conversation. | ||
| * The ID of the Model to use for the conversation. | ||
| */ | ||
| worksheetId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the comment at line 13 was updated to use the term 'Model', the property name worksheetId remains unchanged, creating an inconsistency. To fully align with the terminology update across the SDK, consider renaming this property to modelId. This would likely be a breaking change and require updates in other parts of the codebase where this property is used, such as in the SpotterAgentEmbed and ConversationService classes.
| * Disable the data source selection option. | ||
| * @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw | ||
| */ | ||
| disableWorksheetChange?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property name disableWorksheetChange is inconsistent with its updated comment which refers to 'data source'. For consistency with the terminology update, consider renaming this to disableDataSourceChange. This would be a breaking change requiring updates where it's used, including the Param enum.
| * Hide the data source selection panel. | ||
| * @version SDK: 1.26.0 | ThoughtSpot: 9.8.0.cl, 9.8.0.sw | ||
| */ | ||
| hideWorksheetSelector?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** | ||
| * Show or hide sample questions. | ||
| * The sample questions are autogenerated based on the worksheet | ||
| * The sample questions are autogenerated based on the data Model. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase 'data Model.' is grammatically incorrect with the trailing period and could be more concise. For consistency with other terminology changes, consider using just 'Model'. This also resolves the grammatical error.
| * The sample questions are autogenerated based on the data Model. | |
| * The sample questions are autogenerated based on the Model |
| export const ERROR_MESSAGE = { | ||
| INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.', | ||
| SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a worksheet to get started', | ||
| SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a Model to get started', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This key has a typo ('WORKSHEED' should be 'WORKSHEET'). Given the terminology update, it would be more consistent to rename the key to SPOTTER_EMBED_MODEL_ID_NOT_FOUND.
| SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND: 'Please select a Model to get started', | |
| SPOTTER_EMBED_MODEL_ID_NOT_FOUND: 'Please select a Model to get started', |
commit: |
|
SonarQube Quality Gate
|







