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

feat(Nodes): add grouping #1584

Merged
merged 3 commits into from
Nov 7, 2024
Merged

feat(Nodes): add grouping #1584

merged 3 commits into from
Nov 7, 2024

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Nov 6, 2024

Closes #1411

Stand: https://nda.ya.ru/t/tl439E2b79U5Zq

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
134 134 0 0 0

Bundle Size: πŸ”Ί

Current: 79.23 MB | Main: 79.21 MB
Diff: +0.02 MB (0.02%)

⚠️ Bundle size increased. Please review.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • πŸ“Š indicates links to detailed reports.
  • πŸ”Ί indicates increase, πŸ”½ decrease, and βœ… no change in bundle size.

@artemmufazalov artemmufazalov force-pushed the 1411-nodes-grouping branch 2 times, most recently from f789545 to 19e1ff1 Compare November 6, 2024 10:57
Raubzeug
Raubzeug previously approved these changes Nov 7, 2024

export function parseNodesGroupByParam(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
param?: any,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to set string type?

Copy link
Member Author

Choose a reason for hiding this comment

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

It will require to set type to param anyway, because Array.includes requires arg to have the same type as array, although it may accept anything - Type 'string' is not assignable to type 'NodesGroupByField | undefined'

Copy link
Contributor

Choose a reason for hiding this comment

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

if Array.some will be used instead of includes, no problems with type will appear

Copy link
Member Author

Choose a reason for hiding this comment

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

Array.some doesn't set type to the passed arg. I found workaround with Array.find

@artemmufazalov artemmufazalov added this pull request to the merge queue Nov 7, 2024
Merged via the queue into main with commit 88ec214 Nov 7, 2024
6 checks passed
@artemmufazalov artemmufazalov deleted the 1411-nodes-grouping branch November 7, 2024 10:27
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.

Add grouping to Nodes table
2 participants