-
Notifications
You must be signed in to change notification settings - Fork 58
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
[CODE] Refactoring base.py sort model to be cleaner and easier to read. #1297
[CODE] Refactoring base.py sort model to be cleaner and easier to read. #1297
Conversation
- Some of the code in base.py is very bad and will probably need to be changed again. However, I added type hints and removed some unecessary code and cleaned up a bit of the logic.
This is a good first step but the logic here is still broken (not your fault). The earlier call replaces only The basic problem is that earlier in the code there is an explicit inclusion of string types into a numeric array. Once this happens there is not reliable sorting. Or, in other words, this whole function should not need to exist. |
Agree, plan is to update how results are processed after 2.10 sometime anyway, so this was not a priority. There's a related issue here: #887 |
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.
Thanks for the PR! See separate comments for requested changes. If you have questions/comments, let me know.
In addition to requested code-changes, please update the name of your PR to something more easily understandable so we can understand/retrace from merge history/git blame what's happened and why, see the pull-requests section of CONTRIBUTING.MD for some pointers.
Finally, please don't remove the PR checklist when opening PRs, the checklist makes it easier for us to make sure the administrative side is roughly in order.
Thanks!
Yeah I agree with you. There's something that is feeding incorrect data into the model. I'm going to make these changes that Marc requested. I'll also look into seeing where we could make a "real" fix to the issue. |
I'd suggest keeping this low on your priorities, we have on the planning to make major changes to results. |
@ughstudios We are looking to make a |
# Conflicts: # activity_browser/ui/tables/models/base.py
#1278
I wrote a comment on this last pull request.
Checklist
bug
,feature
,ui
,change
,documentation
,breaking
,ci
as they show up in the changelog.