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

Do not build the regex for embedded method when there's no fqname #5866

Merged
merged 1 commit into from Jul 25, 2019

Conversation

skateman
Copy link
Member

When adding an inline method to an automate method, we're building a regular expression that prevents the inline method tree select to add the inline the same method as the current method being edited. However, this fails when a new automate method is being created as it has no fqname and we can't build the regular expression.

This causes not to render the list of selected methods in the editor. The fix is to not build the regex when the fqname is not available.

@miq-bot assign @martinpovolny
@miq-bot add_label bug, hammer/yes, ivanchuk/yes, automation/automate

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1718495

@miq-bot
Copy link
Member

miq-bot commented Jul 24, 2019

Checked commit skateman@24b46d5 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@mzazrivec mzazrivec assigned mzazrivec and unassigned martinpovolny Jul 25, 2019
@mzazrivec mzazrivec added this to the Sprint 117 Ending Aug 5, 2019 milestone Jul 25, 2019
@mzazrivec mzazrivec merged commit 33b898d into ManageIQ:master Jul 25, 2019
@skateman skateman deleted the inline-method-new branch July 25, 2019 10:10
simaishi pushed a commit that referenced this pull request Jul 25, 2019
Do not build the regex for embedded method when there's no fqname

(cherry picked from commit 33b898d)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1718495
@simaishi
Copy link
Contributor

Ivanchuk backport details:

$ git log -1
commit b2df270168c0fafcd586d7e83f3e0615efe90ddd
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Jul 25 12:01:56 2019 +0200

    Merge pull request #5866 from skateman/inline-method-new
    
    Do not build the regex for embedded method when there's no fqname
    
    (cherry picked from commit 33b898d46cbbc151f3b603fca066ac88751293a6)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1718495

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

6 participants