Open lanitochka17 opened 2 weeks ago
π Friendly reminder that deploy blockers are time-sensitive β± issues! Check out the open Staging deploy checklist to see the list of PRs included in this release, then work quickly on the following:
Remember rule #2: Never un-assign yourself from a real DeployBlocker unless you are 100% sure someone else is assigned and will take care of it.
Triggered auto assignment to @luacmartins (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: Friendly reminder that deploy blockers are time-sensitive β± issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
This is pretty small and NAB.
Job added to Upwork: https://www.upwork.com/jobs/~015240613a85d23a6c
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (External
)
Triggered auto assignment to @slafortune (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
The map is shown over my current city
User location is cached in Onyx so when we revoked location permission, the previous location was still there.
When location request failed, we ran a callback to reset to initialLocation
which is the default San Francisco but we ealry returned if cachedUserLocation
existed:
We need to reset location if permission was not granted by removing the cachedUserLocation
early return above.
We also need to clear the location stored in Onyx for privacy. We should only save user location as long as they permit it. Otherwise, we might get flickering between the cached location and the current or initial location.
if (!initialState) {
return;
}
UserLocation.clear();
setCurrentPosition(initialState.location);
We can optionally check for PERMISSION_DENIED
error code to only clear the cache for this specific case when user denied permission.
There's another issue that when there's cached location and the permission was reset, while the permission prompt was still open, the map would show the cached location instead of default location (San Francisco) because userLocation
is initialized with cachedLocation
while it should be the default location initialState.location
:
The map is shown over my current city when user geolocation settings are disabled
setCurrentPositionToInitialState
callback returns when the user's location is already cached in Onyx.
https://github.com/Expensify/App/blob/0d45c5564188fa63bf1eada357b11e8e3c7e60d9/src/components/MapView/MapView.website.tsx#L67-L69
We should check for an error code returned from the getCurrentPosition
callback and set a default location when error.code
equals GeolocationErrorCode.PERMISSION_DENIED
if (error.code !== GeolocationErrorCode.PERMISSION_DENIED && (cachedUserLocation || !initialState)) {
return;
}
https://github.com/Expensify/App/assets/16764625/eb0b9737-f1da-4300-afc5-ded964ad85bd
Proposal updated to add optional solution and detailed explaination.
Although both proposals are valid, I am inclined to favor the idea of completely removing the cached data when the location permission is revoked.
Let's move forward with @tienifr's proposal.
π π π C+ reviewed
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
Update: Awaiting @luacmartins to sign off the proposal
π£ @fedirjh π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @tienifr π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
There is a PR draft in review. I'll be out until June 4th - so adding another BZ in the meantime. I'll take this back on the 4th if needed.
Triggered auto assignment to @jliexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
β οΈ Looks like this issue was linked to a Deploy Blocker here
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
@fedirjh any regressions here?
any regressions here?
There was a regression in https://github.com/Expensify/App/issues/42752 , and it's already fixed by @tienifr.
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.4.77-11 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-06-06. :confetti_ball:
For reference, here are some details about the assignees on this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Ok, is this a correct Summary?
Just waiting on the checklist (if applicable)
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.74-0 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4561935 Email or phone of affected tester (no customers): applausetester+azadmin@applause.expensifail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The map is centered over San Francisco
Actual Result:
The map is shown over my current city
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/eae942a7-4eca-453b-b30b-15db9576fd11
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jliexpensify