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

Open jira settings when not configured #7033

Merged

Conversation

pmiossec
Copy link
Member

Proposed changes

  • Fix a bad check if settings exists
  • open the settings if not configured

Test methodology

  • manual

Test environment(s)

  • Git Extensions 3.2.0
  • Build 885dbb8
  • Git 2.21.0.windows.1 (recommended: 2.22.0 or later)
  • Microsoft Windows NT 10.0.17134.0
  • .NET Framework 4.7.3416.0
  • DPI 192dpi (200% scaling)

@ghost ghost assigned pmiossec Aug 21, 2019
@@ -62,8 +62,9 @@ public JiraCommitHintPlugin()

public override bool Execute(GitUIEventArgs args)
{
if (_enabledSettings.ValueOrDefault(Settings))
if (!_enabledSettings.ValueOrDefault(Settings))
Copy link
Member

Choose a reason for hiding this comment

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

Does this work at all now?

@RussKie
Copy link
Member

RussKie commented Aug 22, 2019

Could you please explain the use case, it is not clear to me what was wrong that we're fixing here.

@pmiossec
Copy link
Member Author

Could you please explain the use case, it is not clear to me what was wrong that we're fixing here.

It's just a little fix and improvement.

Before this PR, we had a Jira Commit Hint menu item in the 'Plugin' Menu that does nothing.

I discovered, when developing the same plugin for Azure DevOps that a feature was written to show a message box with an example of a commit message by querying Jira with all the parameters (not a great value but why not).

The first commit fix the condition to enable this feature.

And while I was there, I did the same thing that we do on some other plugin , that is, to display the settings window when the plugin is not configured. This is the changed introduced in the 2nd commit. Even if you don't have Jira (I don't, I just backport from the AzureDevops plugin), you could test this part.

Does this work at all now?

@gerhardol So, yes, it works now 😉

@pmiossec pmiossec force-pushed the open_jira_settings_when_not_configured branch from 8747493 to 37dcb5c Compare August 22, 2019 10:48
@RussKie RussKie added this to the 3.2.0 milestone Aug 23, 2019
@RussKie
Copy link
Member

RussKie commented Aug 23, 2019

Merge if @gerhardol is happy

@pmiossec pmiossec force-pushed the open_jira_settings_when_not_configured branch from 37dcb5c to 49f5083 Compare August 23, 2019 07:42
@pmiossec
Copy link
Member Author

Merge if @gerhardol is happy

So, I let @gerhardol merge it 😉

@gerhardol gerhardol merged commit 0010bf5 into gitextensions:master Aug 24, 2019
@pmiossec pmiossec deleted the open_jira_settings_when_not_configured branch August 26, 2019 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants