Description of problem: When using the remote CLI auto-complete with tabulator, it will incorrectly fill the data with only partial enum name, if that enum is declared inside a class. Example: AlertDampening has two enums, Category and TimeUnits. Trying to use these as autocomplete rules will forget to include the AlertDampening part and fill the CLI with incorrect data, causing an error. rhqadmin@localhost:7080$ dampeningRules.category(Category. Category.CONSECUTIVE_COUNT Category.DURATION_COUNT Category.INVERSE_COUNT Category.NONE Category.NO_DUPLICATES Category.ONCE Category.PARTIAL_COUNT rhqadmin@localhost:7080$ dampeningRules.category(Category.DURATION_COUNT) org.mozilla.javascript.EcmaError: ReferenceError: "Category" is not defined. (<Unknown source>#1) in <Unknown source> at line number 1 dampeningRules.category(Category.DURATION_COUNT) ^ rhqadmin@localhost:7080$ dampeningRules.category(AlertDampening.Category.DURATION_COUNT) AlertDampeningTemplate: rhqadmin@localhost:7080$ Version-Release number of selected component (if applicable): 4.13-SNAPSHOT How reproducible: Always Steps to Reproduce: 1. Try to auto-complete an enum that's defined inside a class 2. 3. Actual results: It auto-completes only the enum name, not the class it is defined inside. Expected results: The class name should be infront of the enum name for this behaviour to work correctly. Additional info:
Part of PR #143
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions