Skip to content

fix(internal): cleanup code base and straightening internal API - #8160

Merged
sushantdhiman merged 7 commits into
masterfrom
cleanup
Aug 23, 2017
Merged

sushantdhiman merged 7 commits into
masterfrom
cleanup

Conversation

@sushantdhiman

@sushantdhiman sushantdhiman commented Aug 19, 2017 •

Copy link
Copy Markdown
Contributor

Cleanup model a bit

  • renamed and refactored autoIncrementField to be autoIncrementAttribute, because it is an attribute not field
  • this.hasPrimaryKey removed, not used anywhere duplicate of this._hasPrimaryKey
  • use this.rawAttributes where possible, its now safe to remove this.attributes Model.attributes should be Model.rawAttributes #5320 , which we can do in v5
  • removed unused model/attribute file
  • load errors via loop, less verbose
  • Fix UnknownConstraintError case was not handled for Postgres, fixed silently failing test

@mention-bot

Copy link
Copy Markdown

@sushantdhiman, thanks for your PR! By analyzing the history of the files in this pull request, we identified @felixfbecker, @janmeier and @mickhansen to be potential reviewers.

@codecov

codecov Bot commented Aug 19, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #8160 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@sushantdhiman sushantdhiman changed the title Cleanup Model fix(internal): cleanup code base and straightening internal API Aug 19, 2017
@sushantdhiman
sushantdhiman merged commit 1eeb343 into master Aug 23, 2017
@sushantdhiman
sushantdhiman deleted the cleanup branch August 23, 2017 02:55
@felixfbecker

Copy link
Copy Markdown
Contributor

FYI this should be a refactor, not a fix

commitizen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants