-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat(ex/skate/detours): add activated_at
column
#2910
base: main
Are you sure you want to change the base?
Conversation
activated_at
column
8253272
to
fc6cd74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, otherwise looks great!
priv/repo/async_migrations/20241218135700_backfill_detour_activated_at.exs
Show resolved
Hide resolved
priv/repo/async_migrations/20241218135700_backfill_detour_activated_at.exs
Show resolved
Hide resolved
@@ -81,6 +81,22 @@ defmodule SkateWeb.DetoursControllerTest do | |||
assert Skate.Repo.aggregate(Notifications.Db.Detour, :count) == 1 | |||
end | |||
|
|||
@tag :authenticated | |||
test "adds `activated_at` field when provided", %{conn: conn} do | |||
setup_notification_server() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far the notification server setup is only used for notification tests. Is there a reason the server is needed for this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not needed, thanks for catching this!!
fc6cd74ae62fbeb10f88788d5ca0ee719d668ef7..ebe052e5db79e714d76bac510240110a3d9d644e
#diff-6b5f7db841
fc6cd74
to
ebe052e
Compare
…t` field Also update factory to add new field
ebe052e
to
ca99c97
Compare
To be able to show the activated at time in various places within Skate, as well as for sorting, we need to start recording the time of activation for a detour.
This PR
Asana Ticket: https://app.asana.com/0/0/1208989312907929/f