Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Conversion Host Settings page: Ensure task.meta will always be defined #907

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

mturley
Copy link
Contributor

@mturley mturley commented Mar 13, 2019

Part of the Conversion Hosts UI feature BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1693339

This prevents an unlikely error that would occur if the task name field from the API is malformed. We parse it with a regular expression, and if the format of it changes in the future, that would cause console errors before when we filter on task.meta.operation, and with this change a malformed task name will just cause that task to be filtered out.

@mturley mturley added bug bz Issues filed by QE or having a BZ v1.1 hammer/yes z-stream labels Mar 13, 2019
@mturley mturley requested a review from mzazrivec March 13, 2019 18:54
@mturley mturley closed this Mar 13, 2019
@mturley mturley reopened this Mar 13, 2019
@miq-bot
Copy link
Member

miq-bot commented Mar 13, 2019

Checked commit mturley@6d8a97d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@mzazrivec mzazrivec self-assigned this Mar 14, 2019
@mzazrivec mzazrivec merged commit dc8eb8b into ManageIQ:master Mar 14, 2019
@mturley mturley deleted the conv-host-tasks-meta-fix branch March 14, 2019 14:25
@mturley mturley added v1.2 and removed v1.1 labels Mar 27, 2019
simaishi pushed a commit that referenced this pull request Apr 5, 2019
Conversion Host Settings page: Ensure task.meta will always be defined

(cherry picked from commit dc8eb8b)

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

simaishi commented Apr 5, 2019

Hammer backport details:

$ git log -1
commit d474c1ce19d48bf6c7e4fdf5a1cd257b6780e43b
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Mar 14 10:30:56 2019 +0100

    Merge pull request #907 from mturley/conv-host-tasks-meta-fix
    
    Conversion Host Settings page: Ensure task.meta will always be defined
    
    (cherry picked from commit dc8eb8ba5c87b14b1284d9c66d6efe827f09edef)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1696423

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug bz Issues filed by QE or having a BZ hammer/backported v1.2 z-stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants