Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 00:53
    PuboNick starred balderdashy/sails
  • Nov 27 08:51
    orhankutlu closed #7050
  • Nov 27 08:51
    orhankutlu commented #7050
  • Nov 27 08:06
    wuyonglv starred balderdashy/sails
  • Nov 27 06:57
    yinlianhua starred balderdashy/sails
  • Nov 27 02:43
    yifan18 starred balderdashy/waterline
  • Nov 27 02:42
    wentaozone starred balderdashy/sails
  • Nov 26 17:54
    devmfouad commented #3124
  • Nov 26 14:40
    sailsbot commented #7076
  • Nov 26 14:40
    sailsbot unlabeled #7076
  • Nov 26 14:40
    Ungredda edited #7076
  • Nov 26 10:15
    sailsbot labeled #7076
  • Nov 26 10:15
    sailsbot commented #7076
  • Nov 26 10:15
    Ungredda opened #7076
  • Nov 26 10:08
  • Nov 26 06:04
    rachaelshaw closed #7075
  • Nov 26 06:03
    sailsbot commented #7075
  • Nov 26 06:03
    sailsbot unlabeled #7075
  • Nov 26 06:03
    rachaelshaw edited #7075
  • Nov 26 05:58
    rachaelshaw synchronize #7075
Mike McNeil
@mikermcneil
@vonWolfehaus but again-- by far the best way IMO is just to use the default, bundled client and rely on the io global available on the window
(that way, your team can save the energy/productivity/creativity you'd spend messing with the build/tooling, and can spend it somewhere else instead)
Osmel Guarepo
@osmelg
@mikermcneil let me check it, thank you crack!
John Wolfe
@wolfejw86
is there any documentation around setting up a self-signed ssl cert with sails for local development? facebook just implemented a new policy with their social login that prevents testing fb login on http, it only works on https
Corey Birnbaum
@vonWolfehaus
@mikermcneil That's useful info, thank you for the recommendation. Then I'll try to find the sailsio for the version of sails I'm using (I didn't think I'd use it and got rid of it because I'm an idiot hahah) and just use the global. Cheers!
Thomas Lepérou
@tleperou
@wolfejw86 check this out
Then, generate your key openssl genrsa -out path/to/save/the/key 2048
nishantpradhan
@nishantpradhan
hi
dan-astiak
@dan-astiak
@mikermcneil Adding |ts|map to all occurrences of filter inside these 2 files solved my problem but that means I have to do this for all npm install and after every update
files are : sails/lib/hooks/moduleloader/index.js
and
sails/lib/app/private/controller/local-action/modules.js
image.png
John Wolfe
@wolfejw86
@tleperou perfect, I've done the key/cert with the node https module before, and I figured it would be similar, should've just tried passing it the same dictionary 😶 Thanks this is perfect.
Mouad Belbah
@MouadBelbah
@mikermcneil hey is it possible to customize validation errors in actions2 ?? the ones thrown due to validation in inputs
Markus Mazurczak
@markusmazurczak
Hi all. I am trying to access a helper using sails.helper inside an React.Component always getting "sails is not defined". It is defined as global accessible in config/globals.js. I dont understand how to access an helper inside an React Component class. Any advice?
Markus Mazurczak
@markusmazurczak
Inside the constructor of my React-Component i simply try to access lodash using: console.log(.isArray(this.state)); Which yields: Uncaught ReferenceError: is not defined
_.isArray(this.state)
Shreyash Gupta
@shraiyshv_twitter

npm ERR! code E404
npm ERR! 404 Not Found: @sailshq/lodash@^3.10.2

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Shraiysh\AppData\Roaming\npm-cache_logs\2018-04-02T10_21_51_488Z-debug.log

I am getting this error.
Please help.
Markus Mazurczak
@markusmazurczak
@shraiyshv_twitter You installed the lodash module? npm install --save lodash
Daniel Harvey
@danielsharvey
Question re the .populateAll() method. There is a deprecated method notice node_modules/waterline/lib/waterline/utils/query/get-query-modifier-methods.js:154 but the second parameter is not formally documented. What is the status of this? Just needs documenting?
afvicente
@afvicente
Hi, I am trying to find an encrypted attribute like await User.find({ssn: '555-55-5555'}).decrypt();
However, i get an empty response. await User.find().decrypt(); works fine and i get all results decrypted. Have i missed something?
Equipo Kuuijes
@kuuijes_twitter
@mikermcneil We would love to help translating core messages to spanish, we jus need a config file or locales/json estructure to use, or maybe i18n config for core messages? We would love to help spread sailsjs here in mexico, thank you for the hard work.
Marco Romano
@marcorom88_twitter
Hi. If I start some days ago a project with sails, it is possible use some api written on express js inside project with sails? I have a problem: I want write this project on sails but I have few times and I need working login shared between web app and android app. But the login written on express don't have a session and on mongodb have yet some users with custom hashing. How can resolve this problem?
Jaydev vaghela
@jaydev943_twitter

In populate() select option is not work when i use sub populate for same table

Example : populate('user_id',{select:['name']}).populate('user_id.feeds',{select:['title']})

aggregate function not work on sails it show "cursor" is required
Please provide solution
Velin Kerkov
@mp3por
Hello, has anyone been able to use sails v1 with 2 different dbs using waterline ?
If I use only mysql or mongodb everything works, however if I set MongoDB as default and create a separate datastore property for the MySQL connection Sails just wont load
The error is Could not tear down the ORM hook. Error details: Error: Consistency violation: Attempting to tear down a datastore (default) which is not currently registered with this adapter. This is usually due to a race condition in userland code (e.g. attempting to tear down the same ORM instance more than once), or it could be due to a bug in this adapter.
Velin Kerkov
@mp3por
Also it is very unclear to me how to post this as bug or issue somewhere where it will stay. :)
Velin Kerkov
@mp3por
Also will sails-mysql support JSON type ?
Velin Kerkov
@mp3por
Anyone ?
brookesb91
@brookesb91
@mp3por I haven’t had time to try and replicate your issue yet but I can try later - In the meantime take a look here => https://github.com/balderdashy/sails/issues
Usually someone gets back pretty quickly
Eric Maddox
@maddtech
With the new sails 1.0, where is code that requires some pages be logged in and other not to be logged in?
Velin Kerkov
@mp3por
@brookesb91 10x
brookesb91
@brookesb91
@mp3por sails-mysql can support JSON types in the database - was there anything else you needed to know?
@maddtech You’ll want to look at policies for tat
Mukul Sharma
@mukulsoftwap
i have try sails.js v 1 and choose web app option in cmd , how can i use rest api
Eric Maddox
@maddtech
@brookesb91 Thx, I think I am starting to see how it works now.
brookesb91
@brookesb91
@maddtech no problem!
Daniel Harvey
@danielsharvey
@maddtech Also check the https://ration.io/ / https://github.com/mikermcneil/ration example
Eric Maddox
@maddtech
@danielsharvey will do!
brookesb91
@brookesb91
@danielsharvey +1 for that - hadn’t seen it before - cheers!
Daniel Harvey
@danielsharvey
@brookesb91 No problems. It's a nice app demonstrating a fair number of features. For me, the todo is to get passportjs working with Sail 1.0...
Velin Kerkov
@mp3por
@brookesb91 the way I did it is { type: "ref", columnType: "JSON" } however this translates into column with type "longtext"
@danielsharvey whats the problem ... i got this shit done
brookesb91
@brookesb91
@mp3por That’s fine, the datatypes on top don’t fully reflect the db type - yu can set it explicitly if you wish
Velin Kerkov
@mp3por
not really. My biggest problem is the mongodb + mysql thing. I remember I had the same issue with redis + mysql
@brookesb91