Skip to content

Prohibit requirement issues from being moved or cloned between projects

charlie ablett requested to merge 337189-prohibit-move-requirement-issue into master

What does this MR do?

Prohibits requirement issues from being moved or cloned since this would introduce new functionality that does not currently exist on Requirements.

See Part IIa of #323779 (closed)

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

  1. Create a new issue
  2. Modify it in the console to be of type Requirement (it is not yet possible to do this in the UI) issue.update_attribute(:issue_type, :requirement)
  3. Try to move it using any of the following methods:
  • a service in console (Issues::MoveService, Issues::CloneService)
  • an API call (e.g. GraphQL or REST API)
  • quick action /move or /clone
  1. Observe the absence of the Move issue button on the lower right hand sidebar.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #337189 (closed)

Edited by charlie ablett

Merge request reports

Loading