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

Rename PresetsRepository #458

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

PaulKlauser
Copy link
Collaborator

The name already didn't match the responsibility of the class, and with the migration, the name was even more confusing.

#452

The name already didn't match the responsibility of the class, and with the migration, the name was even more confusing.
Base automatically changed from chore/452-abstract-over-saved-preset-categories-2 to main December 28, 2023 15:38
Copy link
Contributor

@mattttvaughn mattttvaughn left a comment

Choose a reason for hiding this comment

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

Name change here is great 👍

Is the implication that we'll also eventually deprecate StoredCategoriesRepository and prefer exposing everything through the UseCases? Or was this guy just too insanely overloaded with stuff?

Comment on lines +9 to +10
@Deprecated("This is the old way of accessing categories and phrases. Prefer using" +
" ICategoriesUseCase instead.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit but would we want PhrasesUseCase mentioned in here as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good call, I forgot that existed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'ma fix this forward in a following PR 👍

@PaulKlauser
Copy link
Collaborator Author

Name change here is great 👍

Is the implication that we'll also eventually deprecate StoredCategoriesRepository and prefer exposing everything through the UseCases? Or was this guy just too insanely overloaded with stuff?

StoredCategoriesRepository will still exist, but the UI will only interact via the UseCases, which will then delegate to the appropriate stored/preset repositories as necessary

@PaulKlauser PaulKlauser merged commit 82edc8a into main Dec 28, 2023
4 checks passed
@PaulKlauser PaulKlauser deleted the chore/452-abstract-over-saved-preset-categories-3 branch December 28, 2023 19:24
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