Skip to content

Update some imports in preparation for WordPressData - #24411

Merged
mokagio merged 10 commits into
trunkfrom
mokagio/wordpressdata-precursor-nioeno
Apr 7, 2025
Merged

Update some imports in preparation for WordPressData#24411
mokagio merged 10 commits into
trunkfrom
mokagio/wordpressdata-precursor-nioeno

Conversation

@mokagio

@mokagio mokagio commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

Same rationale as #24326 and #24348. Part of #24165, all these requirements have been discovered in #24378.

@dangermattic

dangermattic commented Apr 4, 2025

Copy link
Copy Markdown
Collaborator
2 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ 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

@wpmobilebot

wpmobilebot commented Apr 4, 2025

Copy link
Copy Markdown
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 Number27149
VersionPR #24411
Bundle IDorg.wordpress.alpha
Commit98afc2c
Installation URL7l66lceu656gg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

wpmobilebot commented Apr 4, 2025

Copy link
Copy Markdown
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 Number27149
VersionPR #24411
Bundle IDcom.jetpack.alpha
Commit98afc2c
Installation URL0ne9pbe1r268g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@mokagio mokagio changed the title Remove unnecessary #import "AccountService.h" from MediaService.m Update some imports in preparation for WordPressData Apr 4, 2025
@mokagio
mokagio force-pushed the mokagio/wordpressdata-precursor-nioeno branch from b345a4f to 6ad2196 Compare April 4, 2025 01:22
mokagio added 9 commits April 5, 2025 11:45
`MenuItem` was not used in the interface. Moving the import in the
implementation will make it cleaner to update once WordPressData is
integrated.
Will make possible to move `PostService` to WordPressData without
carrying `CommentService`.
Notice we had to update the `MenuItemAbstractPostsViewController`
implementation accordingly
Before, they seemed to implicitly work via the bridging header import.
@mokagio
mokagio force-pushed the mokagio/wordpressdata-precursor-nioeno branch from e6f7fe6 to c2f57ef Compare April 5, 2025 00:45
///
@objc
public func incrementAutoUploadFailureCount() {
func incrementAutoUploadFailureCount() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If you expand the diff, you'll see the whole extension is public

@mokagio
mokagio marked this pull request as ready for review April 6, 2025 21:25
@mokagio mokagio added this to the 25.9 milestone Apr 6, 2025
@mokagio mokagio added the Core Data Issues related to Core Data label Apr 6, 2025
@mokagio mokagio self-assigned this Apr 6, 2025
@mokagio
mokagio requested review from Copilot, crazytonyli and kean and removed request for Copilot April 6, 2025 21:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 15 changed files in this pull request and generated no comments.

Files not reviewed (13)
  • WordPress/Classes/Models/Theme.m: Language not supported
  • WordPress/Classes/Services/MediaService.m: Language not supported
  • WordPress/Classes/Services/PostService.h: Language not supported
  • WordPress/Classes/Services/PostService.m: Language not supported
  • WordPress/Classes/Services/ReaderSiteService.h: Language not supported
  • WordPress/Classes/System/WordPress-Bridging-Header.h: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Controllers/MenuItemAbstractPostsViewController.m: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Controllers/MenuItemTypeViewController.h: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Controllers/MenuItemTypeViewController.m: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Views/MenuItemSourceHeaderView.h: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Views/MenuItemSourceHeaderView.m: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Views/MenuItemTypeSelectionView.h: Language not supported
  • WordPress/Classes/ViewRelated/Menus/Views/MenuItemTypeSelectionView.m: Language not supported
Comments suppressed due to low confidence (4)

WordPress/Classes/Models/Media.swift:12

  • The public access modifier was removed from this method, making it internal. Verify that this change is intentional, especially given its @objc annotation, which might require public visibility.
func incrementAutoUploadFailureCount() {

WordPress/Classes/Models/Media.swift:19

  • Removing the public access modifier here changes the method’s accessibility. Ensure that this is an intended change, considering its role in the public API for media auto-upload handling.
func resetAutoUploadFailureCount() {

WordPress/Classes/Models/Media.swift:47

  • The public access modifier was removed from the mimeType property. Confirm whether this property should remain publicly accessible via @objc or if its scope should indeed be restricted.
@objc var mimeType: String? {

WordPress/Classes/Jetpack/Utility/SharedDataIssueSolver.swift:32

  • [nitpick] The update changes migrateAuthKey from internal to public. Please verify that this improvement aligns with the intended design, as it differs from similar methods in Media.swift.
public func migrateAuthKey() {

@mokagio
mokagio added this pull request to the merge queue Apr 7, 2025
Merged via the queue into trunk with commit 11222db Apr 7, 2025
@mokagio
mokagio deleted the mokagio/wordpressdata-precursor-nioeno branch April 7, 2025 05:38
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.

5 participants