Description of problem: For some expressions editor removes all available operands and listing only one - "CONTAINS" Version-Release number of selected component (if applicable): upstream How reproducible: 100% Steps to Reproduce: 1. Copy report Events -> Policy -> Policy Event for last & Days 2. Go to Custom and edit copied report -> Filter 3. Edit expression: select any filed and after that select back original field "Policy Event.Miq Policy Sets : Date Created:". Actual results: All available operations (AFTER, IS, BEFORE,...) removed and replaced by single operation "CONTAINS" Expected results: Show appropriate operands for date filed Additional info:
Created attachment 1417413 [details] only CONTAINS listed as available operand
https://github.com/ManageIQ/manageiq-ui-classic/pull/3879
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/829af294efc6f453b6e32d0a0bcb4269fb1b41bb commit 829af294efc6f453b6e32d0a0bcb4269fb1b41bb Author: Harpreet Kataria <hkataria> AuthorDate: Mon Apr 30 14:36:06 2018 -0400 Commit: Harpreet Kataria <hkataria> CommitDate: Mon Apr 30 14:36:06 2018 -0400 Do not force exp_key to be limited to "CONTAINS" for date type fields. When selected field type id date type field, allow a drop down to be displayed with After/Before etc. options to be selected to form an expression. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1563823 app/controllers/application_controller/filter/expression.rb | 3 +- 1 file changed, 2 insertions(+), 1 deletion(-)
Failed QA in version 5.10.0.32.20190115185124_c957ada, the issue still remains. Steps taken to recreate: 1. Copy report Events -> Policy -> Policy Event for last & Days 2. Go to Custom and edit copied report -> Filter 3. Edit expression: select any field and after that select back original field "Policy Event.Miq Policy Sets : Date Created:" Note that this issue appears both when you edit the filter expression from the "Copy" page and from the "Edit" page.
Verified in 5.11.0.1.20190424210327_58b5dbd Steps of verification: 1. Copy report Events -> Policy -> Policy Event for last & Days 2. Go to Custom and edit copied report -> Filter 3. Edit expression: select any field and after that select back original field "Policy Event.Miq Policy Sets : Date Created:" (also checked "Policy Event.Miq Actions : Date created") 4. Verified that all options are available, not CONTAINS