[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 --- Comment #5 from christ...@quelltextlich.at --- (In reply to comment #3) [ Patch to set default comment visibility ] https://gerrit-review.googlesource.com/#/c/44162/ This change has been merged upstream. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 --- Comment #6 from christ...@quelltextlich.at --- (In reply to comment #4) Could the site-wide default be changed here? No. It's only about user's choice. Gerrit's current default visibility works well for me :-) But given the comments of others, I seem to be the outlier. So I uploaded an upstream change to change the default comment visibility strategy: https://gerrit-review.googlesource.com/#/c/44275/ -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 Bartosz Dziewoński matma@gmail.com changed: What|Removed |Added CC||matma@gmail.com --- Comment #1 from Bartosz Dziewoński matma@gmail.com --- I'd suggest a different solution - no user options, let's just expand everything apart from autogenerated comments (both the ones generated by gerrit itself, gerrit pretending to be you (for new patchsets etc.), and by Jenkins). According to Chad, this is possible and seems reasonably easy to do. Also according to Chad, it would be nice to get https://gerrit-review.googlesource.com/#/c/43520/ merged upstream first so we can nicely inject jQuery instead of hardcoding it in the script. Example barely tested mockup code (there are some more cases to handle), requiring jQuery: $(window).on('hashchange', function() { $('.commentPanel:not(.commentPanelLast) .commentPanelHeader') .filter(function(){ var isJenkins = $(this).find('.commentPanelAuthorCell').text() == 'jenkins-bot'; var isNewPatchset = $(this).find('.commentPanelSummaryCell').text().match(/^\s*Uploaded patch set \d+\.\s*$/); return !isJenkins !isNewPatchset; }) .click() }).trigger('hashchange'); This seems to work for me on Opera and not throw exceptions. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 jeremyb bugzilla+org.wikime...@tuxmachine.com changed: What|Removed |Added CC||bugzilla+org.wikimedia@tuxm ||achine.com -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 --- Comment #2 from Bartosz Dziewoński matma@gmail.com --- Created attachment 12017 -- https://bugzilla.wikimedia.org/attachment.cgi?id=12017action=edit Code from comment 1 as attachment Adding the Ccode from comment 1 as attachment to prevent Bugzilla from mangling it. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 Waldir wal...@email.com changed: What|Removed |Added CC||wal...@email.com -- You are receiving this mail because: You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 christ...@quelltextlich.at changed: What|Removed |Added Keywords||upstream --- Comment #3 from christ...@quelltextlich.at --- The more we can get upstream, the less we have to maintain ourselves :-) A patch allowing the user to specify whether to use 'Expand Recent', 'Expand all', ... as default strategy for comment visibility is uploaded to upstream gerrit for review at: https://gerrit-review.googlesource.com/#/c/44162/ -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 46774] Gerrit closes all but last comment after loading change view
https://bugzilla.wikimedia.org/show_bug.cgi?id=46774 MZMcBride b...@mzmcbride.com changed: What|Removed |Added CC||b...@mzmcbride.com --- Comment #4 from MZMcBride b...@mzmcbride.com --- (In reply to comment #0) Allow the user to specify whether to use 'Expand Recent', 'Expand all', ... as default strategy for comment visibility. I'm not sure this is the correct approach to take here. The default behavior should just be sensible. It looks like Gerrit already supports a expand recent comments feature. Could the site-wide default be changed here? (In reply to comment #3) The more we can get upstream, the less we have to maintain ourselves :-) Thanks for working on this. A patch allowing the user to specify whether to use 'Expand Recent', 'Expand all', ... as default strategy for comment visibility is uploaded to upstream gerrit for review at: https://gerrit-review.googlesource.com/#/c/44162/ In software development and design, the defaults are hugely important as most users never set custom preferences. It's unclear whether this proposed changeset changes the site-wide default or just adds a user preference. As I said above, I'd rather not see a new user preference here, but if one is added, I think there's still the unresolved issue of a sane default here. There's no time when I can think of that the current behavior (collapsing all but the most recent comment) would be appropriate. Auto-expanding the most recent comments (plural) seems like a sensible default site-wide and would likely eliminate the need for a user preference. All that said, the JavaScript-based solutions have some advantages, such as auto-collapsing certain kinds of comments (such as those from jenkins-bot). -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l