Keep project settings sections expanded after submitting form

What does this MR do?

Part of gitlab-ce#35952, port of gitlab-org/gitlab-ce!21079 and gitlab-org/gitlab-ce!21082 to EE. This changes the behavior of all of the forms within collapsable sections in the project settings pages such that when submitted, the resulting page will render with the form section expanded.

The EE-specific changes here are in regard to:

  • The "Issues" settings section under project general settings
  • The "Push Rules" settings section under project repository settings
  • The "Mirroring Repositories" settings section under project repository settings
  • The "Protected Environments" settings section under project CI/CD settings

Are there points in the code the reviewer needs to double check?

Submitting any form within the project settings pages should send you to the same page with the same section expanded. (before this, all sections would be collapsed after the form is submitted)

Why was this MR needed?

See issue description.

Screenshots (if relevant)

n/a

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Part of gitlab-ce#35952

Edited by Filipa Lacerda

Merge request reports

Loading