Skip to content

Fix missing data when using pullRequests.each() #861

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 4 commits into from
Oct 1, 2021

Conversation

sti0
Copy link
Contributor

@sti0 sti0 commented Sep 29, 2021

This fixes a bug that ends in missing data when using pullRequests.each().

The pullrequests endpoint won't deliver the
whole PullRequest object (e.g. participants, reviewers missing).
So we need to load all the data for the PR object.

The docs say:

The list of users that were added as reviewers on this pull request when it was created. For performance reasons, the API only includes this list on a pull request's self URL.

After merging this PR the PullRequest API is still broken and needs to be fixed by #844

Timo S added 4 commits September 29, 2021 23:26
The pullrequests endpoint won't deliver the
whole PullRequest object (e.g. participants, reviewers missing).
So we need to load all the data for the PR object.
@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2021

Codecov Report

Merging #861 (fc72532) into master (6cd6dd0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #861   +/-   ##
=======================================
  Coverage   36.07%   36.07%           
=======================================
  Files          32       32           
  Lines        6173     6173           
  Branches      895      895           
=======================================
  Hits         2227     2227           
  Misses       3838     3838           
  Partials      108      108           
Impacted Files Coverage Δ
...ssian/bitbucket/cloud/repositories/pullRequests.py 91.89% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6cd6dd0...fc72532. Read the comment docs.

@gonchik gonchik merged commit 0e81b4c into atlassian-api:master Oct 1, 2021
@gonchik
Copy link
Member

gonchik commented Oct 1, 2021

Thanks!

jnhyperion added a commit to jnhyperion/atlassian-python-api that referenced this pull request Dec 3, 2021
…ython-api

* 'master' of https://github.com/atlassian-api/atlassian-python-api: (43 commits)
  Fix delete watchers (atlassian-api#889)
  Add function for getting watchers (atlassian-api#890)
  Add functionality to delete a watcher from an issue (atlassian-api#884)
  [Jira] Implement jira.update_version (atlassian-api#878)
  Bitbucket Cloud: Support for pull request tasks (atlassian-api#874)
  [Bitbucket] Fix pagination for cloud requests **FIX BLACK** (atlassian-api#872)
  [Bitbucket] get_users - addition for start and limit (atlassian-api#868)
  Develop (atlassian-api#870)
  Crowd: add additional functions (atlassian-api#865)
  Bump version
  Fix missing data when using pullRequests.each() (atlassian-api#861)
  Added parameters to projects get request (atlassian-api#859)
  Bump version with new parameter of token
  Jira: Add support for authentication through access token (atlassian-api#856)
  change: allow editor=v1 as a parameter of the create_page function (atlassian-api#857)
  Update rest_client.py (atlassian-api#854)
  Bump version of fork method
  Removing redundant double check for simpler code to read (atlassian-api#853)
  Fix up the docs to include the functions definitions for forking repositories (atlassian-api#852)
  [Bitbucket] Adding ability to fork a repo to a different project (atlassian-api#843)
  ...

# Conflicts:
#	atlassian/jira.py
gonchik pushed a commit that referenced this pull request Sep 3, 2022
* Delivers full data when using PRs.each()

The pullrequests endpoint won't deliver the
whole PullRequest object (e.g. participants, reviewers missing).
So we need to load all the data for the PR object.

* add fixture

* make black happy

* adding testcase to prove participants
are accessable
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