Allow following file renames in commit history activity#1443
Allow following file renames in commit history activity#1443maniac103 merged 1 commit intoslapperwan:masterfrom
Conversation
|
@Fs00 Please review |
9598b44 to
f032959
Compare
app/src/main/java/com/gh4a/activities/CommitHistoryActivity.java
Outdated
Show resolved
Hide resolved
|
This is an interesting feature, although I have a few doubts:
Have you considered implementing this functionality with an action at the end of the list that opens the history of the previous filename (if there is one), similarly to what the GitHub web UI does? I think it could spare us dealing with paged lists and their known issues. |
It's not the default behavior for
That's probably right, need to check this. Could likely put it into the saved state.
No, but I consider the current solution more suited because
|
f032959 to
bc3da8d
Compare
Tested this now, added saving of members to saved state, should be fine now. |
|
Great, I'll play with it and take a closer look at the implementation in the next few days 👀 |
There was a problem hiding this comment.
I've done some tests and in the end I think that the functionality is fine as-is (opt-in without persisting the option in a preference). If it were enabled by default, it would be harder for the user to realize that the file was renamed at some point in the history.
Having a visual indicator on those commits in which the file is renamed (like a "Renamed to X" chip) would address this inconvenience, but I don't feel it's necessary at the moment (could be a future improvement).
While testing I've only found two minor issues (except the known bug #1243):
- after enabling the option and rotating the screen, the "Follow renames" checkbox turns back to being disabled. I guess it's because the state is saved in the fragment but the menu is created in the activity.
Wouldn't it be better to have the options menu being inflated in theCommitListFragmentonly when afilePathis provided? That way we wouldn't even need to touch theCommitHistoryActivity. - following renames for directories does not work, but I believe it's a Git limitation because it doesn't work on the GitHub web UI either. Would it be possible to hide the "Follow renames" option on folders?
I have a few naming suggestions below.
bc3da8d to
9cd4761
Compare
|
Renames look good to me, let me know when the two issues are addressed |
What issues do you mean here? |
|
I mean the two bullet points in my review above |
9cd4761 to
2244ba7
Compare
Oops, sorry, completely missed those. Fixed both of them. |
|
Great job! 🎉 |
I am aware, but I'm procastinating there because I don't fully understand the details of the process yet and am not sure of the implications, e.g. for how long is this double signing needed - only once? |
|
No, I don't have any experience.
That's a good question - my understanding is that it's needed as long as you want to be able to upgrade from an APK signed with an old key, but I couldn't find it explicitly stated anywhere. I'm not too sure if rotating the key is worth at this point, considering that many people have likely downloaded the app from F-Droid. The only potentially frustrating thing when reinstalling the app from scratch would be to re-add previous bookmarks... |
How about implementing a nice "export/import OctoDroid settings" feature? |
It needs a dedicated feature request, would you please open one! ..as It would be good for smooth transition of app, specially useful when a user have a large no. of bookmarks. Also handy to users |
|
Please release the apk |
|
I see that there is already #948 for requesting the import/export bookmarks functionality, I think that one is enough. Imho I don't see much value in a settings backup feature considering the limited number of options the app has. Btw @maniac103 if the signing key rotation ends up being too complex to handle, feel free to release without changing the key. |
Fair point, but then #948 issue should be edited to reflect import in its title as well as in its body. OP didn't clarified the putpose, it vaguely requests for export to be saved somewhere.
Agree with it.
Sorry i somehow did miss the "settings" word 🫣 while replying as importing "bookmarks" were all over my head 😄. I do have more than hundred of them in old device, waiting to be imported into new one. It would be awesome if import export feature is considred to be included in the upcoming release, but if it takes time then it should not be a blocker for next release. After all it is an open source project, so no pressure, I know developers do it for free from their precious time for the community, so kudos to them. Happy Coding. |

Fixes #1419