Aman Agrawal
f40855bad2
reminder: Remove feature from zulip.
...
This is being removed to make the code simpler. We have plans
to add it as a feature in the future , but it will most likely
not use the same code.
2023-04-28 17:25:00 -07:00
Aman Agrawal
d60d6e9115
urls: Add new endpoint to create scheduled messages.
...
This will help us remove scheduled message and reminder logic
from `/messages` code path.
Removes `deliver_at`/`defer_until` and `tz_guess` parameters. And
adds the `scheduled_delivery_timestamp` instead. Also updates the
scheduled message dicts to return `scheduled_delivery_timestamp`.
Also, revises some text in `/delete-scheduled-message` endpoint
and in the `ScheduledMessage` schema in the API documentation.
2023-04-28 17:25:00 -07:00
Aman Agrawal
4718eaa213
scheduled_messages: Extract method to get undelivered scheduled messages.
...
This also changes key for `ID` of scheduled message from `message_id`
to `scheduled_message_id`.
2023-04-28 17:25:00 -07:00
Aman Agrawal
4cb238fb6e
models: Add method to convert ScheduleMessage objects into dicts.
2023-04-28 17:25:00 -07:00
Aman Agrawal
963fe566d7
scheduled_messages: Use scheduled_message_id instead of message_id.
...
Using `message_id` can be confusing for API users since it can be
mistaken for the ID of the message that will be sent.
2023-04-28 17:25:00 -07:00
Aman Agrawal
7bf0793c94
scheduled_messages: Move database related function to /actions.
...
This would match the pattern we use for other modules and also
shrink the giant message_send.py.
2023-04-28 17:25:00 -07:00
Aman Agrawal
a06f3d26d0
scheduled_messages: Add endpoints to fetch and delete them.
2023-04-14 17:38:37 -07:00