-
Notifications
You must be signed in to change notification settings - Fork 12
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
Filetree_create survey question description #39
Comments
@przemkalit I've completely changed the way that these fields were extracted and written down... I think I didn't forgive any case already solved in the previous PRs related with #36 and others... It would be great if you could test these changes and give feedback before merging the #46. Thanks! |
Okay, I found the first error. Since we have some workflows and job templates migrated from Tower, the multiplechoices field does not have max and min values set. As a result, the export is setting these to None, causing the import to fail. |
I'm looking into this... |
Ok, right now... the empty fields shouldn't be exported, so no |
Sorry, it is no so simple, return value is equal Null, so the length is equal to 4 :-(. |
Added the |
Ok I made mistake writing about
I left your check, but I've added check for survey_item_content.value, and my test success with minor hiccup, because I put only numbers into question name, but it was stupid example. |
Let's check again. The idea is to check for empty values in the |
My main issue is that sometimes in API values of survey like min length or max length of answer for a question can be equal Null in API. |
Ok, my idea, in that case, is that the |
No, it is still returning None for min and max. |
I think we have a version problem here... I'm testing against AAP 2.5 and all the survey items are returning the I'm not sure how or where could we maintain the older versions of the collection for a reasonable amount of time, but I think that this shouldn't be the correct repo for this. Any thoughts about this @redhat-cop/automation-cop-tower-mgrs ? |
Ok, I think we will use our version of collection, until we migrate from 2.4 to 2.5, thus I cannot test your solution right now. |
I'm missing something... I've different labs with AAP 2.2, 2.3 and 2.4, and all of them are returning these fields with the valid numeric values... if you test it against an AAP 2.4... you should get the correct values... Could you take a look at |
Yes, AAP returns proper values for all new survey question, but we migrated from Tower to AAP, which is why some survey questions have these issues. |
I wanted some fail safe, that could managed this kind of issue if arise, but let's maybe ignore it, and I have it thanks to you effort :). |
ok, so... it's not related to |
I've tested a really weird description and no issue, so you can merge it. |
Summary
Hi, I know, I've reported the #36 but at first I wanted to report the bug which is really annoying. Users cannot use quotes inside the question description.
Issue Type
Desired Behaviour
Surveys is properly exported.
Actual Behaviour
Surveys with quotes inside question description are not properly exported.
STEPS TO REPRODUCE
Export JT/WF
Import JT/WF
The text was updated successfully, but these errors were encountered: