Skip to content

Commit

Permalink
chore(perf): Private threshold endpoints (#79370)
Browse files Browse the repository at this point in the history
It doesn't really make sense to make these public (one is just a very
specific project setting and the other is just used in the UI)
  • Loading branch information
shruthilayaj authored Oct 18, 2024
1 parent 97ed590 commit cf4c2cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_time_params(start: datetime, end: datetime) -> MappedParams:
@region_silo_endpoint
class OrganizationTransactionAnomalyDetectionEndpoint(OrganizationEventsEndpointBase):
publish_status = {
"GET": ApiPublishStatus.UNKNOWN,
"GET": ApiPublishStatus.PRIVATE,
}

def has_feature(self, organization, request):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def validate(self, data):
@region_silo_endpoint
class ProjectTransactionThresholdOverrideEndpoint(OrganizationEventsV2EndpointBase):
publish_status = {
"DELETE": ApiPublishStatus.UNKNOWN,
"GET": ApiPublishStatus.UNKNOWN,
"POST": ApiPublishStatus.UNKNOWN,
"DELETE": ApiPublishStatus.PRIVATE,
"GET": ApiPublishStatus.PRIVATE,
"POST": ApiPublishStatus.PRIVATE,
}
permission_classes = (ProjectTransactionThresholdOverridePermission,)

Expand Down

0 comments on commit cf4c2cd

Please sign in to comment.