Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EAS-2419 Added rejected_by_api_key_id column to broadcast_message tab…
…le (#181) * Added migration version for new broadcast_message rejection columns * Fixed value too long error * Updated broadcast_message model to include rejection columns * Added rejected_at & rejected_by attributes to BroadcastMessage model * Added rejection_reason attribute to update_broadcast_message_status_schema * Sourcing rejection_reason from request for updating broadcast message * Added logic for rejection status in update_broadcast_message_status * Added rejected_at column to table * Added two new routes & functions for retrieving broadcast messages and messages with user joins * Renamed migration version * Added test for updated update_status function * Updated endpoints * Added sample user and service for tests * Added tests * Added rest tests * Adjusted test * Adjusted tests to add more assertions * Added detail to dao functions * Renamed revision * Swapped the endpoint urls * Updated migration version * Created new update status function for accepting rejection reason * Created new tests for new updated status function * Revised migration version * Removed irrelevant assertion from test * Adjusted error response text * Added foreign key contraint for rejected_by_id * Changing utils source to commit to verify utils fix * Reverting utils source * Added rejected_by_api_key_id field that's updated with api key rejection * Added rejected_by_api_key_id to serialize method for admin
- Loading branch information