Comments (15)
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.
@jeffibm This is a custom dialog with a multiselect.
from manageiq-automation_engine.
Got the issue in the safari browser, I was checking in chrome and firefox.
from manageiq-automation_engine.
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.
@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.
@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.
@Fryguy Is there any workaround I can try? I'm kind of stuck due to this issue.
from manageiq-automation_engine.
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.
Create a service dialog. Choose any multiselect and it'll display the value in a weird format in the request section.
Create a method to retrieve the dialog first value.
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.
Looking into the issue.
from manageiq-automation_engine.
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.
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.
from manageiq-automation_engine.
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.
from manageiq-automation_engine.
@kTipSSIoYv How you are creating this request using order button or by API?
from manageiq-automation_engine.
Fixed in ManageIQ/manageiq-ui-classic#8362
from manageiq-automation_engine.
Related Issues (20)
- Allow to emit notifications for selected users from automate HOT 2
- Modify YAML for Service Model encoding/decoding to store minimal object properties HOT 2
- Datastore import - name source HOT 5
- MiqAeNamespace should use ancestry instead of acts_as_tree HOT 3
- [Automate Engine] Looking up objects in the database is expensive HOT 2
- [RFE] Git management of automate code / merge automate domains HOT 2
- Investigate replacing `require_relative` with `require_dependency` HOT 8
- Add specs for classes using EmsOperationsMixin based on queue_name change HOT 2
- Unable to Pass A List As Extra Variable For Ansible Playbooks HOT 3
- Add option for quota to be applied on group but enforced at user level
- Vmware "memory_reserve_expand" param cannot be set as true HOT 1
- Not getting proper error message while updating Automate method HOT 1
- Provision dialog for ec2 with public images fails - high worker memory utilization HOT 5
- Embedded Ansible - Add support for ansible.cfg files in user repositories HOT 1
- Incorrect error when deleting a VMware ESXi host. HOT 3
- Attribute value pairs message is not considered while simulation HOT 2
- Custom message attribute is not considering with instance in logs in automation.log HOT 2
- Automate expression method broken in jansa and kasparov HOT 1
- Bug with handling of Arrays in Automate HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manageiq-automation_engine.