Skip to content

Remove WordPressDataObjC and WordPressData modules #24402

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

Merged
merged 2 commits into from
Apr 3, 2025

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented Apr 3, 2025

It was good to have them there as placeholders, but WordPressDataObjC in particular was giving me some odd compilation issue in #24378 where the extensions seem to think they need it as a dependency. And once I remove that, it made no sense to keep WordPressData.

It was empty anyway, so effectively dead weight. It'll be easy enough to recreate it when the time comes.

Part of #24165

@dangermattic
Copy link
Collaborator

dangermattic commented Apr 3, 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).
⚠️ This PR is assigned to the milestone 25.9. The due date for this milestone has already passed.
Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished.

Generated by 🚫 Danger

@mokagio mokagio requested review from Copilot, kean and crazytonyli April 3, 2025 10:52
@mokagio mokagio self-assigned this Apr 3, 2025
@mokagio mokagio added the Core Data Issues related to Core Data label Apr 3, 2025
@mokagio mokagio added this to the 25.9 milestone Apr 3, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes the unused WordPressDataObjC and WordPressData modules to resolve dependency issues and reduce dead weight in the codebase.

  • Removed the import of WordPressDataObjC from the CoreDataStackSwift.swift file.
  • Deleted the empty header file in WordPressDataObjC and its corresponding Swift module import in WordPressData.swift.
  • Updated the Package.swift file by removing library declarations and target definitions related to WordPressData and WordPressDataObjC.

Reviewed Changes

Copilot reviewed 16 out of 32 changed files in this pull request and generated no comments.

File Description
WordPress/Classes/Models/CoreDataStack/CoreDataStackSwift.swift Removed an unnecessary import to eliminate dependency issues.
Modules/Sources/WordPressDataObjC/include/Empty.h Deleted an empty header file as part of the deprecation.
Modules/Sources/WordPressData/WordPressData.swift Removed an export of the now removed WordPressDataObjC module.
Modules/Package.swift Removed library and target definitions related to WordPressData and WordPressDataObjC to fully clean up unused modules.
Files not reviewed (16)
  • Modules/Sources/WordPressDataObjC/Empty.m: Language not supported
  • WordPress/Classes/Categories/Media+Extensions.m: Language not supported
  • WordPress/Classes/Models/AbstractPost.m: Language not supported
  • WordPress/Classes/Models/BasePost.m: Language not supported
  • WordPress/Classes/Models/Blog/Blog.m: Language not supported
  • WordPress/Classes/Models/Media.m: Language not supported
  • WordPress/Classes/Models/ReaderPost.m: Language not supported
  • WordPress/Classes/Models/Theme.m: Language not supported
  • WordPress/Classes/Services/BlogService.m: Language not supported
  • WordPress/Classes/Services/CommentService.m: Language not supported
  • WordPress/Classes/Services/Facades/BlogSyncFacade.m: Language not supported
  • WordPress/Classes/Services/MediaService.m: Language not supported
  • WordPress/Classes/Services/MenusService.m: Language not supported
  • WordPress/Classes/Services/PostCategoryService.m: Language not supported
  • WordPress/Classes/Services/PostService.m: Language not supported
  • WordPress/Classes/Services/PostTagService.m: Language not supported

@mokagio mokagio enabled auto-merge April 3, 2025 10:52
mokagio added 2 commits April 3, 2025 21:54
It was good to have it there as a placeholder, but it's giving me some
odd compilation issue where the extensions seem to think they need it as
a dependency.

It was empty anyway, so effectively dead weight. It'll be easy enough to
recreate it when the time comes.
Same rationale as the `WordPressDataObjC` removal in the previous
commit. It was dead weight.

Plus, it could be confusing to have a module (albeit empty and unused)
and a framework with the same name.
@mokagio mokagio force-pushed the mokagio/remove-wordpressdata-spm branch from 9b05685 to da17ea8 Compare April 3, 2025 10:54
@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number27088
VersionPR #24402
Bundle IDcom.jetpack.alpha
Commitda17ea8
Installation URL4uo8g1nc3lcbg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number27088
VersionPR #24402
Bundle IDorg.wordpress.alpha
Commitda17ea8
Installation URL57jelltblui68
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@mokagio mokagio added this pull request to the merge queue Apr 3, 2025
Merged via the queue into trunk with commit 20c15cc Apr 3, 2025
31 checks passed
@mokagio mokagio deleted the mokagio/remove-wordpressdata-spm branch April 3, 2025 13:08
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants