Skip to content

Conversation

manstis
Copy link
Contributor

@manstis manstis commented Feb 14, 2023

See #6054

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Fixed use of Unscoped() on Preload(..).

User Case Description

Retrieval of models with Unscoped() and Preload(..) does not include soft-deleted records.

Use of Unscoped() should include soft-deleted records.

Copy link
Member

@a631807682 a631807682 left a comment

Choose a reason for hiding this comment

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

Please fix the code format by gofumpt. https://github.com/go-gorm/gorm/pull/6058/files

@manstis
Copy link
Contributor Author

manstis commented Feb 15, 2023

I ran gofumpt -w over the whole codebase. It appears there were other files in need of formatting too.

@manstis
Copy link
Contributor Author

manstis commented Feb 18, 2023

@jinzhu Thank-you for merging.

Could you please advise when you next expect to release gorm including this fix? I have a dependency on the fix and am curious as to when I'll be able to complete my work.

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.

3 participants