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-4349] Migrate hasPremium and debounceNavigation to be functional #6591

Merged
merged 4 commits into from
Dec 11, 2023

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Oct 16, 2023

Type of change

- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Class based router guards are deprecated as of Angular 15.2, per https://angular.io/guide/deprecations#router-class-and-injection-token-guards. To simplify future angular upgrades we need to resolve these deprecations.

This PR migrates the HasPremium and DebounceNavigationService guards to use the new functional pattern.

Before you submit

  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
  • Ensure that all UI additions follow WCAG AA requirements

@Hinton Hinton requested review from a team as code owners October 16, 2023 09:19
@github-actions github-actions bot added the needs-qa Marks a PR as requiring QA approval label Oct 16, 2023
@bitwarden-bot
Copy link

bitwarden-bot commented Oct 16, 2023

Logo
Checkmarx One – Scan Summary & Detailsd6be1d18-207a-4b0d-b9bb-5119ab8983b1

No New Or Fixed Issues Found

eliykat
eliykat previously approved these changes Oct 18, 2023
willmartian
willmartian previously approved these changes Oct 31, 2023
…/functional-guards

# Conflicts:
#	.github/whitelist-capital-letters.txt
#	apps/browser/src/popup/app-routing.module.ts
#	apps/web/src/app/core/guards/has-premium.guard.ts
@Hinton Hinton dismissed stale reviews from willmartian and eliykat via 4b71d91 December 5, 2023 11:51
@Hinton Hinton requested review from eliykat and willmartian December 5, 2023 11:51
Copy link
Member

@eliykat eliykat left a comment

Choose a reason for hiding this comment

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

I was wondering what had happened to this PR 😁

@Hinton Hinton removed the needs-qa Marks a PR as requiring QA approval label Dec 11, 2023
@Hinton Hinton enabled auto-merge (squash) December 11, 2023 14:22
@Hinton Hinton merged commit cf0c6e8 into master Dec 11, 2023
35 of 36 checks passed
@Hinton Hinton deleted the ps/PM-4349/functional-guards branch December 11, 2023 14:22
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.

4 participants