We just upgraded from AWX 21.x to the latest 24.6.1 version. We deploy it as containers from the devel branch.
With that out of the way, we use comments in the “Extra variables” box to help users understand how to run the template/playbook and what other variables/options are available to them. We have people using AWX who are not developers, so these comments were a quick way for us to guide them on how to use the templates.
In this new version, the “Extra variables” box seems to not allow any comments in them at all. Is this potentially a bug? Or am I missing something, and I have to enable a setting somewhere?
I don’t know if there is an option to revert to the legacy UI, but if there isn’t, use a tagged version instead of the devel branch. The devel branch is under development and is not actual 24.6.1. If you use the old UI, the comments will be visible.
What would be the cleanest way to switch branches? I don’t want to have to re-import everything from backup jsons like before. Do I just need to run the make docker-compose command after I switch branches?
Attempt to recreate the UI using docker exec tools_awx_1 make clean-ui ui-devel
But I’m hitting an error in step 3 saying that: Attempted import error: ‘useRouteMatch’ is not exported from ‘react-router-dom’ (imported as ‘useRouteMatch’).
Googling this, it looks to be a react-router-dom v6 issue. I don’t know the first thing about how this is built… can I get help here please?
Hmm, I don’t have any experience building images for Docker-based deployments.
All the experience I have is with images for Kubernetes-based deployments.
I think, in doing research on it… It looks like a react package version issue (this react-router-dom). The syntax it’s complaining about is in respect to v6 but I see inside the container and in the package.json that we are installing v5.3.3 so something weird is happening
So I was able to fix my react issue by deleting a node_modules folder inside of the ui/src/ directory. This folder included the react-router-dom package pinned to version 6.
Anyways, I have it on 24…6.2 containerized build now but still seeing quite a bit of UI issues although my initial issue seems to kind of be resolved.
Okay, so I did a bunch of digging… When I switched from the devel branch to the tags/24.6.1, the crazy thing is that the inner ui/src folder did NOT switch branches. It looked to be stuck in its own repo actually and that’s why it had its own node_modules folder that was totally different from the node_modules that the ui/ had!! Crazy stuff!!
And to fix the UI issues mentioned just above, I destroyed my docker volume and started fresh. That seems to fix that up!