Closed Bug 1651568 Opened 4 years ago Closed 3 years ago

Remove sync metadata migration from passwords engine

Categories

(Firefox :: Sync, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: markh, Assigned: bdk)

References

Details

Attachments

(1 file)

In bug 1377100 we added a little code to migrate metadata from prefs to being maintained by the logins storage manager. We should rip that out in a few months. Probably a good first bug, but I'll mark it as that when the time is right to actually do it.

I think I have this close to implemented. Here's the changeset: https://hg.mozilla.org/try/rev/2936e733a1fdb9933e01b43bb6f61b0b25ff6a29. Couple questions on this one:

I ran mach try. By accident, I didn't run the chooser, so I think I ran all the tests. Here are the results: https://treeherder.mozilla.org/jobs?repo=try&revision=968cd3648f46ac7158d26443ce03470d812db888. There was 1 possible regression, I'm not sure if that was because of my changes or just a testing issue.

  • Moved ensureCurrentSyncID logic to the LoginManager component

(In reply to Ben Dean-Kawamura from comment #1)

LGTM.

  • Should I have added any tests? Are there already tests for the sync process?

I'd expect existing tests to capture this and it would be unreasonable to ask for new tests here if they didn't because you really aren't changing any behaviour. However, you should be sure to do a manual test here - in a test profile connect to sync and ensure passwords sync correctly.

I ran mach try. By accident, I didn't run the chooser, so I think I ran all the tests. Here are the results: https://treeherder.mozilla.org/jobs?repo=try&revision=968cd3648f46ac7158d26443ce03470d812db888. There was 1 possible regression, I'm not sure if that was because of my changes or just a testing issue.

That looks completely unrelated. However, if you are unsure, there is UI to retrigger failing tests, so typically I would just retrigger it once or twice, and it will either go green or fail with a different error.

Seems like this one might be ready to merge, what's the next step?

Assignee: nobody → bdeankawamura
Status: NEW → ASSIGNED
Attachment #9217781 - Attachment description: WIP: Bug 1651568: Removing legacy code to fetch syncId from the preferences → Bug 1651568: Removing legacy code to fetch syncId from the preferences. r=markh
Pushed by mhammond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/076335ab7d08
Removing legacy code to fetch syncId from the preferences.  r=markh
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: