Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PIE-1819] Documentation for Analytics REST API Suites#update and Suite#destroy #2251

Merged
merged 3 commits into from
Jun 28, 2023

Conversation

amybiyuliu
Copy link
Contributor

@amybiyuliu amybiyuliu commented Jun 26, 2023

Add documentation about test analytics Suites#update and Suite#destroy API endpoints

Suites#update:
Screenshot 2023-06-26 at 4 35 20 pm
Suite#destroy:

Screenshot 2023-06-26 at 4 38 34 pm

@buildkite-docs-bot
Copy link
Contributor

Preview URL: https://2251--bk-docs-preview.netlify.app

@amybiyuliu amybiyuliu force-pushed the pie-1819-docs-for-suitesupdate-and-suitedestroy branch from 5541e0d to db1ec94 Compare June 26, 2023 06:48
@amybiyuliu amybiyuliu marked this pull request as ready for review June 26, 2023 07:09
@amybiyuliu amybiyuliu requested review from swebb and gchan June 26, 2023 07:09
https://api.buildkite.com/v2/analytics/organizations/{org.slug}/suites{suite.slug} \
```

Required scope: `write_clusters`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Required scope: `write_clusters`
Required scope: `write_suites`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops I copied it from pipelines docs and forgot to update the scope name. Good catch!

## Update a suite

```bash
curl -X PUT \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit]

Suggested change
curl -X PUT \
curl -X PATCH \

I believe this is generally better practice and is consistent with pipelines: https://buildkite.com/docs/apis/rest-api/pipelines#update-a-pipeline


<table class="responsive-table">
<tbody>
<tr><th><code>name</code></th><td>Name of the new suite.<br><em>Example:</em> <code>"Jasmine"</code>.</td></tr>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<tr><th><code>name</code></th><td>Name of the new suite.<br><em>Example:</em> <code>"Jasmine"</code>.</td></tr>
<tr><th><code>name</code></th><td>Name of the suite.<br><em>Example:</em> <code>"Jasmine"</code>.</td></tr>

Copy link
Contributor

@mbelton-buildkite mbelton-buildkite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor style tweak, otherwise, looks good to me with @swebb's suggestions. 😊


```bash
curl -X DELETE \
https://api.buildkite.com/v2/analytics/organizations/{org.slug}/suites{suite.slug} \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: I don't believe this is necessary.

Suggested change
https://api.buildkite.com/v2/analytics/organizations/{org.slug}/suites{suite.slug} \
https://api.buildkite.com/v2/analytics/organizations/{org.slug}/suites{suite.slug}

@amybiyuliu amybiyuliu force-pushed the pie-1819-docs-for-suitesupdate-and-suitedestroy branch from db1ec94 to a4d65a9 Compare June 28, 2023 00:24
@amybiyuliu amybiyuliu merged commit a8aec47 into main Jun 28, 2023
1 check passed
@amybiyuliu amybiyuliu deleted the pie-1819-docs-for-suitesupdate-and-suitedestroy branch June 28, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants