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

Implement streaming support from bitbucket. #378

Merged
merged 9 commits into from May 18, 2023

Conversation

atl-dyon
Copy link
Collaborator

@atl-dyon atl-dyon commented Apr 17, 2023

This PR seeks to introduce support for the plugin to retrieve files from bitbucket using the streaming endpoint provided to us. The caller is then presented with an InputStream that they may use.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Copy link

@dkjellin dkjellin left a comment

Choose a reason for hiding this comment

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

Can we also remove some of the code we have for paging through the file contents with this change?

@KalleOlaviNiemitalo
Copy link

Fixes JENKINS-66829, I think.

@atl-dyon atl-dyon marked this pull request as ready for review April 18, 2023 04:06
@dkjellin dkjellin closed this Apr 19, 2023
@dkjellin dkjellin reopened this Apr 19, 2023
Copy link

@dkjellin dkjellin left a comment

Choose a reason for hiding this comment

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

I'm going to hit approve, as I think this is there, it is just the unused consumer left, but happy for us to fix that as a separate PR if we want to, it is a trivial change.

*
* @param url The URL to hit on bitbucket server end
* @param additionalConfig additional configuration, such as credentials, that will be used in making calls
* @param consumer on successful execution, {@link Response} will be passed to consumer
Copy link

Choose a reason for hiding this comment

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

consumer is unused, and should be removed I think. It doesn't quite make sense to both return an InputStream AND take in a consumer

@mhenschke-atl mhenschke-atl self-requested a review May 12, 2023 03:38
@jaguilar-atl jaguilar-atl merged commit 940ba81 into master May 18, 2023
12 checks passed
@jaguilar-atl jaguilar-atl deleted the dg/implement_streaming_support branch May 18, 2023 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants