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

Change include_head to metadata #535

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Change include_head to metadata #535

merged 1 commit into from
Mar 8, 2023

Conversation

jmthomas
Copy link
Member

@jmthomas jmthomas commented Mar 8, 2023

No description provided.

@jmthomas jmthomas requested a review from ryanmelt March 8, 2023 21:32
@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Patch coverage: 25.00% and no project coverage change

Comparison is base (a821499) 73.94% compared to head (10f3425) 73.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #535   +/-   ##
=======================================
  Coverage   73.94%   73.95%           
=======================================
  Files         459      459           
  Lines       28442    28442           
  Branches      600      600           
=======================================
+ Hits        21031    21033    +2     
+ Misses       7314     7312    -2     
  Partials       97       97           
Flag Coverage Δ
frontend 75.71% <ø> (+0.04%) ⬆️
ruby-api 49.58% <0.00%> (ø)
ruby-backend 77.97% <33.33%> (ø)

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

Impacted Files Coverage Δ
...-cmd-tlm-api/app/controllers/storage_controller.rb 17.77% <0.00%> (ø)
openc3/lib/openc3/utilities/aws_bucket.rb 39.32% <20.00%> (ø)
openc3/lib/openc3/utilities/bucket.rb 64.70% <100.00%> (ø)
...tsmonitor/src/tools/LimitsMonitor/LimitsEvents.vue 82.85% <0.00%> (+5.71%) ⬆️

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.

include_head = params[:include_head].present? ? true : false
results = bucket.list_files(bucket: bucket_name, path: path, include_head: include_head)
metadata = params[:metadata].present? ? true : false
results = bucket.list_files(bucket: bucket_name, path: path, metadata: metadata)
Copy link
Member Author

Choose a reason for hiding this comment

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

The code as-is is currently breaking GCP because gcp_bucket does not have include_head as a parameter. So I changed it to metadata in the latest Enterprise PR because that's really what it is anyway.

I see in #505 that this was just a flag that perhaps they were setting manually so we'll have to give them a heads up. Nothing in our frontend currently uses this option.

@ryanmelt
Copy link
Member

ryanmelt commented Mar 8, 2023

@wiatrp heads up

@jmthomas jmthomas merged commit 5002ca0 into main Mar 8, 2023
@jmthomas jmthomas deleted the metadata branch March 8, 2023 23:53
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