-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(#16584): filterTableData source of truth #36849
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
Merged
yatinappsmith
merged 11 commits into
appsmithorg:release
from
anasKhafaga:fix/16584-table-edit-with-filter
Oct 30, 2024
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
72f3828
fix(#16584): filterTableData source of truth
anasKhafaga 4d5c7e8
test: add unit test for editing a record in filter state
anasKhafaga fbcd17f
fix: enhance unit test case
anasKhafaga b08abe7
fix(test): compatibility with filtering via displyed text
anasKhafaga 39d4e5e
fix(linting): CI lint and prettier tasks
anasKhafaga 6869df8
fix(search): disappearing record with searchKey applied
anasKhafaga 6632e4a
fix(e2e): update failing e2e test cases to expect the correct behavior
anasKhafaga 01e008f
chore(e2e): use the suitable apis to dispatch actions and run assertions
anasKhafaga d89cb67
fix(sorting): case of editing while sorting is applied
anasKhafaga 163e7b6
test(sorting): add unit test for editing when sorting is applied
anasKhafaga c10dd6a
fix(sorting): handle sorting by label
anasKhafaga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Class, let's examine this new test case carefully.
Good job on adding a new test case to validate the filtering functionality after committing an edit. However, there are a few areas where we can improve:
The test description is quite long. Remember, brevity is the soul of wit! Consider shortening it to something like "filters correctly after editing a value with an active filter".
You've included a
console.log(result)statement on line 1315. While this is helpful during development, we should remove it from our final test case. Always clean up your workspace, students!The expected result on lines 1309-1312 includes an empty string for the 'extra' field. Is this intentional? If so, we should add a comment explaining why this field is expected to be empty.
The test data includes a misspelling in the name "Hamza Khafa" (missing the last 'ga'). Let's correct this to ensure our test data is accurate.
Consider adding more assertions to test edge cases, such as:
Remember, thorough testing is the foundation of robust code. Let's make these improvements to strengthen our test suite.
Here's a suggested improvement for the test case:
This improved version addresses the issues mentioned and adds more test cases to ensure robust functionality.