Skip to content

[FIX] List filtering not working after rotating device - #4464

Closed
AwaisKhan128 wants to merge 0 commit into
owncloud:masterfrom
AwaisKhan128:fix/list_filtering_not_working_after_rotating_device
Closed

AwaisKhan128 wants to merge 0 commit into
owncloud:masterfrom
AwaisKhan128:fix/list_filtering_not_working_after_rotating_device

Conversation

@AwaisKhan128

@AwaisKhan128 AwaisKhan128 commented Sep 6, 2024 •

Copy link
Copy Markdown
Contributor

Related Issues

App:

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

QA

@AwaisKhan128

Copy link
Copy Markdown
Contributor Author

@JuancaG05 Kindly review it please.

@JuancaG05 JuancaG05 linked an issue Sep 6, 2024 that may be closed by this pull request
@JuancaG05
JuancaG05 self-requested a review September 6, 2024 10:50

@JuancaG05 JuancaG05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AwaisKhan128! Good job! I'm going to ask for a couple of changes and some questions:

  • As I commented in the Calens file, don't include very technical details as far as possible
  • You can include a new release note for this issue, just as the check in the PR indicates. To do this, you just have to add a new ReleaseNote object to the list in ReleaseNoteViewModel.kt, creating new strings for that
  • Please, use conventional commits for naming. As I commented in the last PR, you can check more info here: https://github.com/owncloud/android/blob/master/CONTRIBUTING.md#2-create-pull-request. It's better if we follow the same guidelines, so that we can integrate it to our work more easily
  • Also commented in the closed PR: about the solution provided with the android:configChanges attribute, it is very general. It's true that it solves this problem, but did you check if it has more regards? Especially when we're talking the whole FileDisplayActivity, which is used for many different views in the app

Comment thread changelog/unreleased/4441 Outdated
@@ -0,0 +1,6 @@
Bugfix: List filtering not working after rotating device

Android config changes has been added in the activity tag in manifest.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! But try to avoid very technical concepts in this entry. In this case you could say: Configuration changes have been handled when rotating the device so that list filtering works. That way, if we finally change the solution, this entry keeps applying 👍

@JuancaG05 JuancaG05 changed the title Fix/list filtering not working after rotating device [BUG] List filtering not working after rotating device Sep 10, 2024
@JuancaG05 JuancaG05 changed the title [BUG] List filtering not working after rotating device [FIX] List filtering not working after rotating device Sep 10, 2024
@JuancaG05

Copy link
Copy Markdown
Contributor

Hey @AwaisKhan128, any news here? 😃

@AwaisKhan128

Copy link
Copy Markdown
Contributor Author

Hey @AwaisKhan128, any news here? 😃

Working on other points. Didn't some spare time but will push asap. Also, would you like to elaborate point no.3 not clear to me.

@JuancaG05

Copy link
Copy Markdown
Contributor

Working on other points. Didn't some spare time but will push asap.

No worries! Just to make you know that if you have any question we're here to try helping you 🚀

Also, would you like to elaborate point no.3 not clear to me.

You mean the one about conventional commits? Yes, it refers to the title you set to your commits. For example, in your case, you named a commit updated manifiest FileDisplayActivity activity tag to fix list stop working issue after rotating and another one change log file has been added. These doesn't fulfill the convention to name commits that we're using, conventional commits. As explained in the CONTRIBUTING.md file I linked in the previous message, we use a prefix like feat:, fix:, test:, or chore: for each commit, so that in your case, the correct way would be like fix: updated manifiest FileDisplayActivity activity tag to fix list stop working issue after rotating and chore: change log file has been added. Not necessary for you to change it if it gets difficult now that you already pushed the commits, but take it into account for future commits 😃

@AwaisKhan128

Copy link
Copy Markdown
Contributor Author

Sorry point 4. It's true that it solves this problem, but did you check if it has more regards? Especially when we're talking the whole FileDisplayActivity, which is used for many different views in the app?

@JuancaG05

Copy link
Copy Markdown
Contributor

Sorry point 4. It's true that it solves this problem, but did you check if it has more regards? Especially when we're talking the whole FileDisplayActivity, which is used for many different views in the app?

With this, I mean that the configChanges attribute could lead to other problems that we're not taking into account here due to the configuration handling. We usually do it from the activity or the fragment, and let this responsibility to Android could result in unexpected situations. Just a question to see if you checked that or put an eye on this 😀

@AwaisKhan128

AwaisKhan128 commented Sep 13, 2024 •

Copy link
Copy Markdown
Contributor Author

@JuancaG05 I understand. I checked all aspects from my end and everything works fine. If you like me to test more please provide QA test document so that I can go through it and test accordingly.

@AwaisKhan128

Copy link
Copy Markdown
Contributor Author

Also let me know do you have any documentation link how to write releaseNotes. And do I need to write in all languages?

@JuancaG05

Copy link
Copy Markdown
Contributor

@JuancaG05 I understand. I checked all aspects from my end and everything works fine. If you like me to test more please provide QA test document so that I can go through it and test accordingly.

OK! No worries, our QA team will test it more deeply and will conclude if everything is fine 🙂

Also let me know do you have any documentation link how to write releaseNotes. And do I need to write in all languages?

We don't really have a documentation about that. You just have to know that it is very similar to a changelog entry, but trying to make it short and non-technical, since this will be read by final users which can not have a technical background. You can take a look at the other release notes already added, the way to proceed is very similar in every case 👍. And you only need to write it in English, Transifex will take care of the corresponding translations 😉

So, whenever the Calens file is changed as I suggested and you add the release note (following conventional commits it should be something like feat: added release note, or similar), just ping me and I'll review it again 🚀

@JuancaG05

Copy link
Copy Markdown
Contributor

BTW, the master branch changed during the development of this PR as GitHub indicates in the checks. To solve it you can rebase this branch against master, or even easier, just removing the commits related to the changelog update, which is the one causing problems 👍

@AwaisKhan128
AwaisKhan128 force-pushed the fix/list_filtering_not_working_after_rotating_device branch from f5c75bb to 9e6e168 Compare September 16, 2024 11:21
@AwaisKhan128

Copy link
Copy Markdown
Contributor Author

@JuancaG05 Can you please revert this branch again closed accidentally. Just followed your guideline and resolved changelog conflicts caused it automatically merged and closed.

@JuancaG05

Copy link
Copy Markdown
Contributor

Hi @AwaisKhan128! It seems I cannot reopen the PR because it has 0 commits 😨. Maybe you did something incorrectly in the rebase, it's usual... You can try fixing it if you can recover the previous status, or maybe what is the best option is opening a new PR and follow now the conventional commits guidelines just as I indicated. It's just 2 commits, so it shouldn't be hard! 😃 That was the common learning process, next time you'll do it fine for the first time for sure 😉. If you need help, just ping me here

@AwaisKhan128
AwaisKhan128 deleted the fix/list_filtering_not_working_after_rotating_device branch September 16, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants