Create optimize api tutorial and revise admin api tutorial
Description
Relates to https://github.com/camunda/developer-experience/issues/142.
When should this change go live?
- [x] This change is not yet live and should not be merged until https://github.com/camunda/camunda-api-tutorials/pull/3 is merged.
- [x] There is no urgency with this change.
- [ ] This change or page is part of a marketing blog, conference talk, or something else on a schedule.
- [ ] This functionality is already available but undocumented.
- [ ] This is a bug fix or security concern.
PR Checklist
- [x] I have added changes to the relevant
/versioned_docsdirectory, or they are not for an already released version. - [x] I have added changes to the main
/docsdirectory (aka/next/), or they are not for future versions. - [x] My changes require an Engineering review, and I've assigned an engineering manager or tech lead as a reviewer, or my changes do not require an Engineering review.
- [x] My changes require a technical writer review, and I've assigned @christinaausley as a reviewer, or my changes do not require a technical writer review.
@christinaausley, I do get an error when locally building the docs. Are you able to fix it?
@toco-cam This should build locally now 👍
@pepopowitz FYI that I moved the tutorial code into the completed folder.
These changes are great, thank you!
One last thing -- in the administration API tutorial, we direct the addition of calls to
getAccessToken(), without arguments. These should also change to use the new arguments.
@pepopowitz I'm not sure where in the doc you're referencing this -- can you propose a change and I'll backport?
These changes are great, thank you! One last thing -- in the administration API tutorial, we direct the addition of calls to
getAccessToken(), without arguments. These should also change to use the new arguments.@pepopowitz I'm not sure where in the doc you're referencing this -- can you propose a change and I'll backport?
See https://github.com/camunda/camunda-docs/pull/3708/commits/8000ecb2489e51fc1022ef80014c9b44ff12b51b
@christinaausley I tried to set this up on my computer and failed; I'm not a JS expert, but I understand the basics and followed the guide. It might be best to do a pair programming session.
@toco-cam feel free to put some time on my calendar, though note we do have a completed folder in the tutorials repo with the completed JavaScript example. Interested what error you're running into.
@toco-cam it would also be nice to hear your thoughts on what specifically went wrong, or what errors you ran into that prevented you from completing.
@pepopowitz / @christinaausley Here are the points I want to discuss on Monday
- Missing intro/context (e.g. why is the first step to install node.js)
- Unclear instructions / mapping
- Surprise, why is the client so complex (using env variables and export functions)?
- Error on execution:
@pepopowitz I'm receiving the same error when I run node cli.js optimize list -- where do users plug in their actual collection ID/dashboard ID? Is it just node cli.js optimize list jb3498yhfwoiefh9? Is this related to the error message we're seeing?
@pepopowitz I'm receiving the same error when I run
node cli.js optimize list-- where do users plug in their actual collection ID/dashboard ID? Is it justnode cli.js optimize list jb3498yhfwoiefh9? Is this related to the error message we're seeing?
@christinaausley and I paired to investigate this, and we found that the reason for the errors was an incorrect audience: the .env.example was suggesting the value https://optimize.camunda.io, while the correct audience is optimize.camunda.io (no https:// at the beginning.) This is resolved in the sample app in https://github.com/camunda/camunda-api-tutorials/pull/6.
@toco-cam if you modify your .env to change the value of OPTIMIZE_AUDIENCE like below, does it now work for you?
OPTIMIZE_AUDIENCE=optimize.camunda.io
This is back on my list to review today after running into issues with multi-organizations - https://github.com/camunda/camunda-optimize/issues/13051
@akeller @pepopowitz I've updated the instructions for both the Optimize and Admin API tutorials based on https://github.com/camunda/camunda-api-tutorials/pull/7 -- look forward to your feedback.
@akeller @pepopowitz I've updated the instructions for both the Optimize and Admin API tutorials based on camunda/camunda-api-tutorials#7 -- look forward to your feedback.
I'll add this to my list to review today!
@akeller @pepopowitz This is ready for final review 👍
I likely won't be able to review this until Friday, where I'll have time to walk through both the Optimize and Admin API tutorials.
A little bit of a nitpick - but can you rename this PR so we know the admin API tutorial was also modified with this PR?
When these docs ship to production, then I'll merge https://github.com/camunda/camunda-api-tutorials/pull/7.