Skip to content

Add missing googlesitekit-notifications dependency to module assets #10749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
techanvil opened this issue May 9, 2025 · 2 comments
Open
1 task done

Add missing googlesitekit-notifications dependency to module assets #10749

techanvil opened this issue May 9, 2025 · 2 comments
Labels
P2 Low priority Team M Issues for Squad 2 Type: Enhancement Improvement of an existing feature

Comments

@techanvil
Copy link
Collaborator

techanvil commented May 9, 2025

Feature Description

As discussed here, #10269 (comment), we are currently missing the googlesitekit-notifications dependency for most module assets. This is not causing any problems at present, but we should ensure that the assets have the full list of dependencies to avoid potential issues in future.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The googlesitekit-notifications asset should be added as a dependency for the module assets for the following modules:
    • Ads
    • AdSense
    • Analytics 4
    • PageSpeed Insights
    • Sign in With Google

Implementation Brief

  • Add googlesitekit-notifications to the dependencies for each of the following Script assets:

new Script(
'googlesitekit-modules-ads',
array(
'src' => $base_url . 'js/googlesitekit-modules-ads.js',
'dependencies' => array(
'googlesitekit-vendor',
'googlesitekit-api',
'googlesitekit-data',
'googlesitekit-modules',
'googlesitekit-datastore-site',
'googlesitekit-datastore-user',
'googlesitekit-components',
),
)
),

new Script(
'googlesitekit-modules-adsense',
array(
'src' => $base_url . 'js/googlesitekit-modules-adsense.js',
'dependencies' => array(
'googlesitekit-vendor',
'googlesitekit-api',
'googlesitekit-data',
'googlesitekit-modules',
'googlesitekit-datastore-site',
'googlesitekit-datastore-user',
'googlesitekit-components',
),
)
),

new Script(
'googlesitekit-modules-analytics-4',
array(
'src' => $base_url . 'js/googlesitekit-modules-analytics-4.js',
'dependencies' => array(
'googlesitekit-vendor',
'googlesitekit-api',
'googlesitekit-data',
'googlesitekit-modules',
'googlesitekit-datastore-site',
'googlesitekit-datastore-user',
'googlesitekit-datastore-forms',
'googlesitekit-components',
'googlesitekit-modules-data',
),
)

new Script(
'googlesitekit-modules-analytics-4',
array(
'src' => $base_url . 'js/googlesitekit-modules-analytics-4.js',
'dependencies' => array(
'googlesitekit-vendor',
'googlesitekit-api',
'googlesitekit-data',
'googlesitekit-modules',
'googlesitekit-datastore-site',
'googlesitekit-datastore-user',
'googlesitekit-datastore-forms',
'googlesitekit-components',
'googlesitekit-modules-data',
),
)

new Script(
'googlesitekit-modules-pagespeed-insights',
array(
'src' => $base_url . 'js/googlesitekit-modules-pagespeed-insights.js',
'dependencies' => array(
'googlesitekit-vendor',
'googlesitekit-api',
'googlesitekit-data',
'googlesitekit-modules',
'googlesitekit-datastore-site',
'googlesitekit-components',
),
)

array(
'src' => $this->context->url( 'dist/assets/js/googlesitekit-modules-sign-in-with-google.js' ),
'dependencies' => array(
'googlesitekit-vendor',
'googlesitekit-api',
'googlesitekit-data',
'googlesitekit-modules',
'googlesitekit-datastore-site',
'googlesitekit-datastore-user',
'googlesitekit-components',
),
)

Test Coverage

  • Fix any breaking tests.
  • No additional test coverage needed.

QABrief

  • No QA is required in this issue because engineer will confirm that googlesitekit-notifications is added as dependency for module assets.

Changelog entry

  • N/A
@techanvil techanvil self-assigned this May 9, 2025
@techanvil techanvil added P2 Low priority Type: Enhancement Improvement of an existing feature labels May 9, 2025
@techanvil techanvil removed their assignment May 9, 2025
@eugene-manuilov eugene-manuilov self-assigned this May 9, 2025
@eugene-manuilov
Copy link
Collaborator

IB ✔, but the estimate is too high, i'll reduce it to 3 since it is "one-line change" type of things which is technically is 1.

@eugene-manuilov eugene-manuilov removed their assignment May 9, 2025
@ivonac4 ivonac4 added the Team M Issues for Squad 2 label May 14, 2025
@ankitrox ankitrox self-assigned this May 19, 2025
@ankitrox ankitrox removed their assignment May 19, 2025
@aaemnnosttv aaemnnosttv self-assigned this May 19, 2025
@aaemnnosttv
Copy link
Collaborator

No QA needed, moving to approval

@aaemnnosttv aaemnnosttv removed their assignment May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Low priority Team M Issues for Squad 2 Type: Enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

5 participants