Skip to content

{model}Store を {model}Repositoryに変更 & CategoryFilterをFireStoreで#54

Open
ho2ri2s wants to merge 6 commits intomasterfrom
rename/store-to-repository
Open

{model}Store を {model}Repositoryに変更 & CategoryFilterをFireStoreで#54
ho2ri2s wants to merge 6 commits intomasterfrom
rename/store-to-repository

Conversation

@ho2ri2s
Copy link
Contributor

@ho2ri2s ho2ri2s commented May 25, 2020

やったこと

  • ArticleStoreをArticleRepositoryに
  • CategoryStoreをCategoryRepositoryに
  • getFilteredArticlesをはやした

try-catchはStoreでやる運用とするために一時的に外した 

@ho2ri2s ho2ri2s requested review from b4tchkn and ry-itto and removed request for ry-itto May 25, 2020 14:53
@github-actions
Copy link

Flutter Analyze found 0 issues ✅

LGTM 🎉

LGTM

Generated by 🚫 Danger

Copy link
Contributor Author

@ho2ri2s ho2ri2s left a comment

Choose a reason for hiding this comment

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

Profileマージして設計整えるぞ!

Comment on lines +80 to +83
Future<void> filterArticles(Category category) async {
articles = await _client.getFilteredArticles(category.id);
notifyListeners();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

なぜかファイルごとaddな差分になってしまってるけど、変更した箇所はここと、
それぞれのメソッドのtry-catchを一時的に外した感じ

Copy link
Contributor

Choose a reason for hiding this comment

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

今View に入ってる Repository はふさわしい Store で置き換えられる認識でいいよね?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

そうやね!HomeStoreとかProfileStoreとかな感じ!

Copy link
Contributor

Choose a reason for hiding this comment

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

OKOK~

Copy link
Contributor

@ry-itto ry-itto left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ho2ri2s
Copy link
Contributor Author

ho2ri2s commented May 25, 2020

Profileマージしてからコンフリクト直しまっす

@ry-itto
Copy link
Contributor

ry-itto commented May 25, 2020

🙏 🙏

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