Mv data attrs to parent to avoid fragility

Merged Scott Stern requested to merge 12-10-close-issue into 12-10-stable-ee

What does this MR do?

There was a regression introduced in a backport, this fixes the issue introduced in 12.10

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • 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

Closes #12 (closed)

Edited by Yorick Peterse