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

refactor: Cleanup the enrollment snooze feature #16544

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

atomrc
Copy link
Contributor

@atomrc atomrc commented Jan 18, 2024

Description

This will harmonize the naming of the snooze feature accros the codebase. It was previously called delay but did not convey the correct idea.
We decided to name it snooze everywhere

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Comment on lines -399 to -409
if (this.currentStep === E2EIHandlerStep.UNINITIALIZED) {
this.config?.timer.updateParams({
gracePeriodInMS: this.config.gracePeriodInMs,
gracePeriodExpiredCallback: () => {
this.showE2EINotificationMessage(ModalType.ENROLL);
},
delayPeriodExpiredCallback: () => {
this.showE2EINotificationMessage(ModalType.ENROLL);
},
});
this.currentStep = E2EIHandlerStep.INITIALIZED;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now set in the initialize method

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (5612167) 45.44% compared to head (f33fe5a) 45.42%.
Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #16544      +/-   ##
==========================================
- Coverage   45.44%   45.42%   -0.02%     
==========================================
  Files         740      740              
  Lines       24239    24241       +2     
  Branches     5507     5507              
==========================================
- Hits        11015    11012       -3     
- Misses      11813    11819       +6     
+ Partials     1411     1410       -1     

@atomrc atomrc merged commit f66f195 into dev Jan 18, 2024
10 checks passed
@atomrc atomrc deleted the refactor/cleanup-snooze-timer branch January 18, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants