Migrate merge requests after git-filter-branch

Is it possible not to lose merge requests of a GitLab project after rewriting history of the underlying git repository with git-filter-repo or git-filter-branch?

I also would like an answer to this. It seems gitlab just ignores the new commits from git-filter-repo’s commit-map and deletes the old commits, resulting in error 500 for all merge requests that reference these commits. Is there some undocumented way to migrate the merge requests using the commit-map ?