Browse Source

Fix typos across repo (#18654)

Marcos Gaeta 4 years ago
parent
commit
8198389eb5

+ 1 - 1
conftest.py

@@ -15,7 +15,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
 def pytest_configure(config):
     import warnings
 
-    # XXX(dramer): Kombu throws a warning due to transaction.commit_manually
+    # XXX(dcramer): Kombu throws a warning due to transaction.commit_manually
     # being used
     warnings.filterwarnings("error", "", Warning, r"^(?!(|kombu|raven|sentry))")
 

+ 1 - 1
src/sentry/api/bases/organizationissues.py

@@ -14,7 +14,7 @@ ERR_INVALID_STATS_PERIOD = "Invalid stats_period. Valid choices are '', '24h', a
 
 class OrganizationIssuesEndpoint(OrganizationMemberEndpoint, EnvironmentMixin):
     def get_queryset(self, request, organization, member, project_list):
-        # Must return a 'sorty_by' selector for pagination that is a datetime
+        # Must return a 'sort_by' selector for pagination that is a datetime
         return Group.objects.none()
 
     def get(self, request, organization, member):

+ 1 - 1
src/sentry/api/endpoints/project_stats.py

@@ -11,7 +11,7 @@ from sentry.utils.data_filters import FILTER_STAT_KEYS_TO_VALUES
 from sentry.utils.apidocs import scenario, attach_scenarios
 
 
-@scenario("RetrieveEventCountsProjcet")
+@scenario("RetrieveEventCountsProject")
 def retrieve_event_counts_project(runner):
     runner.request(
         method="GET", path="/projects/%s/%s/stats/" % (runner.org.slug, runner.default_project.slug)

+ 1 - 1
src/sentry/api/serializers/models/group.py

@@ -253,7 +253,7 @@ class GroupSerializerBase(Serializer):
         # should only have 1 org at this point
         organization_id = organization_id_list[0]
 
-        # find all the integration installss that have issue tracking
+        # find all the integration installs that have issue tracking
         for integration in Integration.objects.filter(organizations=organization_id):
             if not (
                 integration.has_feature(IntegrationFeatures.ISSUE_BASIC)

+ 1 - 1
src/sentry/auth/access.py

@@ -172,7 +172,7 @@ class BaseAccess(object):
 
 class Access(BaseAccess):
     # TODO(dcramer): this is still a little gross, and ideally backend access
-    # would be based on the same scopes as API access so theres clarity in
+    # would be based on the same scopes as API access so there's clarity in
     # what things mean
     def __init__(
         self,

+ 4 - 4
src/sentry/auth/providers/github/constants.py

@@ -11,18 +11,18 @@ REQUIRE_VERIFIED_EMAIL = getattr(settings, "GITHUB_REQUIRE_VERIFIED_EMAIL", Fals
 ERR_NO_ORG_ACCESS = "You do not have access to the required GitHub organization."
 
 ERR_NO_PRIMARY_EMAIL = (
-    "We were unable to find a primary email address associated with your GitHub acount."
+    "We were unable to find a primary email address associated with your GitHub account."
 )
 
 ERR_NO_SINGLE_PRIMARY_EMAIL = (
-    "We were unable to find a single primary email address associated with your GitHub acount."
+    "We were unable to find a single primary email address associated with your GitHub account."
 )
 
 ERR_NO_VERIFIED_PRIMARY_EMAIL = (
-    "We were unable to find a verified, primary email address associated with your GitHub acount."
+    "We were unable to find a verified, primary email address associated with your GitHub account."
 )
 
-ERR_NO_SINGLE_VERIFIED_PRIMARY_EMAIL = "We were unable to find a single verified, primary email address associated with your GitHub acount."
+ERR_NO_SINGLE_VERIFIED_PRIMARY_EMAIL = "We were unable to find a single verified, primary email address associated with your GitHub account."
 
 # we request repo as we share scopes with the other GitHub integration
 SCOPE = "user:email,read:org,repo"

+ 1 - 1
src/sentry/db/models/base.py

@@ -54,7 +54,7 @@ class BaseModel(models.Model):
         return d
 
     def __hash__(self):
-        # Django decided that it shouldnt let us hash objects even though they have
+        # Django decided that it shouldn't let us hash objects even though they have
         # memory addresses. We need that behavior, so let's revert.
         if self.pk:
             return models.Model.__hash__(self)

+ 1 - 1
src/sentry/event_manager.py

@@ -1337,7 +1337,7 @@ def _find_hashes(project, hash_list):
 @metrics.wraps("event_manager.save_transactions.materialize_event_metrics")
 def _materialize_event_metrics(jobs):
     for job in jobs:
-        # Enusre the _metrics key exists. This is usually created during
+        # Ensure the _metrics key exists. This is usually created during
         # and prefilled with ingestion sizes.
         event_metrics = job["event"].data.get("_metrics") or {}
         job["event"].data["_metrics"] = event_metrics

+ 1 - 1
src/sentry/eventstore/base.py

@@ -19,7 +19,7 @@ class Filter(object):
     conditions (Sequence[Sequence[str, str, Any]]): List of conditions to fetch - default None
     having (Sequence[str, str, Any]]): List of having conditions to filter by - default None
     project_ids (Sequence[int]): List of project IDs to fetch - default None
-    group_ids (Sequence[int]): List of group IDs to fetch - defualt None
+    group_ids (Sequence[int]): List of group IDs to fetch - default None
     event_ids (Sequence[int]): List of event IDs to fetch - default None
 
     selected_columns (Sequence[str]): List of columns to select

+ 2 - 2
src/sentry/eventstore/utils.py

@@ -28,9 +28,9 @@ def callback_func(context, method, callargs, backends, results):
     if backends == ["snuba", "snuba_discover"]:
         if method in get_by_id_methods:
             snuba_result = results[0].result()
-            snuba_discover_reuslt = results[1].result()
+            snuba_discover_result = results[1].result()
 
-            if snuba_result != snuba_discover_reuslt:
+            if snuba_result != snuba_discover_result:
                 logger.info(
                     "discover.result-mismatch",
                     extra={

Some files were not shown because too many files changed in this diff