Commit Graph

3332 Commits

Author SHA1 Message Date
Harry Wolff
4951f267f9 Remove shim files that were created to address #1873.
refs #1873

- Removes all shim files.
2014-08-29 17:39:54 -04:00
Hannah Wolfe
1ed286d09e Merge pull request #3866 from hswolff/config-updates
Move config module to be instance based and merge bootstrap into config.
2014-08-29 21:35:56 +01:00
Hannah Wolfe
589da7deee Merge pull request #3891 from jaswilli/import-tests
Run import run operations in order.
2014-08-28 18:43:53 +01:00
Jason Williams
35e2387541 Run import run operations in order.
Closes #1977, Refs #3473
- Ensure that import operations are run in sequence.
  Previously the operations were started in order but subsequent
  ops were allowed to begin before the previous finished, which would
  result in out-of-order execution.
- Fix bug in attach() where a model property was being passed in
  instead of a transaction object.  If the call was made when a
  transaction was in process, it could cause bookshelf/knex to
  hang and never finish the transaction.
2014-08-28 00:21:13 +00:00
Sebastian Gierlinger
efddc98f53 Merge pull request #3887 from ErisDS/oops
Uncapitalise middleware should not affect tokens
2014-08-27 09:26:26 +02:00
Hannah Wolfe
25ad4b39fd Uncapitalise middleware should not affect tokens
no issue

- Whilst testing on next, I noticed trying to signup didn't prepopulate email addresses any more, and this is why
2014-08-26 22:30:33 +01:00
Hannah Wolfe
3fec767df7 Upgrading Casper to 1.0.1 2014-08-26 21:14:42 +01:00
Hannah Wolfe
93e4cfdadf Merge pull request #3855 from felixrieseberg/iss3844-importer
Importer: Sanitize UUIDs
2014-08-26 16:51:49 +01:00
Hannah Wolfe
25e08d6af5 Merge pull request #3882 from JohnONolan/fix-profile
Fix up user profile
2014-08-26 12:30:00 +01:00
Hannah Wolfe
5e126dfcd9 Fixing settings tests 2014-08-26 12:18:00 +01:00
Sebastian Gierlinger
42d6cc3983 Merge pull request #3859 from ErisDS/issue-1299
Update editor markdown tests
2014-08-26 12:21:36 +02:00
Sebastian Gierlinger
cab8254539 Merge pull request #3860 from ErisDS/issue-3857
Redirect uppercase routes to lowercase version
2014-08-26 12:19:52 +02:00
Sebastian Gierlinger
bb9eee9b4c Merge pull request #3865 from ErisDS/issue-3750
Delete tokens before deleting a user
2014-08-26 12:16:49 +02:00
John O'Nolan
15b4791e54 Fix up user profile 2014-08-26 13:08:43 +03:00
Hannah Wolfe
65d56b07bc Merge pull request #3873 from jaswilli/issue-3839
Show warning dialog if session has ended in editor
2014-08-25 21:04:37 +01:00
Jason Williams
03d25ca502 Show warning dialog if session has ended in editor
Closes #3839
- Display a warning modal in the editor routes if the user
  is logged out due to re-authorization problems.  This provides
  a chance to copy any unsaved content before being sent to the
  signin page to log back in.
2014-08-25 19:45:26 +00:00
Hannah Wolfe
5856cdd67e Merge pull request #3861 from cobbspur/metas
Added correct contextual Meta Titles and Descriptions
2014-08-24 18:58:23 +01:00
Hannah Wolfe
48ef6d26e5 Merge pull request #3863 from jaswilli/issue-3856
Adjust setup and teardown of route tests.
2014-08-24 18:33:28 +01:00
Hannah Wolfe
62df6fb415 Merge pull request #3862 from novaugust/settings-menu-gui-update
Fix mobile settings menu transitions with new GUI
2014-08-24 18:32:03 +01:00
Felix Rieseberg
6fe93f6a50 Importer: Sanitize UUIDs
Closes #3844
- Before importing, all data is checked for incorrect UUIDs. If check
fails, data is sanitized and outfitted with correct UUIDS.
- Scaffolding allows for easy implementation of additional
sanitization, should that be required in the future.
- Test included, old tests updated.
2014-08-23 18:02:23 -07:00
Jason Williams
c02240dd5f Adjust setup and teardown of route tests.
Closes #3856
- No longer call clearData and initData in test setup because
  migration.init is run during Ghost startup.  The unhandled
  error was a result of clearData removing all the tables while
  Ghost was running--there was a timing issue with the oauth middleware
  checking the refreshtokens table when it had just been deleted.
2014-08-23 21:22:01 +00:00
Harry Wolff
583c7970d9 Move config module to be instance based and merge bootstrap into config.
helps with #827, otherwise no issue

- This is general code clean-up and unification.
- Merges code from bootstrap.js into config module as they were both
concerned with managing the config file and as such should be in one
location.
- Updates all relevant tests.
2014-08-23 15:54:43 -04:00
Hannah Wolfe
74c6a341be Delete tokens before deleting a user
fixes #3750

- Updated tests to create tokens for one user. This caused the tests to
  fail for MySQL exposing the bug.
- Delete user's tokens along with posts
2014-08-23 20:13:17 +01:00
Matt Enlow
77a2d341aa Fix mobile settings menu transitions with new GUI
Ref #3810
2014-08-23 12:24:00 -06:00
Hannah Wolfe
0005c1b88c Merge pull request #3826 from jaswilli/bluebird
Replace when with bluebird
2014-08-23 18:55:13 +01:00
Jason Williams
07ad400ee0 Replace the when promise library with bluebird.
Closes #968
2014-08-23 17:15:40 +00:00
Hannah Wolfe
6a52fc8ace Redirect uppercase routes to lowercase version
fixes #3857

- adds uncapitalise middleware which detects uppercase in req.path and
  redirects to the lowercase equivalent
- change the ghost route to a regex, just so it's consistent with other
  routes in the file
2014-08-23 17:59:58 +01:00
cobbspur
8604601027 Added correct contextual Meta Titles and Descriptions
closes #2462

- adds conditionals for pagination for index, tags and author pages
- outputs correct meta title and description according to context
- adds further unit testing
2014-08-23 17:42:05 +01:00
Hannah Wolfe
c40535775f Update editor markdown tests
closes #1299

- update tests to check for full strings with spaces now that this is no
  longer an issue
- reorganise duplicated test for images
2014-08-23 14:22:43 +01:00
Hannah Wolfe
f7e92d20e2 Merge pull request #3815 from JoshWillik/extract-init
Extract the starting functionality into an exported class.
2014-08-22 20:06:03 +01:00
Sebastian Gierlinger
da6ad475c6 Merge pull request #3851 from ErisDS/issue-1391
Removing hard-coded port number
2014-08-22 10:46:36 +02:00
Hannah Wolfe
663dc5861b Removing hard-coded port number
closes #1391
2014-08-22 08:58:21 +01:00
Josh Vanderwillik
1438278ce4 Extract starting functionality into an exported class
closes #3789
- Create a GhostServer class to manage state
- index.js now calls start on the exported server
- Alter tests to expect a GhostServer instance
2014-08-21 17:04:39 -04:00
Hannah Wolfe
98c89b4858 Merge pull request #3840 from jaswilli/pg-import-test
Change tests to accommodate pg differences.
2014-08-21 20:11:36 +01:00
Hannah Wolfe
62eed88d3b Merge pull request #3830 from wjake/issue-3813
Fix editor markdown tab
2014-08-21 20:09:18 +01:00
Hannah Wolfe
3992b1f3cf Merge pull request #3836 from jaswilli/ember17-prep
Rework editor save button.
2014-08-21 19:47:35 +01:00
Hannah Wolfe
8e8c770829 Merge pull request #3834 from rwjblue/update-ember-to-latest
Update Ember to latest stable (1.7.0).
2014-08-21 19:47:22 +01:00
Jake Wright
349fd649f8 Fix markdown/preview tab for mobile
Fixes #3813

- Add togglePreview action to controller
- Implement action and bind attributes
- Remove the now pointless
- Update to comply with issue suggestions
2014-08-21 17:13:30 +01:00
Jason Williams
74fd6fc09a Change tests to accommodate pg differences.
Refs #2499
- Since PostgreSQL handles transactions differently than
  MySQL and SQLite3 there are differences in the way and
  number of errors that are returned.  Update tests to
  only check that at least one error of the proper type
  was returned.
2014-08-20 20:58:50 +00:00
Hannah Wolfe
3a1839dfa3 Merge pull request #3817 from felixrieseberg/iss685
Prev & Next Links for Ghost_Head
2014-08-20 20:59:55 +01:00
Felix Rieseberg
15e4dd1e9f Pre & Next Links for Ghost_Head
closes #685
- Now that we have a ‘pagination’ meta object, we can implement
SEO-friendly `next` and `prev` ref links in `<head>`.
- This implementation works uniformly for anything that supports
pagination in the current schema (posts, tags, authors)
- Regex should make the implementation future-proof for additional
pagination
2014-08-20 12:28:21 -07:00
Hannah Wolfe
e7f451cbef Merge pull request #3820 from PaulAdamDavis/input-icons
Icon wrapper around signing inputs
2014-08-20 19:15:56 +01:00
Hannah Wolfe
e788a3cea1 Merge pull request #3837 from jaswilli/issue-3825
Ignore tables with pg_ prefix in pg getTables.
2014-08-20 18:56:30 +01:00
Jason Williams
e03d503add Ignore tables with pg_ prefix in pg getTables.
Closes #3825
- Fixes an issue where a PostgreSQL extension may create
  a public table and it gets caught up in the migration process.
2014-08-20 14:20:18 +00:00
Jason Williams
f59ad208ac Rework editor save button.
Refs #3834
- Change bindings and fix a forward reference.  Preparation for
  upgrade to Ember 1.7.0.
2014-08-20 13:36:25 +00:00
Hannah Wolfe
edc9f5e164 Merge pull request #3816 from felixrieseberg/iss3671
'Autocorrect' for posts per page setting
2014-08-20 13:44:29 +01:00
Hannah Wolfe
c12826a7a2 Merge pull request #3832 from sebgie/issue#3779
Fix broken status code
2014-08-20 13:25:48 +01:00
Robert Jackson
d8a06fb4eb
Update Ember to latest stable (1.7.0). 2014-08-20 07:16:41 -04:00
Sebastian Gierlinger
f0da28abb3 Fix broken status code
closes #3779
- added custom error classes for OAuth errors (bug was caused by
oauth2orize error classes)
- added basic tests for `/authentication/token` endpoints
2014-08-20 11:28:55 +02:00
Hannah Wolfe
afc59fdf2e Merge pull request #3452 from novaugust/property-to-computed
Change .property() to Ember.computed
2014-08-19 21:01:40 +01:00