Commit Graph

1234 Commits

Author SHA1 Message Date
mleanos
2bdde4e9e2 fix(articles): Orphaned User reference throws server error
Adds an additional check for the existence of a populated user
reference, when determining if the current user has immediate access to
the requested article.

Without this fix, the server will throw an error if the requested
article doesn't have a populated user field.

Modified the article & articles list view's to check if the article has
a populated user. If not, then it will display "Deleted User" in place
of the missing user reference.

Added a server-side test that ensures we can get a single article if
the article.user field is referencing a deleted user.

Fixes #1082
2015-12-21 19:40:25 -08:00
Ilan Biala
7e8d2ed43e Merge pull request #1083 from mleanos/feature/Gulp-TestWatch-Server
feat(config): Gulp Server Watch for Mocha
2015-12-21 14:52:51 -05:00
mleanos
bf2eeed219 feat(gulp): Gulp Server Watch for Mocha
Adds a Gulp task that watches all server files (including server tests),
and upon any changes it will perform the Gulp *test:server* task.

Added a watch for server assets, to the main gulp watch config. This will only
add the watch when the NODE_ENV is set to "test".

Also, includes an **optional** argument for the task that can specify
that if the changed file is a test, then it will only run that test
file.

Example usage: gulp test:server:watch --onlyChanged
2015-12-16 17:56:53 -08:00
Liran Tal
b51e645ec3 Merge pull request #940 from jloveland/email-validation
supporting valid email (i.e. root@admin)
2015-12-16 14:49:41 +02:00
Cody B. Daig
bae0b6b4a7 Merge pull request #1093 from pursual/master
fix(core): Serve static files without session init
2015-12-07 19:18:23 -08:00
Liran Tal
3887be9d37 Merge pull request #1091 from mpfeil/bluemix-rvmpath-patch
change rvm path for bluemix deployment
2015-12-07 22:14:14 +02:00
pursual
4701722a32 fix(core): Serve static files without session init
Fixes #1089
2015-12-07 11:23:16 -05:00
Matthias Pfeil
9af6f2bbab Update pipeline.yml 2015-12-05 19:27:59 +01:00
Liran Tal
43c7041aa5 Merge pull request #1011 from mleanos/mongoose-4.1.12-connect-bug
feat(config): Local environment configurations
2015-12-02 19:05:34 +02:00
jloveland
33258f1314 feat(users): Supporting valid email according to HTML5 and RFC 822
Supporting valid email (i.e. root@admin) according to HTML5 and RFC 822
proposed by @jloveland

Fixes #934
2015-11-30 21:47:13 -05:00
Cody B. Daig
e03cae915c Merge pull request #1080 from meanjs/npm-warnings
fix(test): Remove npm warnings by testing against Node >=0.12
2015-11-29 19:16:03 -08:00
Ilan Biala
6088e0f8c7 fix(test): Remove npm warnings by testing against Node >=0.12
Fixes #1015
2015-11-29 21:58:28 -05:00
mleanos
6d7447479f feat(config): Local env configurations
Adds the ability to configure multiple env configurations, for the
various NODE_ENV's. These configs can be used to override the current
configuration, using the appropriate local-NODE_ENV.js file that the
user has defined.

Updated the local.example.js comments to be clear on the usage.

Added config/env/local-*.js to gitignore.

Updated the copy:localConfig Grunt task to copy local.example as
local-development.js, since we're no longer going to use local.js.
2015-11-29 11:00:52 -08:00
Cody B. Daig
e140880397 Merge pull request #1057 from meanjs/bug/changelogDirections
bug(docs): Update change log command
2015-11-23 09:23:35 -08:00
Cody B. Daig
8e37bac496 Merge pull request #1063 from boykoc/update-readme
Update readme for mean.js 0.4.x
2015-11-23 09:20:13 -08:00
Cody Boyko
099704c31a doc(readme): Update Yo Generator section
README.md Yo Generator section now updated to reference
MEAN.JS 0.4.x and the available generator.
2015-11-23 10:54:26 -05:00
Cody B. Daig
ab7d92a7d6 bug(docs): Update change log command 2015-11-21 13:33:28 -08:00
Cody B. Daig
893aff5abb Merge pull request #1058 from meanjs/bug/dockerNodeVersion
bug(docker): Change Node Version
2015-11-17 09:13:10 -08:00
Cody B. Daig
710c70da61 bug(docker): Change Node Version
@zymplsi @ilan
2015-11-16 18:22:15 -08:00
Liran Tal
e52d9c40ec Merge pull request #1049 from lirantal/feature/prep-for-042-release
Updating package.json file for 0.4.2 release
2015-11-16 23:26:14 +02:00
Liran Tal
5ef0ca9538 Merge remote-tracking branch 'upstream/master' into feature/prep-for-042-release
Conflicts:
	CHANGELOG.md

Conflicts:
	CHANGELOG.md
