Skip to content

#6307 fix page title not changed - #6869

Merged
danxuliu merged 2 commits into
nextcloud:masterfrom
burned42:6307-fix_page_title_not_changed
Oct 27, 2017
Merged

#6307 fix page title not changed#6869
danxuliu merged 2 commits into
nextcloud:masterfrom
burned42:6307-fix_page_title_not_changed

Conversation

@burned42

@burned42burned42 commented Oct 18, 2017

Copy link
Copy Markdown
Contributor

Fixes (on master) #6307
With this changes the page title gets set when switching to file list and tag list.

@LukasReschkeLukasReschke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot for your Pull Request! 🚀

Unfortunately, this seems to make the JSUnit tests fail as per https://drone.nextcloud.com/nextcloud/server/2180/241. Would you mind looking into this?

Also cc @danxuliu as he may be able to help here :)

@LukasReschkeLukasReschke added the 2. developing Work in progress label Oct 19, 2017
@burned42
burned42force-pushed the 6307-fix_page_title_not_changed branch from cfff190 to ea9c1efCompareOctober 19, 2017 14:46
@codecov

codecovBot commented Oct 19, 2017

Copy link
Copy Markdown

Codecov Report

Merging #6869 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@ Coverage Diff @@## master #6869 +/- ##
============================================
- Coverage 52.82% 52.82% -0.01% 
Complexity 22802 22802 ============================================
Files 1442 1442 Lines 88562 88563 +1 Branches 1349 1349 ============================================
- Hits 46787 46783 -4 - Misses 41775 41780 +5
Impacted FilesCoverage ΔComplexity Δ
apps/systemtags/js/systemtagsfilelist.js73.27% <100%> (+0.23%)0 <0> (ø)⬇️
core/js/js.js61.27% <0%> (-0.56%)0% <0%> (ø)
lib/private/Server.php83.47% <0%> (-0.13%)124% <0%> (ø)
lib/private/Security/CertificateManager.php92.07% <0%> (+0.99%)39% <0%> (ø)⬇️

@burned42

Copy link
Copy Markdown
ContributorAuthor

@LukasReschke Sorry, I did only read about PHPUnit tests in the CONTRIBUTING.md. I will check the errors and see if I can fix them.

@burned42

Copy link
Copy Markdown
ContributorAuthor

@LukasReschke It seems like there are still some failing tests but I'm not sure if my commits are the cause. The JSUnit test is not failing anymore.

@LukasReschkeLukasReschke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The failing tests are indeed unrelated. Thanks a lot for your pull request!

@icewind1991@danxuliu Opinions here? :)

@danxuliu

Copy link
Copy Markdown
Member

Thanks for your contribution, @burned42 :-D

These changes make the base file list and the system tags file list follow the same approach used with the file lists for favorites, recents and so on, and consistency is good ;-)

The only problem is that calling _setCurrentDir in reload is redundant in some cases in which _setCurrentDir is called just before reload (for example, in changeDirectory), and probably the other file lists should have not been calling _setCurrentDir in reload in the first place; the code of the file lists needs some review and clean up anyway, so I am OK with merging this now and taking care of those things later ;-)

Note, however, that #6307 is not fixed by this pull request, because that issue is filled against Nextcloud 12, and these changes will be merged into master and thus Nextcloud 13. @burned42, once these changes are merged, could you backport this to the stable12 branch too? :-)

@burned42

burned42 commented Oct 25, 2017

Copy link
Copy Markdown
ContributorAuthor

@danxuliu Since I am unfamiliar with the codebase I checked the other modules/files and tried to make it consistent above these. I noticed the redundant call but didn't want to start big refactoring since, as I said, I am not really familiar with the codebase.

Sure, I could try to backport these changes. Is there a best practice on how to do that? Should I just checkout stable12 and try to apply the same changes?

@danxuliu

Copy link
Copy Markdown
Member

@burned42

Since I am unfamiliar with the codebase I checked the other modules/files and tried to make it consistent above these. I noticed the redundant call but didn't want to start big refactoring since, as I said, I am not really familiar with the codebase.

Of course! Please do not see my comment as a critic to your changes; it was just a comment about the general state of the FileList code :-)

Sure, I could try to backport these changes. Is there a best practice on how to do that? Should I just checkout stable12 and try to apply the same changes?

Yes, basically that is it.

What I usually do is, on the branch that I want to backport, create a new branch with git checkout -b stable12-{original-PR-number}-{original-PR-branch-name} (but that is just how I name it; others use different name schemes) and then rebase the new branch onto stable12 using git rebase --onto stable12 {commit-id-where-the-branch-to-be-backported-diverged-from-master} stable12-{original-PR-number}-{original-PR-branch-name}.

And then, of course, test to ensure that everything works as expected ;-)

By the way, before backporting, may I ask you to fold the third and fourth commit into the first one (for example, with git rebase -i HEAD~4, replacing pick with fixup in the third and fourth commits, and then moving the second commit to the end) to get a cleaner commit history? Sorry, I am a professional nitpicker :-P

Thank you! :-)

@burned42

Copy link
Copy Markdown
ContributorAuthor

@danxuliu just to clarify, 'branch that I want to backport' would be my current branch 6307-fix_page_title_not_changed, correct?

Regarding your other request, by 'before backporting' do you mean I should do the rebase now or after this pull request is merged?

@danxuliu

Copy link
Copy Markdown
Member

@burned42

to clarify, 'branch that I want to backport' would be my current branch 6307-fix_page_title_not_changed, correct?

Correct.

Regarding your other request, by 'before backporting' do you mean I should do the rebase now or after this pull request is merged?

If possible please do it before this pull request is merged so we have a cleaner commit history also in master :-) You will have to force push the 6307-fix_page_title_not_changed branch to discard the previous commits already on the GitHub server.

Signed-off-by: Bernd Stellwag <burned@zerties.org>
Signed-off-by: Bernd Stellwag <burned@zerties.org>
@burned42
burned42force-pushed the 6307-fix_page_title_not_changed branch from 788bcf0 to 844db3cCompareOctober 27, 2017 13:28
@burned42

Copy link
Copy Markdown
ContributorAuthor

@danxuliu Rebased as suggested and force pushed the changes.

@danxuliudanxuliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great! Thank you very much! :-)

@danxuliu
danxuliu merged commit 1f19a45 into nextcloud:masterOct 27, 2017
@burned42

Copy link
Copy Markdown
ContributorAuthor

@danxuliu Thank you for your help, also @LukasReschke. I already followed your other request and after testing the changes with stable12 I will create a pull request for that, too.

@burned42
burned42 deleted the 6307-fix_page_title_not_changed branch October 28, 2017 13:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developingWork in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@burned42@danxuliu@LukasReschke