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

Move a few more utils types to WordPressShared #24210

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented Mar 13, 2025

Similar to #24207.

  • KeychainUtils & co
  • UserPersistentRepository & co
  • LocalFileStore & co

We'll need them there because it's used by SharedDataIssueSolver which we'll soon need to move to WordPressData, part of #24165.

Hopefully, this is helpful for the WordPressGuts work as well.

@mokagio mokagio added this to the 25.9 milestone Mar 13, 2025
@mokagio mokagio added [Type] Enhancement Core Data Issues related to Core Data labels Mar 13, 2025
@dangermattic
Copy link
Collaborator

dangermattic commented Mar 13, 2025

2 Warnings
⚠️ Modules/Package.swift was changed without updating its corresponding Package.resolved. Please resolve the Swift packages as appropriate to your project setup (e.g. in Xcode or by running swift package resolve).
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 13, 2025

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr24210-36822c1
Version25.8
Bundle IDorg.wordpress.alpha
Commit36822c1
App Center BuildWPiOS - One-Offs #11662
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

mokagio added 2 commits March 13, 2025 20:45
They had to be moved in bulk because of circular dependencies.
We need it there because it's used by `SharedDataIssueSolver` which
we'll soon need to move to WordPressData.
@mokagio mokagio force-pushed the mokagio/move-some-files-to-wordpressshared-2 branch from be379f0 to ef101e5 Compare March 13, 2025 09:45
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 13, 2025

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr24210-36822c1
Version25.8
Bundle IDcom.jetpack.alpha
Commit36822c1
App Center Buildjetpack-installable-builds #10690
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@mokagio mokagio requested review from kean and crazytonyli and removed request for kean March 13, 2025 11:00
@mokagio mokagio marked this pull request as ready for review March 13, 2025 11:00
@mokagio mokagio merged commit 1f348c8 into mokagio/try-delete-old-migrations Mar 14, 2025
25 checks passed
@mokagio mokagio deleted the mokagio/move-some-files-to-wordpressshared-2 branch March 14, 2025 00:15
github-merge-queue bot pushed a commit that referenced this pull request Mar 14, 2025
* Clobber all migrations mappings and policies — Very old

For the sake of convenience and code maintenance, we decided to remove
these migrations because we consider it safe to assume all existing
users are on later versions. If no user will ever run the migrations,
the code is essentially dead code that we can remove.

For reference, the current version is 154 and the oldest migration was
91-to-92. The model version 92 dates back to 2019, see
dcdba23

* Move a few more utils types to WordPressShared (#24210)

- KeychainUtils & co
- UserPersistentRepository & co
- LocalFileStore & co
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Data Issues related to Core Data [Type] Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants