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

feat: add FluxRecord.row with response data stored in List #78

Merged
merged 3 commits into from
Oct 4, 2022

Conversation

michaelahojna
Copy link
Contributor

@michaelahojna michaelahojna commented Oct 3, 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 (Map), 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
  • pub run test completes successfully
  • Commit messages are in semantic format
  • Sign CLA (if not already signed)

@michaelahojna michaelahojna marked this pull request as ready for review October 3, 2022 18:33
@michaelahojna michaelahojna requested a review from bednar October 3, 2022 18:33
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:

example/record_row_example.dart Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Base: 20.99% // Head: 21.05% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (4626193) compared to base (533f5ac).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   20.99%   21.05%   +0.06%     
==========================================
  Files         117      117              
  Lines        7551     7557       +6     
==========================================
+ Hits         1585     1591       +6     
  Misses       5966     5966              
Impacted Files Coverage Δ
lib/client/flux_table.dart 77.14% <100.00%> (+0.33%) ⬆️
lib/client/flux_transformer.dart 78.51% <100.00%> (+0.92%) ⬆️

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.

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 👍

@bednar bednar merged commit 6f438ea into main Oct 4, 2022
@bednar bednar deleted the record-row branch October 4, 2022 06:49
@bednar bednar added this to the 2.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