-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Fix source="*" with HyperlinkedModelSerializer #5138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix source="*" with HyperlinkedModelSerializer #5138
Conversation
tests/test_model_serializer.py
Outdated
self.maxDiff = None | ||
|
||
self.assertEqual(unicode_repr(TestSerializer()), expected) | ||
|
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.
The test should be moved to TestStarredSource
in tests/test_serializer.py
maybe.
[ci skip]
Nice one. Thank you! |
@tomchristie |
@blueyed maybe not. Whether you end up with one commit or another, you get the associated PR which will give you the context. |
? I certainly meant it to be squashed.. what does "Possible fix" or a "fixup!" (meant for git's autosquashing) have to do in a project's history? Also there are 3 times more commits when git-bisecting (which I've used to debug this issue itself), and one of them needs to be skipped/ignored when running all tests. |
@tomchristie @xordoquy @jpadilla I think (especially with widely-used projects) the history of the master branch should be kept clean (for reviewers, git-bisect etc). This also includes squashing single-commit PRs, instead of merging them. |
There are a lot of arguments one way or another. Sometime it's better to have several more atomic commits to have a better understanding and I like much better merging rather than rebasing because it keeps the commit uuid which helps me to know whether a branch has been merged or not and makes it easier in an heavily distributed env. To conclude, my thoughts on that are that it's been merged so it's history now and I doubt the extra work is worth it. |
@xordoquy And also raising awareness that commits with a "fixup!" prefix should not get merged as-is in general. Re 09f62e1: the commit message "Possible fix" is very bad (even worse than some "fixup!"-prefixed one). |
The PR makes sense. It has a well described context through the linked issue as well as a test case. |
@xordoquy |
For #5137.
Closes #5137