Skip to content

Productivity Analytics: Add buildGroupFromDataset and buildProjectFromDataset utility functions

Martin Wortschack requested to merge mw-pa-group-project-utils into master

What does this MR do?

This MR adds the following two utility methods which will eventually be used to create a group/project object on the Productivity Analytics page from data- attributes.

  • buildGroupFromDataset: Creates a group object from a dataset.
  • buildProjectFromDataset: Creates a project object from a dataset.

The created group/project objects will be passed as props to the dropdowns to set the initial state.

Both methods will be utilized in !21390 (merged)

Screenshots

N/A

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
Edited by Martin Wortschack

Merge request reports