Skip to content
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

fix: filtering and grouping collapsed #652

Merged
merged 6 commits into from
Jun 11, 2024
Merged

Conversation

Sky-FE
Copy link
Contributor

@Sky-FE Sky-FE commented Jun 6, 2024

No description provided.

@coveralls
Copy link
Collaborator

coveralls commented Jun 6, 2024

Pull Request Test Coverage Report for Build 9400395331

Details

  • 1 of 57 (1.75%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 18.715%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/sdk/src/components/cell-value-editor/CellEditor.tsx 0 1 0.0%
packages/sdk/src/components/filter/condition/OperatorSelect.tsx 0 3 0.0%
packages/sdk/src/components/filter/condition/FieldValue.tsx 0 7 0.0%
packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts 0 9 0.0%
packages/sdk/src/components/filter/utils.ts 0 14 0.0%
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 1 0.0%
Totals Coverage Status
Change from base Build 9396634881: -0.01%
Covered Lines: 13866
Relevant Lines: 74090

💛 - Coveralls

Copy link
Contributor

@tea-artist tea-artist left a comment

Choose a reason for hiding this comment

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

need e2e coverage

@@ -182,6 +182,7 @@ export abstract class AbstractFilterQuery implements IFilterQueryInterface {
return (
value !== null ||
field.type === FieldType.Checkbox ||
(field.type === FieldType.Formula && field.cellValueType === CellValueType.Boolean) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

why not simplify just field.cellValueType === CellValueType.Boolean

Copy link
Contributor

Choose a reason for hiding this comment

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

what will happen when field.isMultipleCellvalue = true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When isMultipleCellValue is true, it will perform the filtering operation for the multiple boolean values

@coveralls
Copy link
Collaborator

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build 9412395395

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 59 (1.69%) changed or added relevant lines in 9 files are covered.
  • 19 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.01%) to 18.713%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/sdk/src/components/cell-value-editor/CellEditor.tsx 0 1 0.0%
packages/sdk/src/components/cell-value/cell-checkbox/CellCheckbox.tsx 0 1 0.0%
packages/sdk/src/components/expand-record/RecordEditorItem.tsx 0 1 0.0%
packages/sdk/src/components/filter/condition/OperatorSelect.tsx 0 3 0.0%
packages/sdk/src/components/filter/condition/FieldValue.tsx 0 7 0.0%
packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts 0 9 0.0%
packages/sdk/src/components/filter/utils.ts 0 14 0.0%
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 1 0.0%
packages/sdk/src/components/grid-enhancements/editor/GridNumberEditor.tsx 1 0.0%
packages/sdk/src/components/grid-enhancements/editor/GridSelectEditor.tsx 1 0.0%
packages/sdk/src/components/grid/components/editor/EditorContainer.tsx 2 0.0%
apps/nextjs-app/src/features/app/blocks/view/grid/components/FieldMenu.tsx 2 0.0%
apps/nextjs-app/src/features/app/blocks/view/grid/GridViewBase.tsx 12 0.0%
Totals Coverage Status
Change from base Build 9396634881: -0.01%
Covered Lines: 13866
Relevant Lines: 74098

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build 9412497445

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 59 (1.69%) changed or added relevant lines in 9 files are covered.
  • 19 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.01%) to 18.713%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/sdk/src/components/cell-value-editor/CellEditor.tsx 0 1 0.0%
packages/sdk/src/components/cell-value/cell-checkbox/CellCheckbox.tsx 0 1 0.0%
packages/sdk/src/components/expand-record/RecordEditorItem.tsx 0 1 0.0%
packages/sdk/src/components/filter/condition/OperatorSelect.tsx 0 3 0.0%
packages/sdk/src/components/filter/condition/FieldValue.tsx 0 7 0.0%
packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts 0 9 0.0%
packages/sdk/src/components/filter/utils.ts 0 14 0.0%
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 1 0.0%
packages/sdk/src/components/grid-enhancements/editor/GridNumberEditor.tsx 1 0.0%
packages/sdk/src/components/grid-enhancements/editor/GridSelectEditor.tsx 1 0.0%
packages/sdk/src/components/grid/components/editor/EditorContainer.tsx 2 0.0%
apps/nextjs-app/src/features/app/blocks/view/grid/components/FieldMenu.tsx 2 0.0%
apps/nextjs-app/src/features/app/blocks/view/grid/GridViewBase.tsx 12 0.0%
Totals Coverage Status
Change from base Build 9396634881: -0.01%
Covered Lines: 13866
Relevant Lines: 74098

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 7, 2024

Pull Request Test Coverage Report for Build 9412497433

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+63.8%) to 82.501%

Totals Coverage Status
Change from base Build 9396634881: 63.8%
Covered Lines: 26044
Relevant Lines: 31568

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 11, 2024

Pull Request Test Coverage Report for Build 9459521902

Details

  • 1 of 59 (1.69%) changed or added relevant lines in 9 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 18.711%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/sdk/src/components/cell-value-editor/CellEditor.tsx 0 1 0.0%
packages/sdk/src/components/cell-value/cell-checkbox/CellCheckbox.tsx 0 1 0.0%
packages/sdk/src/components/expand-record/RecordEditorItem.tsx 0 1 0.0%
packages/sdk/src/components/filter/condition/OperatorSelect.tsx 0 3 0.0%
packages/sdk/src/components/filter/condition/FieldValue.tsx 0 7 0.0%
packages/sdk/src/components/grid-enhancements/hooks/use-grid-collapsed-group.ts 0 9 0.0%
packages/sdk/src/components/filter/utils.ts 0 14 0.0%
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 0 22 0.0%
Files with Coverage Reduction New Missed Lines %
packages/sdk/src/components/cell-value-editor/ComputedEditor.tsx 1 0.0%
Totals Coverage Status
Change from base Build 9459163678: -0.01%
Covered Lines: 13866
Relevant Lines: 74108

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 11, 2024

Pull Request Test Coverage Report for Build 9459521906

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+63.8%) to 82.508%

Totals Coverage Status
Change from base Build 9459163678: 63.8%
Covered Lines: 26046
Relevant Lines: 31568

💛 - Coveralls

@Sky-FE Sky-FE merged commit 2cb765a into develop Jun 11, 2024
8 checks passed
@Sky-FE Sky-FE deleted the fix/grid-group-collapsed branch June 11, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants