-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 * 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 * feat(state): add tests * feat(state): wrap the subscrition handler to allow they can unsubscribed when the plugin stops - Remove console.log - Dispatch new values when remove from the state containers * fix(state): enhance README.md examples * Apply suggestions from code review Co-authored-by: Guido Modarelli <[email protected]> * fix(state): typos * fix(state): minor fixes * fix(state): unsubscribe from state container * fix: upgrade react-cookie dependency to remove vulnerability in package * Apply suggestions from code review Co-authored-by: Guido Modarelli <[email protected]> * fix(state): lint and prettier * fix(state): lint and prettier * fix(core): dependencies * fix(settings): improve types for SettingsComponent props * fix(eslint): disable unicorn/no-static-only-class rule * fix(types): improve type annotations for decoratorCheckIsEnabled callback function in index-patterns.ts * fix(eslint): remove redundant eslint directive for unicorn/no-static-only-class in app-state.js * fix(types): set default type parameters for State and LifecycleService interfaces in state and services types files * fix(eslint): remove unnecessary eslint directive for unicorn/no-static-only-class in wz-api-check.js * fix(eslint): add consistent-function-scoping rule to enforce function scoping standards across the project * fix(eslint): replace Promise.reject with throw for error handling in wz-api-check.js to improve code readability and flow * fix(eslint): update type definition for WrappedComponent in createHOCs for better clarity and type safety in creator.tsx * fix(types): update remove method type in StateContainer for improved type safety in state management functionalities * fix(types): update createHooks to handle optional updater$ for better robustness in state management functionality * fix(logging): improve error handling by explicitly casting error to Error for better clarity in data source alerts handling * fix(logging): enhance error logging by explicitly casting to Error for clearer messages in server host cluster info handling * fix(types): improve typing for set method and enhance error logging clarity with explicit Error casting in server host state management * fix: optimizing error due to usage of number separator * feat(state): replace state getters in http server * feat(state): enhance state containers emitting the errors * feat(state): enhance types * fix: typo * fix(initialization): get username in user endpoint --------- Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Guido Modarelli <[email protected]>
- Loading branch information
1 parent
09dd139
commit 4aa5ab8
Showing
24 changed files
with
1,492 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.