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

Adds ViewResponse dataclass to allow access to all return values #46

Merged
merged 4 commits into from
Apr 19, 2022

Conversation

bmario
Copy link
Member

@bmario bmario commented Apr 10, 2022

This PR changes the View.get() and View.post() methods to return the new ViewResponse dataclass. This class looks like the JSON response of the view endpoint but also provides some nice accessor methods to parse the response.

Fixes #45

Python 3.6 is and-of-life and we need dataclasses, which are only available in python >=3.7
@bmario bmario added the breaking The labeled PR introduces a breaking change. DO NOT label issues with this. label Apr 10, 2022
@bmario bmario mentioned this pull request Apr 10, 2022
@codecov
Copy link

codecov bot commented Apr 10, 2022

Codecov Report

Merging #46 (5680bc2) into master (629822e) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
+ Coverage   97.10%   97.13%   +0.03%     
==========================================
  Files          13       13              
  Lines         932      944      +12     
==========================================
+ Hits          905      917      +12     
  Misses         27       27              
Impacted Files Coverage Δ
aiocouch/view.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@bmario bmario merged commit 56167f8 into master Apr 19, 2022
@bmario bmario deleted the view-refactor branch April 19, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking The labeled PR introduces a breaking change. DO NOT label issues with this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose sequence numbers
1 participant