Skip to content

Commit 9caa542

Browse files
authored
meta(crons): Fix typos in endpoint comments (#58123)
Fix typos in comments in endpoints
1 parent a2eb8de commit 9caa542

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/sentry/monitors/endpoints/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ProjectMonitorPermission(ProjectPermission):
4242

4343
class MonitorEndpoint(Endpoint):
4444
"""
45-
Base endpoint class for monitors which will lookup the monitor and
45+
Base endpoint class for monitors which will look up the monitor and
4646
convert it to a Monitor object.
4747
4848
[!!]: This base endpoint is NOT used for legacy ingestion endpoints, see
@@ -180,7 +180,7 @@ def convert_args(
180180
# create this monitor, we can't raise an error in that case
181181
if not self.allow_auto_create_monitors:
182182
# This error is a bit confusing, because this may also mean
183-
# that we've failed to lookup their monitor by slug.
183+
# that we've failed to look up their monitor by slug.
184184
raise ParameterValidationError("Invalid monitor UUID")
185185

186186
if not monitor and not self.allow_auto_create_monitors:

src/sentry/monitors/endpoints/monitor_ingest_checkin_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def post(
118118
result = checkin_validator.validated_data
119119

120120
# MonitorEnvironment.ensure_environment handles empty environments, but
121-
# we don't wan to call that before the rate limit, for the rate limit
121+
# we don't want to call that before the rate limit, for the rate limit
122122
# key we don't care as much about a user not sending an environment, so
123123
# let's be explicit about it not being production
124124
env_rate_limit_key = result.get("environment", "-")
@@ -224,7 +224,7 @@ def post(
224224
return self.respond({"id": str(checkin.guid)}, status=201)
225225

226226
response = self.respond(serialize(checkin, request.user), status=201)
227-
# TODO(dcramer): this should return a single aboslute uri, aka ALWAYS including org domains if enabled
227+
# TODO(dcramer): this should return a single absolute uri, aka ALWAYS including org domains if enabled
228228
# TODO(dcramer): both of these are patterns that we should make easier to accomplish in other endpoints
229229
response["Link"] = self.build_link_header(request, "checkins/latest/", rel="latest")
230230
response["Location"] = request.build_absolute_uri(f"checkins/{checkin.guid}/")

src/sentry/monitors/endpoints/organization_monitor_index_stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class OrganizationMonitorIndexStatsEndpoint(OrganizationEndpoint, StatsMixin):
3636

3737
# TODO(epurkhiser): probably convert to snuba
3838
def get(self, request: Request, organization) -> Response:
39-
# Do not restirct rollups allowing us to define custom resolutions.
39+
# Do not restrict rollups allowing us to define custom resolutions.
4040
# Important for this endpoint since we want our buckets to align with
41-
# the UI's time scale markers.
41+
# the UI's timescale markers.
4242
args = self._parse_args(request, restrict_rollups=False)
4343

4444
start = normalize_to_epoch(args["start"], args["rollup"])
@@ -71,7 +71,7 @@ def get(self, request: Request, organization) -> Response:
7171
if environments:
7272
check_ins = check_ins.filter(monitor_environment__environment__in=environments)
7373

74-
# Use postgres' `date_bin` to bucket rounded to our rolllups
74+
# Use postgres' `date_bin` to bucket rounded to our rollups
7575
bucket = Func(
7676
timedelta(seconds=args["rollup"]),
7777
"date_added",

src/sentry/monitors/endpoints/organization_monitor_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def get(self, request: Request, organization, project, monitor) -> Response:
6060
if environments:
6161
check_ins = check_ins.filter(monitor_environment__environment__in=environments)
6262

63-
# Use postgres' `date_bin` to bucket rounded to our rolllups
63+
# Use postgres' `date_bin` to bucket rounded to our rollups
6464
bucket = Func(
6565
timedelta(seconds=args["rollup"]),
6666
"date_added",

0 commit comments

Comments
 (0)