eashaw on master
[docs] Update whitespace on Att… (compare)
eashaw on master
0.9.2 (compare)
eashaw on v0.9.2
0.9.2 (compare)
eashaw on master
Update package.json Merge pull request #198 from sa… (compare)
eashaw on master
1.5.3 (compare)
eashaw on v1.5.3
1.5.3 (compare)
eashaw on update-async
Update package.json (compare)
eashaw on master
upgrade ejs to 3.1.7 (#7243) (compare)
user has memberships: { collection: 'club', via: 'members' }
. and club has members: { collection: 'user', via: 'memberships' }
. I can get them to work for the development only shortcut routes GET /:modelIdentity/:id/:association/add/:fk
, however i don't want to use shortcut routes. i want to use the example PUT /club/:id/members/add/:fk
with :id being the club id and :fk being the user id and it keeps giving me not found. i'm sure i'm doing it wrong, but the boat / driver example is a little confusing. can anyone offer advice?
PUT /:modelIdentity/:id/:association/:fk
works beautifully
mysite.com/home#login
- In your controller you can redirect to this view with a list of errors you want outputting.
npm ERR! Linux 4.4.0-77-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "bcrypt" "--save"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the bcrypt@1.0.3 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/smash_node/npm-debug.log
couple interesting things I've noticed with Sails 1.0 today:
module.exports = {
migrate: 'alter',
attributes: {
eventId: {
type: 'number',
unique: true
},
...
My current solution is to ensureIndex in bootstrap.js and remove attribute unique:true on model attr
await Event.native(function(err, collection) {
collection.ensureIndex({eventId: 1}, {unique: true});
});
sails run [scriptName] does not execute bootstrap.js (intended functionality?)
createEach() .tolerate('E_UNIQUE') (sails-mongo, mongodb v3.2) will stop creating the following records once tolerate unique is triggered. So if 10 records to createEach, and E_UNIQUE triggers at idx 5, idx > 5 will be skipped due to db server error. My attempt to brute force createEach without checking for uniqueness in DB is for a high performance ETL process. I know this is hack-ish, but I don't believe there is support for something like MYSQL's multi-row REPLACE INTO or MONGO find/upsert. I should probably go native for this...
My guess is that only #1 is a bug and #2/#3 are expected behavior. @mikermcneil @particlebanana I can file a bug for #1 if you'd like. Let me know what you think of #2 and #3 if you have a min. THX