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

Updated Workflows Credential Schema #30

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

DavidResende0
Copy link
Member

Removed the Name field from the ManageIQ::Providers::Workflows::AutomationManager::Credential type schema since name is a common field across credential types and should be in the front-end. Also added some validation to the Reference field since it is a required field.

@DavidResende0
Copy link
Member Author

@miq-bot add_reviewer @agrare

@miq-bot miq-bot requested a review from agrare June 21, 2023 20:48
@miq-bot
Copy link
Member

miq-bot commented Jun 21, 2023

Checked commit DavidResende0@f0422ad with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

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

LGTM - want @agrare to review.

@Fryguy Fryguy added bug Something isn't working petrosian/yes? labels Jun 21, 2023
Comment on lines -8 to -14
{
:component => 'text-field',
:label => N_('Name'),
:helperText => N_('Name of this credential'),
:name => 'name',
:id => 'name'
},
Copy link
Member

Choose a reason for hiding this comment

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

If we're going to remove name from COMMON_ATTRIBUTES then we need to add it to the list of allowed_params in .params_to_attributes here (this is why the specs are failing)

Copy link
Member

Choose a reason for hiding this comment

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

Adding name to the core set of allowed attributes in ManageIQ/manageiq#22570 fixes this.

@agrare agrare closed this Jun 22, 2023
@agrare agrare reopened this Jun 22, 2023
@agrare agrare merged commit e49a229 into ManageIQ:master Jun 22, 2023
3 of 5 checks passed
@Fryguy
Copy link
Member

Fryguy commented Jun 28, 2023

Backported to petrosian in commit 9b732b6.

commit 9b732b621b10a52180834cbe02028be4de93a7ff
Author: Adam Grare <adam@grare.com>
Date:   Thu Jun 22 14:13:41 2023 -0400

    Merge pull request #30 from DavidResende0/updated-credential-schema
    
    Updated Workflows Credential Schema
    
    (cherry picked from commit e49a229997be286d0ae86707ae3b55cf2692830d)

Fryguy pushed a commit that referenced this pull request Jun 28, 2023
Updated Workflows Credential Schema

(cherry picked from commit e49a229)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working petrosian/backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants