Skip to content

feat: add FluxRecord.Row with response data stored in List #376

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

Merged
merged 10 commits into from
Oct 4, 2022

Conversation

michaelahojna
Copy link
Contributor

@michaelahojna michaelahojna commented Sep 28, 2022

Closes #

Proposed Changes

Adding possibility of accessing response data in List FluxRecord.Row.

In case of using pivot on data, where field contains labels that occur by default in the annotated CSV (f.e. "result" or "table"), could be duplicated column names in response. In that case FluxRecord.Values (Dictionary), which can hold only unique keys, doesn't show complete data. This edge case is solved by using FluxRecord.Row (List).

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • dotnet test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@michaelahojna michaelahojna marked this pull request as ready for review September 28, 2022 13:44
Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

Thanks for your PR 👍
There are a few requirements that must be be satisfy before we accept the PR:

@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2022

Codecov Report

Base: 87.52% // Head: 87.54% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (956f230) compared to base (80e1eaf).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #376      +/-   ##
==========================================
+ Coverage   87.52%   87.54%   +0.02%     
==========================================
  Files          76       76              
  Lines        6638     6650      +12     
==========================================
+ Hits         5810     5822      +12     
  Misses        828      828              
Impacted Files Coverage Δ
Client.Core/Flux/Domain/FluxRecord.cs 84.44% <100.00%> (+0.35%) ⬆️
Client.Core/Flux/Internal/FluxCsvParser.cs 96.44% <100.00%> (+0.18%) ⬆️

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.

@michaelahojna michaelahojna changed the title feat: add FluxRecord.Rows with response data stored in List feat: add FluxRecord.Row with response data stored in List Oct 3, 2022
@michaelahojna michaelahojna requested a review from bednar October 3, 2022 18:30
@michaelahojna michaelahojna requested a review from bednar October 4, 2022 06:54
Copy link
Contributor

@bednar bednar left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@michaelahojna michaelahojna merged commit 4af947e into master Oct 4, 2022
@michaelahojna michaelahojna deleted the FluxRecord.Rows branch October 4, 2022 07:55
@bednar bednar added this to the 4.7.0 milestone Oct 4, 2022
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.

3 participants