Skip to content

Activity Logs: Code Removal – Part 1 - #24604

Merged
kean merged 4 commits into
feature/jetpack-activity-logsfrom
task/code-removals
Jun 20, 2025
Merged

Activity Logs: Code Removal – Part 1#24604
kean merged 4 commits into
feature/jetpack-activity-logsfrom
task/code-removals

Conversation

@kean

@kean kean commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

I decided to split the removals in separate parts to make it easier to review those. In this PR, I removed the deprecated JetpackActivityLogViewController and BackupListViewController that were replaced by ActivityLogsView and the two VCs that wrap them. The .dataView FF is also no longer needed since we are done with the changes.

kean added 4 commits June 20, 2025 10:33
…stead

- Delete BackupListViewController.swift and its extension
- Update showBackup() to use ActivityLogsViewController with isBackupMode
- Remove BackupListViewController reference from ActivityDetailViewController
- Implement displayBackupWithSiteID using ActivityLogsViewController
- Add WPAnalytics tracking to ContentCoordinator backup display
…oller

- Delete JetpackActivityLogViewController.swift
- Update showActivity() methods to use ActivityLogsViewController directly
- Update ActivityDetailViewController to check for ActivityLogsViewController
- Simplify DashboardActivityLogCardCell to use ActivityLogsViewController
- Remove dataViews case from FeatureFlag enum
- Remove dataViews from enabled property switch statement
- Remove dataViews description

The feature flag was already removed from usage in previous commits
where we removed JetpackActivityLogViewController and BackupListViewController.
…tivityLogsViewController

- Create new BackupsViewController and BackupsView that reuses ActivityLogsView
- Remove isBackupMode parameter from ActivityLogsViewController
- Update all usages to use BackupsViewController for backups
- Update ActivityDetailViewController to recognize BackupsViewController presenter
- Keep ActivityLogsView and ActivityLogsViewModel unchanged as implementation details
@kean kean added this to the 26.0 milestone Jun 20, 2025
@kean kean added the Jetpack label Jun 20, 2025

extension BackupListViewController {
@objc
static func withJPBannerForBlog(_ blog: Blog) -> UIViewController? {

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.

My understanding is that with the state of Jetpack migration, we no longer needs this. I hope we can eventually address the Jetpack migration complexity too.

@kean
kean merged commit 33b40bf into feature/jetpack-activity-logs Jun 20, 2025
10 of 31 checks passed
@kean
kean deleted the task/code-removals branch June 20, 2025 14:51
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant