-
Notifications
You must be signed in to change notification settings - Fork 3k
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 FXIOS-7596 [v121] remove legacy store #17224
Refactor FXIOS-7596 [v121] remove legacy store #17224
Conversation
Client.app: Coverage: 32.4
Generated by 🚫 Danger Swift against cea3eb1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI tests failed again, but LGTM
I fixed the crash but now any test that opens a new tab from the tab tray fails, for some reason the tests don't open a new tab. I have no idea why that is happening, it works when running the test cases manually. |
This pull request has conflicts when rebasing. Could you fix it @OrlaM? 🙏 |
oh, let me take a look.. if tests fail because the app runs faster, that's a good thing and easy to fix.. cc @clarmso |
@OrlaM I know where the problem is but I don't have a solution yet... the UI tests are failing when trying to open a new tab from Tab Tray, we use that action a lot(OpenNewTabFromTabTray) This will require further investigation .. I will keep you posted cc @clarmso |
e6cabee
to
9603d83
Compare
This pull request has conflicts when rebasing. Could you fix it @OrlaM? 🙏 |
d558fba
to
fba1c16
Compare
fba1c16
to
33d9686
Compare
It's finally passing 🥳 |
DispatchQueue.main.async { | ||
self.navigationController?.dismiss(animated: true, completion: nil) | ||
TelemetryWrapper.recordEvent(category: .action, method: .close, object: .tabTray) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an ideal solution, but since the select tab that happens prior to this is now an async event it is causing crashes on the home page when the view is dismissed since the tab data is not fully resolved after deleting tabs. I'm comfortable putting this solution here because the legacy tab tray is going away soon anyway.
@Mergifyio backport release/v121 |
✅ Backports have been created
|
overlayManager.openNewTab(url: nil, | ||
newTabSettings: NewTabAccessors.getNewTabPage(profile.prefs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to understand why we need to add a call to the overlayManager
in this particular PR to remove the legacy store? I guess this relates to the tests that were failing right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, for some reason it no longer triggers overlay mode at the right time. There is likely a superfluous call at the wrong time somewhere else but I was afraid to start messing with it because it's spagetified into other code paths.
* Move select tab * Update isRestoringTabs * Remove legacy store * Fix start up issue * Remove store * Clear more dead code * Fix UI tests * Fix tests * Fix tests * Fix tests * Remove print (cherry picked from commit 21d5c81) # Conflicts: # Client.xcodeproj/project.pbxproj
* Move select tab * Update isRestoringTabs * Remove legacy store * Fix start up issue * Remove store * Clear more dead code * Fix UI tests * Fix tests * Fix tests * Fix tests * Remove print # Conflicts: # Client.xcodeproj/project.pbxproj
* Move select tab * Update isRestoringTabs * Remove legacy store * Fix start up issue * Remove store * Clear more dead code * Fix UI tests * Fix tests * Fix tests * Fix tests * Remove print # Conflicts: # Client.xcodeproj/project.pbxproj Co-authored-by: OrlaM <[email protected]>
📜 Tickets
Jira ticket
Github issue
💡 Description
Fully removes the legacy tab store code
📝 Checklist
You have to check all boxes before merging