2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Commit graph

1066 commits

Author SHA1 Message Date
Renovate Bot
14ac6168ac Update dependency @tryghost/members-api to v0.34.2 2020-11-02 10:34:21 +00:00
Renovate Bot
0958e6af82 Update dependency knex to v0.21.11 2020-11-02 10:10:38 +00:00
naz
a2bfef53de
🐛 Fixed post resource filtering by posts_meta table fields (#12307)
refs #11572

- Filtering by fields coming from posts_meta table did not work for post resources. This was due to lack of support for these types of operations on NQL layer. The approach taken here is using same way filtering was done for many:many relations and generates a `WHERE IN` filtering clause. In the future we could look into adding preloading of 1:1 relations which should allow getting rid of `WHERE IN` in favor of `JOIN` and filtering directly by field names. 
- Changed structure of `EXPANSIONS` filter configuration. Current approach was based on "bag of all the things". Such structure will become problematic as more fields are added. For example, adding all the fields from 1:1 relation posts:posts_meta might collide with any other relations that would have similar naming like meta_description from tags table (if it were was added).
- Bumped nql version to 0.5.0. This adds filtering support to 1:1 relations
- Added filter expansions which can be unique per model Previous approach with single global expansions lookup wasn't working in case different models would need to declare expansion for same field names. Having a `filterExpansion` method per model works in a similar convention other filter related model methods do (e.g. enforcedFilters, defaultFilters)
2020-11-02 12:53:57 +13:00
Renovate Bot
aaeba56134
Update dependency ghost-ignition to v4.2.3 2020-10-29 15:18:58 +00:00
Renovate Bot
37f071f860
Update dependency @sentry/node to v5.27.2 2020-10-29 14:12:16 +00:00
Renovate Bot
44a64da011 Update dependency @tryghost/members-api to v0.34.1 2020-10-29 17:21:56 +05:30
Renovate Bot
dcb4e37790 Update dependency @tryghost/members-csv to v0.3.2 2020-10-29 16:32:06 +05:30
Renovate Bot
8c990d2907 Update dependency @tryghost/magic-link to v0.6.1 2020-10-29 16:31:42 +05:30
Renovate Bot
6e82934230
Update dependency supertest to v6 2020-10-28 19:54:01 +00:00
Renovate Bot
ad3b7b798d
Update dependency sinon to v9.2.1 2020-10-28 09:04:45 +00:00
Renovate Bot
67d42a62fe Update dependency @tryghost/members-api to v0.34.0 2020-10-27 15:43:12 +05:30
Renovate Bot
9ac669c34c Update dependency knex to v0.21.8 2020-10-27 09:50:24 +00:00
Renovate Bot
0c62f28a42 Update dependency analytics-node to v3.4.0-beta.3 2020-10-27 08:02:32 +00:00
Renovate Bot
da1f49e2dd
Update dependency eslint to v7.12.1 2020-10-27 05:05:45 +00:00
Renovate Bot
983e2c4e0e Update dependency jwks-rsa to v1.11.0 2020-10-26 08:29:18 +00:00
Renovate Bot
e103a8c6cd Update dependency knex to v0.21.7 2020-10-26 08:28:54 +00:00
Renovate Bot
b04a9ff9db
Update dependency eslint to v7.12.0 2020-10-26 00:07:09 +00:00
Renovate Bot
a4f6d1f01e
Update dependency @sentry/node to v5.27.1 2020-10-23 10:41:07 +00:00
Renovate Bot
26ab27b4bf
Update dependency eslint-plugin-ghost to v2 2020-10-23 09:01:27 +00:00
Renovate Bot
29af4d46f5
Update dependency sanitize-html to v2.1.1 2020-10-21 14:17:24 +00:00
Renovate Bot
b59026e213
Update dependency knex-migrator to v3.5.0 2020-10-21 12:40:55 +00:00
Renovate Bot
99c030b749
Update dependency @sentry/node to v5.27.0 2020-10-21 10:57:52 +00:00
Renovate Bot
a57db99b43 Update dependency gscan to v3.6.0 2020-10-21 11:39:01 +01:00
Renovate Bot
6b8116df2f Update dependency sanitize-html to v2 2020-10-21 11:37:08 +01:00
Renovate Bot
90bf886b28 Update dependency @lodder/grunt-postcss to v3 2020-10-21 11:31:52 +01:00
Renovate Bot
8cf644d5ba
Update dependency @tryghost/kg-markdown-html-renderer to v2.0.3 2020-10-19 18:05:31 +00:00
Renovate Bot
79c49a8262
Update dependency @tryghost/kg-card-factory to v2.1.3 2020-10-19 16:07:31 +00:00
Kevin Ansfield
d08b586781 🐛 Fixed width/height attributes in gallery cards not matching resized images
closes https://github.com/TryGhost/Ghost/issues/11548

- bumps @tryghost/kg-default-cards
  - introduces a breaking change where `imageOptimization` is passed as an options argument instead of separating out individual config options
  - fixes width/height attributes for images in gallery cards being larger than the max default width used when resizing images
2020-10-19 17:05:57 +01:00
Fabien 'egg' O'Carroll
7097cfe8a4
Updated @tryghost/members-api to 0.33.3 (#12292)
closes https://github.com/TryGhost/Ghost/issues/12270
refs https://github.com/TryGhost/Members/pull/209

This includes a change to member creation after a Stripe Checkout, we
now add the name from the default payment method at creation, rather
than updating it after.
2020-10-19 13:06:51 +01:00
Renovate Bot
b61fb2a867
Update dependency mocha to v8.2.0 2020-10-16 21:23:19 +00:00
Renovate Bot
1700206aa7
Update dependency @tryghost/helpers to v1.1.33 2020-10-16 18:05:47 +00:00
Kevin Ansfield
16bfb3fa41 Added basic CRUD admin API for snippets
no issue

- standard browse/read/add/edit/destroy API endpoints for snippets resource
- updates `@tryghost/admin-api-schema` dependency to version that includes snippet definition and schemas
2020-10-16 18:02:58 +01:00
Renovate Bot
8ecd6a7c71 Update dependency @tryghost/members-api to v0.33.2 2020-10-15 12:45:19 +01:00
Renovate Bot
2cf5ca546b Update dependency @tryghost/string to v0.1.13 2020-10-14 08:45:29 +01:00
Renovate Bot
92f98a8d36 Update dependency @tryghost/url-utils to v0.6.22 2020-10-14 08:00:51 +01:00
Renovate Bot
a22da3c5a6 Update dependency @tryghost/social-urls to v0.1.14 2020-10-14 08:00:27 +01:00
Renovate Bot
f3643b2804 Update dependency @tryghost/html-to-mobiledoc to v0.7.5 2020-10-14 08:00:05 +01:00
Renovate Bot
eb1b30d520
Update dependency @tryghost/helpers to v1.1.32 2020-10-14 00:25:14 +00:00
naz
392140cb36
Allowed for comped field when creating a member through Members API (#12278)
closes #12273

- `comped` field has been allowed when editing a member or importing from a CSV. There has been a usecase (Zapier Integration) for API client to create a member with "Complimentary" plan, which made this change necessary
- Previously the logic for comped field was to skip and continue member record creation if Stripe was not connected. Now we throw an error - same as the one we have been throwing before when stripe_customer_id field was passed in. The implication of this change is that we won't be creating any record now if comped === true and Stripe is disabled. 
- Bumped admin-api-schema-package. Contains `comped` schema change so this field gets passed through to controller
2020-10-14 13:24:09 +13:00
Renovate Bot
d81b9c93b2
Update dependency @sentry/node to v5.26.0 2020-10-12 15:31:54 +00:00
Renovate Bot
7e52241451
Update dependency ajv to v6.12.6 2020-10-12 00:06:54 +00:00
Renovate Bot
e821b7eef9
Update dependency eslint to v7.11.0 2020-10-09 21:06:17 +00:00
Renovate Bot
eaae62d814
Update dependency sinon to v9.2.0 2020-10-06 19:09:59 +00:00
Renovate Bot
ce4da16edb
Update dependency @tryghost/members-api to v0.33.0 2020-10-05 17:35:20 +00:00
Renovate Bot
b27faeb138
Update dependency @sentry/node to v5.25.0 2020-10-05 12:55:19 +00:00
Renovate Bot
f54201ceef Update dependency jwks-rsa to v1.10.1 2020-10-05 07:59:42 +01:00
Renovate Bot
b34f2e86fb
Update dependency uuid to v8.3.1 2020-10-05 00:06:30 +00:00
Naz
d9c643ab10 🐛 Fixed "Validation failed for posts[0]" error when saving a post
refs https://github.com/TryGhost/Ghost-SDK/issues/348

- There was an issue with schema clashing in the cach that caused validation to be run agains wrong API version
2020-10-02 17:20:16 +13:00
Renovate Bot
8756b54b18
Update dependency @tryghost/url-utils to v0.6.21 2020-09-30 13:06:41 +00:00
Renovate Bot
85f6685ec2
Update dependency @tryghost/string to v0.1.12 2020-09-30 10:03:54 +00:00