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

[PM-16956] Bugfix - Fix broken blockedInteractionsUris state construction #12813

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jprusik
Copy link
Contributor

@jprusik jprusik commented Jan 10, 2025

🎟️ Tracking

PM-16956

📔 Objective

Fix issue where state evaluation would fail, preventing injections from occurring

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@jprusik jprusik self-assigned this Jan 10, 2025
@jprusik jprusik requested review from a team as code owners January 10, 2025 23:05
@jprusik jprusik requested a review from dani-garcia January 10, 2025 23:05
@jprusik jprusik marked this pull request as draft January 10, 2025 23:06
@jprusik jprusik changed the title [PM-16956] Bugfix - fix broken blockedInteractionsUris state construction [PM-16956] Bugfix - Fix broken blockedInteractionsUris state construction Jan 10, 2025
@jprusik jprusik marked this pull request as ready for review January 10, 2025 23:14
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 34.13%. Comparing base (3c99493) to head (ac7525a).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...n/src/autofill/services/domain-settings.service.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12813      +/-   ##
==========================================
- Coverage   34.14%   34.13%   -0.01%     
==========================================
  Files        2936     2936              
  Lines       90433    90433              
  Branches    16989    16989              
==========================================
- Hits        30876    30871       -5     
- Misses      57100    57105       +5     
  Partials     2457     2457              

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

@@ -131,7 +131,7 @@ export class DefaultDomainSettingsService implements DomainSettingsService {
switchMap((featureIsEnabled) =>
featureIsEnabled ? this.blockedInteractionsUrisState.state$ : of({} as NeverDomains),
),
map((disabledUris) => (Object.keys(disabledUris).length ? disabledUris : null)),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

would fail at Object.keys(disabledUris) with disabledUris being "null or undefined". Resolved with a fallback state of {}

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsee0e67d7-fe68-4757-a090-a9ee9bc90349

No New Or Fixed Issues Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant