ansible/awx

Add option to textarea survey input to automatically convert to list

Open

#13,554 创建于 2023年2月10日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Python (13,071 star) (3,333 fork)batch import
communitycomponent:uihelp wantedtype:enhancement

描述

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature type

New Feature

Feature Summary

A common use case with textarea is free form list input. This requires the extra step of calling .splitlines() or .split('/n') on the resulting variable in the playbook which is easy enough but extra steps. There should be a check box when configuring the survey question to automatically split the lines into a list potentially also to trim the lines.

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Steps to reproduce

Provide multiple lines of text to a textarea question in a survey.

Current results

Currently there is no configuration options and if the input is being utilized as a list extra steps are required to split the values within the playbook.

Sugested feature result

Two configuration check boxes when adding a textarea question to a survey.

  1. Convert to List. This sets the variable to be a list of the split lines not a string with new line characters.
  2. Trim lines. Remove whitespace around lines.

Additional information

No response

贡献者指南

Add option to textarea survey input to automatically convert to list · ansible/awx#13554 | Good First Issue