I think the SCMMergeRequestFilterWidget validation was actually doing one good thing. It was forcing the status var to be a list, which is needed for c.app.repo.merge_requests_by_statuses(*status) to work. So the code needs to be updated to make status be a list or call that function differently. There is a aslist helper function we use frequently that might be useful.
Also, if no status is given, it defaults to ['open'] so clicking on 'All' doesn't actually show all currently.
And the status "closed" isn't used, it is "rejected". (Although in general it might be good to change that, but that'd be a separate ticket probably)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the
SCMMergeRequestFilterWidgetvalidation was actually doing one good thing. It was forcing thestatusvar to be a list, which is needed forc.app.repo.merge_requests_by_statuses(*status)to work. So the code needs to be updated to makestatusbe a list or call that function differently. There is aaslisthelper function we use frequently that might be useful.Also, if no status is given, it defaults to
['open']so clicking on 'All' doesn't actually show all currently.And the status "closed" isn't used, it is "rejected". (Although in general it might be good to change that, but that'd be a separate ticket probably)
have added a new method to list all MRs and fixed the UI issues and buttons submitting wrong status.
The
all_merge_requestsmethod didn't need the*statusesparam, so I removed that as I merged it. Nice visual cleanup on this page!