-
-
Notifications
You must be signed in to change notification settings - Fork 619
Fix file history for all sizes #1738
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 file history for all sizes #1738
Conversation
thanks for tackling this. |
I saw that, too. I assumed it was existing behaviour, but since it apparently is not, I’m going to fix it. :-) Thanks for the hint! |
f54cbe9
to
55cd4c7
Compare
The issue turned out to be more complex than I initially thought. I overhauled how selection as well as data fetching and refetching work in
|
@cruessler any updates? putting this in draft in the meantime |
I haven’t gotten to look at the PR again yet. If I don’t get to it this week, then I’ll find time end of next week, I think. |
55cd4c7
to
87007c9
Compare
@extrawurst I think I found the issue. I rebased and manually tested the branch again, including the test case you provided. |
now the scrolling works but the diffs still do not update: Screenflick.Movie.3.mp4 |
Thanks a lot for checking so thoroughly, that’s very much appreciated! I pushed another fix. |
Visually it works now! I am not sure if this implementation is working as intended though. I added a
if I reduce the batch size to force it to have to fetch commits (200 batch size) this shows that every
this is not as efficient as it could be if we would fetch commit infos in batches and then only again once we run out. side note: the selection should go up and down inside the view before the scroll position changes to keep the selection in view. right now if you scroll down it will stick to the bottom and the scroll position changes when scrolling up (although I am ok if this is done in a followup PR) please also rebase on master particularly 9eb8d47 will affect this branch and make reading the log way easier :) |
ok comparing with current master we should fix the scrolling up/down issue because on master it does it correctly with the scrolling window moving only when the selection reaches the upper/bottom border putting it in draft again in the meantime, please ping me once you had time to look into it again 👍 |
- Replace temporary fix by proper fix - Re-organize code related to setting selection and fetching data to make sure `self.items` is updated whenever necessary
a0a19c2
to
cf1be61
Compare
I updated the PR, tested it quite a bit, hoping not to have missed anything, and ran |
This Pull Request is a follow-up to #1648 and related to #1560.
It changes the following:
offset()
, now exposed byratatui
, to keepitems
’ offset in sync withtable_state
’s offset.I followed the checklist:
make check
without errors