Ghost/ghost/core/test/unit/api/canary
Daniel Lockyer 04e3ee9f10 Added property cleaning to tag relations on pages + posts
refs https://github.com/TryGhost/Ghost/pull/15375

- we currently pass all properties for the `tags` property of a
  `page`/`post` body down further into Ghost, which is causing issues
  because it's handling properties it doesn't expect
- this is showing up because it's triggering save history events for
  tags when a post is edited
- this commit introduces a clean util which has an allowlist of
  properties allows on tag relations
- this list was taken from the schema: 128f8fb006/packages/admin-api-schema/lib/schemas/posts.json (L214-L227)
2022-09-07 22:28:56 +01:00
..
utils Added property cleaning to tag relations on pages + posts 2022-09-07 22:28:56 +01:00
session.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00