Ghost/ghost/admin/app/serializers
Kevin Ansfield 9a24be2b4f Fixed Ember Data deprecation warnings for queryRecord response returning array
no issue

- our API always returns an array whether we're performing a browse or find request but Ember Data expects explicit find requests to return a single object and throws deprecations when it sees an array
  - https://deprecations.emberjs.com/ember-data/v2.x/#toc_store-queryrecord-array-response-with-restserializer
- we previously had `normalizeSingleResponse` overrides in specific models that we use with `queryRecord` but we've since introduced `queryRecord` usage on more models but the associated "fix" was not duplicated in the serializers for those models leading to many deprecation warnings logged to the console in development and when testing
- moved the fix to the application serializer so it applies to all models
  - explicitly excluded `setting` model because that's a special-case and has it's own array-into-object serialization to represent multiple settings records as a single model instance
2022-02-10 14:50:58 +00:00
..
action.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
api-key.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
application.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
custom-theme-setting-list.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email-recipient.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
email.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
integration.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
invite.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
label.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
member.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
notification.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
page.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
post.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
role.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
setting.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
tag.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00
theme.js Finalized migration of serializers to native class syntax 2022-02-02 18:35:18 +00:00
user.js Fixed Ember Data deprecation warnings for queryRecord response returning array 2022-02-10 14:50:58 +00:00
webhook.js [chore] migrate to eslint@8 and run --fix (#2256) 2022-02-10 10:41:36 +00:00