Productivity Analytics: Add deep links (FE only)
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 thesetInitialData
action and updates the store with the data:- This sets at least default values for
startDate
andendDate
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 thegroup
object and passes it as a prop to thegroups_dropdown_filter
component -
project_id
: When given, FE creates theproject
object and passes it as a prop to theprojects_dropdown_filter
component label_name[]
milestone_title
author_username
-
- This sets at least default values for
Screenshots
N/A
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
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