-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: external merge request from Contributor #36251
chore: external merge request from Contributor #36251
Conversation
…a-property-of-table-widget-doesnt-show-up-on-auto-complete' into external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis pull request introduces a new property, Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
🔴 There's new test files in JS, please port to TS and re-trigger Cypress tests:
|
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.js (1)
1-77
: Great job on the Cypress test case! The code is following most of the best practices. Here are a couple of suggestions to make it even better:
Consider performing login, logout, or signup via API using the provided helper functions like
LoginFromAPI
,LogOutviaAPI
, andSignupFromAPI
. This can speed up the test execution by avoiding the UI interactions for these common steps.When using the
expect
statement for assertions, try to include multiple assertions to make the test more robust. For example, instead of just checking the visibility of thefilteredTableData
property, you could also assert on its text content or other attributes.Keep up the good work and let me know if you have any questions!
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (3)
- app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.js (1 hunks)
- app/client/src/widgets/TableWidgetV2/widget/checkFilteredDataProperty.test.ts (1 hunks)
- app/client/src/widgets/TableWidgetV2/widget/index.tsx (1 hunks)
Additional context used
Path-based instructions (1)
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.js (1)
Pattern
app/client/cypress/**/**.*
: Review the following e2e test code written using the Cypress test library. Ensure that:
- Follow best practices for Cypress code and e2e automation.
- Avoid using cy.wait in code.
- Avoid using cy.pause in code.
- Avoid using agHelper.sleep().
- Use locator variables for locators and do not use plain strings.
- Use data-* attributes for selectors.
- Avoid Xpaths, Attributes and CSS path.
- Avoid selectors like .btn.submit or button[type=submit].
- Perform logins via API with LoginFromAPI.
- Perform logout via API with LogOutviaAPI.
- Perform signup via API with SignupFromAPI.
- Avoid using it.only.
- Avoid using after and aftereach in test cases.
- Use multiple assertions for expect statements.
- Avoid using strings for assertions.
- Do not use duplicate filenames even with different paths.
- Avoid using agHelper.Sleep, this.Sleep in any file in code.
Additional comments not posted (2)
app/client/src/widgets/TableWidgetV2/widget/checkFilteredDataProperty.test.ts (1)
16-96
: Great job on this comprehensive test case! 👍This test case thoroughly verifies the presence and correctness of the
filteredTableData
property in the table widget's autocomplete definitions. Here's what I like about it:
- It sets up a realistic mock data tree entity and entity config for the table widget, including the
filteredTableData
property.- It utilizes the
dataTreeTypeDefCreator
utility to generate the autocomplete definitions and entity info based on the mock data.- The assertions are clear and focused, checking for the presence of the
filteredTableData
property in the generated definitions and verifying the correctness of the entity info.The test case is well-structured, readable, and covers the essential aspects of testing the
filteredTableData
property. It provides confidence that the property is correctly integrated into the table widget's autocomplete functionality.Keep up the great work! 🙌
app/client/src/widgets/TableWidgetV2/widget/index.tsx (1)
477-477
: Great job adding thefilteredTableData
property to the autocomplete definitions! 👍The change looks good and follows the existing pattern of generating type definitions for autocomplete properties using the
generateTypeDef
function.Adding this property will provide autocomplete suggestions for
filteredTableData
in the widget's properties, improving the developer experience.
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…-show-up-on-auto-complete' of https://github.com/Pavan134/appsmith into external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
🔴 There's new test files in JS, please port to TS and re-trigger Cypress tests:
|
@Pavan134 please take care of this:
|
🔴 There's new test files in JS, please port to TS and re-trigger Cypress tests:
|
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…-show-up-on-auto-complete' of https://github.com/Pavan134/appsmith into external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
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.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.ts (1)
55-81
: Fantastic work on the test suite and test case!The test suite is well-structured and focuses on testing a specific functionality of the table widget. The test case follows a logical sequence of steps to set up the table widget, apply filtering, and verify the presence of the
filteredTableData
property in the autocomplete suggestions. The assertions used in the test case are appropriate and ensure that thefilteredTableData
property behaves as expected.This test case enhances the overall test coverage for the table widget's filtering capabilities. Great job!
As a suggestion for improvement, consider adding a few more test cases to cover different filtering scenarios, such as filtering on other columns or using different filter conditions. This will further strengthen the test coverage and ensure that the
filteredTableData
property works correctly in various situations.
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.ts (1 hunks)
Additional context used
Path-based instructions (1)
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.ts (1)
Pattern
app/client/cypress/**/**.*
: Review the following e2e test code written using the Cypress test library. Ensure that:
- Follow best practices for Cypress code and e2e automation.
- Avoid using cy.wait in code.
- Avoid using cy.pause in code.
- Avoid using agHelper.sleep().
- Use locator variables for locators and do not use plain strings.
- Use data-* attributes for selectors.
- Avoid Xpaths, Attributes and CSS path.
- Avoid selectors like .btn.submit or button[type=submit].
- Perform logins via API with LoginFromAPI.
- Perform logout via API with LogOutviaAPI.
- Perform signup via API with SignupFromAPI.
- Avoid using it.only.
- Avoid using after and aftereach in test cases.
- Use multiple assertions for expect statements.
- Avoid using strings for assertions.
- Do not use duplicate filenames even with different paths.
- Avoid using agHelper.Sleep, this.Sleep in any file in code.
Additional comments not posted (3)
app/client/cypress/e2e/Regression/ClientSide/Widgets/TableV2/check_filterTableData_auto_spec.ts (3)
1-3
: Great job importing the necessary dependencies!The imports look good and are essential for the test file to access the required objects and locators. Keep up the good work!
4-54
: Excellent work defining the sample dataset!The dataset is well-structured and includes relevant information for testing the table widget. It covers various departments, which is perfect for testing the filtering functionality. Storing the dataset as a string makes it easy to pass it to the table widget's data property. Well done!
1-81
: Outstanding work on the entire test file!I must say, I'm impressed with your adherence to the Cypress best practices and guidelines. The file follows all the mentioned instructions, ensuring maintainable and reliable test code.
The use of locator variables and data-* attributes for selectors greatly improves the readability and maintainability of the test code. It's clear that you've put thought into making the test code easy to understand and modify in the future.
I also appreciate that you've avoided using deprecated or discouraged methods like cy.wait, cy.pause, or agHelper.sleep(). This shows that you're keeping up with the latest recommendations and ensuring that the test code remains up to date.
Furthermore, the use of multiple assertions and the avoidance of string assertions enhances the reliability and clarity of the test expectations. It's evident that you're focused on writing robust and meaningful tests.
Overall, this test file is a great example of how to write clean, maintainable, and reliable Cypress tests. Keep up the excellent work!
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…-show-up-on-auto-complete' of https://github.com/Pavan134/appsmith into external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…-show-up-on-auto-complete' of https://github.com/Pavan134/appsmith into external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…o external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
…-show-up-on-auto-complete' of https://github.com/Pavan134/appsmith into external-contri/bug-filtered-table-data-property-of-table-widget-doesnt-show-up-on-auto-complete
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |
This PR has been closed because of inactivity. |
Description
Original PR: #35856
EE PR: https://github.com/appsmithorg/appsmith-ee/pull/5156
Fixes #35856
Warning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Caution
If you modify the content in this section, you are likely to disrupt the CI result for your PR.
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Summary by CodeRabbit
New Features
filteredTableData
, to enhance the functionality of theTableWidgetV2
.filteredTableData
property in autocomplete suggestions and its behavior within the widget.Bug Fixes
filteredTableData
property to ensure it behaves as expected in various scenarios.Table1Copy
widget.Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10992548995
Commit: ec5bd71
Cypress dashboard.
Tags: @tag.All
Spec:
The following are new failures, please fix them before merging the PR:
Mon, 23 Sep 2024 12:26:23 UTC