Skip to content
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

[CIS-656] Revert changeHash changes #813

Merged
merged 4 commits into from Feb 12, 2021
Merged

[CIS-656] Revert changeHash changes #813

merged 4 commits into from Feb 12, 2021

Conversation

ManWithBear
Copy link
Contributor

#802 made #752 changes obsolete. To keep codebase clean, we revert this changes, keeping new tests.

@ManWithBear ManWithBear added the 🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK label Feb 11, 2021
@Stream-iOS-Bot
Copy link
Collaborator

Stream-iOS-Bot commented Feb 11, 2021

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@codecov
Copy link

codecov bot commented Feb 11, 2021

Codecov Report

Merging #813 (6f3d010) into main (2a95fac) will decrease coverage by 0.77%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #813      +/-   ##
==========================================
- Coverage   87.53%   86.76%   -0.78%     
==========================================
  Files         229      228       -1     
  Lines        8812     8629     -183     
==========================================
- Hits         7714     7487     -227     
- Misses       1098     1142      +44     
Impacted Files Coverage Δ
...Client/Endpoints/Payloads/ChannelListPayload.swift 100.00% <ø> (ø)
...APIClient/Endpoints/Payloads/MessagePayloads.swift 100.00% <ø> (ø)
...at/APIClient/Endpoints/Payloads/UserPayloads.swift 100.00% <ø> (ø)
Sources/StreamChat/Database/DTOs/ChannelDTO.swift 100.00% <100.00%> (ø)
Sources/StreamChat/Database/DTOs/MessageDTO.swift 98.57% <100.00%> (-0.15%) ⬇️
Sources/StreamChat/Database/DTOs/UserDTO.swift 95.69% <100.00%> (-0.83%) ⬇️
Tests/Shared/JSONEncoder+Extensions.swift 50.00% <0.00%> (-50.00%) ⬇️
Tests/Shared/iOS13TestCase.swift 66.66% <0.00%> (-33.34%) ⬇️
...ocketClient/Engine/StarscreamWebSocketEngine.swift 0.00% <0.00%> (-30.96%) ⬇️
...Utils/Internet Connection/InternetConnection.swift 54.05% <0.00%> (-19.82%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a95fac...6f3d010. Read the comment docs.

Copy link
Contributor

@VojtaStavik VojtaStavik left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

Comment on lines +151 to +156

// Act: Save payload again
let user = try database.viewContext.saveUser(payload: payload)

// Assert: DTO should not contain any changes
XCTAssertFalse(user.hasPersistentChangedValues)
Copy link
Contributor

Choose a reason for hiding this comment

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

I like how we have almost 1k tests written in a certain way and you went "YOLO I'll do Arrange / Act / Assert" 😅

@ManWithBear ManWithBear merged commit dca2ce0 into main Feb 12, 2021
@ManWithBear ManWithBear deleted the no_more_hash branch February 12, 2021 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌐 SDK: StreamChat (LLC) Tasks related to the StreamChat LLC SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants