kirrg001
79bf09a7c1
🚨 fix admin_spec && module_spec
...
no issue
2016-09-20 15:59:34 +01:00
kirrg001
231fea4766
🎨 adaption from master merge
...
no issue
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
6a97873f98
🎨 🔦 refactor content paths (images, apps, themes, storage, scheduling)
...
refs #6982
- create config util fn: getContentPath
- we can later let the user change the folder names in contentPath
- get rid of custom/default storage paths
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
0487ac5a1b
🔥 🔦 we no longer keep config and configExample in config
...
refs #6982
- see https://github.com/TryGhost/Ghost/blob/master/core/server/config/index.js#L217
- remove tests for it
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
66129ed9da
🔥 remove all config tests for file and deprecated config
...
refs #6982
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
ef50c6a149
🎨 🔦 theme url is no longer defined in config
...
refs #6982
- it's for now defined where all theme properties get set: in api/settings.js
- it's not the best place, but for now the place where i think it makes the most sense
- see https://github.com/TryGhost/Ghost/blob/playground/core/server/api/settings.js#L63
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
bd4590d0b5
🎨 🔦 no support for active storage adapter as string
...
refs #6982
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
3e02dbf734
🎨 missing get/set config changes
...
refs #6982
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
248ceba72b
🎨 adapt bootstrap file because of nconf changes
...
refs #6982
- remove load config
- remove checkDeprecated
- adapt arguments for scheduling init
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
042e0da1c9
🎨 🔦 read ghost version from package.json
...
refs #6982
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
d42f4f6058
🎨 replace config.getSocket()
...
refs #6982
- was a function in ConfigManager
- does belong to the GhostServer logic
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
f4bee50e86
🎨 create assetHash if not available in asset_url helper
...
refs #6982
- was before generated in ConfigManager
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
66dbd5f5f2
🚨 adapt fork logic
...
refs #6982
- write json file instead of js file
- simplifiy how we pass config for a forked child process
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
b158a3a944
🚨 change logic for test/utils/configUtils
...
refs #6982
- adaption because of using nconf
- change tests which changed config directly
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
bdad235f6a
🚨 improve error handling in test env
...
no issue
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
b3bafa4ba8
🎨 🔦 restrict themes storage to local-file-store
...
refs #6982
- this was handled before by the old ConfigManager
- this logic belongs into the storage logic itself
- for now we only allow uploading themes via the local-file-store
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
1f85604d09
🎨 remove circular dependency solution in errors/index.js
...
refs #6982
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
34e48dc49a
🎨 🔦 do not append isPostgreSQL to config
...
refs #6982
- we cannot add functions to nconf
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
0ae0a0b490
🎨 change how we get and set config
...
refs #6982
- a replace for all config usages
- always use config.get or config.set
- this a pure replacement, no logic has changed
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
7d3e8fa8a9
✨ 🔦 add nconf files
...
refs #6982
- add defaults.json
- add overrides.json
- add env specific default values
- add nconf wrapper in /config
- add config utils in /config/utils.js
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
96203a46dc
🔥 remove config.example.js and ConfigManager
...
refs #6982
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
e3c0200f73
🔥 remove startup checks
...
refs #6982
- we will execute the startup checks in Ghost-CLI
[ci skip]
2016-09-20 15:59:34 +01:00
kirrg001
0b2940d587
🎨 add getSubdir and getProtectedSlugs
...
refs #6982
- do not add the subdir property as static config value
- create functions to read subdir and protected slugs on runtime
2016-09-20 15:59:34 +01:00
kirrg001
0dd3d9ff40
🎨 Move tests: create utils/url_spec.js
...
refs #6982
2016-09-20 15:59:34 +01:00
Katharina Irrgang
c8119eee1f
🎨 source out url utils from ConfigManager ( #7347 )
...
refs #6982
2016-09-20 15:59:34 +01:00
Katharina Irrgang
dc1ef35f0c
🎨 do not load apps in ConfigManager ( #7344 )
...
refs #6982
2016-09-20 15:59:34 +01:00
Katharina Irrgang
a639e48715
🎨 load themes not in ConfigManager ( #7342 )
...
refs #6982
2016-09-20 15:59:34 +01:00
Hannah Wolfe
55d1e86c55
Update Ghost-Admin: ready for lts
2016-09-20 14:27:25 +01:00
Austin Burdine
756d9bcb6e
show correct error message the first time account is locked ( #7263 )
...
closes #7251
- check if remaining attemps is 0, if so then show account locked error
- adds test
2016-09-19 14:56:55 +01:00
Katharina Irrgang
9349e99e54
🐛 fix delete by author as transaction ( #7145 )
...
closes #7137
Deleting the content from the database runs in a transaction. see
https://github.com/TryGhost/Ghost/blob/master/core/server/api/users.js#L390
`destroyByAuthor` is one of the operations we trigger to delete all the conent, see https://github.com/TryGhost/Ghost/blob/master/core/server/models/post.js#L647
The post model has a specific hook for deleting content to delete the relations as well, see https://github.com/TryGhost/Ghost/blob/master/core/server/models/post.js#L122
This hook is part of the transaction. But the `options` are ignored. `(model/*, attr, options*/)`
We use the `options` to forward the transaction reference, which we need to pass into the bookshelf queries. So `return model.load('tags').call('related', 'tags').call('detach')` does not forward the transaction and that's why it stucks when deleting the content.
2016-09-19 14:45:36 +01:00
Katharina Irrgang
265f058466
🎨 use apiUrl helper for scheduling initialisation ( #7400 )
...
no issue
- extend apiUrl to return either an admin url for CORS or not
2016-09-19 14:41:50 +01:00
Cezary Kluczyński
83b426ad14
Changed formatting of run time to human readable ( #7318 )
2016-09-19 11:28:18 +01:00
Hannah Wolfe
a422314e6f
Updated Ghost-Admin to 0.11.0
2016-09-15 10:23:15 +01:00
Katharina Irrgang
ed9e90419d
🐛 generate correct apiUrl for scheduling ( #7389 )
...
closes #7388
2016-09-15 10:22:38 +01:00
Hannah Wolfe
a791b43f1e
🐛 😱 Fixing extract-zip derp-moment
...
There are no words for this!
2016-09-14 22:47:41 +01:00
David Wolfe
1cf0b940ad
Do not show internal tags in RSS feed ( #7385 )
...
closes #7367
- checks tags are visibile if internal tags are enabled in labs
- dirty quick update to tests
2016-09-14 19:14:08 +01:00
Hannah Wolfe
a40ff3b276
🎨 Return gscan warnings from theme API ( #7367 )
...
- return warnings from gscan so we can let users know about potential issues
2016-09-14 18:49:41 +01:00
Hannah Wolfe
de66a61f59
hides internal tags from displaying in meta data ( #7379 )
...
closes #7348
- only filter keywords if the internal tag lab feature is turned on
2016-09-14 17:33:24 +00:00
Hannah Wolfe
43bcf5b374
🐛 better theme name consistency ( #7380 )
...
closes #7313
- Adds `getSanitizedFileName` function to storage/base.js which replaces non A-Z0-9@. chacracters with -
- modifies /api/theme.js so that zip.shortName is consistent throughout.
2016-09-14 17:24:28 +00:00
Austin Burdine
2b07f7a15b
Add application/octet-stream to allowed types for theme uploads ( #7382 )
...
closes #7292 (again)
- fix more uploads
2016-09-14 17:53:36 +01:00
Katharina Irrgang
774a662fb2
🐛 re-run migration for sqlite/pg ( #7323 )
...
closes #7192
- add 008 migration
- added script to re-run 006/01
- re-run 006/01 migration for postgres in any timezone (transform formats only)
- re-run 006/01 migration for sqlite (transform formats only)
- rely on format checks for sqlite, do not check server TZ
2016-09-14 17:52:45 +01:00
Aileen Nowak
b598656ff1
✨ Use migration to add AMP column in posts table ( #7370 )
...
no issue
Uses migration to '008' to add an `amp` column to the `posts` table.
2016-09-14 16:02:35 +01:00
Katharina Irrgang
94fdbdd267
🐛 move overrides into core folder ( #7371 )
...
closes #7336
- make sure overrides is still the first package to call
2016-09-14 15:50:17 +01:00
Hannah Wolfe
00757eb2b6
Update Ghost-Admin: mimetype fixes
2016-09-14 14:47:05 +01:00
Katharina Irrgang
5acc2a9c30
🚨 increase ping tries when forking process ( #7377 )
...
no issue
2016-09-14 14:09:47 +01:00
Austin Burdine
78f580763f
ensure amp works when blog is running in subdirectory ( #7353 )
...
closes #7352
- use relative url instead of absolute url for post lookup
- add test that passes w/these changes
2016-09-14 12:47:25 +01:00
Sebastian Gierlinger
03ca49ca5e
Respect subdirectory for preview pages ( #7365 )
...
no issue
- added subdirectory for preview route when doing cache invalidation
2016-09-14 12:32:48 +01:00
Aileen Nowak
a4427952e2
⬆️ 🚨 Update Amperize dep and fix test ( #7374 )
...
no issue
Updates Amperize dep to v0.3.1 and fixes test for `amp_content`.
2016-09-14 12:30:37 +01:00
Katharina Irrgang
8c1e5fbc61
🐛 add missing dependency lodash.orderBy ( #7333 )
...
no issue
2016-09-14 11:22:16 +01:00
Katharina Irrgang
5f4da361aa
🐛 fix 006 transform dates for sqlite server offset 0 ( #7322 )
...
refs #7192 , refs #7248 , refs #7351
2016-09-14 11:19:39 +01:00