Skip to content

fix(model): properly serialize WHERE attributes in soft deletes - #8383

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
gabegorelick:update-infinity
Sep 29, 2017
Merged

sushantdhiman merged 1 commit into
sequelize:masterfrom
gabegorelick:update-infinity

Conversation

@gabegorelick

@gabegorelick gabegorelick commented Sep 27, 2017 •

Copy link
Copy Markdown
Contributor

Closes #8382

Pull Request check-list

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)? N/A
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

Infinity date support is pretty new in Sequelize (1 day old), so it still has some kinks to work out. This PR fixes #8382.

@codecov

codecov Bot commented Sep 27, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #8383 into master will not change coverage.
The diff coverage is n/a.

@sushantdhiman sushantdhiman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test need some fixes, otherwise LGTM

Comment thread test/integration/instance.test.js Outdated
});
});

if (dialect === 'postgres') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dialect.match(/^postgres/)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sushantdhiman Updated. Let me know if you want any other changes.

@sushantdhiman
sushantdhiman merged commit ba7aa33 into sequelize:master Sep 29, 2017
@gabegorelick
gabegorelick deleted the update-infinity branch September 29, 2017 15:42
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.

Infinity date not working for paranoid delete

2 participants