The MR ports the changes introduced by gitlab-org/gitlab-ee!70 in project.js.coffee.
project.js.coffee