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: autotracking for reference id access #7796

Merged
merged 9 commits into from
Dec 15, 2021

Conversation

runspired
Copy link
Contributor

@runspired runspired commented Dec 13, 2021

resolves #7102

@runspired runspired requested a review from snewcomer December 13, 2021 23:51
@runspired runspired added 🎯 beta PR should be backported to beta 🎯 canary PR is targeting canary (default) 🎯 lts The PR should be backported to the most recent LTS 🏷️ bug This PR primarily fixes a reported issue labels Dec 13, 2021
@github-actions
Copy link

github-actions bot commented Dec 14, 2021

Asset Size Report for 8c1173a

Modern Builds

🛑 The size of the library EmberData has increased by +5.5 KB (+803.0 B compressed) which exceeds the failure threshold of 75 bytes.

Warnings

⚠️ The uncompressed size of the package @ember-data/store has increased by +5.5 KB.

Changeset


EmberData +185.17 KB +5.5 KB (+39.36 KB +803.0 B compressed)
    @ember-data/store +77.97 KB +5.5 KB (+16.57 KB +803.0 B compressed)
        @ember-data/store/-private +77.06 KB +5.5 KB (+16.38 KB +803.0 B compressed)

Full Asset Analysis (Modern)

Asset Size Report
=================


Library: EmberData
┌────────────┬─────────────┐
│  (index)   │   Values    │
├────────────┼─────────────┤
│   bytes    │ '185.17 KB' │
│ compressed │ '39.36 KB'  │
│  packages  │      8      │
│  modules   │     44      │
└────────────┴─────────────┘

Package: @ember-data/store
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '77.97 KB' │
│  compressed  │ '16.57 KB' │
│ % Of Library │   '42.1'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/store/-private                        | 77.06 KB  | 16.38 KB   | 98.8          | 41.6
	@ember-data/store/index                           | 936.00 B  | 198.94 B   | 1.2           | 0.5

Package: @ember-data/model
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '28.73 KB' │
│  compressed  │ '6.11 KB'  │
│ % Of Library │   '15.5'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/model/-private                        | 28.26 KB  | 6.01 KB    | 98.3          | 15.3
	@ember-data/model/index                           | 486.00 B  | 103.30 B   | 1.7           | 0.3

Package: @ember-data/record-data
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '24.10 KB' │
│  compressed  │ '5.12 KB'  │
│ % Of Library │   '13.0'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/record-data/-private                  | 24.10 KB  | 5.12 KB    | 100.0         | 13.0

Package: @ember-data/serializer
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '19.73 KB' │
│  compressed  │ '4.19 KB'  │
│ % Of Library │   '10.7'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/serializer/json                       | 7.20 KB   | 1.53 KB    | 36.5          | 3.9
	@ember-data/serializer/-private                   | 5.52 KB   | 1.17 KB    | 28.0          | 3.0
	@ember-data/serializer/json-api                   | 3.75 KB   | 816.20 B   | 19.0          | 2.0
	@ember-data/serializer/rest                       | 2.80 KB   | 608.53 B   | 14.2          | 1.5
	@ember-data/serializer/index                      | 258.00 B  | 54.83 B    | 1.3           | 0.1
	@ember-data/serializer/transform                  | 215.00 B  | 45.69 B    | 1.1           | 0.1

Package: @ember-data/adapter
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '15.75 KB' │
│  compressed  │ '3.35 KB'  │
│ % Of Library │   '8.5'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/adapter/rest                          | 7.95 KB   | 1.69 KB    | 50.5          | 4.3
	@ember-data/adapter/-private                      | 3.79 KB   | 825.55 B   | 24.1          | 2.0
	@ember-data/adapter/error                         | 1.96 KB   | 426.16 B   | 12.4          | 1.1
	@ember-data/adapter/index                         | 1.04 KB   | 225.51 B   | 6.6           | 0.6
	@ember-data/adapter/json-api                      | 1.01 KB   | 220.84 B   | 6.4           | 0.5

Package: ember-data
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '9.35 KB' │
│  compressed  │ '1.99 KB' │
│ % Of Library │   '5.0'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-data/index                                  | 2.42 KB   | 526.27 B   | 25.9          | 1.3
	ember-data/-private                               | 2.13 KB   | 462.93 B   | 22.8          | 1.1
	ember-data/adapters/errors                        | 1.19 KB   | 258.67 B   | 12.7          | 0.6
	ember-data/setup-container                        | 368.00 B  | 78.21 B    | 3.8           | 0.2
	ember-data/relationships                          | 318.00 B  | 67.59 B    | 3.3           | 0.2
	ember-data/serializers/embedded-records-mixin     | 274.00 B  | 58.23 B    | 2.9           | 0.1
	ember-data/serializers/json-api                   | 251.00 B  | 53.35 B    | 2.6           | 0.1
	ember-data/adapters/json-api                      | 245.00 B  | 52.07 B    | 2.6           | 0.1
	ember-data/serializers/json                       | 243.00 B  | 51.65 B    | 2.5           | 0.1
	ember-data/serializers/rest                       | 243.00 B  | 51.65 B    | 2.5           | 0.1
	ember-data/transform                              | 241.00 B  | 51.22 B    | 2.5           | 0.1
	ember-data/adapters/rest                          | 237.00 B  | 50.37 B    | 2.5           | 0.1
	ember-data/serializer                             | 232.00 B  | 49.31 B    | 2.4           | 0.1
	ember-data/adapter                                | 226.00 B  | 48.03 B    | 2.4           | 0.1
	ember-data/model                                  | 222.00 B  | 47.18 B    | 2.3           | 0.1
	ember-data/store                                  | 222.00 B  | 47.18 B    | 2.3           | 0.1
	ember-data/attr                                   | 218.00 B  | 46.33 B    | 2.3           | 0.1
	ember-data/version                                | 161.00 B  | 34.22 B    | 1.7           | 0.1

Package: ember-inflector
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '6.71 KB' │
│  compressed  │ '1.43 KB' │
│ % Of Library │   '3.6'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-inflector/lib/system/inflector              | 2.89 KB   | 630.00 B   | 43.1          | 1.6
	ember-inflector/lib/system/inflections            | 1.59 KB   | 345.82 B   | 23.7          | 0.9
	ember-inflector/index                             | 473.00 B  | 100.53 B   | 6.9           | 0.2
	ember-inflector/lib/system                        | 471.00 B  | 100.11 B   | 6.9           | 0.2
	ember-inflector/lib/helpers/pluralize             | 373.00 B  | 79.28 B    | 5.4           | 0.2
	ember-inflector/lib/utils/make-helper             | 352.00 B  | 74.81 B    | 5.1           | 0.2
	ember-inflector/lib/system/string                 | 318.00 B  | 67.59 B    | 4.6           | 0.2
	ember-inflector/lib/helpers/singularize           | 296.00 B  | 62.91 B    | 4.3           | 0.2

Package: @ember-data/debug
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '2.82 KB'  │
│  compressed  │ '613.00 B' │
│ % Of Library │   '1.5'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/debug/index                           | 2.32 KB   | 505.66 B   | 82.5          | 1.3
	@ember-data/debug/setup                           | 505.00 B  | 107.33 B   | 17.5          | 0.3

Modern Builds (No Rollup)

🛑 The size of the library EmberData has increased by +4.58 KB (+571.0 B compressed) which exceeds the failure threshold of 75 bytes.

Warnings

⚠️ The uncompressed size of the package @ember-data/store has increased by +4.58 KB.

Changeset


EmberData +224.85 KB +4.58 KB (+42.56 KB +571.0 B compressed)
    @ember-data/store +101.8 KB +4.58 KB (+19.27 KB +571.0 B compressed)
        @ember-data/store/-private/system/core-store +17.41 KB +4.0 B (+3.3 KB +0.49 B compressed)
        @ember-data/store/-private/system/model/internal-model +14.68 KB +158.0 B (+2.78 KB +19.24 B compressed)
        @ember-data/store/-private/system/references/has-many +3.23 KB +1.7 KB (+626.5 B +211.45 B compressed)
        @ember-data/store/-private/system/references/belongs-to +2.89 KB +1.57 KB (+560.26 B +195.37 B compressed)
        @ember-data/store/-private/system/references/record +2.02 KB +1.06 KB (+391.61 B +132.15 B compressed)
        @ember-data/store/-private/system/record-notification-manager +800.0 B +101.0 B (+151.42 B +12.3 B compressed)

Full Asset Analysis (Modern)

Asset Size Report
=================


Library: EmberData
┌────────────┬─────────────┐
│  (index)   │   Values    │
├────────────┼─────────────┤
│   bytes    │ '224.85 KB' │
│ compressed │ '42.56 KB'  │
│  packages  │      8      │
│  modules   │     148     │
└────────────┴─────────────┘

Package: @ember-data/store
┌──────────────┬─────────────┐
│   (index)    │   Values    │
├──────────────┼─────────────┤
│    bytes     │ '101.80 KB' │
│  compressed  │ '19.27 KB'  │
│ % Of Library │   '45.3'    │
└──────────────┴─────────────┘
	Module                                                                             | Bytes     | Compressed | % of Package  | % Of Library
	--------------------------------------------------------------------------------------------------------------------------------------
	@ember-data/store/-private/system/core-store                                       | 17.41 KB  | 3.30 KB    | 17.1          | 7.7
	@ember-data/store/-private/system/model/internal-model                             | 14.68 KB  | 2.78 KB    | 14.4          | 6.5
	@ember-data/store/-private/system/model/states                                     | 5.45 KB   | 1.03 KB    | 5.4           | 2.4
	@ember-data/store/-private/system/fetch-manager                                    | 5.16 KB   | 1000.90 B  | 5.1           | 2.3
	@ember-data/store/-private/system/store/finders                                    | 4.50 KB   | 872.94 B   | 4.4           | 2.0
	@ember-data/store/-private/system/record-array-manager                             | 4.18 KB   | 811.05 B   | 4.1           | 1.9
	@ember-data/store/-private/identifiers/cache                                       | 3.92 KB   | 759.76 B   | 3.9           | 1.7
	@ember-data/store/-private/system/store/record-data-store-wrapper                  | 3.46 KB   | 670.23 B   | 3.4           | 1.5
	@ember-data/store/-private/index                                                   | 3.36 KB   | 651.30 B   | 3.3           | 1.5
	@ember-data/store/-private/system/references/has-many                              | 3.23 KB   | 626.50 B   | 3.2           | 1.4
	@ember-data/store/-private/system/snapshot                                         | 3.10 KB   | 600.38 B   | 3.0           | 1.4
	@ember-data/store/-private/system/references/belongs-to                            | 2.89 KB   | 560.26 B   | 2.8           | 1.3
	@ember-data/store/-private/system/store/internal-model-factory                     | 2.87 KB   | 556.09 B   | 2.8           | 1.3
	@ember-data/store/-private/system/record-arrays/record-array                       | 2.28 KB   | 441.96 B   | 2.2           | 1.0
	@ember-data/store/-private/system/references/record                                | 2.02 KB   | 391.61 B   | 2.0           | 0.9
	@ember-data/store/-private/system/ds-model-store                                   | 1.94 KB   | 376.66 B   | 1.9           | 0.9
	@ember-data/store/-private/system/request-cache                                    | 1.79 KB   | 346.37 B   | 1.8           | 0.8
	@ember-data/store/-private/system/schema-definition-service                        | 1.52 KB   | 293.94 B   | 1.5           | 0.7
	@ember-data/store/-private/system/model/shim-model-class                           | 1.32 KB   | 255.71 B   | 1.3           | 0.6
	@ember-data/store/-private/system/store/serializer-response                        | 1.14 KB   | 221.07 B   | 1.1           | 0.5
	@ember-data/store/-private/identifiers/utils/uuid-v4                               | 999.00 B  | 189.08 B   | 1.0           | 0.4
	@ember-data/store/index                                                            | 936.00 B  | 177.16 B   | 0.9           | 0.4
	@ember-data/store/-private/system/record-arrays/adapter-populated-record-array     | 923.00 B  | 174.70 B   | 0.9           | 0.4
	@ember-data/store/-private/system/references/reference                             | 916.00 B  | 173.37 B   | 0.9           | 0.4
	@ember-data/store/-private/system/internal-model-map                               | 886.00 B  | 167.70 B   | 0.8           | 0.4
	@ember-data/store/-private/system/errors-utils                                     | 802.00 B  | 151.80 B   | 0.8           | 0.3
	@ember-data/store/-private/system/record-notification-manager                      | 800.00 B  | 151.42 B   | 0.8           | 0.3
	@ember-data/store/-private/system/snapshot-record-array                            | 753.00 B  | 142.52 B   | 0.7           | 0.3
	@ember-data/store/-private/utils/construct-resource                                | 699.00 B  | 132.30 B   | 0.7           | 0.3
	@ember-data/store/-private/system/promise-proxies                                  | 609.00 B  | 115.27 B   | 0.6           | 0.3
	@ember-data/store/-private/system/references                                       | 598.00 B  | 113.18 B   | 0.6           | 0.3
	@ember-data/store/-private/system/store/common                                     | 527.00 B  | 99.74 B    | 0.5           | 0.2
	@ember-data/store/-private/system/coerce-id                                        | 494.00 B  | 93.50 B    | 0.5           | 0.2
	@ember-data/store/-private/system/record-arrays                                    | 487.00 B  | 92.17 B    | 0.5           | 0.2
	@ember-data/store/-private/system/identity-map                                     | 454.00 B  | 85.93 B    | 0.4           | 0.2
	@ember-data/store/-private/system/record-data-for                                  | 392.00 B  | 74.19 B    | 0.4           | 0.2
	@ember-data/store/-private/ts-interfaces/identifier                                | 348.00 B  | 65.86 B    | 0.3           | 0.2
	@ember-data/store/-private/identifiers/is-stable-identifier                        | 329.00 B  | 62.27 B    | 0.3           | 0.1
	@ember-data/store/-private/ts-interfaces/fetch-manager                             | 316.00 B  | 59.81 B    | 0.3           | 0.1
	@ember-data/store/-private/utils/promise-record                                    | 290.00 B  | 54.89 B    | 0.3           | 0.1
	@ember-data/store/-private/system/backburner                                       | 271.00 B  | 51.29 B    | 0.3           | 0.1
	@ember-data/store/-private/system/deprecated-evented                               | 257.00 B  | 48.64 B    | 0.2           | 0.1
	@ember-data/store/-private/system/normalize-model-name                             | 220.00 B  | 41.64 B    | 0.2           | 0.1
	@ember-data/store/-private/utils/is-non-empty-string                               | 212.00 B  | 40.12 B    | 0.2           | 0.1
	@ember-data/store/-debug/index                                                     | 210.00 B  | 39.74 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/minimum-serializer-interface              | 169.00 B  | 31.98 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-record-wrapper                | 167.00 B  | 31.60 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/minimum-adapter-interface                 | 166.00 B  | 31.42 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-store-wrapper                 | 166.00 B  | 31.42 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/schema-definition-service                 | 166.00 B  | 31.42 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-json-api                      | 161.00 B  | 30.47 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/ember-data-json-api                       | 160.00 B  | 30.28 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-schemas                       | 160.00 B  | 30.28 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/promise-proxies                           | 156.00 B  | 29.52 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/record-instance                           | 156.00 B  | 29.52 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data                               | 152.00 B  | 28.77 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/ds-model                                  | 149.00 B  | 28.20 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/store                                     | 146.00 B  | 27.63 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/utils                                     | 146.00 B  | 27.63 B    | 0.1           | 0.1

Package: @ember-data/model
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '32.83 KB' │
│  compressed  │ '6.21 KB'  │
│ % Of Library │   '14.6'   │
└──────────────┴────────────┘
	Module                                                                | Bytes     | Compressed | % of Package  | % Of Library
	-------------------------------------------------------------------------------------------------------------------------
	@ember-data/model/-private/model                                      | 9.93 KB   | 1.88 KB    | 30.3          | 4.4
	@ember-data/model/-private/record-state                               | 6.23 KB   | 1.18 KB    | 19.0          | 2.8
	@ember-data/model/-private/system/promise-many-array                  | 3.80 KB   | 737.23 B   | 11.6          | 1.7
	@ember-data/model/-private/system/many-array                          | 2.86 KB   | 553.82 B   | 8.7           | 1.3
	@ember-data/model/-private/errors                                     | 2.10 KB   | 406.94 B   | 6.4           | 0.9
	@ember-data/model/-private/index                                      | 1.42 KB   | 275.58 B   | 4.3           | 0.6
	@ember-data/model/-private/system/relationships/relationship-meta     | 1.31 KB   | 253.06 B   | 4.0           | 0.6
	@ember-data/model/-private/attr                                       | 874.00 B  | 165.42 B   | 2.6           | 0.4
	@ember-data/model/-private/notify-changes                             | 845.00 B  | 159.93 B   | 2.5           | 0.4
	@ember-data/model/-private/belongs-to                                 | 688.00 B  | 130.22 B   | 2.0           | 0.3
	@ember-data/model/-private/has-many                                   | 648.00 B  | 122.65 B   | 1.9           | 0.3
	@ember-data/model/index                                               | 486.00 B  | 91.98 B    | 1.4           | 0.2
	@ember-data/model/-private/system/diff-array                          | 452.00 B  | 85.55 B    | 1.3           | 0.2
	@ember-data/model/-private/system/promise-belongs-to                  | 447.00 B  | 84.60 B    | 1.3           | 0.2
	@ember-data/model/-private/util                                       | 442.00 B  | 83.66 B    | 1.3           | 0.2
	@ember-data/model/-private/system/model-for-mixin                     | 427.00 B  | 80.82 B    | 1.3           | 0.2

Package: @ember-data/record-data
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '31.15 KB' │
│  compressed  │ '5.90 KB'  │
│ % Of Library │   '13.9'   │
└──────────────┴────────────┘
	Module                                                                            | Bytes     | Compressed | % of Package  | % Of Library
	-------------------------------------------------------------------------------------------------------------------------------------
	@ember-data/record-data/-private/record-data                                      | 8.28 KB   | 1.57 KB    | 26.6          | 3.7
	@ember-data/record-data/-private/graph/index                                      | 4.92 KB   | 952.63 B   | 15.8          | 2.2
	@ember-data/record-data/-private/graph/operations/replace-related-records         | 3.21 KB   | 623.10 B   | 10.3          | 1.4
	@ember-data/record-data/-private/graph/-edge-definition                           | 2.86 KB   | 553.44 B   | 9.2           | 1.3
	@ember-data/record-data/-private/relationships/state/has-many                     | 2.04 KB   | 394.64 B   | 6.5           | 0.9
	@ember-data/record-data/-private/relationships/state/belongs-to                   | 1.94 KB   | 375.52 B   | 6.2           | 0.9
	@ember-data/record-data/-private/graph/operations/update-relationship             | 1.51 KB   | 292.81 B   | 4.9           | 0.7
	@ember-data/record-data/-private/graph/-utils                                     | 1.06 KB   | 204.60 B   | 3.4           | 0.5
	@ember-data/record-data/-private/graph/operations/replace-related-record          | 1.04 KB   | 202.33 B   | 3.4           | 0.5
	@ember-data/record-data/-private/index                                            | 977.00 B  | 184.92 B   | 3.1           | 0.4
	@ember-data/record-data/-private/graph/operations/add-to-related-records          | 798.00 B  | 151.04 B   | 2.5           | 0.3
	@ember-data/record-data/-private/relationships/state/implicit                     | 692.00 B  | 130.98 B   | 2.2           | 0.3
	@ember-data/record-data/-private/graph/operations/remove-from-related-records     | 677.00 B  | 128.14 B   | 2.1           | 0.3
	@ember-data/record-data/-private/coerce-id                                        | 406.00 B  | 76.84 B    | 1.3           | 0.2
	@ember-data/record-data/-private/graph/-state                                     | 293.00 B  | 55.45 B    | 0.9           | 0.1
	@ember-data/record-data/-private/normalize-link                                   | 238.00 B  | 45.04 B    | 0.7           | 0.1
	@ember-data/record-data/-private/ts-interfaces/relationship-record-data           | 171.00 B  | 32.36 B    | 0.5           | 0.1
	@ember-data/record-data/-private/graph/-operations                                | 150.00 B  | 28.39 B    | 0.5           | 0.1

Package: @ember-data/serializer
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '22.15 KB' │
│  compressed  │ '4.19 KB'  │
│ % Of Library │   '9.9'    │
└──────────────┴────────────┘
	Module                                                     | Bytes     | Compressed | % of Package  | % Of Library
	--------------------------------------------------------------------------------------------------------------
	@ember-data/serializer/json                                | 7.20 KB   | 1.36 KB    | 32.5          | 3.2
	@ember-data/serializer/-private/embedded-records-mixin     | 4.41 KB   | 854.96 B   | 19.9          | 2.0
	@ember-data/serializer/json-api                            | 3.75 KB   | 726.82 B   | 16.9          | 1.7
	@ember-data/serializer/rest                                | 2.80 KB   | 541.90 B   | 12.6          | 1.2
	@ember-data/serializer/-private/index                      | 1.18 KB   | 229.02 B   | 5.3           | 0.5
	@ember-data/serializer/-private/transforms/date            | 530.00 B  | 100.31 B   | 2.3           | 0.2
	@ember-data/serializer/-private/transforms/boolean         | 511.00 B  | 96.72 B    | 2.3           | 0.2
	@ember-data/serializer/-private/transforms/number          | 453.00 B  | 85.74 B    | 2.0           | 0.2
	@ember-data/serializer/-private/transforms/string          | 381.00 B  | 72.11 B    | 1.7           | 0.2
	@ember-data/serializer/-private/utils                      | 303.00 B  | 57.35 B    | 1.3           | 0.1
	@ember-data/serializer/index                               | 258.00 B  | 48.83 B    | 1.1           | 0.1
	@ember-data/serializer/-private/transforms/transform       | 226.00 B  | 42.77 B    | 1.0           | 0.1
	@ember-data/serializer/transform                           | 215.00 B  | 40.69 B    | 0.9           | 0.1

Package: @ember-data/adapter
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '17.88 KB' │
│  compressed  │ '3.38 KB'  │
│ % Of Library │   '8.0'    │
└──────────────┴────────────┘
	Module                                                        | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------------------
	@ember-data/adapter/rest                                      | 7.95 KB   | 1.51 KB    | 44.5          | 3.5
	@ember-data/adapter/error                                     | 1.96 KB   | 379.50 B   | 11.0          | 0.9
	@ember-data/adapter/-private/build-url-mixin                  | 1.93 KB   | 374.76 B   | 10.8          | 0.9
	@ember-data/adapter/index                                     | 1.04 KB   | 200.82 B   | 5.8           | 0.5
	@ember-data/adapter/-private/index                            | 1.03 KB   | 199.87 B   | 5.8           | 0.5
	@ember-data/adapter/json-api                                  | 1.01 KB   | 196.65 B   | 5.7           | 0.5
	@ember-data/adapter/-private/utils/serialize-query-params     | 790.00 B  | 149.52 B   | 4.3           | 0.3
	@ember-data/adapter/-private/utils/determine-body-promise     | 568.00 B  | 107.50 B   | 3.1           | 0.2
	@ember-data/adapter/-private/utils/parse-response-headers     | 494.00 B  | 93.50 B    | 2.7           | 0.2
	@ember-data/adapter/-private/utils/fetch                      | 454.00 B  | 85.93 B    | 2.5           | 0.2
	@ember-data/adapter/-private/utils/serialize-into-hash        | 351.00 B  | 66.43 B    | 1.9           | 0.2
	@ember-data/adapter/-private/utils/continue-on-reject         | 222.00 B  | 42.01 B    | 1.2           | 0.1
	@ember-data/adapter/-private/fastboot-interface               | 147.00 B  | 27.82 B    | 0.8           | 0.1

Package: ember-data
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '9.51 KB' │
│  compressed  │ '1.80 KB' │
│ % Of Library │   '4.2'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-data/index                                  | 2.42 KB   | 468.64 B   | 25.4          | 1.1
	ember-data/-private/index                         | 1.93 KB   | 373.63 B   | 20.3          | 0.9
	ember-data/adapters/errors                        | 1.19 KB   | 230.35 B   | 12.5          | 0.5
	ember-data/-private/core                          | 368.00 B  | 69.65 B    | 3.8           | 0.2
	ember-data/setup-container                        | 368.00 B  | 69.65 B    | 3.8           | 0.2
	ember-data/relationships                          | 318.00 B  | 60.19 B    | 3.3           | 0.1
	ember-data/serializers/embedded-records-mixin     | 274.00 B  | 51.86 B    | 2.8           | 0.1
	ember-data/serializers/json-api                   | 251.00 B  | 47.50 B    | 2.6           | 0.1
	ember-data/adapters/json-api                      | 245.00 B  | 46.37 B    | 2.5           | 0.1
	ember-data/serializers/json                       | 243.00 B  | 45.99 B    | 2.5           | 0.1
	ember-data/serializers/rest                       | 243.00 B  | 45.99 B    | 2.5           | 0.1
	ember-data/transform                              | 241.00 B  | 45.61 B    | 2.5           | 0.1
	ember-data/adapters/rest                          | 237.00 B  | 44.85 B    | 2.4           | 0.1
	ember-data/serializer                             | 232.00 B  | 43.91 B    | 2.4           | 0.1
	ember-data/adapter                                | 226.00 B  | 42.77 B    | 2.3           | 0.1
	ember-data/model                                  | 222.00 B  | 42.01 B    | 2.3           | 0.1
	ember-data/store                                  | 222.00 B  | 42.01 B    | 2.3           | 0.1
	ember-data/attr                                   | 218.00 B  | 41.26 B    | 2.2           | 0.1
	ember-data/version                                | 161.00 B  | 30.47 B    | 1.7           | 0.1

Package: ember-inflector
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '6.71 KB' │
│  compressed  │ '1.27 KB' │
│ % Of Library │   '3.0'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-inflector/lib/system/inflector              | 2.89 KB   | 561.01 B   | 43.1          | 1.3
	ember-inflector/lib/system/inflections            | 1.59 KB   | 307.95 B   | 23.7          | 0.7
	ember-inflector/index                             | 473.00 B  | 89.52 B    | 6.9           | 0.2
	ember-inflector/lib/system                        | 471.00 B  | 89.14 B    | 6.9           | 0.2
	ember-inflector/lib/helpers/pluralize             | 373.00 B  | 70.60 B    | 5.4           | 0.2
	ember-inflector/lib/utils/make-helper             | 352.00 B  | 66.62 B    | 5.1           | 0.2
	ember-inflector/lib/system/string                 | 318.00 B  | 60.19 B    | 4.6           | 0.1
	ember-inflector/lib/helpers/singularize           | 296.00 B  | 56.02 B    | 4.3           | 0.1

Package: @ember-data/debug
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '2.82 KB'  │
│  compressed  │ '545.87 B' │
│ % Of Library │   '1.3'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/debug/index                           | 2.32 KB   | 450.28 B   | 82.5          | 1.0
	@ember-data/debug/setup                           | 505.00 B  | 95.58 B    | 17.5          | 0.2

@github-actions
Copy link

github-actions bot commented Dec 15, 2021

Performance Report for 8c1173a

Scenario - materialization: ☑️ Performance is stable

☑️ duration
phase no difference [-14ms to 53ms]
☑️ Phase [navigationStart] => [start-find-all]
phase no difference [-5ms to 13ms]
☑️ Phase [start-find-all] => [start-materialization]
phase no difference [-12ms to 17ms]
⚠️ Phase [start-materialization] => [end-materialization]
phase estimated regression +13ms [4ms to 21ms] OR +2.02% [0.63% to 3.33%]
☑️ Phase [end-materialization] => [Test End]
phase no difference [-3ms to 10ms]

Scenario - unload: ☑️ Performance is stable

☑️ duration
phase no difference [-16ms to 19ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-6ms to 15ms]
☑️ Phase [start-push-payload] => [start-unload-records]
phase no difference [-20ms to 7ms]
☑️ Phase [start-unload-records] => [end-unload-records]
phase no difference [-1ms to 5ms]
☑️ Phase [end-unload-records] => [Test End]
phase no difference [-1ms to 0ms]

Scenario - destroy: ☑️ Performance is stable

☑️ duration
phase no difference [-13ms to 36ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-3ms to 15ms]
☑️ Phase [start-push-payload] => [start-destroy-records]
phase no difference [-17ms to 12ms]
⚠️ Phase [start-destroy-records] => [end-destroy-records]
phase estimated regression +9ms [2ms to 15ms] OR +1.03% [0.29% to 1.75%]
☑️ Phase [end-destroy-records] => [Test End]
phase no difference [-1ms to 1ms]

Scenario - add-children: ☑️ Performance is stable

☑️ duration
phase no difference [-29ms to 17ms]
☑️ Phase [navigationStart] => [start-push-initial-payload]
phase no difference [-14ms to 12ms]
☑️ Phase [start-push-initial-payload] => [start-push-update-payload]
phase no difference [-15ms to 7ms]
☑️ Phase [start-push-update-payload] => [end-push-update-payload]
phase no difference [-7ms to 2ms]
☑️ Phase [end-push-update-payload] => [Test End]
phase no difference [-2ms to 2ms]

Scenario - unused-relationships: ☑️ Performance is stable

☑️ duration
phase no difference [-40ms to 21ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-9ms to 11ms]
☑️ Phase [start-push-payload] => [end-push-payload]
phase no difference [-29ms to 15ms]
☑️ Phase [end-push-payload] => [Test End]
phase no difference [-5ms to 1ms]

@runspired runspired force-pushed the runspired/feat-ref-tracking branch from b33c036 to 953a5ce Compare December 15, 2021 09:06
@runspired runspired merged commit 856f7b3 into master Dec 15, 2021
@delete-merged-branch delete-merged-branch bot deleted the runspired/feat-ref-tracking branch December 15, 2021 10:11
@runspired runspired restored the runspired/feat-ref-tracking branch December 15, 2021 10:11
runspired added a commit that referenced this pull request Dec 15, 2021
* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available
runspired added a commit that referenced this pull request Dec 15, 2021
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
runspired added a commit that referenced this pull request Dec 15, 2021
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
runspired added a commit that referenced this pull request Dec 15, 2021
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
runspired added a commit that referenced this pull request Dec 15, 2021
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
snewcomer pushed a commit that referenced this pull request Dec 15, 2021
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
snewcomer pushed a commit that referenced this pull request Dec 15, 2021
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
snewcomer added a commit that referenced this pull request Dec 15, 2021
* Backport Train for Beta (#7803)

* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>

* fix

Co-authored-by: Chris Thoburn <[email protected]>
Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
runspired added a commit that referenced this pull request Apr 14, 2022
* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
runspired added a commit that referenced this pull request Apr 14, 2022
* Backport Train for Beta (#7803)

* deactivate broken partner tests

* feat: autotracking for reference id access (#7796)

* feat: autotracking for reference id access

* ensure references are torn down

* fix build

* add dep

* add to deps

* fix invalid json:api support and add valid json:api support

* autotracking tests and cleanup

* fix test failure, add comment

* skip tests when feature not available

* update test and fix lid reflection (#7800)

* update test and fix lid reflection

* remove debugger

* fix ff off branch

* add test and fix push of duplicate identifiers to a relationship (#7801)

* add test + fix for chained async has many (#7691)

* [bugfix]: fix for chained async has many

* add fix and update tests

* remove console.logs

* make work with flags off

* fix test for lts

Co-authored-by: Chris Thoburn <[email protected]>

* Fix: assign unknown properties in init after initialization is finished to ensure proper setup timing (#7771)

* Add failing test case which illustrates the createRecord bug

createRecord crashes when a setter which sets an attribute is involved
in the createRecord.

* update test location and add fix

Co-authored-by: Chris Thoburn <[email protected]>

* fix: A(PromiseManyArray) should have no-effect (#7802)

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>

* fix lint

* fix ie11

Co-authored-by: Sylvain Mina <[email protected]>
Co-authored-by: Andrey Fel <[email protected]>
@runspired runspired deleted the runspired/feat-ref-tracking branch April 26, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 beta PR should be backported to beta 🎯 canary PR is targeting canary (default) 🎯 lts The PR should be backported to the most recent LTS 🎯 release PR should be backported to release 🏷️ bug This PR primarily fixes a reported issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reference API is currently incompatible with Tracked
2 participants