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

chore!(encryption): rename are_we_the_last_man_standing to is_last_device #4522

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jan 13, 2025

While the former name is arguably more fun, the latter is more descriptive of what the function does.

@bnjbvr bnjbvr requested a review from a team as a code owner January 13, 2025 14:20
@bnjbvr bnjbvr requested review from poljar and removed request for a team January 13, 2025 14:20
Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

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

Don't forget the changelog entry. It's a breaking change.

Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 85.34%. Comparing base (9514388) to head (8682d5f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/matrix-sdk/src/encryption/recovery/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4522      +/-   ##
==========================================
- Coverage   85.35%   85.34%   -0.02%     
==========================================
  Files         285      285              
  Lines       31978    31978              
==========================================
- Hits        27295    27291       -4     
- Misses       4683     4687       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…_device`

While the former name is arguably more fun, the latter is more
descriptive of what the function does.
@bnjbvr bnjbvr force-pushed the bnjbvr/rename-fun-function-name branch from 8a7a922 to 8682d5f Compare January 13, 2025 15:37
@bnjbvr bnjbvr enabled auto-merge (rebase) January 13, 2025 15:37
@@ -28,6 +28,7 @@ All notable changes to this project will be documented in this file.
call `AttachmentConfig::new().thumbnail(thumbnail)` now instead.
- [**breaking**] `Room::send_attachment()` and `RoomSendQueue::send_attachment()`
now take any type that implements `Into<String>` for the filename.
- [**breaking**] `Recovery::are_we_the_last_man_standing()` has been renamed to `is_last_device()`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Link to the PR please.

Copy link
Member Author

Choose a reason for hiding this comment

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

Why? If we require a link to the PR, at this point we should use towncrier, since this would be equivalently painful in terms of DX (i.e. have to push another time after the first push, to figure out what the final PR number is)

Copy link
Contributor

@poljar poljar Jan 13, 2025

Choose a reason for hiding this comment

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

Because people find them useful. No, Towncrier has more issues since you, just like with git-cliff, don't incrementally edit the changelog.

@bnjbvr bnjbvr merged commit 279c78b into main Jan 13, 2025
40 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/rename-fun-function-name branch January 13, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants