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

Add a logic to check credentials before searching issues #49

Merged
merged 3 commits into from Nov 14, 2017

Conversation

thangnc
Copy link
Contributor

@thangnc thangnc commented Sep 19, 2017

CHANGES

  • With wrong credentials, the block of timeout_and_retry will fall in loop. This PR will fix it by adding a logic to check credentials and throw the EmbulkConfig before searching issues

@thangnc thangnc requested a review from uu59 September 20, 2017 11:04
@thangnc thangnc changed the title [WIP] Added checking credentials before searching issues Added checking credentials before searching issues Sep 20, 2017
@thangnc thangnc changed the title Added checking credentials before searching issues Add a logic to check credentials before searching issues Sep 20, 2017
@@ -62,6 +62,9 @@ def self.guess(config)
retry_initial_wait_sec = config.param(:retry_initial_wait_sec, :integer, default: 1)
retryer = retryer(retry_limit, retry_initial_wait_sec)

# Get credential before going to search issue
jira.get_user_credential(username)
Copy link
Contributor

Choose a reason for hiding this comment

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

Method name is get_xxx but we don't use that result.
That method does check/validate/authenticate/etc actually, so renaming it would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank @uu59. Will update now

@thangnc
Copy link
Contributor Author

thangnc commented Sep 22, 2017

@uu59 PTAL

@thangnc thangnc merged commit 5b6d35e into master Nov 14, 2017
@thangnc thangnc deleted the fix_wrong_credential branch November 14, 2017 03:28
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.

None yet

2 participants