When user clicks reset button on dashboard (in docker installation), the static resources like image, js and css gets deleted under videos folder. This result into broken UI. Fix provided by ensuring static resources are available after reset or cleanup
Description
refactored the code which copies static resources into videos folder so that it can be used. Named the method as ensureStaticResourcesExists.
Called ensureStaticResourcesExists inside cleanUpFiles.
Motivation and Context
This keeps the dashboard not broken.
How Has This Been Tested?
To ensure code is not having compilation error - used maven clean compile
Not able to test with mvn test due to not having account in testing platforms.
Built docker image using mvn clean install -DskipTests -Pbuild-docker-image
Pushed into internal docker registry
Used the image run helm chart.
Application came up successfully.
Tried reset and cleanup - UI did not break.
SSH into the container and deleted ~/videos/js folder and clicked reset on dashboard which created the js directory again.
Types of changes
[ x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
When user clicks reset button on dashboard (in docker installation), the static resources like image, js and css gets deleted under videos folder. This result into broken UI. Fix provided by ensuring static resources are available after reset or cleanup
Description
refactored the code which copies static resources into videos folder so that it can be used. Named the method as ensureStaticResourcesExists. Called ensureStaticResourcesExists inside cleanUpFiles.
Motivation and Context
This keeps the dashboard not broken.
How Has This Been Tested?
To ensure code is not having compilation error - used
maven clean compile
Not able to test withmvn test
due to not having account in testing platforms. Built docker image usingmvn clean install -DskipTests -Pbuild-docker-image
Pushed into internal docker registry Used the image run helm chart. Application came up successfully. Tried reset and cleanup - UI did not break. SSH into the container and deleted ~/videos/js folder and clicked reset on dashboard which created the js directory again.Types of changes
Checklist: