Skip to content

Refactor(message-list): implement LocalMessageUidPrefixProvider#10891

Open
mohitsatr wants to merge 1 commit into
thunderbird:mainfrom
mohitsatr:localmessageuidprefixprovider
Open

Refactor(message-list): implement LocalMessageUidPrefixProvider#10891
mohitsatr wants to merge 1 commit into
thunderbird:mainfrom
mohitsatr:localmessageuidprefixprovider

Conversation

@mohitsatr
Copy link
Copy Markdown
Contributor

Closes #10511

@github-actions
Copy link
Copy Markdown
Contributor

Missing report label. Set exactly one of: report: include, report: exclude OR report: highlight.

@mohitsatr
Copy link
Copy Markdown
Contributor Author

@rafaeltonholo, Should LocalMessageUidPrefixProvider only be concerned with getting the Local messages' prefix?

@mohitsatr mohitsatr force-pushed the localmessageuidprefixprovider branch from 9d2fb8d to d9bfd74 Compare April 19, 2026 10:49
@github-actions
Copy link
Copy Markdown
Contributor

Missing report label. Set exactly one of: report: include, report: exclude OR report: highlight.

@rafaeltonholo
Copy link
Copy Markdown
Member

@rafaeltonholo, Should LocalMessageUidPrefixProvider only be concerned with getting the Local messages' prefix?

@rafaeltonholo, Should LocalMessageUidPrefixProvider only be concerned with getting the Local messages' prefix?

Yes, that is it!

@rafaeltonholo rafaeltonholo added report: exclude Exclude changes from user-facing reports (internal, minor, or not relevant to users). type: developer experience Issues to improve the developer experience labels May 8, 2026
@rafaeltonholo rafaeltonholo self-assigned this May 8, 2026
@mohitsatr mohitsatr changed the title WIP: Refactor(message-list): implement LocalMessageUidPrefixProvider Refactor(message-list): implement LocalMessageUidPrefixProvider May 9, 2026
@mohitsatr mohitsatr marked this pull request as ready for review May 9, 2026 11:23
@mohitsatr mohitsatr requested a review from a team as a code owner May 9, 2026 11:23
@mohitsatr mohitsatr requested a review from rafaeltonholo May 9, 2026 11:23
Copy link
Copy Markdown
Member

@rafaeltonholo rafaeltonholo left a comment

Choose a reason for hiding this comment

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

Hi @mohitsatr, thanks for this contribution! We need to fix some issues before merging this.

Please see that the quality and test CI have failed. To address the Spotless, often running ./gradlew spotlessApply will auto-fix the issues.

assertThat(deleted).isEqualTo(0)
assertThat(folderId).isEqualTo(1)
assertThat(uid).isNotNull().startsWith(K9.LOCAL_UID_PREFIX)
assertThat(uid).isNotNull().startsWith("")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
assertThat(uid).isNotNull().startsWith("")
assertThat(uid).isNotNull().startsWith(localMessageUidPrefixProvider.get())

Comment on lines +69 to +70
private final LocalMessageUidPrefixProvider localMessageUidPrefixProvider =
DI.get(LocalMessageUidPrefixProvider.class);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be injected via the constructor.

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

Labels

report: exclude Exclude changes from user-facing reports (internal, minor, or not relevant to users). type: developer experience Issues to improve the developer experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML 0.5/MVI.02.3] Implement LocalMessageUidPrefixProvider

2 participants