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

Disable ilios partner test #7744

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Disable ilios partner test #7744

merged 1 commit into from
Nov 5, 2021

Conversation

snewcomer
Copy link
Contributor

Lots of failures from that package. I don't have the time to go fix them in the short term. This should get us back to green.

@snewcomer snewcomer added 🎯 canary PR is targeting canary (default) 🏷️ test This PR primarily adds tests for a feature labels Nov 5, 2021
@snewcomer snewcomer self-assigned this Nov 5, 2021
@snewcomer snewcomer requested a review from igorT November 5, 2021 04:10
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

Asset Size Report for 1b28270

Modern Builds

☑️ EmberData has not changed in size

If any packages had changed sizes they would be listed here.

Changeset



Full Asset Analysis (Modern)

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


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

Package: @ember-data/store
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '72.16 KB' │
│  compressed  │ '15.68 KB' │
│ % Of Library │   '40.3'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/store/-private                        | 71.24 KB  | 15.48 KB   | 98.7          | 39.8
	@ember-data/store/index                           | 936.00 B  | 203.40 B   | 1.3           | 0.5

Package: @ember-data/model
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '28.55 KB' │
│  compressed  │ '6.21 KB'  │
│ % Of Library │   '16.0'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/model/-private                        | 28.08 KB  | 6.10 KB    | 98.3          | 15.7
	@ember-data/model/index                           | 486.00 B  | 105.61 B   | 1.7           | 0.3

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

Package: @ember-data/serializer
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '19.63 KB' │
│  compressed  │ '4.26 KB'  │
│ % Of Library │   '11.0'   │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/serializer/json                       | 7.19 KB   | 1.56 KB    | 36.6          | 4.0
	@ember-data/serializer/-private                   | 5.48 KB   | 1.19 KB    | 27.9          | 3.1
	@ember-data/serializer/json-api                   | 3.73 KB   | 829.27 B   | 19.0          | 2.1
	@ember-data/serializer/rest                       | 2.76 KB   | 614.34 B   | 14.1          | 1.5
	@ember-data/serializer/index                      | 258.00 B  | 56.06 B    | 1.3           | 0.1
	@ember-data/serializer/transform                  | 215.00 B  | 46.72 B    | 1.1           | 0.1

Package: @ember-data/adapter
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '15.92 KB' │
│  compressed  │ '3.46 KB'  │
│ % Of Library │   '8.9'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/adapter/rest                          | 8.07 KB   | 1.75 KB    | 50.7          | 4.5
	@ember-data/adapter/-private                      | 3.76 KB   | 836.65 B   | 23.6          | 2.1
	@ember-data/adapter/error                         | 1.94 KB   | 432.23 B   | 12.2          | 1.1
	@ember-data/adapter/index                         | 1.10 KB   | 244.47 B   | 6.9           | 0.6
	@ember-data/adapter/json-api                      | 1.04 KB   | 232.09 B   | 6.6           | 0.6

Package: ember-data
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '9.36 KB' │
│  compressed  │ '2.03 KB' │
│ % Of Library │   '5.2'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-data/index                                  | 2.42 KB   | 537.63 B   | 25.8          | 1.4
	ember-data/-private                               | 2.12 KB   | 472.00 B   | 22.7          | 1.2
	ember-data/adapters/errors                        | 1.19 KB   | 264.47 B   | 12.7          | 0.7
	ember-data/setup-container                        | 387.00 B  | 84.10 B    | 4.0           | 0.2
	ember-data/relationships                          | 318.00 B  | 69.10 B    | 3.3           | 0.2
	ember-data/serializers/embedded-records-mixin     | 274.00 B  | 59.54 B    | 2.9           | 0.1
	ember-data/serializers/json-api                   | 251.00 B  | 54.54 B    | 2.6           | 0.1
	ember-data/adapters/json-api                      | 245.00 B  | 53.24 B    | 2.6           | 0.1
	ember-data/serializers/json                       | 243.00 B  | 52.80 B    | 2.5           | 0.1
	ember-data/serializers/rest                       | 243.00 B  | 52.80 B    | 2.5           | 0.1
	ember-data/transform                              | 241.00 B  | 52.37 B    | 2.5           | 0.1
	ember-data/adapters/rest                          | 237.00 B  | 51.50 B    | 2.5           | 0.1
	ember-data/serializer                             | 232.00 B  | 50.41 B    | 2.4           | 0.1
	ember-data/adapter                                | 226.00 B  | 49.11 B    | 2.4           | 0.1
	ember-data/model                                  | 222.00 B  | 48.24 B    | 2.3           | 0.1
	ember-data/store                                  | 222.00 B  | 48.24 B    | 2.3           | 0.1
	ember-data/attr                                   | 218.00 B  | 47.37 B    | 2.3           | 0.1
	ember-data/version                                | 162.00 B  | 35.20 B    | 1.7           | 0.1

Package: ember-inflector
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '6.71 KB' │
│  compressed  │ '1.46 KB' │
│ % Of Library │   '3.8'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-inflector/lib/system/inflector              | 2.89 KB   | 644.11 B   | 43.1          | 1.6
	ember-inflector/lib/system/inflections            | 1.59 KB   | 353.56 B   | 23.7          | 0.9
	ember-inflector/index                             | 473.00 B  | 102.78 B   | 6.9           | 0.3
	ember-inflector/lib/system                        | 471.00 B  | 102.35 B   | 6.9           | 0.3
	ember-inflector/lib/helpers/pluralize             | 373.00 B  | 81.05 B    | 5.4           | 0.2
	ember-inflector/lib/utils/make-helper             | 352.00 B  | 76.49 B    | 5.1           | 0.2
	ember-inflector/lib/system/string                 | 318.00 B  | 69.10 B    | 4.6           | 0.2
	ember-inflector/lib/helpers/singularize           | 296.00 B  | 64.32 B    | 4.3           | 0.2

Package: @ember-data/debug
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '2.81 KB'  │
│  compressed  │ '624.99 B' │
│ % Of Library │   '1.6'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/debug/index                           | 2.32 KB   | 516.55 B   | 82.6          | 1.3
	@ember-data/debug/setup                           | 499.00 B  | 108.43 B   | 17.4          | 0.3

Modern Builds (No Rollup)

☑️ EmberData has not changed in size

If any packages had changed sizes they would be listed here.

Changeset



Full Asset Analysis (Modern)

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


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

Package: @ember-data/store
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '97.68 KB' │
│  compressed  │ '18.73 KB' │
│ % Of Library │   '44.3'   │
└──────────────┴────────────┘
	Module                                                                             | Bytes     | Compressed | % of Package  | % Of Library
	--------------------------------------------------------------------------------------------------------------------------------------
	@ember-data/store/-private/system/core-store                                       | 17.33 KB  | 3.32 KB    | 17.7          | 7.9
	@ember-data/store/-private/system/model/internal-model                             | 14.42 KB  | 2.77 KB    | 14.8          | 6.5
	@ember-data/store/-private/system/model/states                                     | 5.44 KB   | 1.04 KB    | 5.6           | 2.5
	@ember-data/store/-private/system/fetch-manager                                    | 5.09 KB   | 1000.29 B  | 5.2           | 2.3
	@ember-data/store/-private/system/store/finders                                    | 4.55 KB   | 893.66 B   | 4.7           | 2.1
	@ember-data/store/-private/system/record-array-manager                             | 4.14 KB   | 813.50 B   | 4.2           | 1.9
	@ember-data/store/-private/identifiers/cache                                       | 3.95 KB   | 775.53 B   | 4.0           | 1.8
	@ember-data/store/-private/index                                                   | 3.57 KB   | 700.93 B   | 3.7           | 1.6
	@ember-data/store/-private/system/store/record-data-store-wrapper                  | 3.41 KB   | 668.90 B   | 3.5           | 1.5
	@ember-data/store/-private/system/snapshot                                         | 3.07 KB   | 603.31 B   | 3.1           | 1.4
	@ember-data/store/-private/system/store/internal-model-factory                     | 2.83 KB   | 556.33 B   | 2.9           | 1.3
	@ember-data/store/-private/system/record-arrays/record-array                       | 2.28 KB   | 447.79 B   | 2.3           | 1.0
	@ember-data/store/-private/system/ds-model-store                                   | 1.94 KB   | 381.62 B   | 2.0           | 0.9
	@ember-data/store/-private/system/request-cache                                    | 1.89 KB   | 370.31 B   | 1.9           | 0.9
	@ember-data/store/-private/system/references/has-many                              | 1.53 KB   | 300.89 B   | 1.6           | 0.7
	@ember-data/store/-private/system/schema-definition-service                        | 1.51 KB   | 296.67 B   | 1.5           | 0.7
	@ember-data/store/-private/system/references/belongs-to                            | 1.32 KB   | 259.66 B   | 1.4           | 0.6
	@ember-data/store/-private/system/model/shim-model-class                           | 1.32 KB   | 258.70 B   | 1.3           | 0.6
	@ember-data/store/-private/system/store/serializer-response                        | 1.14 KB   | 223.99 B   | 1.2           | 0.5
	@ember-data/store/-private/identifiers/utils/uuid-v4                               | 1.05 KB   | 206.73 B   | 1.1           | 0.5
	@ember-data/store/-private/system/references/record                                | 984.00 B  | 188.70 B   | 1.0           | 0.4
	@ember-data/store/index                                                            | 936.00 B  | 179.50 B   | 0.9           | 0.4
	@ember-data/store/-private/system/references/reference                             | 934.00 B  | 179.11 B   | 0.9           | 0.4
	@ember-data/store/-private/system/record-arrays/adapter-populated-record-array     | 923.00 B  | 177.00 B   | 0.9           | 0.4
	@ember-data/store/-private/system/internal-model-map                               | 886.00 B  | 169.91 B   | 0.9           | 0.4
	@ember-data/store/-private/system/errors-utils                                     | 796.00 B  | 152.65 B   | 0.8           | 0.4
	@ember-data/store/-private/system/snapshot-record-array                            | 753.00 B  | 144.40 B   | 0.8           | 0.3
	@ember-data/store/-private/system/record-notification-manager                      | 697.00 B  | 133.66 B   | 0.7           | 0.3
	@ember-data/store/-private/utils/construct-resource                                | 695.00 B  | 133.28 B   | 0.7           | 0.3
	@ember-data/store/-private/system/promise-proxies                                  | 607.00 B  | 116.40 B   | 0.6           | 0.3
	@ember-data/store/-private/system/references                                       | 598.00 B  | 114.68 B   | 0.6           | 0.3
	@ember-data/store/-private/system/store/common                                     | 527.00 B  | 101.06 B   | 0.5           | 0.2
	@ember-data/store/-private/system/coerce-id                                        | 494.00 B  | 94.73 B    | 0.5           | 0.2
	@ember-data/store/-private/system/record-arrays                                    | 487.00 B  | 93.39 B    | 0.5           | 0.2
	@ember-data/store/-private/system/identity-map                                     | 450.00 B  | 86.29 B    | 0.4           | 0.2
	@ember-data/store/-private/ts-interfaces/identifier                                | 400.00 B  | 76.70 B    | 0.4           | 0.2
	@ember-data/store/-private/utils/symbol                                            | 392.00 B  | 75.17 B    | 0.4           | 0.2
	@ember-data/store/-private/system/record-data-for                                  | 390.00 B  | 74.79 B    | 0.4           | 0.2
	@ember-data/store/-private/identifiers/is-stable-identifier                        | 327.00 B  | 62.70 B    | 0.3           | 0.1
	@ember-data/store/-private/ts-interfaces/fetch-manager                             | 316.00 B  | 60.60 B    | 0.3           | 0.1
	@ember-data/store/-private/utils/promise-record                                    | 290.00 B  | 55.61 B    | 0.3           | 0.1
	@ember-data/store/-private/system/backburner                                       | 269.00 B  | 51.58 B    | 0.3           | 0.1
	@ember-data/store/-private/system/deprecated-evented                               | 257.00 B  | 49.28 B    | 0.3           | 0.1
	@ember-data/store/-private/system/normalize-model-name                             | 220.00 B  | 42.19 B    | 0.2           | 0.1
	@ember-data/store/-private/utils/is-non-empty-string                               | 212.00 B  | 40.65 B    | 0.2           | 0.1
	@ember-data/store/-debug/index                                                     | 210.00 B  | 40.27 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/minimum-serializer-interface              | 169.00 B  | 32.40 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-record-wrapper                | 167.00 B  | 32.02 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/minimum-adapter-interface                 | 166.00 B  | 31.83 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-store-wrapper                 | 166.00 B  | 31.83 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/schema-definition-service                 | 166.00 B  | 31.83 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-json-api                      | 161.00 B  | 30.87 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/ember-data-json-api                       | 160.00 B  | 30.68 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data-schemas                       | 160.00 B  | 30.68 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/promise-proxies                           | 156.00 B  | 29.91 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-instance                           | 156.00 B  | 29.91 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/record-data                               | 152.00 B  | 29.14 B    | 0.2           | 0.1
	@ember-data/store/-private/ts-interfaces/ds-model                                  | 149.00 B  | 28.57 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/store                                     | 146.00 B  | 27.99 B    | 0.1           | 0.1
	@ember-data/store/-private/ts-interfaces/utils                                     | 146.00 B  | 27.99 B    | 0.1           | 0.1

Package: @ember-data/model
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '32.66 KB' │
│  compressed  │ '6.26 KB'  │
│ % Of Library │   '14.8'   │
└──────────────┴────────────┘
	Module                                                                | Bytes     | Compressed | % of Package  | % Of Library
	-------------------------------------------------------------------------------------------------------------------------
	@ember-data/model/-private/model                                      | 9.89 KB   | 1.90 KB    | 30.3          | 4.5
	@ember-data/model/-private/record-state                               | 6.20 KB   | 1.19 KB    | 19.0          | 2.8
	@ember-data/model/-private/system/promise-many-array                  | 3.80 KB   | 746.95 B   | 11.6          | 1.7
	@ember-data/model/-private/system/many-array                          | 2.85 KB   | 559.59 B   | 8.7           | 1.3
	@ember-data/model/-private/errors                                     | 2.08 KB   | 409.24 B   | 6.4           | 0.9
	@ember-data/model/-private/index                                      | 1.42 KB   | 279.22 B   | 4.4           | 0.6
	@ember-data/model/-private/system/relationships/relationship-meta     | 1.25 KB   | 246.04 B   | 3.8           | 0.6
	@ember-data/model/-private/attr                                       | 857.00 B  | 164.34 B   | 2.6           | 0.4
	@ember-data/model/-private/notify-changes                             | 845.00 B  | 162.04 B   | 2.5           | 0.4
	@ember-data/model/-private/belongs-to                                 | 687.00 B  | 131.74 B   | 2.1           | 0.3
	@ember-data/model/-private/has-many                                   | 648.00 B  | 124.26 B   | 1.9           | 0.3
	@ember-data/model/index                                               | 486.00 B  | 93.20 B    | 1.5           | 0.2
	@ember-data/model/-private/system/promise-belongs-to                  | 447.00 B  | 85.72 B    | 1.3           | 0.2
	@ember-data/model/-private/util                                       | 442.00 B  | 84.76 B    | 1.3           | 0.2
	@ember-data/model/-private/system/diff-array                          | 438.00 B  | 83.99 B    | 1.3           | 0.2
	@ember-data/model/-private/system/model-for-mixin                     | 427.00 B  | 81.88 B    | 1.3           | 0.2

Package: @ember-data/record-data
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '30.80 KB' │
│  compressed  │ '5.91 KB'  │
│ % Of Library │   '14.0'   │
└──────────────┴────────────┘
	Module                                                                            | Bytes     | Compressed | % of Package  | % Of Library
	-------------------------------------------------------------------------------------------------------------------------------------
	@ember-data/record-data/-private/record-data                                      | 8.18 KB   | 1.57 KB    | 26.6          | 3.7
	@ember-data/record-data/-private/graph/index                                      | 4.86 KB   | 954.26 B   | 15.8          | 2.2
	@ember-data/record-data/-private/graph/operations/replace-related-records         | 3.14 KB   | 616.55 B   | 10.2          | 1.4
	@ember-data/record-data/-private/graph/-edge-definition                           | 2.81 KB   | 552.69 B   | 9.1           | 1.3
	@ember-data/record-data/-private/relationships/state/has-many                     | 2.01 KB   | 394.66 B   | 6.5           | 0.9
	@ember-data/record-data/-private/relationships/state/belongs-to                   | 1.92 KB   | 377.60 B   | 6.2           | 0.9
	@ember-data/record-data/-private/graph/operations/update-relationship             | 1.50 KB   | 295.13 B   | 4.9           | 0.7
	@ember-data/record-data/-private/graph/-utils                                     | 1.05 KB   | 206.15 B   | 3.4           | 0.5
	@ember-data/record-data/-private/graph/operations/replace-related-record          | 1.04 KB   | 203.47 B   | 3.4           | 0.5
	@ember-data/record-data/-private/index                                            | 977.00 B  | 187.36 B   | 3.1           | 0.4
	@ember-data/record-data/-private/graph/operations/add-to-related-records          | 788.00 B  | 151.11 B   | 2.5           | 0.3
	@ember-data/record-data/-private/relationships/state/implicit                     | 692.00 B  | 132.70 B   | 2.2           | 0.3
	@ember-data/record-data/-private/graph/operations/remove-from-related-records     | 667.00 B  | 127.91 B   | 2.1           | 0.3
	@ember-data/record-data/-private/coerce-id                                        | 406.00 B  | 77.86 B    | 1.3           | 0.2
	@ember-data/record-data/-private/graph/-state                                     | 293.00 B  | 56.18 B    | 0.9           | 0.1
	@ember-data/record-data/-private/normalize-link                                   | 238.00 B  | 45.64 B    | 0.8           | 0.1
	@ember-data/record-data/-private/ts-interfaces/relationship-record-data           | 171.00 B  | 32.79 B    | 0.5           | 0.1
	@ember-data/record-data/-private/graph/-operations                                | 150.00 B  | 28.76 B    | 0.5           | 0.1

Package: @ember-data/serializer
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '22.05 KB' │
│  compressed  │ '4.23 KB'  │
│ % Of Library │   '10.0'   │
└──────────────┴────────────┘
	Module                                                     | Bytes     | Compressed | % of Package  | % Of Library
	--------------------------------------------------------------------------------------------------------------
	@ember-data/serializer/json                                | 7.19 KB   | 1.38 KB    | 32.6          | 3.3
	@ember-data/serializer/-private/embedded-records-mixin     | 4.39 KB   | 861.25 B   | 19.9          | 2.0
	@ember-data/serializer/json-api                            | 3.73 KB   | 731.80 B   | 16.9          | 1.7
	@ember-data/serializer/rest                                | 2.76 KB   | 542.14 B   | 12.5          | 1.3
	@ember-data/serializer/-private/index                      | 1.18 KB   | 232.04 B   | 5.4           | 0.5
	@ember-data/serializer/-private/transforms/date            | 530.00 B  | 101.63 B   | 2.3           | 0.2
	@ember-data/serializer/-private/transforms/boolean         | 511.00 B  | 97.99 B    | 2.3           | 0.2
	@ember-data/serializer/-private/transforms/number          | 445.00 B  | 85.33 B    | 2.0           | 0.2
	@ember-data/serializer/-private/transforms/string          | 381.00 B  | 73.06 B    | 1.7           | 0.2
	@ember-data/serializer/-private/utils                      | 303.00 B  | 58.10 B    | 1.3           | 0.1
	@ember-data/serializer/index                               | 258.00 B  | 49.47 B    | 1.1           | 0.1
	@ember-data/serializer/-private/transforms/transform       | 226.00 B  | 43.34 B    | 1.0           | 0.1
	@ember-data/serializer/transform                           | 215.00 B  | 41.23 B    | 1.0           | 0.1

Package: @ember-data/adapter
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '18.05 KB' │
│  compressed  │ '3.46 KB'  │
│ % Of Library │   '8.2'    │
└──────────────┴────────────┘
	Module                                                        | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------------------
	@ember-data/adapter/rest                                      | 8.07 KB   | 1.55 KB    | 44.7          | 3.7
	@ember-data/adapter/error                                     | 1.94 KB   | 381.43 B   | 10.8          | 0.9
	@ember-data/adapter/-private/build-url-mixin                  | 1.93 KB   | 378.17 B   | 10.7          | 0.9
	@ember-data/adapter/index                                     | 1.10 KB   | 215.74 B   | 6.1           | 0.5
	@ember-data/adapter/json-api                                  | 1.04 KB   | 204.81 B   | 5.8           | 0.5
	@ember-data/adapter/-private/index                            | 1.03 KB   | 202.51 B   | 5.7           | 0.5
	@ember-data/adapter/-private/utils/serialize-query-params     | 788.00 B  | 151.11 B   | 4.3           | 0.3
	@ember-data/adapter/-private/utils/determine-body-promise     | 566.00 B  | 108.54 B   | 3.1           | 0.3
	@ember-data/adapter/-private/utils/parse-response-headers     | 480.00 B  | 92.05 B    | 2.6           | 0.2
	@ember-data/adapter/-private/utils/fetch                      | 454.00 B  | 87.06 B    | 2.5           | 0.2
	@ember-data/adapter/-private/utils/serialize-into-hash        | 347.00 B  | 66.54 B    | 1.9           | 0.2
	@ember-data/adapter/-private/utils/continue-on-reject         | 222.00 B  | 42.57 B    | 1.2           | 0.1
	@ember-data/adapter/-private/fastboot-interface               | 147.00 B  | 28.19 B    | 0.8           | 0.1

Package: ember-data
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '9.52 KB' │
│  compressed  │ '1.83 KB' │
│ % Of Library │   '4.3'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-data/index                                  | 2.42 KB   | 474.44 B   | 25.4          | 1.1
	ember-data/-private/index                         | 1.93 KB   | 378.55 B   | 20.2          | 0.9
	ember-data/adapters/errors                        | 1.19 KB   | 233.38 B   | 12.5          | 0.5
	ember-data/setup-container                        | 387.00 B  | 74.21 B    | 4.0           | 0.2
	ember-data/-private/core                          | 366.00 B  | 70.18 B    | 3.8           | 0.2
	ember-data/relationships                          | 318.00 B  | 60.98 B    | 3.3           | 0.1
	ember-data/serializers/embedded-records-mixin     | 274.00 B  | 52.54 B    | 2.8           | 0.1
	ember-data/serializers/json-api                   | 251.00 B  | 48.13 B    | 2.6           | 0.1
	ember-data/adapters/json-api                      | 245.00 B  | 46.98 B    | 2.5           | 0.1
	ember-data/serializers/json                       | 243.00 B  | 46.60 B    | 2.5           | 0.1
	ember-data/serializers/rest                       | 243.00 B  | 46.60 B    | 2.5           | 0.1
	ember-data/transform                              | 241.00 B  | 46.21 B    | 2.5           | 0.1
	ember-data/adapters/rest                          | 237.00 B  | 45.45 B    | 2.4           | 0.1
	ember-data/serializer                             | 232.00 B  | 44.49 B    | 2.4           | 0.1
	ember-data/adapter                                | 226.00 B  | 43.34 B    | 2.3           | 0.1
	ember-data/model                                  | 222.00 B  | 42.57 B    | 2.3           | 0.1
	ember-data/store                                  | 222.00 B  | 42.57 B    | 2.3           | 0.1
	ember-data/attr                                   | 218.00 B  | 41.80 B    | 2.2           | 0.1
	ember-data/version                                | 162.00 B  | 31.06 B    | 1.7           | 0.1

Package: ember-inflector
┌──────────────┬───────────┐
│   (index)    │  Values   │
├──────────────┼───────────┤
│    bytes     │ '6.71 KB' │
│  compressed  │ '1.29 KB' │
│ % Of Library │   '3.0'   │
└──────────────┴───────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	ember-inflector/lib/system/inflector              | 2.89 KB   | 568.41 B   | 43.1          | 1.3
	ember-inflector/lib/system/inflections            | 1.59 KB   | 312.01 B   | 23.7          | 0.7
	ember-inflector/index                             | 473.00 B  | 90.70 B    | 6.9           | 0.2
	ember-inflector/lib/system                        | 471.00 B  | 90.32 B    | 6.9           | 0.2
	ember-inflector/lib/helpers/pluralize             | 373.00 B  | 71.53 B    | 5.4           | 0.2
	ember-inflector/lib/utils/make-helper             | 352.00 B  | 67.50 B    | 5.1           | 0.2
	ember-inflector/lib/system/string                 | 318.00 B  | 60.98 B    | 4.6           | 0.1
	ember-inflector/lib/helpers/singularize           | 296.00 B  | 56.76 B    | 4.3           | 0.1

Package: @ember-data/debug
┌──────────────┬────────────┐
│   (index)    │   Values   │
├──────────────┼────────────┤
│    bytes     │ '2.81 KB'  │
│  compressed  │ '551.54 B' │
│ % Of Library │   '1.3'    │
└──────────────┴────────────┘
	Module                                            | Bytes     | Compressed | % of Package  | % Of Library
	-----------------------------------------------------------------------------------------------------
	@ember-data/debug/index                           | 2.32 KB   | 455.84 B   | 82.6          | 1.1
	@ember-data/debug/setup                           | 499.00 B  | 95.69 B    | 17.4          | 0.2

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

Performance Report for 1b28270

Scenario - materialization: ☑️ Performance is stable

☑️ duration
phase no difference [-14ms to 23ms]
☑️ Phase [navigationStart] => [start-find-all]
phase no difference [-7ms to 12ms]
☑️ Phase [start-find-all] => [start-materialization]
phase no difference [-15ms to 13ms]
⚠️ Phase [start-materialization] => [end-materialization]
phase estimated regression +7ms [4ms to 11ms] OR +1.04% [0.58% to 1.56%]
☑️ Phase [end-materialization] => [Test End]
phase no difference [-8ms to 2ms]

Scenario - unload: ☑️ Performance is stable

☑️ duration
phase no difference [-18ms to 14ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-5ms to 7ms]
☑️ Phase [start-push-payload] => [start-unload-records]
phase no difference [-13ms to 11ms]
☑️ Phase [start-unload-records] => [end-unload-records]
phase no difference [-4ms to 1ms]
☑️ Phase [end-unload-records] => [Test End]
phase no difference [0ms to 1ms]

Scenario - destroy: ☑️ Performance is stable

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

Scenario - add-children: ☑️ Performance is stable

☑️ duration
phase no difference [-10ms to 9ms]
☑️ Phase [navigationStart] => [start-push-initial-payload]
phase no difference [-4ms to 11ms]
☑️ Phase [start-push-initial-payload] => [start-push-update-payload]
phase no difference [-5ms to 3ms]
☑️ Phase [start-push-update-payload] => [end-push-update-payload]
phase no difference [-4ms to 0ms]
☑️ Phase [end-push-update-payload] => [Test End]
phase no difference [0ms to 1ms]

Scenario - unused-relationships: ☑️ Performance is stable

☑️ duration
phase no difference [-3ms to 27ms]
☑️ Phase [navigationStart] => [start-push-payload]
phase no difference [-4ms to 14ms]
☑️ Phase [start-push-payload] => [end-push-payload]
phase no difference [-5ms to 16ms]
☑️ Phase [end-push-payload] => [Test End]
phase no difference [-1ms to 2ms]

@runspired
Copy link
Contributor

cc @jrjohnson

@runspired runspired merged commit fda6ebc into master Nov 5, 2021
@delete-merged-branch delete-merged-branch bot deleted the sn/disable-ilios branch November 5, 2021 06:46
@jrjohnson
Copy link
Contributor

Thanks, I'm looking into it now. Initially appears to just be a controller that still has an actions hash. Maybe a few other similar touchups. I'll get those merged on our end and PR in here to re-activate this test.

@jrjohnson
Copy link
Contributor

Dug deeper into this today - the core issue seems to be that if I have a route class that doesn't inject the store service it will fail when the default model() hook is run. So this:

import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class SomeRouter extends Route {
  @service session;

  beforeModel(transition) {
    this.session.requireAuthentication(transition, 'login');
  }
}

Is now invalid. But injecting the store like;

import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default class SomeRouter extends Route {
  @service session;
  @service store;

  beforeModel(transition) {
    this.session.requireAuthentication(transition, 'login');
  }
}

works. I'd guess this is the result of removing the implicit injection in @snewcomer's #7667. This makes sense, but I don't think this is precisely the intended behavior, but I'm not sure if this is an issue here or should be addressed in Ember itself or in docs or blueprints.

@snewcomer
Copy link
Contributor Author

@jrjohnson Can you send me the route this is happening on in your codebase

@snewcomer
Copy link
Contributor Author

Thanks!

This makes sense, but I don't think this is precisely the intended behavior

So explicit injection is expected based on the RFC below.

emberjs/rfcs#680

@runspired
Copy link
Contributor

runspired commented Nov 8, 2021

Thanks!

This makes sense, but I don't think this is precisely the intended behavior

So explicit injection is expected based on the RFC below.

emberjs/rfcs#680

I think we should raise this as an issue with that RFC, because defaultModel behavior was still not deprecated (we lost the battle that it needed to be deprecated before global injections sadly). It was one thing to dismiss the defaultModel concern on the premise that folks without a model hook might encounter an error if they were relying on it with an easy enough fix, it's another for it to turn out that every route requires the explicit injection even when no store / default model / model hook behavior should be present.

NVM: I see when I look at the full route the store is expected to be there. I've been working on a codemod for explicit injections, should help folks get past this with fewer hiccups.

@jrjohnson
Copy link
Contributor

So explicit injection is expected based on the RFC below.

Yup, I'm all for this! What I didn't expect was the need to inject the store when I wasn't calling this.store anywhere in my own code. Obviously I can see that model() would need the store I just feel weird about injecting it for magic happening elsewhere. I'm going to run some tests, but I'm also curious what happens if I don't have a backing route class at all and so nowhere to inject the store.

NVM: I see when I look at the full route the store is expected to be there. I've been working on a codemod for explicit injections, should help folks get past this with fewer hiccups.

Is that in my code? As far as I could see we're not relying on the store anywhere in the route chain up to application, but maybe I missed it? if that's the case then this is a clear issue in our app and easy enough to fix. Otherwise I may try and see if the store can be looked up from the container whenever a default hook expects it to exist.

@runspired
Copy link
Contributor

@jrjohnson you linked https://github.com/ilios/frontend/blob/master/app/routes/curriculum-inventory-reports.js

Which contains

async model() {
    return this.store.findAll('school');
  }

@jrjohnson
Copy link
Contributor

@snewcomer
Copy link
Contributor Author

So to circle back to the actual failures, this was the errors in our test suite.

Screen Shot 2021-11-10 at 11 20 09 AM

https://github.com/emberjs/data/runs/4113308601?check_suite_focus=true

@jrjohnson
Copy link
Contributor

jrjohnson commented Nov 10, 2021

That error was masking the real issue because it triggered our error component. It's fixed now so the real issue, that there is no store on that route, is exposed.

Edit: it's fixed now. So rerunning the test will show the real error.

@runspired
Copy link
Contributor

@jrjohnson that route should have store, it's using it you just aren't aware of it. Notice that the route definition has a url-param, ember's (not ember-data's) default model-hook behavior is to call store.find with the type and id being derived from the name and value of that param. Since there is a url-param and no model-hook, you're hitting that behavior.

@jrjohnson
Copy link
Contributor

@runspired I agree! However it is super weird to inject the store into code where there is no explicit this.store. I'll do it, but I think this is probably a bigger issue that our app is just the first to hit. The implicit model() on a route is a basic feature of Ember that probably exists a lot of places. I'll have more OSS time this weekend to check it, but I wonder what would happen if I had no backing route class at all and just relied on the default implicit route model hook. If that fails I'm not sure where the store would even be injected.

I think the solution is probably going to be looking up the store in the default route instead of relying on this.store to be there. Something like owner.lookup('service:store').

@igorT
Copy link
Member

igorT commented Nov 10, 2021

@jrjohnson were you getting a deprecation before for this behavior?

@jrjohnson
Copy link
Contributor

@igorT not that I can see, our latest run at https://github.com/ilios/frontend/runs/4148647180 doesn't mention anything that I can find about store or injection.

@snewcomer
Copy link
Contributor Author

@jrjohnson Could you take a look at this test run when you get a chance?

https://github.com/emberjs/data/runs/4168965070?check_suite_focus=true

@jrjohnson
Copy link
Contributor

jrjohnson commented Nov 11, 2021

Yes. {"type":"error","text":"Error while processing route: curriculumInventoryReport.index Assertion Failed: CurriculumInventoryReport has no method "find". is what I'm seeing locally as well. It can be resolved by adding @service store to the route. It's interesting to me that it's looking for find and not store. I assume maybe @ember/routing/route proxies this to this.store, which isn't set anymore.

@jrjohnson
Copy link
Contributor

jrjohnson commented Nov 12, 2021

I've tracked this down to https://github.com/emberjs/ember.js/blob/master/packages/%40ember/-internals/routing/lib/system/route.ts#L1400 where the store is expected to exist on the route or take a default and also confirmed that this happens when there is no model hook and also when there is no backing class at all. It doesn't trigger any deprecations in a new ember app with these feature and fails in this simple case as well.

I created a sample Ember CLI 3.28.4 app and added two routes to it. Working with with ED 3.28, but fails with 4.0 beta 4.

@snewcomer
Copy link
Contributor Author

snewcomer commented Nov 13, 2021

@jrjohnson How does this look?

emberjs/ember.js#19840

@jrjohnson
Copy link
Contributor

@snewcomer it throws the same error as before. It looks like a good incidental change, but I'm not clear on how it solves this issue. I don't think the core problem is with ED at all, the issue is that implicit models didn't get deprecated, but now will suddenly stop working without the store injection.

@snewcomer
Copy link
Contributor Author

snewcomer commented Nov 14, 2021

@jrjohnson There is one more step I need to take care of. Since we did deprecate implicit injection, I was hoping that the deprecation would surface on your test suite. But if they aren't, then I missed something.

  1. If there is a deprecation, then we can remove the assert since the protected set store(value: any) isn't called anymore and Model class instances don't have a find method.
  2. If no deprecation, then I probably need to for the store on the route somehow in ember-data (not using inject). This would effectively undo this RFC - https://github.com/emberjs/rfcs/blob/sn/owner-inject-deprecation/text/0680-implicit-injection-deprecation.md

@jrjohnson
Copy link
Contributor

Ah, ok. No I patched in your router code into the sample app I built and still don't see a deprecation, just the assertion failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 canary PR is targeting canary (default) 🏷️ test This PR primarily adds tests for a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants