Commit Graph

5487 Commits

Author SHA1 Message Date
Hannah Wolfe
24a9a05c6f deps: request@2.65.0 2015-10-15 18:30:22 +01:00
Hannah Wolfe
2e3949fe14 deps: path-match@1.2.3 2015-10-15 14:57:10 +01:00
Hannah Wolfe
e368bd4eab deps: passport@0.3.0 2015-10-15 14:53:47 +01:00
Hannah Wolfe
babafc2eb0 deps: morgan@1.6.1 2015-10-15 14:20:20 +01:00
Hannah Wolfe
192af4b4d7 deps: moment@2.10.6 2015-10-15 14:17:07 +01:00
Hannah Wolfe
6d25c81a3d deps: lodash@3.10.1 2015-10-15 14:16:37 +01:00
Hannah Wolfe
a188c0a9ca deps: html-to-text@1.3.2 2015-10-15 14:14:55 +01:00
Hannah Wolfe
91e414c2be deps: glob@5.0.15 2015-10-15 14:14:55 +01:00
Hannah Wolfe
b2e54f5d37 deps: fs-extra@0.24.0 2015-10-15 14:14:55 +01:00
Hannah Wolfe
641b6d18e7 deps: extract-zip@1.1.1 2015-10-15 14:14:54 +01:00
Hannah Wolfe
06de243efa deps: express@4.13.3 2015-10-15 14:14:54 +01:00
Hannah Wolfe
1a1868c423 deps: cookie-session@1.2.0 2015-10-15 14:14:54 +01:00
Hannah Wolfe
5f3b80fd08 deps: compression@1.6.0 2015-10-15 14:14:54 +01:00
Hannah Wolfe
172c6bd2a7 deps: chalk@1.1.1 2015-10-15 14:14:53 +01:00
Hannah Wolfe
877d314552 deps: busboy@0.2.11 2015-10-15 14:14:53 +01:00
Hannah Wolfe
ea4c6a63b7 deps: body-parser@1.14.1 2015-10-15 14:14:53 +01:00
Hannah Wolfe
cdb659d542 deps: bluebird@2.10.2 2015-10-15 14:14:53 +01:00
Hannah Wolfe
aed8717890 deps: bcryptjs@2.3.0 2015-10-15 14:14:52 +01:00
Sebastian Gierlinger
678ca9a574 Merge pull request #5949 from ErisDS/frontend-refactor1
Frontend controller refactor & test improvements
2015-10-15 13:16:35 +02:00
Hannah Wolfe
c8bb6081ab Frontend controller refactor & test improvements
no issue

- Split context out of frontend controller
- Add 100% test coverage for context
- Add tests for preview & improve other bits of coverage
- Further refactors (WIP) will make it easier to reach 100% coverage on the frontend
2015-10-15 10:17:42 +01:00
Hannah Wolfe
a28029afad Merge pull request #5950 from kevinansfield/fix-jscs
Fix "Unsupported rule: jsDoc" when linting
2015-10-15 09:32:44 +01:00
Kevin Ansfield
c29ad9f8c5 Fix "Unsupported rule: jsDoc" when linting
no issue
- add missing jscs-jsdoc dependency and specify plugin in .jscsrc
- fix linting issue in user-test.js
2015-10-15 09:24:39 +01:00
Hannah Wolfe
9650927076 Merge pull request #5946 from kevinansfield/fix-gh-validation-status-container
Fix gh-validation-settings-container throwing error on tag settings page
2015-10-14 17:45:35 +01:00
Hannah Wolfe
932f12160a Merge pull request #5940 from vdemedes/read-themes
Add readThemes() utility to get a list of themes
2015-10-14 17:32:41 +01:00
Hannah Wolfe
b21b36a598 Merge pull request #5928 from kevinansfield/notification-keys
Prevent duplicate alerts and clear on login
2015-10-14 17:24:17 +01:00
Kevin Ansfield
9cabea76aa Fix gh-validation-settings-container throwing error on tag settings page
no issue
- check that component's `hasValidated` property exists
- add tests for `gh-validation-settings-container`
2015-10-14 14:29:04 +01:00
Hannah Wolfe
da78de8f38 Merge pull request #5944 from kevinansfield/fix-ember-test-failures
Fix random ember test failures
2015-10-14 12:31:57 +01:00
Kevin Ansfield
8af13e9aa8 Merge pull request #5865 from acburdine/tag-menu-charcount
Tag Settings Menu Validation
2015-10-14 11:48:30 +01:00
Kevin Ansfield
632ff6a31f Fix random ember test failures
no issue
- increases the timeout because acceptance tests sometimes hit the limit which then caused a knock-on effect through other tests
- fix settings/navigation acceptance tests where it picked up previous test failure error messages
- fix user model unit tests so that `expect` is always called _after_ the runloop has finished handling property updates
2015-10-14 11:26:21 +01:00
Kevin Ansfield
e09cd70cd0 Merge pull request #5912 from HParker/form-default-class-to-none
Form default error class to none
2015-10-13 19:28:43 +01:00
Adam Hess
29d9ac5c4d the form status now defaults to empty string
prevents unvalidated forms from showing up as success
2015-10-13 11:14:44 -06:00
vdemedes
05f44c4c64 Add readThemes() utility to get a list of themes
refs #5923
- add read-themes module to get a list of themes
- replace readDirectory() usage with readThemes(), where only themes are needed
- test read-themes
- test read-directory
- test validate-themes
- test parse-package-json
- add tempfile testing utility to generate temporary paths
2015-10-13 15:54:41 +02:00
Kevin Ansfield
61c3e92d55 Merge pull request #5907 from lcamacho/bug-5800
Shows image on Tag settings
2015-10-13 10:25:55 +01:00
Sebastian Gierlinger
9fc991d76a Merge pull request #5938 from ErisDS/no-casper-travis
Don't run Casper.js tests by default
2015-10-13 10:07:16 +02:00
Kevin Ansfield
156260343b Avoid duplicate alerts, clear alerts on successful retry or sign-in
closes #5903, refs #5409
- switch alert/notification component tests from unit to integration where appropriate
- rename `notifications.closeAll` to `notifications.clearAll` to better represent it's behaviour
- add concept of a "key" to alerts/notifications and ability to close only specified keys through notifications service
- close duplicate alerts/notifications before showing a new one
- specify a key for all existing alerts
- close failure alerts on successful retries
- clear all currently displayed alerts on successful sign-in
2015-10-12 19:21:30 +01:00
Kevin Ansfield
ff73f1af92 deps: grunt-jscs@2.1.0
no issue
- update grunt-jscs dependency
- fix deprecated `validateJSDoc` configuration
- fix numerous linting errors, including:
  - use of future-reserved `public` and `private` variable names
  - use of `[]` instead of dot-notation (especially `express['static']` and `cacheRules['x']`)
  - extra spaces in `const { run } = Ember` style constructs

One issue that did become apparent is that there are conflicting rules that prevent the use of object function shorthand such that both of these:

```
{ myFunc() {} }
{ myFunc () {} }
```

are called out due to either the missing or the extra space before the `(`
2015-10-12 19:21:16 +01:00
Kevin Ansfield
4acb7b44f3 deps: ember-mocha@0.8.4 2015-10-12 18:57:43 +01:00
Hannah Wolfe
32d797432a Merge pull request #5923 from vdemedes/require-tree-refactor
Refactor require-tree and split it into different modules
2015-10-12 18:27:38 +01:00
Hannah Wolfe
9c691f6d05 Don't run Casper.js tests by default
- remove casper tests from `grunt validate`
- the tests are still in the codebase & runnable manually for now
2015-10-12 18:01:52 +01:00
vdemedes
20fec74c73 Refactor require-tree and split it into models
closes #5492
- remove core/server/require-tree.js and split it into modules
- add read-directory module to recursively read directories
- add validate-themes module to scan themes and return errors/warnings
- add parse-package-json module to parse json and validate requirements
- rewrite core/server/models/index.js to manually require models
2015-10-12 17:48:37 +02:00
Hannah Wolfe
7f3a9f5675 Merge pull request #5927 from olsio/fix-issue-5913
fix for page deletion not updating sitemap-page.xml
2015-10-12 15:43:53 +01:00
Sebastian Gierlinger
c68a9587f9 Merge pull request #5932 from ErisDS/issue-5379-markdown-icon
Add titles to key icons
2015-10-12 10:37:06 +02:00
Sebastian Gierlinger
bfefbabfdc Merge pull request #5931 from ErisDS/issue-5905-context
Fix /author/ pages crashing & permit /tag/
2015-10-12 10:35:37 +02:00
Hannah Wolfe
3b9f465635 Add titles to key icons
closes #5379, refs #3964

- add 'Markdown Help' title to markdown logo
- add 'Post Settings' title to post settings cog
- add 'Edit this post' title to edit icon on content screen
2015-10-12 09:04:16 +01:00
Oliver Schneider
13adaec6e7 fix for page deletion not updating sitemap-page.xml
closes #5913

Sitemap deletion is based on the page.unpublished event. The previous
logic was always sending post.unpublished instead. If page or post
event is triggered is based on the ‘page’ attribute of the model. When
the destroyed handler all attributes are already cleared from the model
which makes this logic always fall back to post.

The fix is to move to the destroying event which still has all the
model values in place.
2015-10-12 09:26:26 +02:00
Sebastian Gierlinger
b6c7d14359 Merge pull request #5936 from ErisDS/middleware-cleanup
Simplify theme middleware + improve tests
2015-10-12 09:11:35 +02:00
Hannah Wolfe
4e29d9e987 Simplify theme middleware + improve tests
refs #5286, #4172, #5888

- no need to pass blogApp around in middleware
- improve test coverage to 100%
2015-10-11 22:26:43 +01:00
Sebastian Gierlinger
debdfa74df Merge pull request #5934 from ErisDS/findall-partial-revert
Revert to using findAll for internal tools
2015-10-11 18:28:18 +02:00
Sebastian Gierlinger
69e93eb5cb Merge pull request #5929 from ErisDS/issue-5373-emitters
Set a higher maxListeners value
2015-10-11 18:24:23 +02:00
Hannah Wolfe
0764c775a7 Revert to using findAll for internal tools
refs #5909, #4577

- removes accidental '.only' which was hiding issues with the findAll changes
- deleteAllContent and importer still need to use a hard 'findAll' as findPage({limit: 'all'}) doesn't have the same behaviour
2015-10-10 17:07:10 +01:00