Skip to content
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

fix: filtering product announcements using contentful #24565

Merged
merged 12 commits into from
May 24, 2024

Conversation

matteoscurati
Copy link
Contributor

@matteoscurati matteoscurati commented May 16, 2024

Description

This PR introduces a filter for receiving product announcements related to the Extension.

Open in GitHub Codespaces

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@matteoscurati matteoscurati added the team-notifications Notifications team label May 16, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@matteoscurati matteoscurati marked this pull request as ready for review May 16, 2024 16:06
@matteoscurati matteoscurati requested a review from a team as a code owner May 16, 2024 16:06
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label May 16, 2024
danjm
danjm previously approved these changes May 22, 2024
@matteoscurati matteoscurati changed the base branch from develop to feat/new-authentication-flow May 22, 2024 06:51
@matteoscurati matteoscurati requested review from a team and kumavis as code owners May 22, 2024 06:51
@matteoscurati matteoscurati changed the base branch from feat/new-authentication-flow to develop May 22, 2024 06:51
@matteoscurati matteoscurati dismissed stale reviews from Prithpal-Sooriya and danjm May 22, 2024 06:51

The base branch was changed.

@matteoscurati matteoscurati removed request for a team and kumavis May 23, 2024 15:29
@metamaskbot
Copy link
Collaborator

Builds ready [7768ab7]
Page Load Metrics (668 ± 501 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint72154882010
domContentLoaded9401373
load6025536681044501
domInteractive9401373
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 25 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@@ -14,7 +14,7 @@ import { TypeActionFields } from '../types/feature-announcement/type-action';

const spaceId = process.env.CONTENTFUL_ACCESS_SPACE_ID || '';
const accessToken = process.env.CONTENTFUL_ACCESS_TOKEN || '';
export const FEATURE_ANNOUNCEMENT_URL = `https://cdn.contentful.com/spaces/${spaceId}/environments/master/entries?access_token=${accessToken}&content_type=productAnnouncement&include=10`;
export const FEATURE_ANNOUNCEMENT_URL = `https://cdn.contentful.com/spaces/${spaceId}/environments/master/entries?access_token=${accessToken}&content_type=productAnnouncement&include=10&fields.clients=extension`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE - this will change in the future with a dedicated API.

This will be done during our work to migrate the controllers into core.

Copy link

codecov bot commented May 23, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 66.00%. Comparing base (e0c3c24) to head (169f26d).

Files Patch % Lines
...cations/processors/process-feature-announcement.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24565   +/-   ##
========================================
  Coverage    66.00%   66.00%           
========================================
  Files         1348     1348           
  Lines        52503    52503           
  Branches     13494    13494           
========================================
  Hits         34651    34651           
  Misses       17852    17852           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matteoscurati matteoscurati changed the title feat: filtering product announcements using contentful fix: filtering product announcements using contentful May 24, 2024
@matteoscurati matteoscurati merged commit de2f656 into develop May 24, 2024
70 of 72 checks passed
@matteoscurati matteoscurati deleted the feat/product-announcements-filtering branch May 24, 2024 07:56
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2024
@metamaskbot metamaskbot added the release-11.18.0 Issue or pull request that will be included in release 11.18.0 label May 24, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [807caa5]
Page Load Metrics (915 ± 554 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6714093199
domContentLoaded10301463
load5527649151154554
domInteractive10301463
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 25 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template release-11.18.0 Issue or pull request that will be included in release 11.18.0 team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants