Skip to content

Productivity Analytics: Add deep links (FE only)

Martin Wortschack requested to merge mw-pa-deep-links-fe into master

What does this MR do?

  • FE task for adding deep links to the PA page.

  • BE is being implemented in !21031 (merged)

In addition to the deep links, this MR removes FE logic which determines the defaultStartDate and the defaultEndDate. This is obsolete, since BE now passes the mergedAtAfter and mergedAtBefore date to the FE via data- attributes.

Closes #32423 (closed)

Implementation

  • Params are parsed by the BE and data is passed via data- attributes to the FE. FE now calls the setInitialData action and updates the store with the data:
    • This sets at least default values for startDate and endDate on the store
    • Moreover, it updates the store with additional data, in case any of the following query parameters is present:
      • group_id: When given, FE creates the group object and passes it as a prop to the groups_dropdown_filter component
      • project_id: When given, FE creates the project object and passes it as a prop to the projects_dropdown_filter component
      • label_name[]
      • milestone_title
      • author_username

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