Hannah Wolfe
692573a241
Merge pull request #2735 from shindakun/tag404
...
Display 404 page if tag does not exist.
2014-05-14 16:32:18 +01:00
Hannah Wolfe
4c0010db45
Merge pull request #2673 from halfdan/2592-tags-api
...
Implements new Themes JSON API
2014-05-14 16:31:36 +01:00
Hannah Wolfe
b631931b2b
Merge pull request #2755 from sebgie/fix-validation
...
Fix validation
2014-05-14 16:29:36 +01:00
Sebastian Gierlinger
d1149a927b
Fix validation
...
- fixed validation that broke when introducing error classes
- added a test
2014-05-14 15:30:46 +02:00
Fabian Becker
628654961a
Implements new Themes JSON API
...
closes #2592
- Add themes browse/read endpoint
- Add new permissions for themes (only admin by default)
- Add integration tests
2014-05-14 11:23:42 +02:00
Hannah Wolfe
cdb98241cf
Merge pull request #2715 from javorszky/iss2650
...
Move mail api to json/api format
2014-05-13 23:27:22 +01:00
Gabor Javorszky
24190a186e
Move mail api to json/api format
...
Fixes #2650
* rerouted all mail sending to api/mail
* changed request and response formats to json/api-like structure
* tested with forgotten password and new blog email
2014-05-13 17:34:37 +01:00
Hannah Wolfe
169a984372
Merge pull request #2737 from jaswilli/issue-2736-pg
...
Ensure settings values are strings before saving
2014-05-13 14:28:29 +01:00
Hannah Wolfe
89f140c48b
Merge pull request #2726 from jaswilli/issue-2720-tags
...
updateTags refactor
2014-05-13 11:32:16 +01:00
Jason Williams
414890f263
Ensure settings values are strings before saving
...
closes #2736
-reintroduces JSON.stringify for non-string values in
api.settings.edit
-added a regression test
2014-05-13 05:36:18 +00:00
Jason Williams
954cb1a59e
updateTags refactor
...
closes #2720
-refactor Models.Posts.updateTags method to reduce complexity
2014-05-12 21:03:26 +00:00
Steve
eb2fdc44fb
Display 404 page if tag does not exist.
...
closes #2667
- if tag result is '' 404 instead of rendering an empty page
- added test for /tag/asdf should 404
2014-05-12 11:30:08 -07:00
Hannah Wolfe
10759ed45a
Merge pull request #2733 from jaswilli/test-error
...
Fix intermittent image upload modal failures
2014-05-12 10:27:15 +01:00
Jason Williams
0d7a935855
Fix intermittent image upload modal failures
...
ref #1702
-wait for logo upload modal to go away before beginning test
for cover upload modal
2014-05-12 02:31:20 +00:00
Hannah Wolfe
f1ce28f812
Merge pull request #2730 from jaswilli/test-errors
...
Another adjustment to handle timing issue on tests
2014-05-11 21:10:17 +01:00
Jason Williams
ef1bc05422
Another adjustment to handle timing issue on tests
...
ref #1702
-timing issue with the test still exists in #2729 since
.description is added to the dom after the fact via js
2014-05-11 19:25:48 +00:00
Hannah Wolfe
e4799e3fb0
Merge pull request #2729 from jaswilli/test-errors
...
Adjust test to handle timing issue on upload modal
2014-05-11 20:06:30 +01:00
Jason Williams
e3c3c2ab30
Adjust test to handle timing issue on upload modal
...
ref #1702
-change the tests for the cover and logo image upload modal to
handle a timing issue in the way they are rendered
2014-05-11 18:31:48 +00:00
Hannah Wolfe
31b693da1f
Add try-catch to startup
...
- Should prevent Ghost from exiting without an error message
2014-05-11 17:33:18 +01:00
Hannah Wolfe
25ec0f3f75
Merge pull request #2719 from appleYaks/import-backward-compatible
...
Make DB Import backwards compatible
2014-05-11 16:17:17 +01:00
Hannah Wolfe
af2326bf67
Merge pull request #2704 from sebgie/issue#2690
...
Add distinct error classes
2014-05-10 20:28:14 +01:00
Sebastian Gierlinger
fd0f5a5028
Add distinct error classes
...
closes #2690
- added new error classes
- moved errorhandling.js to /errors/index.js
- changed API errors to use new classes
- updated tests
2014-05-09 12:11:29 +02:00
David Arvelo
eb18991ddb
Make DB Import backwards compatible
...
closes #2716
- Continues to parse and allow import with the old format
- Detects the presence of the new JSON-API format and allows import
2014-05-08 20:29:45 -04:00
Hannah Wolfe
d4a6eb26a4
Merge pull request #2713 from jaswilli/startup-issues
...
Don't xmlrpc ping for the default Welcome to Ghost post
2014-05-08 12:24:39 +01:00
Hannah Wolfe
896be9119f
Cleaning up settings functional tests
...
ref #1702
- All the tests need cleaning up a bit, but these ones are failing
regularly and I'd like to get to the bottom of it.
2014-05-08 12:09:32 +01:00
Hannah Wolfe
1c3ba536c9
Merge pull request #2706 from appleYaks/db-api-update
...
DB API returns JSON-API compatible objects. Export triggers 'Save As' di...
2014-05-08 11:28:02 +01:00
Hannah Wolfe
1f935857e6
Merge pull request #2711 from shindakun/adminnavbar
...
Fixed admin navbar icons
2014-05-08 11:25:19 +01:00
Hannah Wolfe
33a6ea1edf
Merge pull request #2710 from jaswilli/issue-2707
...
Fix unhandled rejected promises when using admin
2014-05-08 08:01:11 +01:00
Jason Williams
e078cc4085
Don't xmlrpc ping for the default Welcome to Ghost post
...
closes #2712
-prevents xmlrpc.ping from being run before Ghost is in a valid
state
-fix a call to Object.hasOwnProperty in permissions.hasActionsMap
2014-05-08 03:50:19 +00:00
Steve
820860694c
Fixed admin navbar icons
...
Closes #2708
- Edited classNames to use correct names: settings and editor.
2014-05-07 19:47:35 -07:00
Jason Williams
027169a1d1
Fix unhandled rejected promises when using admin
...
closes #2707
- adjust call to api.settings.edit now that canThis is in use
2014-05-08 00:10:14 +00:00
David Arvelo
2d783ac3d4
DB API returns JSON-API compatible objects. Export triggers 'Save As' dialog.
...
closes #2647
- GET method returns { db: [exportedData] }
- POST, DELETE methods return { db: [] }
- 'delete all content' test updated
- Attach 'Content-Disposition' header on DB export for 'Save As' browser dialog
- Add DB API functional test for Export
2014-05-07 19:05:09 -04:00
Hannah Wolfe
bb543ede8e
Adding READMEs to clarify the 2 client folders
...
- seemed like a good idea.
2014-05-07 22:51:51 +01:00
Hannah Wolfe
d1f57a2569
Merge branch 'ember'
...
Conflicts:
Gruntfile.js
core/client/models/post.js
core/client/models/settings.js
core/client/models/user.js
core/client/router.js
package.json
2014-05-07 22:28:29 +01:00
Hannah Wolfe
fbbfda3455
Merge pull request #2705 from davidblurton/patch-1
...
Fix link to wiki page on NPM
2014-05-07 21:25:17 +01:00
Hannah Wolfe
45076db7c6
Merge pull request #2581 from szelpe/ember-debug
2014-05-07 20:55:08 +01:00
Peter Szel
716a09a452
Ported logic to settings: Debug Tab closes #2424
...
- Added file upload component
- Added import client logic
- Added e-mail sending client logic
- Added settings model
2014-05-07 20:48:29 +01:00
Hannah Wolfe
ede0a937a6
Merge pull request #2701 from jgable/settingsACL2
...
ACL and strict rules for Settings API
2014-05-07 20:23:30 +01:00
David Blurton
5c22de51d8
Fix link
2014-05-07 20:23:15 +01:00
Hannah Wolfe
843a8fd51f
Merge pull request #2618 from novaugust/post-settings
...
[Ember.js] Create Post Settings Menu and its functionality on the Post controller.
2014-05-07 20:22:46 +01:00
Hannah Wolfe
5cb747fabb
Merge pull request #2565 from hswolff/ember-popover
...
[Ember.js] Create GhostPopover component
2014-05-07 20:22:41 +01:00
Hannah Wolfe
51aa2ca396
Merge pull request #2569 from jgable/ember-settingsGeneral
...
[Ember.js] Ember settings/general
2014-05-07 20:22:06 +01:00
Hannah Wolfe
e23f5c027b
Merge pull request #2702 from jgable/userCanThis
...
Update users api canThis context
2014-05-07 17:42:44 +01:00
Jacob Gable
4066d8c680
Ember settings/general
...
- Settings fixture that doesn't seem to work
- SettingsGeneralRoute with model function calling api
- SettingsGeneralModel with save method stubbed
- SettingsGeneralController with actions for save, uploadLogo and uploadCover
- Let ApplicationRoute handleValidationErrors
- Fix actions hash in controller and use bind-attr
- Refactor to use single SettingsModel
- Implement description word count
- Fix broken ajax reference by actually importing ajax method
- Refactor to use count-words helper
- Refactor isDatedPermalinks into controller
- Refactor the isDatedPermalinks to use a custom setter
- Remove isDatedPermalinks code from the model
2014-05-07 11:32:49 -05:00
Harry Wolff
4378895a30
Create GhostPopover component
...
issue #2418
- create ghost-popover component and template
- use it for the navigation popover
- still needs to handle global click event on the document
to close the popover
2014-05-07 12:21:26 -04:00
Jacob Gable
298077582b
ACL and strict rules for Settings API
...
Ref #2061
- Add canThis permission checks to settings api calls
- Add strict rules about accessing core settings without internal: true
- Omit core settings in browse() call unless internal: true
- Update unit tests to call api.settings with contexts
- Add a couple unit tests for new scenarios
- Update all api.settings calls in the app to call with internal context
- Re-arrange permissions.init in server startup so config.theme.update
can access settings without permissions error
2014-05-07 10:56:03 -05:00
Hannah Wolfe
1fb958834c
Merge pull request #2679 from appleYaks/sanitize-model-options
...
Sanitize models' attributes/options before passing to bookshelf/knex
2014-05-07 16:49:42 +01:00
Hannah Wolfe
9712c17171
Merge pull request #2700 from halfdan/settings-api
...
Move to new API format for Settings.
2014-05-07 15:27:54 +01:00
David Arvelo
87cda81c84
Sanitize models' attributes/options before passing to bookshelf/knex
...
closes #2653
- enforce strict whitelists for model methods
- create a class method that reports a model method's valid options
- create a class method that filters a model's valid attributes from data
- create a class method that filters valid options from a model method's options hash
2014-05-06 23:02:49 -04:00
Jacob Gable
9c9cfe763a
Update users api canThis context
...
- Update api.users methods to pass the whole context to canThis instead
of just this.user
2014-05-06 20:11:15 -05:00