consul/ui/packages/consul-ui/tests
John Cowen cfbd1bb84e
ui: [BUGFIX] Re-enable namespace menus whilst editing intentions (#11095)
This PR supersedes #10706 and fixes #10686 whilst making sure that saving intentions continues to work.

The original fix in #10706 ignored the change action configured for the change event on the menus, meaning that the selected source/destination namespace could not be set by the user when editing/creating intentions. This, coupled with the fact that using the later intention exact endpoint for API requests endpoint means that you could not use wildcard namespaces for saving intentions.

All in all this meant that intentions could no longer be saved using the UI (whilst using ENT)

This PR reverts #10706 to fix the intention saving issue, and adds a fix for the original visual issue of nspaces doubling up in the menu once clicked. This meant repeating the existing functionality for nspaces aswell as services. It did seem strange to me that the original issue was only apparent for the nspace menus and not the service menus which should all function exactly the same way.

There is potentially more to come here partly related to what the exact functionality should be, but I'm working with other folks to figure out what the best way forwards is longer term. In the meantime this brings us back to the original functionality with the visual issue fixed.

Squashed commits:

* Revert "ui: Fix dropdown option duplications (#10706)"

This reverts commit eb5512fb74.

* ui: Ensure additional nspaces are added to the unique list of nspaces

* Add some acceptance tests
2021-09-22 10:21:20 +01:00
..
acceptance ui: [BUGFIX] Re-enable namespace menus whilst editing intentions (#11095) 2021-09-22 10:21:20 +01:00
helpers ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
integration ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
lib ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
pages ui: Create Routing Configurations route and page (#10835) 2021-08-16 12:04:04 -04:00
steps ui: [BUGFIX] Re-enable namespace menus whilst editing intentions (#11095) 2021-09-22 10:21:20 +01:00
unit ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
dictionary.js ui: Adds Partitions to the HTTP layer (#10447) 2021-09-15 18:09:55 +01:00
index.html ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
pages.js ui: Create Routing Configurations route and page (#10835) 2021-08-16 12:04:04 -04:00
steps.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
test-helper.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00