Naz
57e24b3677
Added incorrect 'max' usage error to MaxLimit
...
refs https://github.com/TryGhost/Team/issues/587
- When the 'max' configuration is missing the instance of the class breaks when used unexpectedly. Followed similar approach to currentCountQuery check by failing fast in the constructor
2021-04-01 17:20:56 +13:00
Naz
299d3e3bd4
Added test coverage for max limit class
...
refs https://github.com/TryGhost/Team/issues/587
- Test were missing for class initialization and around how the limit currently works.
- Before extending it's behavior throught its valuable to cover current functionality to not accidentally break anything
2021-04-01 17:17:45 +13:00
naz
df222e6d64
Updated readme with module description
...
refs https://github.com/TryGhost/Team/issues/510
- Explained the intention and responsibility ares of the module
2021-03-31 13:05:46 +13:00
Hannah Wolfe
b72c428c2e
Published new versions
...
- @tryghost/limit-service@0.3.0
2021-03-04 20:46:49 +00:00
Hannah Wolfe
2163ec6057
Changed casing of limit names + fixed handling
...
refs: https://github.com/TryGhost/Team/issues/510
- Ghost config always uses camelcase. This was incorrectly implemented with snake case originally
- Swap to use camelCase by default, which is desirable, but support both
- It's really easy to support both in the loader and isLimited check, so we do this to stop ourselves tripping on this later
2021-03-04 20:39:09 +00:00
Hannah Wolfe
314a1138c3
Published new versions
...
- @tryghost/limit-service@0.2.1
2021-03-04 18:15:13 +00:00
Hannah Wolfe
47478eb1f9
Added proper number formatting for error messages
...
refs: https://github.com/TryGhost/Team/issues/510
- We should always format numbers correctly with thousand separators when we're displaying them to users
2021-03-04 18:08:25 +00:00
Hannah Wolfe
abac3a5eed
Published new versions
...
- @tryghost/limit-service@0.2.0
2021-03-04 13:35:20 +00:00
Hannah Wolfe
75e857b76b
Updated staff count query to include invites
...
refs: https://github.com/TryGhost/Team/issues/510
- we need to make sure we take into account any invites that could be accepted at any time
- this counts all invites for non-contributor roles as well as all users who aren't contributors
- this should stop there being loop holes to inviting staff users
2021-03-04 13:31:41 +00:00
Hannah Wolfe
cf21244e31
Published new versions
...
- @tryghost/limit-service@0.1.1
2021-03-03 17:56:02 +00:00
Hannah Wolfe
feb872eb3e
Fixed clobbering the lodash template settings
...
refs: https://github.com/lodash/lodash/issues/705
- Was seeing unexpected token = errors when using lodash templates in Ghost
- This is because we're setting template settings globally in this dependency and it affects every other user of lodash
- Using runInContext keeps this templateSettings change local to this lib
- Test proves that after requiring limits we can require lodash and have the default values again
2021-03-03 17:54:36 +00:00
Hannah Wolfe
7dc95f96c4
Published new versions
...
- @tryghost/limit-service@0.1.0
2021-03-03 12:20:40 +00:00
Hannah Wolfe
201e133386
Added limit service initial commit
...
- This provides some basic functionality and error message generation for adding host-based limits in Ghost
- It is a first-pass, needs unit tests etc
2021-03-03 12:19:48 +00:00
Naz
4bd8dc90ed
Published new versions
...
- @tryghost/job-manager@0.8.1
2021-03-03 12:27:50 +13:00
Naz
6b2494a5bc
Bumped bree to 6.2.0
...
refs 55060e323c
- This bump was meant to be done when the referenced changes landed. Without it parts of worker thread messages are lost
2021-03-03 12:26:37 +13:00
Naz
0e951cad36
Published new versions
...
- @tryghost/adapter-manager@0.2.9
- @tryghost/bootstrap-socket@0.2.7
- @tryghost/constants@0.1.6
- @tryghost/errors@0.2.9
- @tryghost/image-transform@1.0.9
- @tryghost/job-manager@0.8.0
- @tryghost/moleculer-service-from-class@0.2.12
- @tryghost/mw-session-from-token@0.1.16
- @tryghost/pretty-cli@1.2.15
- @tryghost/promise@0.1.6
- @tryghost/release-utils@0.6.12
- @tryghost/security@0.2.6
- @tryghost/session-service@0.1.17
- @tryghost/vhost-middleware@1.0.13
- @tryghost/zip@1.1.10
2021-02-22 19:13:32 +13:00
Naz
0e2c5cdb45
Fixed typo
2021-02-22 19:10:55 +13:00
Naz
55060e323c
✨ Added workerMessageHandler option to ctr options
...
refs https://github.com/TryGhost/Ghost/issues/12496
- `workerMessageHandler` option allows for custom worker message handling and allows to eliminate a need for loggers of any type inside of jobs.
- removing loggers from jobs solves file hanle leak which used to cause Ghost process to crash (see referenced issue)
2021-02-22 19:10:47 +13:00
Naz
0e1c2ececb
Fixed a typo
2021-02-22 18:54:23 +13:00
Naz
57c3b4428d
Fixed spelling mistakes
2021-02-22 13:11:19 +13:00
Renovate Bot
741232161e
Update dependency ghost-ignition to v4.4.4
2021-02-18 17:41:28 +00:00
Renovate Bot
12efe8e428
Update dependency @types/mocha to v8.2.1
2021-02-17 17:09:45 +00:00
Renovate Bot
8863bfd654
Update dependency archiver to v4.0.2
2021-02-15 04:16:44 +00:00
Renovate Bot
9399866e95
Update dependency mocha to v8.3.0
2021-02-11 19:30:19 +00:00
Renovate Bot
a130b84060
Update dependency typescript to v4.1.5
2021-02-10 21:17:57 +00:00
Renovate Bot
4269795c4a
Update dependency typescript to v4.1.4
2021-02-09 20:39:11 +00:00
Daniel Lockyer
d8f529ef78
Published new versions
...
- @tryghost/adapter-manager@0.2.8
- @tryghost/bootstrap-socket@0.2.6
- @tryghost/constants@0.1.5
- @tryghost/errors@0.2.8
- @tryghost/image-transform@1.0.8
- @tryghost/job-manager@0.7.2
- @tryghost/moleculer-service-from-class@0.2.11
- @tryghost/mw-session-from-token@0.1.15
- @tryghost/pretty-cli@1.2.14
- @tryghost/promise@0.1.5
- @tryghost/release-utils@0.6.11
- @tryghost/security@0.2.5
- @tryghost/session-service@0.1.16
- @tryghost/vhost-middleware@1.0.12
- @tryghost/zip@1.1.9
2021-02-09 11:54:13 +00:00
Daniel Lockyer
8e8b217d4e
Updated release to optionally take a targetRef
...
no issue
- this should allow us to pass in the branch if needed
2021-02-09 11:51:33 +00:00
Daniel Lockyer
810ef47561
Updated base branch for releases in release utils
...
- we switched from master to main so we need to do the same here
2021-02-09 11:48:37 +00:00
Renovate Bot
2293e0b29f
Update dependency date-fns to v2.17.0
2021-02-05 15:11:27 +00:00
Renovate Bot
68d94d8880
Update dependency delay to v5
2021-02-01 15:50:32 +00:00
Renovate Bot
53f0e8855c
Update dependency delay to v4.4.1
2021-02-01 01:06:49 +00:00
Renovate Bot
bed0f10fff
Update dependency emoji-regex to v9.2.1
2021-01-29 10:19:13 +00:00
Renovate Bot
078ab5374a
Update dependency fastq to v1.10.1
2021-01-28 12:00:32 +00:00
Renovate Bot
cf22028c80
Update dependency ghost-ignition to v4.4.3
2021-01-27 13:11:49 +00:00
Renovate Bot
7b21b682ce
Update dependency supertest to v6.1.3
2021-01-25 21:31:18 +00:00
John O'Nolan
61109d57a0
2021
2021-01-25 16:20:43 +00:00
Renovate Bot
9d636f25fd
Update dependency supertest to v6.1.2
2021-01-25 06:54:13 +00:00
Renovate Bot
4531b94d6b
Update dependency sinon to v9.2.4
2021-01-25 00:43:01 +00:00
Renovate Bot
cd5efa81c0
Update dependency ghost-ignition to v4.4.2
2021-01-22 15:03:09 +00:00
Renovate Bot
776a6235ae
Update dependency ghost-ignition to v4.4.1
2021-01-21 18:43:54 +00:00
Renovate Bot
c3b713a2a6
Update dependency ghost-ignition to v4.4.0
2021-01-21 16:17:56 +00:00
Renovate Bot
90fabddb5d
Update dependency fs-extra to v9.1.0
2021-01-19 19:34:19 +00:00
Renovate Bot
ba35d61e58
Update dependency bree to v4.1.1
2021-01-19 17:59:57 +00:00
Renovate Bot
097820103c
Update dependency supertest to v6.1.1
2021-01-15 19:06:54 +00:00
Renovate Bot
a13f907e21
Update dependency supertest to v6.1.0
2021-01-15 16:07:08 +00:00
Renovate Bot
0870ca7c54
Update dependency ghost-ignition to v4.3.0
2021-01-13 15:18:31 +00:00
Daniel Lockyer
c4e2208158
Published new versions
...
- @tryghost/adapter-manager@0.2.7
- @tryghost/bootstrap-socket@0.2.5
- @tryghost/constants@0.1.4
- @tryghost/errors@0.2.7
- @tryghost/image-transform@1.0.7
- @tryghost/job-manager@0.7.1
- @tryghost/moleculer-service-from-class@0.2.10
- @tryghost/mw-session-from-token@0.1.14
- @tryghost/pretty-cli@1.2.13
- @tryghost/promise@0.1.4
- @tryghost/release-utils@0.6.10
- @tryghost/security@0.2.4
- @tryghost/session-service@0.1.15
- @tryghost/vhost-middleware@1.0.11
- @tryghost/zip@1.1.8
2021-01-12 16:43:48 +00:00
Daniel Lockyer
f6d5480c4f
Renamed TryGhost/Ghost-Utils
links to TryGhost/Utils
...
no issue
- this repository has been renamed so this commit just brings all the
links inline with this change
2021-01-12 16:40:16 +00:00
Naz
34411cfcc1
Improved documentation and job examples
...
refs #122
- As job signature has changed in 3bca4f63b8
and documentation needed updates accordingly
2021-01-07 15:17:38 +13:00