Skip to content

Commit

Permalink
Delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
supersven committed Feb 8, 2023
1 parent 77359f5 commit 5a07e3c
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions services/galley/src/Galley/API/Public.hs
Original file line number Diff line number Diff line change
Expand Up @@ -105,46 +105,6 @@ continueE h = continue (interpretServerEffects @ErrorEffects . h)

sitemap :: Routes ApiBuilder (Sem GalleyEffects) ()
sitemap = do
-- get "/teams/notifications" (continueE Teams.getTeamNotificationsH) $
-- zauthUserId
-- .&. opt (query "since")
-- .&. def (unsafeRange 1000) (query "size")
-- .&. accept "application" "json"
-- document "GET" "getTeamNotifications" $ do
-- summary "Read recently added team members from team queue"
-- notes
-- "This is a work-around for scalability issues with gundeck user event fan-out. \
-- \It does not track all team-wide events, but only `member-join`.\
-- \\n\
-- \Note that `/teams/notifications` behaves different from `/notifications`:\
-- \\n\
-- \- If there is a gap between the notification id requested with `since` and the \
-- \available data, team queues respond with 200 and the data that could be found. \
-- \The do NOT respond with status 404, but valid data in the body.\
-- \\n\
-- \- The notification with the id given via `since` is included in the \
-- \response if it exists. You should remove this and only use it to decide whether \
-- \there was a gap between your last request and this one.\
-- \\n\
-- \- If the notification id does *not* exist, you get the more recent events from the queue \
-- \(instead of all of them). This can be done because a notification id is a UUIDv1, which \
-- \is essentially a time stamp.\
-- \\n\
-- \- There is no corresponding `/last` end-point to get only the most recent event. \
-- \That end-point was only useful to avoid having to pull the entire queue. In team \
-- \queues, if you have never requested the queue before and \
-- \have no prior notification id, just pull with timestamp 'now'."
-- parameter Query "since" bytes' $ do
-- optional
-- description "Notification id to start with in the response (UUIDv1)"
-- parameter Query "size" (int32 (Swagger.def 1000)) $ do
-- optional
-- description "Maximum number of events to return (1..10000; default: 1000)"
-- returns (ref Public.modelNotificationList)
-- response 200 "List of team notifications" end
-- errorSResponse @'TeamNotFound
-- errorResponse Error.invalidTeamNotificationId

-- Bot API ------------------------------------------------------------

get "/bot/conversation" (continueE (getBotConversationH @Cassandra)) $
Expand Down

0 comments on commit 5a07e3c

Please sign in to comment.