Skip to content

Commit e9071c2

Browse files
authored
chore(api-idorslug): Updating More Comments to Reflect Support for organization_id_or_slug (#70569)
Some more comment changes en-masse. Should be the last of them.
1 parent afbae70 commit e9071c2

File tree

69 files changed

+106
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+106
-106
lines changed

src/sentry/api/endpoints/artifact_bundles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get(self, request: Request, project) -> Response:
6767
6868
Retrieve a list of artifact bundles for a given project.
6969
70-
:pparam string organization_slug: the id or slug of the organization the
70+
:pparam string organization_id_or_slug: the id or slug of the organization the
7171
artifact bundle belongs to.
7272
:pparam string project_id_or_slug: the id or slug of the project to list the
7373
artifact bundles of.
@@ -121,7 +121,7 @@ def delete(self, request: Request, project) -> Response:
121121
122122
Delete all artifacts inside given archive.
123123
124-
:pparam string organization_slug: the id or slug of the organization the
124+
:pparam string organization_id_or_slug: the id or slug of the organization the
125125
archive belongs to.
126126
:pparam string project_id_or_slug: the id or slug of the project to delete the
127127
archive of.

src/sentry/api/endpoints/artifact_lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get(self, request: Request, project: Project) -> Response:
104104
105105
Retrieve a list of individual artifacts or artifact bundles for a given project.
106106
107-
:pparam string organization_slug: the id or slug of the organization to query.
107+
:pparam string organization_id_or_slug: the id or slug of the organization to query.
108108
:pparam string project_id_or_slug: the id or slug of the project to query.
109109
:qparam string debug_id: if set, will query and return the artifact
110110
bundle that matches the given `debug_id`.

src/sentry/api/endpoints/codeowners/details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def put(self, request: Request, project: Project, codeowners: ProjectCodeOwners)
5858
Update a CodeOwners
5959
`````````````
6060
61-
:pparam string organization_slug: the id or slug of the organization.
61+
:pparam string organization_id_or_slug: the id or slug of the organization.
6262
:pparam string project_id_or_slug: the id or slug of the project to get.
6363
:pparam string codeowners_id: id of codeowners object
6464
:param string raw: the raw CODEOWNERS text

src/sentry/api/endpoints/codeowners/external_actor/user_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def put(
4848
Update an External User
4949
`````````````
5050
51-
:pparam string organization_slug: the id or slug of the organization the
51+
:pparam string organization_id_or_slug: the id or slug of the organization the
5252
user belongs to.
5353
:pparam int user_id: the User id.
5454
:pparam string external_user_id: id of external_user object

src/sentry/api/endpoints/codeowners/external_actor/user_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def post(self, request: Request, organization: Organization) -> Response:
2727
Create an External User
2828
`````````````
2929
30-
:pparam string organization_slug: the id or slug of the organization the
30+
:pparam string organization_id_or_slug: the id or slug of the organization the
3131
user belongs to.
3232
:param required string provider: enum("github", "gitlab", "slack")
3333
:param required string external_name: the associated username for this provider.

src/sentry/api/endpoints/codeowners/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def post(self, request: Request, project: Project) -> Response:
8888
Upload a CODEOWNERS for project
8989
`````````````
9090
91-
:pparam string organization_slug: the id or slug of the organization.
91+
:pparam string organization_id_or_slug: the id or slug of the organization.
9292
:pparam string project_id_or_slug: the id or slug of the project to get.
9393
:param string raw: the raw CODEOWNERS text
9494
:param string codeMappingId: id of the RepositoryProjectPathConfig object

src/sentry/api/endpoints/debug_files.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get(self, request: Request, project) -> Response:
157157
158158
Retrieve a list of associated releases for a given Proguard File.
159159
160-
:pparam string organization_slug: the id or slug of the organization the
160+
:pparam string organization_id_or_slug: the id or slug of the organization the
161161
file belongs to.
162162
:pparam string project_id_or_slug: the id or slug of the project to list the
163163
DIFs of.
@@ -227,7 +227,7 @@ def get(self, request: Request, project) -> Response:
227227
228228
Retrieve a list of debug information files for a given project.
229229
230-
:pparam string organization_slug: the id or slug of the organization the
230+
:pparam string organization_id_or_slug: the id or slug of the organization the
231231
file belongs to.
232232
:pparam string project_id_or_slug: the id or slug of the project to list the
233233
DIFs of.
@@ -312,7 +312,7 @@ def delete(self, request: Request, project: Project) -> Response:
312312
313313
Delete a debug information file for a given project.
314314
315-
:pparam string organization_slug: the id or slug of the organization the
315+
:pparam string organization_id_or_slug: the id or slug of the organization the
316316
file belongs to.
317317
:pparam string project_id_or_slug: the id or slug of the project to delete the
318318
DIF.
@@ -346,7 +346,7 @@ def post(self, request: Request, project) -> Response:
346346
contains the individual debug images. Uploading through this endpoint
347347
will create different files for the contained images.
348348
349-
:pparam string organization_slug: the id or slug of the organization the
349+
:pparam string organization_id_or_slug: the id or slug of the organization the
350350
release belongs to.
351351
:pparam string project_id_or_slug: the id or slug of the project to change the
352352
release of.
@@ -521,7 +521,7 @@ def get(self, request: Request, project) -> Response:
521521
522522
Retrieve a list of source map archives (releases, later bundles) for a given project.
523523
524-
:pparam string organization_slug: the id or slug of the organization the
524+
:pparam string organization_id_or_slug: the id or slug of the organization the
525525
source map archive belongs to.
526526
:pparam string project_id_or_slug: the id or slug of the project to list the
527527
source map archives of.
@@ -585,7 +585,7 @@ def delete(self, request: Request, project) -> Response:
585585
586586
Delete all artifacts inside given archive.
587587
588-
:pparam string organization_slug: the id or slug of the organization the
588+
:pparam string organization_id_or_slug: the id or slug of the organization the
589589
archive belongs to.
590590
:pparam string project_id_or_slug: the id or slug of the project to delete the
591591
archive of.

src/sentry/api/endpoints/event_attachment_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get(self, request: Request, project, event_id, attachment_id) -> Response:
7878
Retrieve an Attachment
7979
``````````````````````
8080
81-
:pparam string organization_slug: the id or slug of the organization the
81+
:pparam string organization_id_or_slug: the id or slug of the organization the
8282
issues belong to.
8383
:pparam string project_id_or_slug: the id or slug of the project the event
8484
belongs to.

src/sentry/api/endpoints/event_attachments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get(self, request: Request, project, event_id) -> Response:
2424
Retrieve attachments for an event
2525
`````````````````````````````````
2626
27-
:pparam string organization_slug: the id or slug of the organization the
27+
:pparam string organization_id_or_slug: the id or slug of the organization the
2828
issues belong to.
2929
:pparam string project_id_or_slug: the id or slug of the project the event
3030
belongs to.

src/sentry/api/endpoints/event_reprocessable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get(self, request: Request, project, event_id) -> Response:
4848
* `attachment.not_found`: A required attachment, such as the original
4949
minidump, is missing.
5050
51-
:pparam string organization_slug: the id or slug of the organization the
51+
:pparam string organization_id_or_slug: the id or slug of the organization the
5252
issues belong to.
5353
:pparam string project_id_or_slug: the id or slug of the project the event
5454
belongs to.

src/sentry/api/endpoints/filechange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get(self, request: Request, organization, version) -> Response:
2929
3030
Retrieve a list of files that were changed in a given release's commits.
3131
32-
:pparam string organization_slug: the id or slug of the organization the
32+
:pparam string organization_id_or_slug: the id or slug of the organization the
3333
release belongs to.
3434
:pparam string version: the version identifier of the release.
3535

src/sentry/api/endpoints/group_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get(self, request: Request, group) -> Response:
136136
the issue (title, last seen, first seen), some overall numbers (number
137137
of comments, user reports) as well as the summarized event data.
138138
139-
:pparam string organization_slug: The slug of the organization.
139+
:pparam string organization_id_or_slug: The slug of the organization.
140140
:pparam string issue_id: the ID of the issue to retrieve.
141141
:auth: required
142142
"""

src/sentry/api/endpoints/group_tombstone_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def delete(self, request: Request, project, tombstone_id) -> Response:
2525
Undiscards a group such that new events in that group will be captured.
2626
This does not restore any previous data.
2727
28-
:pparam string organization_slug: the id or slug of the organization.
28+
:pparam string organization_id_or_slug: the id or slug of the organization.
2929
:pparam string project_id_or_slug: the id or slug of the project to which this tombstone belongs.
3030
:pparam string tombstone_id: the ID of the tombstone to remove.
3131
:auth: required

src/sentry/api/endpoints/organization_api_key_details.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get(self, request: Request, organization_context, organization, api_key_id)
3636
Retrieves API Key details
3737
`````````````````````````
3838
39-
:pparam string organization_slug: the id or slug of the organization the
39+
:pparam string organization_id_or_slug: the id or slug of the organization the
4040
team belongs to.
4141
:pparam string api_key_id: the ID of the api key to delete
4242
:auth: required
@@ -53,7 +53,7 @@ def put(self, request: Request, organization_context, organization, api_key_id)
5353
Update an API Key
5454
`````````````````
5555
56-
:pparam string organization_slug: the id or slug of the organization the
56+
:pparam string organization_id_or_slug: the id or slug of the organization the
5757
team belongs to.
5858
:pparam string api_key_id: the ID of the api key to delete
5959
:param string label: the new label for the api key
@@ -89,7 +89,7 @@ def delete(self, request: Request, organization_context, organization, api_key_i
8989
Deletes an API Key
9090
``````````````````
9191
92-
:pparam string organization_slug: the id or slug of the organization the
92+
:pparam string organization_id_or_slug: the id or slug of the organization the
9393
team belongs to.
9494
:pparam string api_key_id: the ID of the api key to delete
9595
:auth: required

src/sentry/api/endpoints/organization_api_key_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get(self, request: Request, organization_context, organization) -> Response:
3030
List an Organization's API Keys
3131
```````````````````````````````````
3232
33-
:pparam string organization_slug: the organization short name
33+
:pparam string organization_id_or_slug: the id or slug of the organization
3434
:auth: required
3535
"""
3636
queryset = sorted(
@@ -44,7 +44,7 @@ def post(self, request: Request, organization_context, organization) -> Response
4444
Create an Organization API Key
4545
```````````````````````````````````
4646
47-
:pparam string organization_slug: the organization short name
47+
:pparam string organization_id_or_slug: the id or slug of the organization
4848
:auth: required
4949
"""
5050
key = ApiKey.objects.create(organization_id=organization.id, scope_list=DEFAULT_SCOPES)

src/sentry/api/endpoints/organization_auth_provider_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get(self, request: Request, organization: Organization) -> Response:
2626
currently installed auth_provider
2727
``````````````````````````````````````````````````````
2828
29-
:pparam string organization_slug: the organization short name
29+
:pparam string organization_id_or_slug: the id or slug of the organization
3030
:auth: required
3131
"""
3232
auth_provider = auth_service.get_auth_provider(organization_id=organization.id)

src/sentry/api/endpoints/organization_auth_providers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get(self, request: Request, organization) -> Response:
2222
List available auth providers that are available to use for an Organization
2323
```````````````````````````````````````````````````````````````````````````
2424
25-
:pparam string organization_slug: the organization short name
25+
:pparam string organization_id_or_slug: the id or slug of the organization
2626
:auth: required
2727
"""
2828
provider_list = []

src/sentry/api/endpoints/organization_code_mapping_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def put(self, request: Request, config_id, organization, config) -> Response:
5050
Update a repository project path config
5151
``````````````````
5252
53-
:pparam string organization_slug: the id or slug of the organization the
53+
:pparam string organization_id_or_slug: the id or slug of the organization the
5454
team should be created for.
5555
:param int repository_id:
5656
:param int project_id:

src/sentry/api/endpoints/organization_code_mappings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get(self, request: Request, organization) -> Response:
141141
"""
142142
Get the list of repository project path configs
143143
144-
:pparam string organization_slug: the id or slug of the organization the
144+
:pparam string organization_id_or_slug: the id or slug of the organization the
145145
team should be created for.
146146
:qparam int integrationId: the optional integration id.
147147
:qparam int project: Optional. Pass "-1" to filter to 'all projects user has access to'. Omit to filter for 'all projects user is a member of'.
@@ -175,7 +175,7 @@ def post(self, request: Request, organization) -> Response:
175175
Create a new repository project path config
176176
``````````````````
177177
178-
:pparam string organization_slug: the id or slug of the organization the
178+
:pparam string organization_id_or_slug: the id or slug of the organization the
179179
team should be created for.
180180
:param int repositoryId:
181181
:param int projectId:

src/sentry/api/endpoints/organization_dashboards.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get(self, request: Request, organization) -> Response:
4949
If on the first page, this endpoint will also include any pre-built dashboards
5050
that haven't been replaced or removed.
5151
52-
:pparam string organization_slug: the id or slug of the organization the
52+
:pparam string organization_id_or_slug: the id or slug of the organization the
5353
dashboards belongs to.
5454
:qparam string query: the title of the dashboard being searched for.
5555
:auth: required
@@ -142,7 +142,7 @@ def post(self, request: Request, organization, retry=0) -> Response:
142142
``````````````````````````````````````````
143143
144144
Create a new dashboard for the given Organization
145-
:pparam string organization_slug: the id or slug of the organization the
145+
:pparam string organization_id_or_slug: the id or slug of the organization the
146146
dashboards belongs to.
147147
"""
148148
if not features.has("organizations:dashboards-edit", organization, actor=request.user):

src/sentry/api/endpoints/organization_details.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def get(self, request: Request, organization) -> Response:
555555
Return details on an individual organization including various details
556556
such as membership access, features, and teams.
557557
558-
:pparam string organization_slug: the id or slug of the organization the
558+
:pparam string organization_id_or_slug: the id or slug of the organization the
559559
team should be created for.
560560
:param string detailed: Specify '0' to retrieve details without projects and teams.
561561
:auth: required
@@ -581,7 +581,7 @@ def put(self, request: Request, organization) -> Response:
581581
Update various attributes and configurable settings for the given
582582
organization.
583583
584-
:pparam string organization_slug: the id or slug of the organization the
584+
:pparam string organization_id_or_slug: the id or slug of the organization the
585585
team should be created for.
586586
:param string name: an optional new name for the organization.
587587
:param string slug: an optional new slug for the organization. Needs
@@ -714,7 +714,7 @@ def delete(self, request: Request, organization) -> Response:
714714
However once deletion has begun the state of an organization changes and
715715
will be hidden from most public views.
716716
717-
:pparam string organization_slug: the id or slug of the organization the
717+
:pparam string organization_id_or_slug: the id or slug of the organization the
718718
team should be created for.
719719
:auth: required, user-context-needed
720720
"""

src/sentry/api/endpoints/organization_eventid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get(self, request: Request, organization, event_id) -> Response:
3535
3636
This resolves an event ID to the project slug and internal issue ID and internal event ID.
3737
38-
:pparam string organization_slug: the id or slug of the organization the
38+
:pparam string organization_id_or_slug: the id or slug of the organization the
3939
event ID should be looked up in.
4040
:param string event_id: the event ID to look up. validated by a
4141
regex in the URL.

src/sentry/api/endpoints/organization_issues_resolved_in_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get(self, request: Request, organization, version) -> Response:
2626
2727
Retrieve a list of issues to be resolved in a given release.
2828
29-
:pparam string organization_slug: the id or slug of the organization the
29+
:pparam string organization_id_or_slug: the id or slug of the organization the
3030
release belongs to.
3131
:pparam string version: the version identifier of the release.
3232
:auth: required

src/sentry/api/endpoints/organization_member/requests/invite/details.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def put(
9090
9191
Update and/or approve an invite request to an organization.
9292
93-
:pparam string organization_slug: the id or slug of the organization the member will belong to
93+
:pparam string organization_id_or_slug: the id or slug of the organization the member will belong to
9494
:param string member_id: the member ID
9595
:param boolean approve: allows the member to be invited
9696
:param string role: the suggested role of the new member
@@ -171,7 +171,7 @@ def delete(
171171
172172
Delete an invite request to an organization.
173173
174-
:pparam string organization_slug: the id or slug of the organization the member would belong to
174+
:pparam string organization_id_or_slug: the id or slug of the organization the member would belong to
175175
:param string member_id: the member ID
176176
177177
:auth: required

src/sentry/api/endpoints/organization_member/requests/invite/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def post(self, request: Request, organization) -> Response:
6161
6262
Creates an invite request given an email and suggested role / teams.
6363
64-
:pparam string organization_slug: the id or slug of the organization the member will belong to
64+
:pparam string organization_id_or_slug: the id or slug of the organization the member will belong to
6565
:param string email: the email address to invite
6666
:param string role: the suggested role of the new member
6767
:param string orgRole: the suggested org-role of the new member

0 commit comments

Comments
 (0)