-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: getChart #41
feat: getChart #41
Conversation
7e9009b
to
ba6d86c
Compare
ba6d86c
to
9bdd1e5
Compare
88c2209
to
6440891
Compare
b311c5e
to
0bcab50
Compare
81cb188
to
dc8f5e7
Compare
2307068
to
b76bcaf
Compare
ba7038b
to
3952941
Compare
src/features/app/interface.rs
Outdated
@@ -1,16 +1,11 @@ | |||
use crate::app::AppContext; | |||
|
|||
use self::protobuf::{App, GetRatingRequest, GetRatingResponse}; | |||
pub use protobuf::app_server; | |||
use crate::features::pb::app::{GetRatingRequest, GetRatingResponse}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also applies to Line 1 and later lines, but probably best to merge all the use crate::{...}
into a single line so it's easier to find all imports.
src/features/app/interface.rs
Outdated
|
||
tonic::include_proto!("ratings.features.app"); | ||
} | ||
use super::{service::AppService, use_cases}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to not use crate::
here? I rarely see Rust crates use super
except in unit tests, but I won't be too picky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason, totally agree with use crate::
🙂
src/features/app/use_cases.rs
Outdated
@@ -1,7 +1,7 @@ | |||
use crate::app::AppContext; | |||
use crate::{app::AppContext, features::common::entities::Rating}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe merge with the super
block below (as per previous comment)
b84bae7
to
3cc3073
Compare
ChartData
to include the ratings_band and raw ratingfeatures/app
&features/chart
Rating
andRatingsBand
reusableVoteSummary
instead of extracting a list of votes and processing in RustgetChart
endpointCloses #35, #15
Client update