Strongbox: Boot screen should actually countdown the remaining seconds until reconnect

Created on 4 Mar 2020  路  5Comments  路  Source: strongbox/strongbox

Task Description

The strongbox/strongbox-web-ui can run independently from strongbox/strongbox during the development. When you start strongbox-web-ui via npm start or ng serve it becomes accessible at localhost:4200. When you hit that address you will see the "booting" screen which will try to connect to the backend at localhost:48080 so it can report on the booting progress.

Right now, if the UI cannot connect to the backend for some reason (i.e. it's down or is not ready to accept incoming requests) it will try to reconnect infinitely and will report a message saying how many seconds it will wait before retying.

image

We need to make a timer to update the message on every second so that it would report retrying in X-1 until it hits 0 or something interrupts the timer (like this.destroy$). This can be achieved using rxjs. Make sure to avoid memory leaks (i.e. use kill switch like takeUntil).

The main code for the booting screen is located in the boot-progress.service.ts

Useful Links

Help

  • Our chat
  • Points of contact:

    • @steve-todorov

UUX in progress

Most helpful comment

@steve-todorov , I think I solved the issue. I will ask to Andre to test. After that, we will submit the change.

All 5 comments

Hi, I'll try to solve this issue following the initial tip: "you can do it with rxjs (which is relatively the same as rxjava since your background is Java). Thanks!

Hi @rljoia, any update on this task? :)

Hi @steve-todorov ! I will start at this week. So many work on masters :-)

Thanks for the update! :)

@steve-todorov , I think I solved the issue. I will ask to Andre to test. After that, we will submit the change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carlspring picture carlspring  路  6Comments

carlspring picture carlspring  路  6Comments

sbespalov picture sbespalov  路  7Comments

carlspring picture carlspring  路  5Comments

sbespalov picture sbespalov  路  6Comments