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

engine/signal: Add signal manager module and support for sending signal messages #3975

Merged
merged 14 commits into from
Jul 9, 2024

Conversation

mastercactapus
Copy link
Member

Description:
It adds the signal manager, which adds pending signals to the outgoing messages queue and supports sending signals to Slack.

- Introduced SignalManager to handle outgoing status updates
- Added new processing lock type and enum 'signals'
- Updated database schema with new signal module migrations
- Implemented signal message types and related notification changes
- Added SQL queries for handling pending signals operations
- Updated `cm_type_val_to_dest` and `nc_type_val_to_dest` functions to use underscore naming for JSON keys.
- Added migrations to update existing records to the new format.
- Created triggers for backward compatibility during insert operations.
- Implement fetching signal message parameters from the database
- Update sendMessage to handle SignalMessage type with UUID parsing and JSON unmarshalling
- Add migration to enum type for signal_message
- Update field naming conventions to use underscores for better consistency
- Create smoke tests for Signal message functionality
- Renamed `phone-number` to `phone_number` for consistency
- Updated `webhook-url` to `webhook_url`
- Incremented message processing lock version to 10
- Added migration to update processing version in DB
- Renamed existing migrations for clarity
- Updated comment to better describe the purpose of SignalMessage struct.
- Added `MessageTypeSignalMessage` with the lowest priority (99) in the message priority map.
@github-actions github-actions bot added the size/l label Jul 9, 2024
Renamed to better reflect the role of scheduling outgoing signals.
- Added descriptions to SQL queries to enhance readability
- Introduced 'signal_message' type to message enums
- Provided documentation for query-related Go functions
@mastercactapus mastercactapus merged commit d6ea15f into master Jul 9, 2024
7 checks passed
@mastercactapus mastercactapus deleted the signal-module branch July 9, 2024 20:44
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