And if it is, why not show
that info in the listing of changes as well?
into the index, it's something like O(n_open_changes) complexity at push
time, but that's again just the cost of doing business, right? And even if
it O(n^2), well, what is the alternative? As a developer I surely hope I
see a red/green thingy indicating to me if I can merge that one change that
I'm looking at now. I do not want to find that out only after I've hit the
submit button. Is that going to be supported? And if it is, why not show
that info in the listing of changes as well?
Speaking about the dashboards and query results, originally these were
paged. Each of the independent queries showed something like "10 or more",
and you would only get the full list upon a click (and erven that was still
paginated). That's not the case on GerritHub right now, and perhaps a
reason why our dashboard [3] takes 10+ seconds to render now.
With kind regards,
Jan
[1]
https://www.gerritcodereview.com/3.4.html#ismergeable-predicate-is-disabled-per-default
[2]
https://github.com/Telecominfraproject/oopt-gnpy/commit/89b4da9518237e4a0902ead288a8c6049b4ae1f3
[3]
https://review.gerrithub.io/p/Telecominfraproject/oopt-gnpy/+/dashboard/main:main
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/c1c8de6c-d0c2-4f1d-9497-32444ec0e23a%40flaska.net.
On 20 May 2021, at 14:20, Jan Kundrát <j...@flaska.net> wrote:Hi,
I read [1] that the is:mergable operator got disabled by default (and we bumped into this as users of GerritHub).
We've had this operator in our stored project dashboard which acted as a landing page. Not a bit deal, we've updated [2] that one, but it's something which raised a support request already.
For us, it was a piece of useful information.
We created that dashboard as a tool for users to take a peek at what is brewing in the repo. Our dashboard was split into "what needs work from the original developer", "what needs a reviewer's attention", and "what got done recently". Anything which wouldn't merge went straight into the "needs a developer to finish" bucket. This dashboard of course predates the excellent Attention Sets which I personally just love, and there's a certain overlap in features. Still, the attention set is inherently personalised, and it's an excellent tool for active developers. What we solved with a dashboard is an overview that centers around the full project, not around one particular developer. I think I could get a similar result if there was a query operator such as "is the change owner in the attention set", but I don't think there's an operator like that.
The error message can be made clearer, e.g., by pointing to the release notes. But perhaps that wouldn't help for users who obviously cannot trigger it.
Finally, it looks like I don't understand the reasoning given in the docs. My understanding of a change being "mergeable" is that it can be applied to the current tip of the target branch, whatever it is right now. How does that trigger an O(n^2) complexity per change? Isn't it at most O(n_open_changes * n_diff_hunks_in_change)? Of course if this info goes into the index, it's something like O(n_open_changes) complexity at push time, but that's again just the cost of doing business, right? And even if it O(n^2), well, what is the alternative? As a developer I surely hope I see a red/green thingy indicating to me if I can merge that one change that I'm looking at now. I do not want to find that out only after I've hit the submit button. Is that going to be supported? And if it is, why not show that info in the listing of changes as well?
Speaking about the dashboards and query results, originally these were paged. Each of the independent queries showed something like "10 or more", and you would only get the full list upon a click (and erven that was still paginated). That's not the case on GerritHub right now, and perhaps a reason why our dashboard [3] takes 10+ seconds to render now.
On 20 May 2021, at 17:17, Luca Milanesio <luca.mi...@gmail.com> wrote:Hi Jan,Thanks for your feedback, which is always very much appreciated.Answers inline.On 20 May 2021, at 14:20, Jan Kundrát <j...@flaska.net> wrote:Hi,
I read [1] that the is:mergable operator got disabled by default (and we bumped into this as users of GerritHub).
We've had this operator in our stored project dashboard which acted as a landing page. Not a bit deal, we've updated [2] that one, but it's something which raised a support request already.
For us, it was a piece of useful information.We are re-enabling the is:mergeable on GerritHub.io: by checking the system load, it is something we can still afford at the moment and we are happy to listen to our customers :-)Current status:- EU site is enabled again (review-eu.gerrithub.io)- US site is in-progress (review-am.gerrithub.io)review.gerrithub.io is going by default to the US site, so it will take a few more minutes.P.S. GerritHub is multi-site, so all sites are replicated transparently.We created that dashboard as a tool for users to take a peek at what is brewing in the repo. Our dashboard was split into "what needs work from the original developer", "what needs a reviewer's attention", and "what got done recently". Anything which wouldn't merge went straight into the "needs a developer to finish" bucket. This dashboard of course predates the excellent Attention Sets which I personally just love, and there's a certain overlap in features. Still, the attention set is inherently personalised, and it's an excellent tool for active developers. What we solved with a dashboard is an overview that centers around the full project, not around one particular developer. I think I could get a similar result if there was a query operator such as "is the change owner in the attention set", but I don't think there's an operator like that.
The error message can be made clearer, e.g., by pointing to the release notes. But perhaps that wouldn't help for users who obviously cannot trigger it.Sure, the release notes are more for the Gerrit admin, but it has relevance also for users.I was wondering *IF* it would make sense to have it configurable on a per-project basis.The complexity is NOT affordable for certain projects but it IS affordable for others.At the moment in Gerrit is all or nothing, but for setups like GerritHub.io that are hosting different type of repos it could be NOT the ideal way of having it.
On 20 May 2021, at 17:17, Luca Milanesio <luca.mi...@gmail.com> wrote:
Hi Jan,Thanks for your feedback, which is always very much appreciated.Answers inline.On 20 May 2021, at 14:20, Jan Kundrát <j...@flaska.net> wrote:Hi,
I read [1] that the is:mergable operator got disabled by default (and we bumped into this as users of GerritHub).
We've had this operator in our stored project dashboard which acted as a landing page. Not a bit deal, we've updated [2] that one, but it's something which raised a support request already.
For us, it was a piece of useful information.We are re-enabling the is:mergeable on GerritHub.io: by checking the system load, it is something we can still afford at the moment and we are happy to listen to our customers :-)Current status:- EU site is enabled again (review-eu.gerrithub.io)- US site is in-progress (review-am.gerrithub.io)