-
Notifications
You must be signed in to change notification settings - Fork 42
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
Refactor: rework snapshot_uploaders
module to improve genericity
#2165
Conversation
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.
LGTM
Test Results 4 files ±0 52 suites ±0 9m 44s ⏱️ -4s Results for commit 460c9af. ± Comparison against base commit 4cd38e2. This pull request removes 6 and adds 5 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
960ad53
to
fc4da20
Compare
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.
Overall looks good 👍
Can you avoid the cumbersome repetition of _file_uploaders.rs
in the files of the file_uploaders
module and rename file_uploader.rs
to interface.rs
?
…ove `snapshot` references
…emove `snapshot` references Co-authored-by: Sébastien Fauvel <[email protected]>
Co-authored-by: Sébastien Fauvel <[email protected]>
d7d93fe
to
eaa1fca
Compare
4c75959
to
fd971e8
Compare
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.
LGTM 👍
#[async_trait] | ||
impl FileUploader for GcpUploader { | ||
async fn upload(&self, filepath: &Path) -> StdResult<FileUri> { | ||
if env::var("GOOGLE_APPLICATION_CREDENTIALS_JSON").is_err() { |
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 we will have to do this in the dependency builder in a future PR?
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.
Okay, that could be a good idea.
* mithril-aggregator from `0.6.1` to `0.6.2`
4762b07
to
460c9af
Compare
Content
This PR includes a refactor of the
snapshot_uploaders
module and its sub-modules. This is preparatory work to start implementing the sub-builders and uploaders in the issue #2151.It involves renaming to remove references to snapshots. The GCP module has been revised to implement directly the
FileUploader
trait.Pre-submit checklist
Issue(s)
Relates to #2151