Skip to content

Extract SearchPasteData and QueryPasteTag interfaces from DAO layer#3956

Merged
guiyanakuang merged 1 commit intomainfrom
refactor/issue-3955-extract-search-interfaces
Feb 27, 2026
Merged

Extract SearchPasteData and QueryPasteTag interfaces from DAO layer#3956
guiyanakuang merged 1 commit intomainfrom
refactor/issue-3955-extract-search-interfaces

Conversation

@guiyanakuang
Copy link
Copy Markdown
Member

Closes #3955

Summary

  • Extract SearchPasteData interface from PasteDao with searchPasteData(), searchPasteDataFlow(), and searchBySource() methods
  • Extract QueryPasteTag interface from PasteTagDao with getAllTagsFlow() method
  • PasteDao and PasteTagDao now extend the new interfaces, preserving backward compatibility
  • GeneralPasteSearchViewModel depends on the narrow interfaces instead of full DAOs
  • DI registrations added in DesktopModule

Test plan

  • ./gradlew app:compileKotlinDesktop passes
  • ./gradlew app:desktopTest passes
  • ./gradlew ktlintCheck passes

@guiyanakuang guiyanakuang merged commit 328fbdf into main Feb 27, 2026
2 checks passed
@guiyanakuang guiyanakuang deleted the refactor/issue-3955-extract-search-interfaces branch February 27, 2026 11:01
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.

Extract SearchPasteData and QueryPasteTag interfaces from DAO layer

1 participant