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

Extract S3 code to Bucket #217

Merged
merged 10 commits into from
Oct 19, 2022
Merged

Extract S3 code to Bucket #217

merged 10 commits into from
Oct 19, 2022

Conversation

jmthomas
Copy link
Member

No description provided.

@jmthomas jmthomas requested a review from ryanmelt October 17, 2022 23:54
rescue Aws::S3::Errors::NotFound
@rubys3_client.create_bucket(bucket: bucket)
end
Bucket.getClient.create_bucket(bucket)
s3_presigner = Aws::S3::Presigner.new
Copy link
Member

Choose a reason for hiding this comment

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

Presigning will vary by cloud

}
)
end

def self.list_files_before_time(bucket, prefix, time)
rubys3_client = Aws::S3::Client.new
Copy link
Member

Choose a reason for hiding this comment

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

This file should be renamed to bucket_utilities and use Bucket.

@codecov
Copy link

codecov bot commented Oct 19, 2022

Codecov Report

Base: 74.00% // Head: 74.21% // Increases project coverage by +0.20% 🎉

Coverage data is based on head (16e37ec) compared to base (834742c).
Patch coverage: 59.71% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
+ Coverage   74.00%   74.21%   +0.20%     
==========================================
  Files         414      416       +2     
  Lines       25669    25667       -2     
  Branches      562      562              
==========================================
+ Hits        18997    19048      +51     
+ Misses       6586     6533      -53     
  Partials       86       86              
Flag Coverage Δ
ruby-api 44.04% <41.46%> (+0.14%) ⬆️
ruby-backend 78.71% <62.13%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
openc3-cmd-tlm-api/app/models/screen.rb 33.33% <ø> (-2.67%) ⬇️
openc3-cmd-tlm-api/app/models/streaming_thread.rb 94.69% <ø> (-0.05%) ⬇️
...xtractor/src/tools/DataExtractor/DataExtractor.vue 84.58% <ø> (ø)
...ptrunner/src/tools/ScriptRunner/RunningScripts.vue 21.56% <ø> (ø)
...riptrunner/src/tools/ScriptRunner/ScriptRunner.vue 70.90% <ø> (ø)
openc3-script-runner-api/app/models/script.rb 20.58% <0.00%> (-0.78%) ⬇️
openc3/lib/openc3/api/tlm_api.rb 98.78% <ø> (+3.43%) ⬆️
openc3/lib/openc3/script/storage.rb 14.66% <0.00%> (ø)
...-cmd-tlm-api/app/controllers/storage_controller.rb 26.92% <11.11%> (+5.30%) ⬆️
...3-script-runner-api/app/models/completed_script.rb 53.33% <20.00%> (-2.92%) ⬇️
... and 26 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jmthomas jmthomas merged commit 9ed3c5a into master Oct 19, 2022
@jmthomas jmthomas deleted the bucket_env branch October 19, 2022 22:08
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