Repository navigation
docs: clean up model docs - #14333
Conversation
|
I'm very close to completing #14280, just need to write a couple of tests. I'd prefer to merge this PR first though |
|
Pending question: Model has both methods It looks like Which one should we deprecate? In favor of keeping
Against keeping
That last point makes me think we should keep |
|
I'll let @sdepold review the rest About |
|
I'll remove that part and open a follow-up PR for it once this PR has been removed so we can have a focused discussion on a solution :) |
|
@sdepold ping |
|
Let me know when you're ready to review, I'll resolve the conflicts then |
|
Okay, either I resolved the conflicts wrong or we need to update something to pass the tests when merging main in this. Either way, I'll leave this up to @ephys before I break anything |
|
I'll do the merge again, it looks like a few things were merged incorrectly :) |
615b7e8 to
0a12da1
Compare
|
Fixed a failing test Scrolling through the changes, I think we're good. Let's see what the integration tests have to say |
|
🎉 This PR is included in version 7.0.0-alpha.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* docs: clean up model docs * fix: fix writable typing test * feat: remove deprecated types * feat: deprecate Model.setAttributes * test: remove test for removed types * feat: revert deprecation of Model.setAttributes * fix: remove duplicate ModelStatic import * test: fix primary key test Co-authored-by: Sascha Depold <[email protected]>
Pull Request Checklist
Please make sure to review and check all of these items:
yarn testoryarn test-DIALECTpass with this change (including linting)?Description Of Change
This is a bit of a miscellaneous PR.
What it does is:
ModelCtorandModelTypetypesModel.dropSchema(it's completely unrelated to model, and is just an alias forSequelize.dropSchemaandQueryInterface.dropSchema)warnOnInvalidOptionshas been renamed to_warnOnInvalidOptionsbecause it's a private method (and may be moved to model-internals in the future)