Mikescops / git-notify-extension

🦊🐙 Browser Extension for GitLab (Chrome, Edge & Firefox). Don't miss any Gitlab Merge Requests and rocket up your productivity.
https://addons.mozilla.org/en-US/firefox/addon/gitlab-notify/
114 stars 10 forks source link

MRs from Archived Projects are included in lists #72

Closed tcoffin closed 1 year ago

tcoffin commented 2 years ago

I have two open MRs on a project. That project was then Archived while the MRs were still open. Those MRs continue to appear in the To Review and Under Review lists for the Extension. The list of personal MRs within the Gitlab interface does not show the MRs from the archived project.

Browser: Firefox Extension Version: 1.5.1

Reproduction steps:

Mikescops commented 2 years ago

Thanks for reporting, I'll have a look :+1:

Mikescops commented 2 years ago

As of today, it seems that the GitLab API does not provide a way to filter archived MRs. https://docs.gitlab.com/ee/api/merge_requests.html#list-group-merge-requests

Better close MRs in the archived project then... sadly

bastienGranger commented 1 year ago

@Mikescops As per the link you send above there is now a non_archived parameter to filter out MRs from archived projects it set to true.

Mikescops commented 1 year ago

Indeed as stated in the documentation :

non_archived : Returns merge requests from non archived projects only. Default is true.

I'll close the issue but @tcoffin feel free to reopen if this is still an issue on your side, maybe there is something more.