Commit Graph

6642 Commits

Author SHA1 Message Date
Kevin Ansfield
8e21e31436 Upgrading Ghost-Admin to 0.9.0-beta.2 2016-06-15 13:25:39 +01:00
kirrg001
e43aefe576 fix: delete lodash.pickBy dependency 2016-06-15 14:00:32 +02:00
Kevin Ansfield
48b8660970 Merge pull request #6971 from ErisDS/tag-visibility 2016-06-15 12:51:18 +01:00
Hannah Wolfe
ac63621fe7 Update tags & foreach to respect visibility
refs #6165

- adds lodash.pickby@4.4.0
- new helper util for understanding a visibility attribute
- generalises visibility handling for `{{tags}}` helper
- adds visibility handling to `{{foreach}}` helper
- adds tests which check behaviour + labs flag
2016-06-15 12:37:09 +01:00
Kevin Ansfield
0d518d1ae6 Merge pull request #6993 from kirrg001/fix/delete-bug-post-scheduling
post-scheduling: fix delete bug in default scheduler
2016-06-15 11:50:37 +01:00
kirrg001
9de153ff82 post-scheduling: fix delete bug in default scheduler 2016-06-15 12:21:33 +02:00
Kevin Ansfield
7d8e01b14e Merge pull request #6990 from kirrg001/improvement/503-for-scheduling
post-scheduling: 503 retry logic for default adapter
2016-06-15 10:07:06 +01:00
kirrg001
a3cd43909b post-scheduling: HTTP 503 retry logic for default adapter 2016-06-15 08:40:18 +02:00
Hannah Wolfe
fe5e0eed48 Merge pull request #6988 from kirrg001/improvement/forward-utc-timestamp-for-scheduler
post-scheduling: forward UTC timestamp to scheduler adapters
2016-06-14 17:05:22 +01:00
Hannah Wolfe
bf79185d1c Merge pull request #6987 from kirrg001/fix/scheduler-config
post-scheduling: flat config for scheduling
2016-06-14 17:03:34 +01:00
kirrg001
80c797c6c2 post-scheduling: forward UTC timestamp to scheduler adapters 2016-06-14 16:34:56 +02:00
kirrg001
b5ebd0200b post-scheduling: flat config for scheduling 2016-06-14 15:13:00 +02:00
Kevin Ansfield
24e4a38ecc Updating Ghost-Admin: Scheduled Posts
- pulls in the new UI features for the scheduled posts feature
2016-06-14 13:25:59 +01:00
Hannah Wolfe
2835ad2298 Merge pull request #6861 from kirrg001/post-scheduling
Post Scheduling
2016-06-14 12:43:23 +01:00
“kirrg001”
1421c92ba5 post-scheduling
refs #6413
- PUT endpoint to publish a post/page for the scheduler
- fn endpoint to get all scheduled posts (with from/to query params) for the scheduler
- hardcoded permission handling for scheduler client
- fix event bug: unscheduled
- basic structure for scheduling
- post scheduling basics
- offer easy option to change adapter
- integrate the default scheduler adapter
- update scheduled posts when blog TZ changes
- safety check before scheduler can publish a post (not allowed to publish in the future or past)
- add force flag to allow publishing in the past
- invalidate cache header for /schedules/posts/:id
2016-06-14 10:52:13 +02:00
Hannah Wolfe
1b98d80a73 Merge pull request #6983 from kirrg001/fix/6975
fix: 6975 permalink test
2016-06-13 21:03:37 +01:00
kirrg001
2e25e4c73d fix: permalink test
issue #6975
2016-06-13 20:50:07 +02:00
Hannah Wolfe
c1736d0aa4 Updating Ghost-Admin: Internal tags
- pulls in the new UI features for the internal tags feature
- includes a labs flag
2016-06-13 13:59:24 -04:00
Hannah Wolfe
ecd77dd32f Merge pull request #6981 from kirrg001/fix/default-tz-in-config
fix: put default timezone into config
2016-06-13 18:49:17 +01:00
kirrg001
7d5baf4e9a fix: put default timezone into config
no issue
- config.theme.timezone can be undefined, when settings are not loaded from the database
- this PR will define the default blog TZ in config
- use `Etc/UTC` as default instead of `Europe/Dublin`
2016-06-13 15:02:52 +02:00
Hannah Wolfe
584e9911c4 Merge pull request #6973 from acburdine/lodash-4
deps: lodash@4.13.1
2016-06-11 21:39:30 +01:00
Austin Burdine
451c29d06a Merge pull request #6925 from TryGhost/greenkeeper-grunt-jscs-3.0.0
Update grunt-jscs to version 3.0.0 🚀
2016-06-11 13:52:16 -06:00
Hannah Wolfe
6bcc08e874 Cleanup indentation now JSCS can see it
- this is needed to make #6925 mergable
2016-06-11 20:25:15 +01:00
Austin Burdine
44537bd15f deps: lodash@4.13.1
closes #6911
- update lodash to v4
- remove lodash.tostring override
- remove lodash from greenkeeper ignore
2016-06-11 13:13:55 -06:00
greenkeeperio-bot
f6ba114728 chore(package): update grunt-jscs to version 3.0.0
https://greenkeeper.io/
2016-06-11 18:45:54 +01:00
Hannah Wolfe
1a6ce80bc7 Merge pull request #6965 from TryGhost/greenkeeper-should-9.0.2
Update should to version 9.0.2 🚀
2016-06-11 18:45:39 +01:00
Hannah Wolfe
fd2bf5aab7 Merge pull request #6771 from acburdine/hidden-tags-for-the-win
Internal Tags
2016-06-11 18:27:38 +01:00
Austin Burdine
aed8c0800e internal tags feature
refs #6165
- change behavior to use 'visibility' property
- finish out client & server-side behavior
- add tests
2016-06-11 09:12:04 -06:00
Hannah Wolfe
369fd2c6bd Initial work on internal tags feature
refs #6165
2016-06-10 13:32:56 -06:00
Hannah Wolfe
eeb41a8976 Merge pull request #6945 from sakulstra/bugfix-url-on-external-page
Allow domain name to be referenced on an external page in the navigation
2016-06-10 18:20:15 +01:00
Hannah Wolfe
471edf0ea9 Merge pull request #6962 from kirrg001/feature/when-timezone-changes-reschedule-posts
feature: when timezone changes, reschedule all posts
2016-06-10 15:53:40 +01:00
Hannah Wolfe
41d74e701b Merge pull request #6966 from AileenCGN/add-utc-timezones
Adds UTC as select option to timezones select list
2016-06-10 15:51:25 +01:00
Aileen Nowak
1487df9b30 Adds UTC as select option to timezones select list
no issue

- adds '(GMT) UTC' as select option to available Timezones
- changes default value for active Timezone to 'Etc/UTC'
2016-06-10 15:19:16 +02:00
kirrg001
16fc0d29bf feature: when timezone changes, reschedule all posts
closes #6406
- created listeners.js connector
- merged listeners.js with events.js (in models/base)
- set a post to draft when published_at would be in the past
- reschedule a post when published_at would be in the future
2016-06-10 14:58:19 +02:00
greenkeeperio-bot
42291b006d chore(package): update should to version 9.0.2
https://greenkeeper.io/
2016-06-10 12:20:58 +01:00
Hannah Wolfe
38de6d7f84 Merge pull request #6963 from kirrg001/improvement/config-spec-js
improvement: explict database assertions for config_spec.js tests
2016-06-10 11:45:11 +01:00
Sebastian Gierlinger
88dc7b3e99 Merge pull request #6929 from ErisDS/event-test-fix
Add removal for event listeners, fixes test error
2016-06-10 11:53:34 +02:00
Hannah Wolfe
d341263934 Merge pull request #6961 from kirrg001/improvement/add-not-existing-module-mock-fns
improvement: add mocks helper module for test env
2016-06-10 10:18:44 +01:00
Hannah Wolfe
74d4dcfba3 Merge pull request #6955 from kirrg001/fix/models-events-test
fix: model_events.js will cause errors for other tests
2016-06-10 10:17:58 +01:00
Hannah Wolfe
015802b6eb Merge pull request #6959 from kirrg001/improvement/db-connection
improvement: improve db/connection.js readability
2016-06-10 10:17:38 +01:00
kirrg001
81ddb47d8a improvement: explict test assertions for config_spec.js tests 2016-06-10 10:59:38 +02:00
Hannah Wolfe
de4582000f Merge pull request #6960 from kirrg001/improvement/test-utils-fixtures-fns
improvement: rename and extend test utils fixture functions
2016-06-10 08:43:24 +01:00
kirrg001
27d8eb5e70 improvement: add mocks helper module for test env
no issue
- add methods to mock/unmock not existent files
2016-06-10 09:23:00 +02:00
kirrg001
b057c2fc16 improvement: rename and extend test utils fixture functions
no issue
- rename insertPosts to insertPostsAndTags
- add insertPosts
- extend insertOne to choose index
2016-06-10 07:14:21 +02:00
kirrg001
901c9d75a0 improvement: improve db/connection.js readability 2016-06-10 07:08:02 +02:00
Sebastian Gierlinger
6826a6516b Merge pull request #6956 from ErisDS/version-mismatch
Version matching middleware
2016-06-09 19:23:22 +02:00
Hannah Wolfe
20f4166cc5 Version matching middleware
refs #6949

- Adds a new VersionMismatchError with status 400 (bad request)
- Adds middleware that checks the X-Ghost-Version header if it is provided
- If it is not provided, the middleware does nothing
- If it is provided, and the versions match, the middleware does nothing
- If it is provided, and the versions don't match, the middleware returns a VersionMismatchError
- Includes both unit and a functional test to prove the middleware works alone and as part of the whole system
2016-06-09 17:08:44 +01:00
Hannah Wolfe
c3ce604201 Merge pull request #6951 from TryGhost/greenkeeper-validator-5.4.0
Update validator to version 5.4.0 🚀
2016-06-09 15:38:56 +01:00
Hannah Wolfe
f489d7df72 xmlrpc + slack init() -> listen() & fixup tests
no issue

- changes xmlrcp & slack `init` function to be `listen`
- update the code to use `listen` instead of `init`
- changes the tests to make sure that event listeners are not wired up
- adds 100% test coverage

Since we added slack event listeners, the xmlrpc event tests have been throwing an error:
 > Unhandled rejection Error
See: http://puu.sh/phvjZ.png

This is because both xmlrpc & slack are listening to `post.published` events.
xmlrpc didn't require any extra stubbing, but the slack listener did
By turning the listeners off after the tests, we reset the environment to not impact the next event test

We probably need to do more work like this to improve the systems around event handling and
make them more robust
2016-06-09 15:38:19 +01:00
kirrg001
37317db031 fix: model_events_spec.js just throws a general event for "everyone" 2016-06-09 15:43:08 +02:00