-
Notifications
You must be signed in to change notification settings - Fork 250
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
[FDN-3587] Add new Orgs / Teams / Suites REST API Documentation #2612
Conversation
Preview URL: https://2612--bk-docs-preview.netlify.app |
8b8d988
to
1de7a2f
Compare
74d2c1c
to
98dfe18
Compare
@jfhinchcliffe could you give this a rebase ❤️ |
98dfe18
to
48ba88a
Compare
@jameshill rebased! |
2f28671
to
3b72032
Compare
…-overarching-branch
Thanks very much for all this work @jfhinchcliffe ! This is looking really good! I've noticed a small issue with the left-hand nav—most likely caused by a combination of the repeated usage of item name higher up in the nav: I think I've got an idea of how to resolve this but would like to run this by @mbelton-buildkite first |
Since we are substantially re-organising the page nav as part of this PR, we should also consider where we should move the following to:
Just had a follow-up discussion with @mbelton-buildkite and since the Organizations REST API endpoint appears to be used by Test Analytics too, which we treat as a separate product, then it makes sense to promote this page hierarchy to the top level. The others I listed above are essentially only utilised by the core Buildkite product (Pipelines) and so at least for the time being, make sense being listed within the 'Pipelines' hierarchy. Possible question marks about Emojis and User, but OK to keep within Pipelines and not have that hold up merging this PR. Following a subsequent discussion with @jfhinchcliffe , Organizations was pulled out of the Pipelines hierarchy due to the extension of Teams (which was also originally nested as a single page within Pipelines). The other REST API endpoint docs listed above make more sense leaving within Pipelines, with the possible/likely exceptions of Emojis and User, but these can be dealt with later. |
- name: "Pipelines " | ||
children: | ||
- name: "Overview" | ||
path: "apis/rest-api/pipelines" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to add a space after the word Pipelines here (i.e. "Pipelines "
) to prevent the Pipelines section in the 'global' nav from being highlighted too when viewing its Overview page.
This seems to be a bit of a minor bug with our documentation site, whereby having this type of item structure within this YAML file:
- name: "Something specific"
...
- name: "Something else"
...
and then viewing any page within "Something specific" (e.g. "Something else") would cause any element that's also called "Something specific" elsewhere on the page to become highlighted too.
Here's an example of what I mean, where the "Something specific" in this case is "Pipelines":
Hence, making "Pipelines"
unique by adding a space after it ("Pipelines "
) seemed to work around this issue.
@dannymidnight , would you know if there's anyway to fix this issue with our docs site? (Feel free to set up a call if you need me to demo more context, and as an FYI, fixing this issue is minor and won't block merging this PR due to the workaround explained above.)
…ext around the new re-organization of the REST API docs.
Hi @jfhinchcliffe , I've pushed through a few changes to the docs, which I can summarise as follows:
Please let me know if this is all good with you and I can merged it in. |
|
||
```bash | ||
curl -H "Authorization: Bearer $TOKEN" \ | ||
-X DELETE "https://api.buildkite.com/v2/organizations/{org.slug}/teams/{team.uuid}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a few of these DELETE
calls, I removed the -H "Content-Type: application/json" \
options as I strongly suspect these are not required (by virtue of no JSON payload being required/sent in the request).
Consolidates all the recent teams API additions into a single PR.
🚧 Should not be merged until we've enabled the API changes on the main app.
@mbelton-buildkite this should contain all the feedback that that you kindly provided on the #2598 and #2599 PRs. I just found it easier to put all this related work in a single PR as they'll most likely be released on the main site at the same time and it saves on merge conflicts on the nav changes etc.
As part of this I pulled 'Organization' out into its own nav item under APIS / REST, as these new endpoints are nested under the organization's / teams route in our API. eg:
❓ We could think about adding another submenu under organization for Teams
Each commit represents another resource added to the API - would be simplest to review commit-by-commit
Linear ticket:
https://linear.app/buildkite/issue/FDN-3587/add-docs-pr-for-new-rest-api-functionality