You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The models created by sequelize-cli v3 is not compatible with last version of sequelize and you explained this in docs. I want to know what is the estimation time for launching sequelize-cli V4? because older version generates files that I need to change them again manually.
Thanks
@aminTiz I simply dont owe you any estimates, I work in my free time :). If you want things to progress faster help me out with implementing things.
Reacted by Nikos Katsos, Alexander, Jacob Rothstein, Grant Carthew, Miguel Coronel, Ross Davis, Michael 'Misha' Nightingale, Emlyn Clay, Victor Quinn, Ben Schwartz and 13 more
Reacted by David Joy, Philip Thompson and Olufisayo Bamidele
@aminTiz For starters you can start with #222, Its a long standing issue but should be easy to fix. Just verify attributes generated are having a type which is valid in Sequelize, around here
Reacted by Developer, Frank Thelen, pedromanriquez, Bruno Quaresma, Manuel Bieh, Gabriel Théron, ahvetskovich, Tyler Breland, Tatenda Chawanzwa, Harlem and 13 more
Reacted by Sascha1337, Adam Griffiths and Leo Dutra
@buddylindsey For me, it's not clear how to understand the differences. I am new to using sequelize, so I don't have v3 usage to compare to and understand what tweaks I need to make.
Is there a reference or blog post or something to follow to find the tweaks?
I'm new too, but I'm using cli v3 with Sequelize v4. I used cli generators, then went line by line in the generated code, cross-referencing the results against the v4 changes posted in the Sequelize docs. It's time-consuming, but it lets you get most of the benefits of cli v3 and learn a lot about Sequelize v4 in the process.
It would have taken me several times as long to get the prototype app I was working on built and it wouldn't have been nearly as good if I hadn't taken this approach.
@ryanburnette thank you, that's really helpful both as a link to docs and as an attitude toward learning. After going through that I'm much more clear on how to continue to use the cli v3.
Sorry for all this delay guys, I am busy with Sequelize and I am afraid there is no change in that. In short term future my contribution to CLI will be very limited.
Here is my immediate plan for CLI, #470 (comment), @buddylindsey offered help to fix classMethods / instanceMethods , once that PR is merged I will release new version of v4.
For long term future and completing featured listed in v4 milestone and other issues, I would like your help. If you use CLI and would like to improve it please send some PRs, I will be very happy to share push access to repository so you can eventually maintain it.
Notes for future maintainers
CLI currently does not attract much traffic, So 2 hour (more if you want to write patches) a week should be enough to maintain it. I am not forcing you to commit some time weekly but some active maintenance work now and then will be much better than dead project. (For example, For Sequelize I usually give 1 hour a day for issue triage, Whole Saturday for patch work or fixes)
You use CLI for your projects, so you already know its shortcomings and improve it for your own good
Writing patches is easiest thing, maintaining issues and reviews will be consuming most of your time
Reacted by Todd Bealmear, Olufisayo Bamidele, Matt Tortolani, P-Chan, Pedro Augusto de Paula Barbosa and Jeremy Hon
Reacted by Dmitriy Pushkov, Matt Tortolani, Michael Kaufman, P-Chan, Pedro Augusto de Paula Barbosa and Leo Dutra
sequelize migrations does not create automigrations like Django, but there's a lib covering it (which Sequelize should embrace and colaborate... or at least not break compatibility for a while);
async await incompatibilities due to node-continuation-local-storage. Use cls-hooked for transactions on ES6+ node setups;
way to safe query tables with sensitive information like password Attribute scoping proposal sequelize#1462. I solved this with toJSON and sequelize hooks... but it would be to have seen something like this in the docs;
set table plural/singular names for really effective setter/getter generation on languages others than english. Portuguese, as an example, has "Organização" and "Organizações" (plural) and we would not have a setOrganizacoes, of course, without that setup.
Just went from zero to 5 services using Sequelize, in 2 organizations, and those were the most persistent issues/tricks across them. A lot of Google queries and Github issues (not really issues but questions)...
I want to start getting involved with what I can with the project. One of the things that's deterring me, however, is that I cannot get the tests to run locally (I'm on Windows, if that makes a difference). The documentation for contributing simply states:
Start with cloning Sequelize CLI repo
...
Make sure you have all required dependencies, you will need
- Node v4 or above
- NPM v3 or above
...
npm install
npm test
but this crashes on windows - even with sqlite etc installed. Was there a change to installation requirements along the way?
I have been pushing to my own playground branch to run tests on Travis, as that's all I can really do.
The point is, if there's going to be a slow shift in repository maintenance/community involvement, I think this is something that needs to be perhaps be updated or addressed (or at least listed as linux-only) in the contributing docs.
I am trying to get CI running against windows #657, Hopefully that will iron out any platform related issues.
Apart from some filesystem related issues its almost ready, see if you can help us with that @vapurrmaid , Just take my commits, open a new PR and try to fix remaining tests
Activity
sushantdhiman commentedon May 16, 2017
@Americas In next branch https://github.com/sequelize/cli/tree/next
Americas commentedon May 16, 2017
@sushantdhiman yeah, I noticed after I asked 😛
danielsalles commentedon Jul 6, 2017
What is left of the drop gulp? I'm not finding the issue of discussion.
borislemke commentedon Sep 13, 2017
TypeScript support would be superb. Is there a discussion I can follow? I'd love to contribute to this particular feature.
danielsalles commentedon Sep 13, 2017
@borislemke TypeScript? I think not :(
sushantdhiman commentedon Sep 13, 2017
I have never used TypeScript so I dont know what is expected out of TypeScript Support. @borislemke you may follow #328
borislemke commentedon Sep 13, 2017
@danielsalles @sushantdhiman but it's listed in the Milestone?
Optional.TypeScript supportAminTizdastAzar commentedon Sep 26, 2017
The models created by sequelize-cli v3 is not compatible with last version of sequelize and you explained this in docs. I want to know what is the estimation time for launching sequelize-cli V4? because older version generates files that I need to change them again manually.
Thanks
sushantdhiman commentedon Sep 27, 2017
@aminTiz I simply dont owe you any estimates, I work in my free time :). If you want things to progress faster help me out with implementing things.
AminTizdastAzar commentedon Sep 27, 2017
@sushantdhiman I will be more than happy to help you. Just give me the guidelines to start please.
sushantdhiman commentedon Sep 27, 2017
@aminTiz For starters you can start with #222, Its a long standing issue but should be easy to fix. Just verify attributes generated are having a type which is valid in Sequelize, around here
cli/src/helpers/model-helper.js
Line 27 in f409094
Please read our contribution guide https://github.com/sequelize/cli/blob/master/CONTRIBUTING.md#fixing-bugs-or-implementing-features to setup your development environment
leodutra commentedon Oct 5, 2017
@sushantdhiman Will remove
classMethodsfrom model template?9 remaining items
milkchocolate commentedon Jan 18, 2018
How can I try cli 4.0?
johnkpaul commentedon Feb 1, 2018
@buddylindsey For me, it's not clear how to understand the differences. I am new to using sequelize, so I don't have v3 usage to compare to and understand what tweaks I need to make.
Is there a reference or blog post or something to follow to find the tweaks?
ryanburnette commentedon Feb 1, 2018
I'm new too, but I'm using cli v3 with Sequelize v4. I used cli generators, then went line by line in the generated code, cross-referencing the results against the v4 changes posted in the Sequelize docs. It's time-consuming, but it lets you get most of the benefits of cli v3 and learn a lot about Sequelize v4 in the process.
It would have taken me several times as long to get the prototype app I was working on built and it wouldn't have been nearly as good if I hadn't taken this approach.
johnkpaul commentedon Feb 2, 2018
@ryanburnette thank you, that's really helpful both as a link to docs and as an attitude toward learning. After going through that I'm much more clear on how to continue to use the cli v3.
sascha1337 commentedon Feb 7, 2018
When release need this so much folks
Any working branch ? cmon
sushantdhiman commentedon Feb 14, 2018
Sorry for all this delay guys, I am busy with Sequelize and I am afraid there is no change in that. In short term future my contribution to CLI will be very limited.
Here is my immediate plan for CLI, #470 (comment), @buddylindsey offered help to fix
classMethods / instanceMethods, once that PR is merged I will release new version of v4.For long term future and completing featured listed in v4 milestone and other issues, I would like your help. If you use CLI and would like to improve it please send some PRs, I will be very happy to share push access to repository so you can eventually maintain it.
Notes for future maintainers
buddylindsey commentedon Feb 15, 2018
FYI @sushantdhiman has pushed a v4 of
sequelize-clito npm.leodutra commentedon Jun 19, 2018
IMHO, please consider this for 4.0:
findAll();{ foreignKey: { allowNull: false } }for relations where null is not expected;underscore: trueexpectations underscore / camelcase option should control all fields and table name generation sequelize#6423;toJSONand sequelize hooks... but it would be to have seen something like this in the docs;Just went from zero to 5 services using Sequelize, in 2 organizations, and those were the most persistent issues/tricks across them. A lot of Google queries and Github issues (not really issues but questions)...
sushantdhiman commentedon Jun 19, 2018
Not much time at hand @leodutra , all I can do is accept PRs
leodutra commentedon Jun 19, 2018
Ok... at least is reported for whenever I/community get some spare time.
And, thank you for the amazing work.
greyscaled commentedon Jun 19, 2018
I want to start getting involved with what I can with the project. One of the things that's deterring me, however, is that I cannot get the tests to run locally (I'm on Windows, if that makes a difference). The documentation for contributing simply states:
but this crashes on windows - even with sqlite etc installed. Was there a change to installation requirements along the way?
I have been pushing to my own playground branch to run tests on Travis, as that's all I can really do.
The point is, if there's going to be a slow shift in repository maintenance/community involvement, I think this is something that needs to be perhaps be updated or addressed (or at least listed as linux-only) in the contributing docs.
sushantdhiman commentedon Jun 19, 2018
I am trying to get CI running against windows #657, Hopefully that will iron out any platform related issues.
Apart from some filesystem related issues its almost ready, see if you can help us with that @vapurrmaid , Just take my commits, open a new PR and try to fix remaining tests
greyscaled commentedon Jun 19, 2018
I'll certainly see if I can help there - thanks for the link
Merge pull request sequelize#441 from exercism/nextercism-cli-cfg