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

Fix for #304 to allow JIRA obtain more then 50 results #427

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

mpryc
Copy link
Collaborator

@mpryc mpryc commented Apr 22, 2022

JIRA api allows to pull all issues at once, but in our case we want to get subsequent results for two reasons:
- some users were reporing problems gathering more then 100 results in one query.
- during collection we present feedback to the user that operation is ongoing.

As part of this change also the requested data was limited to the data required by pelorus failure exporters, which is summary,labels,created,resolutiondate

Fixes #304

Depends on #424 #425

@redhat-cop/mdt

@dpulls
Copy link

dpulls bot commented Apr 26, 2022

🎉 All dependencies have been resolved !

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2022
Added test which checks for the deprecated password authentication.

JIRA uses same method to authenticate in the cloud jira instance
for both deprecated password authentication and token based auth.

This may lead to the situation where wrong API key is actually
considered password and then failure exporter is presenting
deprecation error.

This change also moves connection func to separate private
one for easy testing and readibility + may in the future
include more sophisticated auth methods.

Added proper headers to the files which were modified.
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2022
We should log error rather then crash pod if JIRA is missing
type required by failure exporter. JIRA type may be added
after pelorus deployment.
@mpryc mpryc added the kind/bug Categorizes issue or PR as related to a bug. label Apr 26, 2022
@KevinMGranger
Copy link
Collaborator

I think this should have an accompanying unit and/or integration test, right?

@KevinMGranger KevinMGranger merged commit c883000 into dora-metrics:master Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failure-exporter limited to only 50 results
2 participants