Commit Graph

98 Commits

Author SHA1 Message Date
Hannah Wolfe
dc879d127c Updated paths & tests to work in new pkg structure
- added export to index.js
 - fixed all paths to match the new structure
 - replaced should with testUtils
2020-03-25 10:24:33 +00:00
Rishabh Garg
9827594670 🏗Added host config limits for member emails (#11439)
no issue

Introduces host limits config for allowing email limits with members.
2020-03-25 10:24:33 +00:00
Kevin Ansfield
9fe54bb34e Added logging of slow {{#get}} helper uses (#10779)
no issue

- `{{#get}}` can slow down requests a lot if not used carefully, typically by using `limit="all"` or similar which can force a lot of data to be fetched and processed
- adds a warning log if we detect any `{{#get}}` helper call which takes longer than a certain threshold (default 200ms)
- allow log level and threshold to be configured via config to allow for different environments behaviours and requirements

New config options:
```
{
    "logging": {
        "slowHelper": {
            "level": "warn",
            "threshold": 200
        }
    }
}
```

Example output for `{{#get "tags" limit="all" order="name asc"}}` with a lot of tags:

```
[2019-06-07 10:35:52] WARN {{#get}} helper took 453ms to complete

{{#get}} helper took 453ms to complete

Error ID:
    062daed0-8910-11e9-8185-3b615ad8677d

Error Code:
    SLOW_GET_HELPER

Details:
    api:          v2.tagsPublic.browse
    apiOptions:
      order: name asc
      limit: all
    returnedRows: 1698
```
2020-03-25 10:24:33 +00:00
Nazar Gargol
1fcf3d0996 Removed unused GhostErrors
refs #10438
2020-03-25 10:24:33 +00:00
Anonymous
e3ba60ca05 ES6 migration: server/lib/common (#9779)
refs #9589
2020-03-25 10:24:33 +00:00
kirrg001
27ae1b5163 Removed old jshint/jscs rules
refs bcf5a1bc34

- leftovers
2020-03-25 10:24:33 +00:00
Katharina Irrgang
b4f398ec6a Tidy up unit test files (#9340)
refs #9178

- first iteration of tidying up the unit tests
- this is useful in the current stage, because if i move files in the server folder, i need a clean folder/file structure to detect which tests needs to move
- this is a simple cleanup to reflect the current server folder structure
2020-03-25 10:24:33 +00:00
kirrg001
46d392bc84 Moved errors,logging,i18n and events to lib/common
refs #9178
2020-03-25 10:24:33 +00:00
Hannah Wolfe
4ff036b1c3 Prepared new errors package
- Ready to accept code and history from TryGhost/Ghost
2020-03-25 10:24:33 +00:00
Hannah Wolfe
1c57c8d34a Published new versions
- @tryghost/pretty-cli@1.2.4
 - @tryghost/release-utils@0.4.2
 - @tryghost/vhost-middleware@1.0.2
 - @tryghost/zip@0.1.0
2020-03-20 20:20:56 +00:00
Hannah Wolfe
3b6021a34e Swap extract-zip for @tryghost/extract-zip
- our version has some bug fixes
2020-03-20 20:03:40 +00:00
Hannah Wolfe
35ff6d1462 Expose extract, promisify + test cleanup
- Expose extract-zip as a utility
- Wrap extract and zipFolder in promisify
- Cleanup tests slightly
2020-03-20 19:59:15 +00:00
Hannah Wolfe
099a93d4a4 Updated paths & tests to work in new pkg structure
- added export to index.js
- fixed all paths to match the new structure
- replaced should with testUtils
- moved code from describe block into before
2020-03-20 17:02:36 +00:00
Hannah Wolfe
43d0629346 Merged zip-folder files & history from TryGhost/Ghost 2020-03-20 16:29:37 +00:00
Hannah Wolfe
9fdeb7d654 Prepared new zip package
- Ready to accept code and history from TryGhost/Ghost
2020-03-20 16:21:52 +00:00
Renovate Bot
eaba1def62 Update dependency mocha to v7.1.1 2020-03-18 10:16:25 +00:00
Renovate Bot
2924a12c4d Update Test & linting packages 2020-03-10 17:10:43 +00:00
Daniel Lockyer
698261e294 Fixed lint issues
no issue
2020-03-10 17:07:36 +00:00
Daniel Lockyer
f80b5289b6 Added lock emoji to order list
no issue
2020-03-09 20:03:18 +00:00
Renovate Bot
968cc7f671 Update dependency chalk to v3 2020-03-09 13:38:32 +00:00
Renovate Bot
5ce0ff64a9 Update dependency ghost-ignition to v4 2020-03-09 13:37:55 +00:00
Daniel Lockyer
8c2d85825e Published new versions
- @tryghost/release-utils@0.4.1
2020-02-11 10:03:31 +00:00
Daniel Lockyer
f88cebc12c Fixed wrong usage of helper function
no issue
2020-02-11 10:01:39 +00:00
Daniel Lockyer
5fef535658 Published new versions
- @tryghost/pretty-cli@1.2.3
 - @tryghost/release-utils@0.4.0
 - @tryghost/vhost-middleware@1.0.1
2020-02-10 13:58:45 +00:00
Daniel Lockyer
620047169b Set a message if there are no emoji-prepended commits
no issue
2020-02-10 13:55:00 +00:00
Daniel Lockyer
45bd9ec37f Sorted the release changelog by emoji
no issue
2020-02-10 13:54:51 +00:00
John O'Nolan
3bd4d736d8 2020 2020-01-07 19:06:08 +00:00
Zlatan Vasović
0cb9685520 2020
refs 5e10faee8b
2020-01-06 10:51:18 +01:00
Renovate Bot
9b01975a7f Update Test & linting packages 2019-10-28 03:31:27 +00:00
Renovate Bot
a1c1a9e407 Pin dependency supertest to 4.0.2 2019-10-28 00:33:40 +00:00
Kevin Ansfield
495de734ab Published new versions
- @tryghost/pretty-cli@1.2.2
 - @tryghost/release-utils@0.3.3
 - @tryghost/vhost-middleware@1.0.0
2019-10-24 15:11:50 +01:00
Kevin Ansfield
a0b74b289a Added express 'trust proxy' support
no issue

- extracted from https://github.com/expressjs/vhost/pull/21
- uses `req.hostname` if it's available. `req.hostname` is set to the `x-forwarded-host` value when `'trust proxy'` setting is enabled in express
2019-10-24 15:11:08 +01:00
Kevin Ansfield
3e6a713658 Forked expressjs/vhost to vhost-middleware
no issue

Direct copy of current master from https://github.com/expressjs/vhost/ with automatic eslint fixes to match our styleguide.

Forked because we need a reverse proxy fix and the original module appears abandoned.
2019-10-24 14:53:06 +01:00
Naz Gargol
e1ec5aa405 🔥 Removed V1 code/references in frontend resources/routing layer (#11087)
no issue

- Removed v1 'author' leftover in include statement for preview controller
- Removed v1 'author' leftover in include statement for preview controller
- Removed v1 'author' leftover in include statement in entry lookup routing helper
- Migrated related test to use v2 API controller
- Removed v0.1 routing confif
- Removed v0.1 url config
- Fixed tests that had to do with url's in resources after removing v0.1 resources from URL cache
- Removed v1 'author' leftover in include statement in static routing helper
- Modified the test to use v2 API
- Removed v1 specific condition with 'page' in context helper
- Fixed dynamic routing spec after theme switch to v2. All tested users have to have at least one published post to be shown as an author
- Fixed URL Service spec to use theme engine v2
2019-09-10 11:41:42 +02:00
Sumedh Nimkarde
3e7a15b9ee 🐛 Ignored node_modules dir when archiving (#10969)
fixes #10929
2019-08-06 16:17:41 +08:00
Aileen Nowak
a54b40b9f8 Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
Aileen Nowak
30fda4eccd Updated links to docs (#10941)
no issue
2019-07-22 18:17:50 +08:00
Renovate Bot
2045157cb6 Update Test & linting packages 2019-04-22 01:28:43 +00:00
Renovate Bot
58f3f93822 Update dependency mocha to v6.1.3 2019-04-15 01:28:32 +00:00
Renovate Bot
7c19484dd2 Update dependency mocha to v6.1.1 2019-04-08 01:29:25 +00:00
Hannah Wolfe
982e045ba4 Update README.md to mention ui.log
- added missing docs for ui.log
2019-04-05 12:41:24 +01:00
Nazar Gargol
8a36066e81 Published new versions
- @tryghost/pretty-cli@1.2.1
 - @tryghost/release-utils@0.3.2
2019-04-05 15:52:24 +08:00
Nazar Gargol
931be83e7d Fixed repository reference for pretty-cli 2019-04-05 15:50:03 +08:00
Renovate Bot
8871293364 Update dependency sinon to v7.3.1 2019-03-27 12:08:01 +00:00
Rish
074c15acc3 Published new versions
- @tryghost/release-utils@0.3.1
2019-03-18 00:59:53 +05:30
Rish
ec94fb9529 🐛 Fixed changelog getting set as empty
no issue

- Changelog was set as empty due to concat creating new arrays
2019-03-18 00:43:40 +05:30
Rish
51693d0b5e Published new versions
- @tryghost/release-utils@0.3.0
2019-03-17 17:53:49 +05:30
Rish
86132d0681 releases.create accepts changelogPath as single path or array
- changelogPath can be a single path as before, or an array of paths with optional content which will be pre-pended
- Removed non-generic casper option from releases.create options
2019-03-17 17:53:17 +05:30
Rish
fc28d5e13f Published new versions
- @tryghost/release-utils@0.2.1
2019-03-17 13:27:05 +05:30
Rish
d0bde8c9bc Added casper changelog option to release draft
no issue

- Added option to allow appending casper changelog to main release draft
- Uses capser changelog path and new version info to append casper changes
2019-03-17 13:16:07 +05:30