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

AWX multiple Choice does not work and unable to add options #4192

Closed
Sreenadh8 opened this issue Jun 29, 2019 · 13 comments
Closed

AWX multiple Choice does not work and unable to add options #4192

Sreenadh8 opened this issue Jun 29, 2019 · 13 comments

Comments

@Sreenadh8
Copy link

ISSUE TYPE
  • Bug Report

Component Name

UI

SUMMARY

I am not able to add 2 options to the survey when I chose the answer type multiple options single select or multi select..

ENVIRONMENT
  • AWX version: 3.0.1 , 4.0.0 and 5.0.0
  • AWX install method: docker on linux,
  • Ansible version: 2.8.1 , 2.7
  • Operating System: Ubuntu 18.04
  • Web Browser: Chrome, IE
STEPS TO REPRODUCE

Add one question to survey with mutliple Choice(Single Select or multi-select) type . And try to add options in 'choice options'...

EXPECTED RESULTS

Once I hit enter in the multiple choice options box, I am expecting to go to next line to add my second option.

ACTUAL RESULTS

it stuck in the first line

ADDITIONAL INFORMATION

I tried with AWX 3.0.1, 4.0.0 and even latest version 5.0 , still this issue exist... please help to fix this issue...
awx multi-choice issue

@fxfitz
Copy link

fxfitz commented Aug 29, 2019

Some users on our team are experiencing this. Did you happen to find out a fix @Sreenadh8 ??

@AlexSCorey
Copy link
Member

I have tried to reproduce this in awx and in Tower 3.3.3 and I have been unsuccessful. I can successfully create a textarea and multiselect survey question from new Job Templates and from existing job templates.

@AlexSCorey AlexSCorey removed their assignment Sep 12, 2019
@ryanpetrello
Copy link
Contributor

Can we move this to needs_test? I've personally experienced this off and on in Google Chrome, and I think it is a real bug in modern versions of AWX.

@dsesami
Copy link
Contributor

dsesami commented Sep 12, 2019

This is reproducible on AWX 5.0.0 but has been fixed in AWX 7.0.0/latest. leaving next steps to you @AlexSCorey

@AlexSCorey
Copy link
Member

@dsesami Thanks for checking into this. In conversation with @ryanpetrello we are going to see if we get more reports, that offer more details as to the source of the problem, and move from there.

@fxfitz
Copy link

fxfitz commented Sep 13, 2019

For what it's worth, we observed this on v6.0.0. Haven't upgraded to 7.0.0 yet.

@dsesami
Copy link
Contributor

dsesami commented Sep 13, 2019

@fxfitz this was fixed very recently, so I wouldn't be surprised if it was on 6.0.0. If you are able to upgrade, it should resolve it. see correction below.

@fxfitz
Copy link

fxfitz commented Sep 13, 2019

Gotcha. We'd like to upgrade, but right now we're seeing problems with our role requirements downloading, so until that's fixed we won't be able to upgrade.

@ryanpetrello
Copy link
Contributor

@dsesami what change to AWX do we suspect resolved this?

@dsesami
Copy link
Contributor

dsesami commented Sep 13, 2019

@ryanpetrello @fxfitz after some sanity checks with different instances:

First, I completely misremembered and got this confused with something else. apparently this bug isn't fixed yet. For that miscommunication I apologize. #4343 also exists about this.

Apparently this is something that can affect different textareas in the app, but it happens consistently on some AWX instances and not on others, so this is ongoing. @AlexSCorey has a repro he's going to try to dive into.

@rebeccahhh
Copy link
Member

rebeccahhh commented Sep 18, 2019

Per discussion with @AlexSCorey I'm adding my own two cents.
In addition to the existing bug (not being able to enter/newline in the UI) I seem to be having the newline issue in the API page post as well.
When posting something along the lines of {"choices": "test\ntest2\ntest3"} (along with other required/associated JSON variables) on the API page and then returning to the UI, the \n is ignored and presents as one choice.

@mabashian
Copy link
Member

I've got a PR up to address what I think is the root cause of this behavior. See: #4869. For those that do come across this before #4869 merges I believe a hard refresh of the page will alleviate the issue.

The easiest reproducer that I came across was:

  1. Create a new personal access token (when you create the token, an Alert modal is shown with a key in it)
  2. Without refreshing the page navigate to any textarea and attempt to hit enter. Examples could be the inventory script form or survey questions in the launch modal.

@dsesami
Copy link
Contributor

dsesami commented Oct 9, 2019

Tried the repro scenario mentioned above, and attempted to break the multi-select. This appears to work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants