Skip to content

Commit

Permalink
Adds ToDo deprecate comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedetefy committed Dec 15, 2021
1 parent ea91cb5 commit c63d830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snuba/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ def handle_subscription_error(exception: InvalidSubscriptionError) -> Response:


@application.route("/<dataset:dataset>/<entity:entity>/subscriptions", methods=["POST"])
# ToDo(ahmed): Deprecate this endpoint
@application.route("/<dataset:dataset>/subscriptions", methods=["POST"])
@util.time_request("subscription")
def create_subscription(
Expand Down Expand Up @@ -491,6 +492,7 @@ def create_subscription(
"/<dataset:dataset>/<entity:entity>/subscriptions/<int:partition>/<key>",
methods=["DELETE"],
)
# ToDo(ahmed): Deprecate this endpoint
@application.route(
"/<dataset:dataset>/subscriptions/<int:partition>/<key>", methods=["DELETE"]
)
Expand Down

0 comments on commit c63d830

Please sign in to comment.