-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Adjust milestone sort order for due date. Non due date milestone will be considered after all due date milestone #35200
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
base: main
Are you sure you want to change the base?
Conversation
…be considered after all due date milestone
I don't think the code reads right. The |
|
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.
looks clustered, but did not come up with something better jet :/
Well, I regretted that I approved 32339 ..... and I think we shouldn't add more patches. If you search "deadline_unix" in the code base, you can see there are more places using it for comparing and sorting. So the correct fix should be introducing a very large magic unix timestamp for "no due date", but never use it as a real date/time struct |
I think magic values are not good and should mostly be avoided ... ... new maintainers just get confused ... but it would make the db query shorter yes ... :/ 🤔 |
I don't like magic numbers and seldom use them. But for this case, if you can make sure:
Then just do it. |
Fix #35194
Related to #32339