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

dest: switch UI and alertlog from type/val to dest #4013

Merged
merged 31 commits into from
Jul 29, 2024

Conversation

mastercactapus
Copy link
Member

Description:

  • Switch alert log to use dest registry and sqlc
  • move UI away from targets to dest where appropriate

- Refactored notification handling using nfydest package for cleaner code and enhanced modularity.
- Added SQL queries and methods in gadb for fetching notification channel and callback types.
- Removed old methods for lookup and migrated logic to use new nfydest registry.
- Improved error handling and parsing of channel IDs for better reliability.
- Deleted redundant SQL statements for notification channels validation and retrieval.
- Extracted Twilio SMS and Voice logic into separate packages
- Removed redundant validation and display logic
- Centralized phone number validation in Twilio package
- Register Twilio SMS and Voice providers during app startup
- Refactor Twilio destination type references in GraphQL compat file
- Refactored to use `email` package for Email notifications
- Registered `email.NewSender` in the destination registry
- Removed redundant SMTP destination handling from GraphQL logic
- Centralized email validation and display logic in the new provider
- Bumped version in package.json and yarn.lock
- Improved compatibility and included updates to dependencies
This reverts commit cb41d11.
- Consolidate destination lookups into a single method
- Replace type-specific lookups with destination-based lookups
- Simplify classifier assignment by using registry-based type info
- Update dependencies and initialization to support new structure
- Added notification channel store to integration key store initialization
- Updated SQL queries to use destination instead of type
- Removed deprecated IntKeyEnsureChannel method
- Adjusted `setActionChannels` method to validate dynamic actions
- Replace hardcoded type names with dynamic lookup
- Add error handling for type and display info lookups
- Improve error logging context for better debugging
- Upgrade jest-playwright-preset and @playwright/test dependencies
- Bumped Storybook packages to 8.2.5 for new features and fixes
- Updated mockServiceWorker.js and msw dependencies to 2.3.2
- Added 'fn' usage in story for better test function handling
- Adjusted yarn.lock for new package versions and resolutions
- Cleans up unnecessary data fetching
- Improves query performance and clarity
- Replace `targets` with `actions` in AdminServiceMetrics
- Update AdminServiceTable to reflect new `actions` type
- Modify useServiceMetrics and useServices for `actions`
- Consolidate target types rendering logic
- Refactor AlertDetails to use new renderChipsDest function
- Update GraphQL query to reflect new action structure with displayInfo
- Improve code readability and maintainability
- Removed unused imports and dependencies
- Simplified props and local functions
- Streamlined renderTargets function with fewer dependencies
Forfold
Forfold previously approved these changes Jul 24, 2024
- Change triggers to execute after update instead of before
- Add conditions to trigger only when type or value changes
- Update schema file to reflect these changes
@mastercactapus mastercactapus merged commit e2e14ce into master Jul 29, 2024
7 checks passed
@mastercactapus mastercactapus deleted the notif-chan-type-dest branch July 29, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants