integr8ly / tutorial-web-app

Solution Explorer provides the front door into the Integreatly initiative. It hosts the various Solution Patterns, as well as providing a dashboard of installed applications/products/services.
Apache License 2.0
36 stars 54 forks source link

APPDUX-251: Incorrect backup time written for midnight #600

Closed mfrances17 closed 4 years ago

mfrances17 commented 4 years ago

Motivation

https://issues.redhat.com/browse/APPDUX-251

What

Leading 0 was being added to 24hr time for midnight when writing daily backup times from the UI to the YAML (000:00 instead of 00:00).

Why

Bad algorithm needed to be fixed.

Verification Steps

  1. On the Settings > Managed Integration schedule tab, select 12:00 am from the Start time for your backups dropdown and click Save.

  2. View the rhmi-config YAML file and verify that the time is now saved as: applyOn: '00:00'

And is not saved as: applyOn: '000:00'

To view the YAML file:

  1. Select Project: redhat-rhmi-operator
  2. Click Home > Search
  3. Select Resources > RHMIConfig
  4. Click rhmi-config
  5. Select YAML tab. Scroll down to see the applyOn time.

Checklist:

Progress

Additional Notes

Can be tested live on my openshift cluster: https://console-openshift-console.apps.cluster-uxddev-916c.uxddev-916c.example.opentlc.com/

Or on any OS4 cluster using this solution explorer docker image: docker.io/mfrances17/tutorial-web-app:appdux-251

12am-settings

12am-rhmi-config