Remove dead Jetpack Social share-limit code
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 54/100
Hướng nghiên cứu
Start with JetpackSocialError.swift, PublicizeInfo+CoreDataClass.swift, PublicizeInfo+CoreDataProperties.swift, and Blog.swift to understand the Swift-only removals and Core Data references. Then inspect the WordPress.xcdatamodeld versions and the project's migration tests before creating a new model version. Done means the unused code, entity, and relationship are removed and an upgrade from a build with saved PublicizeInfo rows succeeds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
#25747 removed the legacy Jetpack Social / Publicize code, including the share-limit sync. Jetpack Social no longer has per-post share limits (see #23217). The code below is now unused on trunk (e64c851c0d): nothing outside its own files references it, tests included.
Swift only
-
WordPress/Classes/Jetpack/Utility/JetpackSocialError.swift. Delete the file. All three cases (missingSharingLimit,noConnectionViewInvalidState,noSharesViewInvalidState) belonged to views that #25747 deleted. -
PublicizeInfo.sharingLimitand the nestedSharingLimitstruct, inModules/Sources/WordPressData/Swift/PublicizeInfo+CoreDataClass.swift
Core Data (needs a new model version)
The whole PublicizeInfo entity is unused. Nothing creates, fetches or reads one. The only reference is the Blog.publicizeInfo relationship that declares it.
- Remove the
PublicizeInfoentity (shareLimit,sharesRemaining,toBePublicizedCount,sharedPostsCount) and theBlog.publicizeInforelationship in a newWordPress.xcdatamodeldversion. The current version isWordPress 158. Removing an entity and a relationship should be a lightweight migration, but test it by upgrading from a build that hasPublicizeInforows saved. - Delete
PublicizeInfo+CoreDataClass.swiftandPublicizeInfo+CoreDataProperties.swift, and remove@NSManaged public var publicizeInfofromBlog.swift.
The Swift-only items can land on their own, ahead of the model change.
The unused Jetpack Social WPAnalyticsEvent cases are tracked separately in #21221.
Generated by Claude Code
- Ngôn ngữ chính
- Swift
- Star
- 3.9k
- Fork
- 1.2k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 136
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wordpress-mobile/WordPress-iOS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
wordpress-mobile/WordPress-iOS#26423 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Pri] Low [Status] Ready for Dev [Type] Bug /Me
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wordpress-mobile/WordPress-iOS#26279 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Pri] Low [Status] Ready for Dev [Type] Bug Share Extension
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
wordpress-mobile/WordPress-iOS#26276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Pri] Low [Status] Ready for Dev [Type] Bug Blogging Prompts Notifications
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
wordpress-mobile/WordPress-iOS#26256 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Status] Ready for Dev [Type] Bug Reader
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
wordpress-mobile/WordPress-iOS#26254 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wordpress-mobile/WordPress-iOS
Issue tương tự
-
Optional callbacks log "Unable to create JSCallback" when passed nullCó thể đã có người làm @cmsj đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
cmsj/Hammerspoon2#464 ·
-
android bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
VocaHQ/vocaphone#470 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
new-compilers request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
compiler-explorer/compiler-explorer#9640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100