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

Improve handling for snooze state #3898

Conversation

karlenDimla
Copy link
Contributor

@karlenDimla karlenDimla commented Nov 21, 2023

Task/Issue URL: https://app.asana.com/0/0/1206000100414553/f

Description

Improve VPNServiceState to avoid hardcoding snooze duration and define it in a single place only.

Steps to test this PR

repeat https://app.asana.com/0/0/1205989766118758/f

This was referenced Nov 21, 2023
@karlenDimla
Copy link
Contributor Author

karlenDimla commented Nov 21, 2023

@karlenDimla karlenDimla requested a review from aitorvs November 21, 2023 14:55
@karlenDimla karlenDimla force-pushed the feature/aitor/vpn/snooze branch from 2e590dd to 34954a6 Compare November 21, 2023 15:14
@karlenDimla karlenDimla force-pushed the feature/karl/vpn/snooze-improve-store-state branch from 9cbe5e2 to d45d53d Compare November 21, 2023 15:14
@karlenDimla karlenDimla force-pushed the feature/aitor/vpn/snooze branch from 34954a6 to e88dfac Compare November 22, 2023 12:47
@karlenDimla karlenDimla force-pushed the feature/karl/vpn/snooze-improve-store-state branch 3 times, most recently from efb9415 to 817ecb6 Compare November 22, 2023 16:44
@karlenDimla karlenDimla changed the title Improve storing SNOOZED VpnServiceState Improve handling for snooze state Nov 22, 2023
@karlenDimla karlenDimla force-pushed the feature/karl/vpn/snooze-improve-store-state branch from 817ecb6 to 49812f2 Compare November 22, 2023 16:49
@karlenDimla karlenDimla force-pushed the feature/aitor/vpn/snooze branch from e88dfac to 35d24a1 Compare November 22, 2023 17:06
@karlenDimla karlenDimla force-pushed the feature/karl/vpn/snooze-improve-store-state branch from 49812f2 to aee4030 Compare November 22, 2023 17:06
Copy link
Collaborator

@aitorvs aitorvs left a comment

Choose a reason for hiding this comment

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

Not really convinced about the new VpnStopReason.SNOOZED(...) state. Not sure why not using the already existing SELF_STOP (?)

@karlenDimla karlenDimla force-pushed the feature/aitor/vpn/snooze branch from 8294e6a to b02fd3d Compare November 23, 2023 13:18
@karlenDimla karlenDimla force-pushed the feature/karl/vpn/snooze-improve-store-state branch from aee4030 to c595ca2 Compare November 23, 2023 13:18
@karlenDimla karlenDimla requested a review from aitorvs November 23, 2023 13:23
Copy link
Collaborator

@aitorvs aitorvs left a comment

Choose a reason for hiding this comment

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

LGTM

@karlenDimla karlenDimla merged commit 463562b into feature/aitor/vpn/snooze Nov 24, 2023
1 check passed
@karlenDimla karlenDimla deleted the feature/karl/vpn/snooze-improve-store-state branch November 24, 2023 11:08
karlenDimla added a commit that referenced this pull request Nov 29, 2023
<!--
Note: This checklist is a reminder of our shared engineering
expectations.
The items in Bold are required
If your PR involves UI changes:
1. Upload screenshots or screencasts that illustrate the changes before
/ after
2. Add them under the UI changes section (feel free to add more columns
if needed)
If your PR does not involve UI changes, you can remove the **UI
changes** section

At a minimum, make sure your changes are tested in API 23 and one of the
more recent API levels available.
-->

Task/Issue URL: https://app.asana.com/0/0/1206000100414553/f

### Description
Improve VPNServiceState to avoid hardcoding snooze duration and define
it in a single place only.

### Steps to test this PR
repeat https://app.asana.com/0/0/1205989766118758/f
karlenDimla added a commit that referenced this pull request Dec 4, 2023
<!--
Note: This checklist is a reminder of our shared engineering
expectations.
The items in Bold are required
If your PR involves UI changes:
1. Upload screenshots or screencasts that illustrate the changes before
/ after
2. Add them under the UI changes section (feel free to add more columns
if needed)
If your PR does not involve UI changes, you can remove the **UI
changes** section

At a minimum, make sure your changes are tested in API 23 and one of the
more recent API levels available.
-->

Task/Issue URL: https://app.asana.com/0/0/1206000100414553/f

### Description
Improve VPNServiceState to avoid hardcoding snooze duration and define
it in a single place only.

### Steps to test this PR
repeat https://app.asana.com/0/0/1205989766118758/f
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.

2 participants