Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple stacks per network in Dashboard #3162

Merged
merged 73 commits into from
Aug 18, 2024

Conversation

0oM4R
Copy link
Contributor

@0oM4R 0oM4R commented Jul 24, 2024

Description

Support serviceUrlManager in Dashboard
image

Changes

  • Update build-env script

    • replace the dist dir with dist: this will allow us to run the script outside the public directory
    • add the needed logic to pares the string of urls separated **comma** to an array and return it to config file.
    • return SERVICENAME_STACKS as array and the SERVICENAME_URL will set by the setGlobalEnv later
  • fix logger error cannot connect before intialization

  • update config.ts:

    • add setGlobalEnv that uses the serviceUrlManager to pick the available stack for each service based on the provided urls array in config.js
    • Make the components that use clients/index.ts loaded with defineAsyncComponent
  • update global-component:

    • to include stacks arrays and $$showMonitorError
  • add wrapper component that wrap the app.vue to make sure we hide the app until all services are connected

  • UI : show error message with services status if any of them failed as shown in provided pic

Related Issues

Documentation PR

For UI changes, Please provide the Documetation PR on info_grid

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

0oM4R added 30 commits July 18, 2024 00:27
  - sendGetRequest to sendRequest and use fetch instead of axios.
  - replace serviceUrl and serviceName with getters
  - add update method that uses URL setter
  - Make all IServiceBase classes take an optional options on their contractor, add error handling for side effect
  -  Grouped all RMB properties to RMB to RMBProps
- Feat:
 - add stats monitor class that monitors stats service
 - add activation monitor class  that monitor activation service
it is class managing service URLs with liveness checking <pick the first reachable endpoint for each service>

- Define retries and silent mode settings
- Implement constructor to handle StackManagerOptions
- Add private handleErrorsOnSilentMode method for error handling based on silent mode
- Implement getAvailableStack method to find reachable service URL
- Implement getAvailableServicesStack method to fetch and store available service URLs for all services
…urn undefined or emptystring

remove debug lines
- change naming
- remove error on get url and return empty string in case the url is not set yet
- add errror handling in isAlive, will throw in case the service url is not set
- add Monitor elements in html
- define services classes and showMonitorErrors
- implement showMonitorErrors that change loader dom to show monitor results
support defineAsyncComponent and use it for some components
add setGlobalEnv that check all services stacks and set the available url in env
Support Monitroinng on application
…tech/tfgrid-sdk-ts into development_monitoring__stacks_ui
…tech/tfgrid-sdk-ts into development_monitoring__stacks_ui
Base automatically changed from development_monitoring__stacks to development August 11, 2024 11:02
0oM4R added 3 commits August 13, 2024 18:04
…tech/tfgrid-sdk-ts into development_monitoring__stacks_ui
…oldtech/tfgrid-sdk-ts into development_monitoring__stacks_ui
@0oM4R 0oM4R changed the title Development monitoring stacks UI Support multiple stacks ber network in Dashboard Aug 13, 2024
@amiraabouhadid amiraabouhadid changed the title Support multiple stacks ber network in Dashboard Support multiple stacks per network in Dashboard Aug 14, 2024
Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please mention in the docs the URLs can be a single URL or more separated by a comma

@0oM4R 0oM4R requested a review from AhmedHanafy725 August 18, 2024 11:07
@0oM4R 0oM4R merged commit 28e17de into development Aug 18, 2024
10 checks passed
@0oM4R 0oM4R deleted the development_monitoring__stacks_ui branch August 18, 2024 12:32
@xmonader xmonader added this to the 2.6.0 milestone Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants