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

Add frontend state service #7037

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Sep 30, 2024

  1. feat(state): create state core service

    - Create state service based on AppState from main plugin
    - Create state containers
      - server_host
      - server_host_cluster_info
      - data_source_alerts
    - Add documentation for state service
    Desvelao committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c289b6b View commit details
    Browse the repository at this point in the history
  2. chore: remove unused methods and no-effect functions

    - Remove unused methods:
      - AppState.setCreatedAt
      - AppState.getCreatedAt
      - AppState.getAPISelector
      - AppState.getPatternSelector
      - AppState.setPatternSelector (no-effect)
    
    - Remove usage of AppState.setPatternSelector because this has no
      effect in the current application
    Desvelao committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4328609 View commit details
    Browse the repository at this point in the history
  3. feat(state): add tests

    Desvelao committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    bf5a9ab View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. feat(state): wrap the subscrition handler to allow they can unsubscri…

    …bed when the plugin stops
    
    - Remove console.log
    - Dispatch new values when remove from the state containers
    Desvelao committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    f2e54f6 View commit details
    Browse the repository at this point in the history