Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:12
    Fjohn666 commented #7077
  • 09:31
    sailsbot commented #7077
  • 09:31
    Fjohn666 opened #7077
  • 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
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
Marco Romano
@marcorom88_twitter
hi everyone. It is possible made a model with an action that's works well on web app and app android both? So, for android I needs response json, and on web app I have some redirect for rendering page. It is possible made single api that works fine on both scenarios? Or for android I needs other api for made response JSON? Thanks!
John Wolfe
@wolfejw86
@marcorom88_twitter can you check for req.wantsJSON and then conditionally send the response as json or a view ?
Marco Romano
@marcorom88_twitter
thanks, seems to be works. I'm new to sails js and I'm learning now how works.
Konstantin Burkalev
@KSDaemon
Hello! May be someone can help me: why req.acceptedLanguages is undefined? I have a policy which check it, and now it is broken…
Abirlal Biswas
@abirlalb_twitter
I am facing issue during databse connection
it is inserting fdata
Mike McNeil
@mikermcneil
@KSDaemon i'm looking into it now
The change to john resig's lighter-weight i18n package changed some stuff and I believe our docs slipped out of date there (verifying now to be sure). In the mean time, check out https://github.com/sgress454/sails-hook-i18n
Mike McNeil
@mikermcneil
Mike McNeil
@mikermcneil
@KSDaemon related to balderdashy/sails#4343
Mike McNeil
@mikermcneil
@KSDaemon ok just double-checked: you'll want to use req.acceptsLanguages()
(i'll add mention of this to the upgrading guide tomorrow morning)
Konstantin Burkalev
@KSDaemon
@mikermcneil Yep! Thanks for your answer, yesterday night i figured that out, but had no power to write about it. I saw also that express.js had this attribute in 3.x versions, but that was removed in 4.x.
brookesb91
@brookesb91
With the lifecycle callbacks on models, is it possible to get the current values for the object?