-
Notifications
You must be signed in to change notification settings - Fork 16
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
make custom fields configurable #79
Conversation
Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA). Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA. After that, please reply here with a comment and we'll verify. Contributors that have not signed yet: @dleusing
|
CLA signed. |
@cla-bot check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix for Whitespace found at end of line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dleusing,
thank you for this contribution! I added a few small inline change requests, could you please address them?
Thanks
Thomas
library/Jira/IssueTemplate.php
Outdated
@@ -127,13 +127,16 @@ protected function getCustomFields() | |||
|
|||
protected function getDefaultFields() | |||
{ | |||
$config = Config::module('jira'); | |||
$Key = $config->get('jira_key_fields', 'field_icingaKey', 'icingaKey'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please start variable names with a lowercase letter, $Key
VS $key
, $Status
-> $status
library/Jira/IssueTemplate.php
Outdated
@@ -127,13 +127,16 @@ protected function getCustomFields() | |||
|
|||
protected function getDefaultFields() | |||
{ | |||
$config = Config::module('jira'); | |||
$Key = $config->get('jira_key_fields', 'field_icingaKey', 'icingaKey'); | |||
$Status = $config->get('jira_key_fields', 'field_icingaStatus', 'customfield_19220'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard-coded custom field identifier, see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review finished
@Thomas-Gelf any updates on the review ? |
@dleusing, @fl0wx: I'm sorry, I overlooked that this is now ready. Please re-check your config lookups, it seems that there are some inconsistencies, Thanks, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
changes are made |
@Thomas-Gelf still anything open or can this be merged? |
@Thomas-Gelf any updates? |
We'll have a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it looks good to me, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dleusing maybe as christmas present? :-) |
@dleusing any news? |
@dleusing : when can we expect the requested rework? |
We can also make the changes. |
@lippserd that would be great! 👍 |
14edb0a
to
2aa9f51
Compare
@Thomas-Gelf @raviks789 thanks a lot, can you also give an estimated time for the merge & release of a new version? |
Any news? |
*ping :-) |
@lippserd @Thomas-Gelf @raviks789 any update? |
Stop spamming. |
Since the custom fields are made configurable. The configured custom fields `icingaKey` and `icingaStatus` are used where necessary.
No description provided.