Skip to content

Conversation

@OlivierCuyp
Copy link
Contributor

Summary

Change the default value of GraphRequest.count to true

Motivation

It is unnatural to have to specify myRequest.count(true).
Programmers should just do myRequest.count() to get a count.

I put this as a breaking change but I seriously doubt that anybody used myRequest.count() expecting to have no count.
myRequest.count(true) & myRequest.count(false) are still retro-compatible.

Test plan

Current test still pass

Closing issues

Fixes #241

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@OlivierCuyp
Copy link
Contributor Author

@baywet the CI fails and I don't have access to the details.
On my machine, the tests pass.
Could you tell me what is the issue ?

@baywet
Copy link
Member

baywet commented Oct 9, 2020

@OlivierCuyp I just re-ran the job that failed, I think it was a temporary blip.

@nikithauc nikithauc changed the base branch from dev to 3.0.0 January 8, 2021 19:32
@nikithauc nikithauc merged commit 23fc68e into microsoftgraph:3.0.0 Jan 8, 2021
@nikithauc nikithauc added this to the 3.0.0 milestone Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

default count() param to true

4 participants