2015-11-16 22:17:14 +02:00
Cody B. Daig
bcdb663934 [docs] Changelog and updating package.json file for 0.4.2 release 2015-11-15 08:43:40 +02:00
Cody B. Daig
3165351383 Merge pull request #1022 from codydaig/docs/changelog3
doc(changelog): Changelog
2015-11-04 14:27:04 -08:00
Cody B. Daig
892d9bfdf4 [docs] Changelog 2015-11-04 11:36:45 -08:00
Liran Tal
61ea25c872 Merge pull request #1039 from ryanjbaxter/bluemix-mongo-changes
Switched to using new MongoDB service in Bluemix
2015-11-04 18:48:57 +02:00
Ryan J Baxter
7340e6855f Switched to using new MongoDB service in Bluemix since MongoLabs is being removed 2015-11-02 11:50:46 -05:00
Ilan Biala
829a7dee31 Merge pull request #1042 from codydaig/test/node5
test(travis): Add Node 5 testing to Travis CI
2015-11-01 14:36:08 -05:00
Cody B. Daig
23cad18b5c Merge pull request #1043 from codydaig/bug/liveexample
bug(readme): Remove Broken Live Demo Link
2015-11-01 10:58:07 -08:00
Cody B. Daig
aa5f12bfc1 Merge pull request #1006 from zeldar/gulpdocs#741
Added short Gulp Section to Intro
2015-10-31 12:29:22 -07:00
Dustin Rea
1a3d3c1f01 Added short Gulp Section to Intro
Added short Gulp Section to Intro

Added Short Gulp Section to Intro
2015-10-31 18:12:26 +00:00
Cody B. Daig
9bfb312b2e bug(readme): Remove Broken Live Demo Link 2015-10-31 10:17:13 -07:00
Cody B. Daig
4dc0f30e0a Merge pull request #1008 from codydaig/nocache
bug(travis): Remove Cache from .travis.yml
2015-10-31 09:48:16 -07:00
Cody B. Daig
eafad772bc test(travis): Add Testing for Node 5 2015-10-31 09:20:08 -07:00
Liran Tal
1cd909aa43 Merge pull request #1028 from mleanos/duplicate-test-profile-picture
Duplicate CRUD Test - Profile Picture
2015-10-30 07:29:46 +02:00
Liran Tal
860f7ce739 Merge pull request #1025 from mleanos/seeddb-missing-config
[hotfix] SeedDB missing in env config
2015-10-30 00:56:20 +02:00
Cody B. Daig
3db8709eed [bug] Dont use Cache 2015-10-29 11:29:36 -07:00
Cody B. Daig
c2f0d18842 Merge pull request #1027 from rodp82/master
Changed favicon string to env variable
2015-10-29 08:29:37 -07:00
Liran Tal
7406b2d1dc Merge pull request #980 from codydaig/patch-1
Fail Build on Node 4.x
2015-10-29 11:05:25 +02:00
mleanos
a871c92556 Duplicate CRUD Test - Profile Picture
Removes a duplicate User CRUD test for Profile Picture.

There are two reasons for this commit.

1) Duplicate of
https://github.com/meanjs/mean/blob/master/modules/users/tests/server/user.server.routes.tests.js#L833-L848
2) This test is problematic in Windows environment.
Related to:
https://github.com/visionmedia/supertest/issues/230
https://github.com/visionmedia/supertest/issues/258

The latter may be an issue with the `.attach` method not completely
loading the file into memory before the 400 status response is sent back
due to no User logged in.
2015-10-28 22:57:28 -07:00
Ilan Biala
d7d1d64598 Merge pull request #1026 from jloveland/jshint-issues-missed
Fixing JSHint issues with grunt, gulp, and reset-password script.
2015-10-29 01:14:38 -04:00
jloveland
1f79770663 Fixing jshint issues with grunt, gulp, and reset-password script. 2015-10-28 21:33:28 -04:00
mleanos
28f1f57a26 [hotfix] SeedDB missing in env config
Adds a check for the existence of the seedDB config setting, before
attempting to read config.seedDB.seed setting.

Solves the problem when the seedDB config setting is missing from a
environment config, that causes the application to throw an exception at
startup.

Also, adds the seedDB setting to the Cloud-Foundry env config.
2015-10-28 14:21:11 -07:00
Ilan Biala
afd93b4f0c Merge pull request #1020 from codydaig/updateMongoose
Update Mongoose version
2015-10-27 18:18:54 -04:00
Ilan Biala
1ddd364e1d Merge pull request #1019 from mleanos/logger-default-stdout
Change logger development config to use stdout rather than stream
2015-10-27 17:28:44 -04:00
Cody B. Daig
09bc727fdf Update Mongoose Version 2015-10-27 13:13:27 -07:00
mleanos
99fe98929c Logger Development config default
Reverts the default Logger setting to use the stdout by default, rather
than the stream option.
2015-10-26 23:13:24 -07:00
Ilan Biala
63d0d71cf6 Merge pull request #948 from gustavodemari/update-multer-profile-upload
Update profile upload with a new version of multer
Fixes #947
2015-10-25 22:03:23 -04:00
Cody B. Daig
a6b3f140b3 Merge pull request #999 from mleanos/morgan-logger-config
[bug] Enable log options for Morgan that were missed in the 0.4.0 merge
2015-10-23 15:23:36 -07:00
Rod Pattison
5af083cb0e Changed favicon string to env variable 2015-10-22 09:46:56 +08:00
mleanos
8cd2291a6a Enable log options for Morgan
Adds the log options, and format to the Morgan middleware in the Express
configuration.

These options are defined in the environment configurations.

The implementation derived from https://github.com/meanjs/mean/pull/254
by @lirantal, which somehow got overlooked when merging 0.4.0 into
master.

Added tests for the Logger configuration.

Added the log settings to the Test env config.

Added environment variables for the log settings in the Test &
Production env configs.

Moved the Morgan Express middleware outside of the NODE_ENV ===
'development' check. Morgan should be used in all environments, and use
the settings set in each env config.

Changed the wording of the Stream option comments in the env configs.

Added Rotating Logs functionality, and refactored the log Stream
options. Added a new npm package, FileStreamRotator, for use with
Morgan's rotating logs functionality.

Also, refactored the log configuration tests to be more maintainable.

Added more tests, and refactored test suite to use mock-fs.
2015-10-20 21:03:07 -07:00