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

Completely disallow percentage based group children. #4302

Merged

Conversation

seanparsons
Copy link
Contributor

@seanparsons seanparsons commented Oct 3, 2023

Partly Fixes #4299

Problem:
Group children with percentage pins are problematic regardless of if the group has an explicit size.

Fix:
Widen the threshold for the existing check for group children with percentage pins by removing the check for the explicit size of a group.

Commit Details:

  • Change InvalidGroupState value 'child-has-percentage-pins-without-group-size' to 'child-has-percentage-pins'.
  • Remove a handful of checks to see if the groups have an explicit size.
  • Add a test that checks for a child with percentage pins but explicit dimensions.

- Change `InvalidGroupState` value `'child-has-percentage-pins-without-group-size'`
  to `'child-has-percentage-pins'`.
- Remove a handful of checks to see if the groups have an explicit size.
- Add a test that checks for a child with percentage pins but explicit dimensions.
@seanparsons seanparsons marked this pull request as ready for review October 3, 2023 13:14
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2023

Try me

@relativeci
Copy link

relativeci bot commented Oct 3, 2023

Job #8386: Bundle Size — 62.78MiB (~-0.01%).

f1cfaf1(current) vs 5957b21 master#8383(baseline)

Warning

Bundle contains 64 duplicate packages - View duplicate packages

Bundle metrics (2 changes)
                 Current
Job #8386
     Baseline
Job #8383
Initial JS 35.05MiB(-0.01%) 35.05MiB
Initial CSS 0B 0B
Cache Invalidation 18.4% 0%
Chunks 27 27
Assets 31 31
Modules 3973 3973
Duplicate Modules 424 424
Duplicate Code 30.9% 30.9%
Packages 409 409
Duplicate Packages 64 64
Bundle size by type (1 change)
                 Current
Job #8386
     Baseline
Job #8383
CSS 0B 0B
Fonts 0B 0B
HTML 11.43KiB 11.43KiB
IMG 0B 0B
JS 62.77MiB (~-0.01%) 62.78MiB
Media 0B 0B
Other 0B 0B

View job #8386 reportView feature/disallow-percentage-base... branch activity

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2023

Performance test results:
(Chart1)
(Chart2)

@seanparsons seanparsons merged commit 3924b6d into master Oct 3, 2023
13 checks passed
@seanparsons seanparsons deleted the feature/disallow-percentage-based-group-children branch October 3, 2023 13:57
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.

If a group child has a size of 100% then the group handling breaks.
3 participants