-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fb5258
commit 3657d66
Showing
2 changed files
with
9 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3657d66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taylorotwell Your refactor created a regression. You didn't get the parenthesis right when you tried to one-line that return statement.
You need to call unique() on the keys, not on the data. The correct code is below. Can we get a new release out for or do I have to hotfix it on my production server?
3657d66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adam1010 If it's not yet fixed send a pull request with the fix, if one was not created already.
Also, if it's a regression as you say, it's probably better to include a unit test to ensure it doesn't happen again in the future.
3657d66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's a big regression, I had 3 integration tests fail which is how I caught it.
3657d66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a pull request that includes a unit test that highlights the problem:
#23432