Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

For #24855: Allow updating and deleting an existing address. #25031

Merged
merged 4 commits into from
May 10, 2022

Conversation

mcarare
Copy link
Contributor

@mcarare mcarare commented Apr 29, 2022

Fixes #24855

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@mcarare mcarare added the pr:work-in-progress PRs that are not ready to be reviewed yet and are actively being worked on label Apr 29, 2022
@mcarare mcarare force-pushed the 24855 branch 12 times, most recently from 1c1427a to dcb91dd Compare May 2, 2022 17:25
@mcarare mcarare force-pushed the 24855 branch 7 times, most recently from 3ada316 to 98c161b Compare May 3, 2022 12:50
@mcarare mcarare changed the title For #24855: Allow updating info for an existing address. For #24855: Allow updating and deleting an existing address. May 3, 2022
@mcarare mcarare force-pushed the 24855 branch 7 times, most recently from 9369651 to 99d7aa2 Compare May 5, 2022 15:02
@mcarare mcarare force-pushed the 24855 branch 5 times, most recently from 66bc668 to dbf5351 Compare May 6, 2022 08:15
@mcarare
Copy link
Contributor Author

mcarare commented May 6, 2022

Can you look to squash[...]

I rearranged the code between commits and I moved the strings in the respective commits (Although we have previously pre-landed strings for some features).

I have preferred to have all commits in a single PR because all the work was related and it was based on previous changes. The alternative would have been to start them individually and be blocked by waiting for a review or not wait for a review before starting related work and be forced to constantly rebase work after reviews.

val addressEditorView = spyk(AddressEditorView(binding, interactor, address))
addressEditorView.bind()

assertEquals(View.VISIBLE, binding.deleteButton.visibility)
Copy link
Member

Choose a reason for hiding this comment

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

Just a note that we could've tested the isVisible property instead.


controller.handleUpdateAddress(address.guid, addressFields)

coVerifySequence {
Copy link
Member

Choose a reason for hiding this comment

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

This is interesting - first time seeing this usage.

@gabrielluong gabrielluong added the pr:approved PR that has been approved label May 6, 2022
@mcarare mcarare force-pushed the 24855 branch 3 times, most recently from 10e64c1 to 36d6d4d Compare May 9, 2022 11:15
@mcarare mcarare added the pr:needs-landing PRs that are ready to land [Will be merged by Mergify] label May 9, 2022
@gabrielluong
Copy link
Member

Removing the needs-landing label since it is blocking the AC bump.

@gabrielluong gabrielluong removed the pr:needs-landing PRs that are ready to land [Will be merged by Mergify] label May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:approved PR that has been approved pr:needs-landing PRs that are ready to land [Will be merged by Mergify]
Projects
None yet
3 participants