-
Notifications
You must be signed in to change notification settings - Fork 2
Feature request: hide MRs based on their latest pipeline status #9
Comments
Hello, thank you for your interest! Looks like you already can filter MRs depending on their WIP status: This filter has been introduced in GitLab 11.4.0. About the latest pipeline status filter: I only took a quick look but looks like it's possible! I however can't give you a release date, though. |
Note: the GitLab API doesn't allow to filter MRs by pipeline status upwind. So the only possible thing I can do is to hide MRs based on the pipeline status although these MRs already have been displayed to the user. |
Sorry about the MR thing, this gitlab version got deployed to our infra literally the day after I wrote this xD Yeah I know about that limitation, but I think hiding them by directly altering the site to remove "out-filtered" ones should be fine. It's not like regular desktop gitlab users are going to be bothered about bandwidth and I don't know of any major mobile browsers that support add-ons. |
Investigated a bit further: it's going to be very hard, and even impossible to hook into the filter component for several reasons. Too bad, would have been cool. I however found another possible solution that is somewhat easier to implement: add a dropdown menu next to the sort dropdown menu: The selected value would be remembered by storing it in the local storage. |
I'm no webdev at all and don't know what stack you're using, but I remember I did a chrome extension for google translate (https://github.com/stoyicker/Copy-Translation) where I just manipulated the site html directly, so I don't really see why you couldn't alter gitlab's filter to basically merge the dropdown you're proposing into it. But I don't know what stack you're using and barely any web development, so I think you should trust your own criteria. the dropdown solution looks perfectly fine to me |
Is it OK to put this pipelines status filter in the options page of the extension? Adding this filter in the page itself (like in my above screenshot) means I have to write a system to persist preferences on a per-Gitlab-project basis, which is something I'd like to introduce later (because if I introduce such a feature, I'd like all the other options to be persisted the same way, which is a bit of work). |
Well, it seems prettier the way you initially suggested, and it may be a bit hidden for regular users that don't read this issue, but obviously as far as I am concerned, it's fine |
Hey, nice little tool. thanks for the effort. I would like to request hooking onto the "filter" view for gitlab to offer hiding MRs based on: WIP status and latest pipeline status.
The text was updated successfully, but these errors were encountered: