Giter Site home page Giter Site logo

Comments (15)

Fryguy avatar Fryguy commented on May 25, 2024 1

Looks like there's a bug with get_option_array not splitting the new character - @akhilkr128 can you take a look at this one?

from manageiq-automation_engine.

Fryguy avatar Fryguy commented on May 25, 2024 1

@jeffibm This is a custom dialog with a multiselect.

from manageiq-automation_engine.

akhilkr128 avatar akhilkr128 commented on May 25, 2024 1

Got the issue in the safari browser, I was checking in chrome and firefox.

from manageiq-automation_engine.

Fryguy avatar Fryguy commented on May 25, 2024

This is intentional as part of #480 / #484. Previously, arrays were were stored comma separated, but that prevented actual commas in the data field. It's possible this might just need some UI changes to present it as multiple values. @jeffibm who can look at this one?

from manageiq-automation_engine.

Fryguy avatar Fryguy commented on May 25, 2024

@kTipSSIoYv Is this only a presentation problem, or is this an actual problem where the data gets sent to AWX? It's hard to tell what the issue is here aside from presentation.

from manageiq-automation_engine.

kTipSSIoYv avatar kTipSSIoYv commented on May 25, 2024

@Fryguy I'm unable to retrieve the data by index 0 or 1. When I try to retrieve index 0 I get both values with a special character in between.

              job_template_array = prov.get_option_array(:job_template_id)   
              job_template_array = job_template_array[0]

[----] I, [2022-07-06T09:05:14.492607 ManageIQ/manageiq#314:2aad21d5b6fc]  INFO -- automation: Q-task_id([r745_miq_provision_1962]) <AEMethod launch_ansible_job> job_template_by_id is 118▼119

from manageiq-automation_engine.

kTipSSIoYv avatar kTipSSIoYv commented on May 25, 2024

@Fryguy Is there any workaround I can try? I'm kind of stuck due to this issue.

from manageiq-automation_engine.

jeffibm avatar jeffibm commented on May 25, 2024

Hey @kTipSSIoYv , I am not able to identify the page from which this issue is reported. Could you please post a full page screenshot with breadcrumbs?

from manageiq-automation_engine.

kTipSSIoYv avatar kTipSSIoYv commented on May 25, 2024

Create a service dialog. Choose any multiselect and it'll display the value in a weird format in the request section.

image

image

Create a method to retrieve the dialog first value.

image

You'll see that the output retrieves both value with a special character in between.

[----] I, [2022-07-06T09:05:14.492607 ManageIQ/manageiq#314:2aad21d5b6fc]  INFO -- automation: Q-task_id([r745_miq_provision_1962]) <AEMethod launch_ansible_job> job_template_by_id is 118▼119

from manageiq-automation_engine.

akhilkr128 avatar akhilkr128 commented on May 25, 2024

Looking into the issue.

from manageiq-automation_engine.

Fryguy avatar Fryguy commented on May 25, 2024

Is there any workaround I can try? I'm kind of stuck due to this issue.

@kTipSSIoYv Yes, in your automate code you can do:

- job_template_array = prov.get_option_array(:job_template_id)
+ job_template_array = prov.get_option_array(:job_template_id).split("\x1F")
  job_template_array = job_template_array[0]

from manageiq-automation_engine.

akhilkr128 avatar akhilkr128 commented on May 25, 2024

I have created the service dialogue on Morphy branch with multi-select dropdowns and added a dynamic dropdown also which is working fine. Can you tell me more information about populating this data on dropdown? So that I can reproduce this.
Screenshot 2022-07-12 at 4 52 43 PM

from manageiq-automation_engine.

kTipSSIoYv avatar kTipSSIoYv commented on May 25, 2024

It seems like its working only for you.

I just created a new docker image using latest morphy and I still see the same issue.

image

from manageiq-automation_engine.

akhilkr128 avatar akhilkr128 commented on May 25, 2024

@kTipSSIoYv How you are creating this request using order button or by API?

from manageiq-automation_engine.

Fryguy avatar Fryguy commented on May 25, 2024

Fixed in ManageIQ/manageiq-ui-classic#8362

from manageiq-automation_engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.