Skip to content

Commit

Permalink
remove isBlazeApproved attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Momo Ozawa committed Jun 20, 2023
1 parent 917cb6a commit 6e438b6
Show file tree
Hide file tree
Showing 8 changed files with 1,045 additions and 8 deletions.
6 changes: 6 additions & 0 deletions MIGRATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This file documents changes in the data model. Please explain any changes to the
data model as well as any custom migrations.

## WordPress 150

@momozw 2023-06-20

- `Blog`: removed `isBlazeApproved` attribute.

## WordPress 149

@dvdchr 2023-05-16
Expand Down
1 change: 0 additions & 1 deletion WordPress/Classes/Models/Blog.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ typedef NS_ENUM(NSInteger, SiteVisibility) {
@property (nonatomic, strong, readwrite, nullable) NSDictionary *capabilities;
@property (nonatomic, strong, readwrite, nullable) NSSet<QuickStartTourState *> *quickStartTours;
@property (nonatomic, strong, readwrite, nullable) NSNumber *quickStartTypeValue;
@property (nonatomic, assign, readwrite) BOOL isBlazeApproved;
/// The blog's user ID for the current user
@property (nonatomic, strong, readwrite, nullable) NSNumber *userID;
/// Disk quota for site, this is only available for WP.com sites
Expand Down
1 change: 0 additions & 1 deletion WordPress/Classes/Models/Blog.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ @implementation Blog
@dynamic capabilities;
@dynamic quickStartTours;
@dynamic quickStartTypeValue;
@dynamic isBlazeApproved;
@dynamic userID;
@dynamic quotaSpaceAllowed;
@dynamic quotaSpaceUsed;
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/WordPress.xcdatamodeld/.xccurrentversion
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>_XCCurrentVersionName</key>
<string>WordPress 149.xcdatamodel</string>
<string>WordPress 150.xcdatamodel</string>
</dict>
</plist>
1,031 changes: 1,031 additions & 0 deletions WordPress/Classes/WordPress.xcdatamodeld/WordPress 150.xcdatamodel/contents

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion WordPress/WordPress.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9163,6 +9163,7 @@
FA3536F425B01A2C0005A3A0 /* JetpackRestoreCompleteViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JetpackRestoreCompleteViewController.swift; sourceTree = "<group>"; };
FA3A28172A38D36900206D74 /* BlazeCampaignTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlazeCampaignTableViewCell.swift; sourceTree = "<group>"; };
FA3A281A2A39C8FF00206D74 /* BlazeCampaignSingleStatView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlazeCampaignSingleStatView.swift; sourceTree = "<group>"; };
FA3A281D2A42049F00206D74 /* WordPress 150.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "WordPress 150.xcdatamodel"; sourceTree = "<group>"; };
FA3FBF8A2A2772340012FC90 /* DashboardActivityLogViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DashboardActivityLogViewModel.swift; sourceTree = "<group>"; };
FA3FBF8D2A2777E00012FC90 /* DashboardActivityLogViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DashboardActivityLogViewModelTests.swift; sourceTree = "<group>"; };
FA41044C263932AC00E90EBF /* ActivityLogScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityLogScreen.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -30654,6 +30655,7 @@
E125443B12BF5A7200D87A0A /* WordPress.xcdatamodeld */ = {
isa = XCVersionGroup;
children = (
FA3A281D2A42049F00206D74 /* WordPress 150.xcdatamodel */,
FE5096572A13D5BA00DDD071 /* WordPress 149.xcdatamodel */,
FA98B61329A39DA80071AAE8 /* WordPress 148.xcdatamodel */,
F48D44B7298993900051EAA6 /* WordPress 147.xcdatamodel */,
Expand Down Expand Up @@ -30804,7 +30806,7 @@
8350E15911D28B4A00A7B073 /* WordPress.xcdatamodel */,
E125443D12BF5A7200D87A0A /* WordPress 2.xcdatamodel */,
);
currentVersion = FE5096572A13D5BA00DDD071 /* WordPress 149.xcdatamodel */;
currentVersion = FA3A281D2A42049F00206D74 /* WordPress 150.xcdatamodel */;
name = WordPress.xcdatamodeld;
path = Classes/WordPress.xcdatamodeld;
sourceTree = "<group>";
Expand Down
6 changes: 3 additions & 3 deletions WordPress/WordPressTest/BlogBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ final class BlogBuilder {
return self
}

func isBlazeApproved() -> Self {
blog.isBlazeApproved = true

func canBlaze() -> Self {
set(blogOption: "can_blaze", value: true)
blog.isAdmin = true
return self
}

Expand Down
2 changes: 1 addition & 1 deletion WordPress/WordPressTest/PostActionSheetTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class PostActionSheetTests: CoreDataTestCase {
try featureFlags.override(RemoteFeatureFlag.blaze, withValue: true)

let blog = BlogBuilder(mainContext)
.isBlazeApproved()
.canBlaze()
.build()

let post = PostBuilder(mainContext, blog: blog)
Expand Down

0 comments on commit 6e438b6

Please sign in to comment.