Skip to content

[v12] Use the examples directory for example plugin code#29151

Merged
alexfornuto merged 15 commits intobranch/v12from
bot/backport-23255-branch/v12
Jul 19, 2023
Merged

[v12] Use the examples directory for example plugin code#29151
alexfornuto merged 15 commits intobranch/v12from
bot/backport-23255-branch/v12

Conversation

@ptgott
Copy link
Copy Markdown
Contributor

@ptgott ptgott commented Jul 14, 2023

Backport #23255 to branch/v12

ptgott and others added 15 commits July 14, 2023 19:13
Also edit the Access Request plugin API guide to use this directory,
rather than having the reader copy/paste individual code snippets. This
makes the guide easier to follow, and users will have a compilable
example before they proceed through the guide.
This way, we can reuse the actual program in the Access Request plugin
API guide and avoid unintended discrepancies and drift.
Need to test this out, but it compiles
- Types that are no longer reachable via public interfaces
- The description of the demo implementation that used the old
  `watcherjob` package
Respond to Joerger feedback
Co-authored-by: Brian Joerger <bjoerger@goteleport.com>
- Split up "types.go". Reserve a single file for configuration values so
  these are visible in a single place within the guide.
- Return an error on an unsuccessful HTTP request when creating or
  updating a row
- Simplify requestStates lookup
- Clearly mark values that a user must change
- Update the text of the guide to match changes to the program
@ptgott
Copy link
Copy Markdown
Contributor Author

ptgott commented Jul 14, 2023

Please feel free to merge this for me!

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from alexfornuto July 14, 2023 19:47
@Joerger Joerger added this pull request to the merge queue Jul 14, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 14, 2023
@alexfornuto alexfornuto added this pull request to the merge queue Jul 19, 2023
Merged via the queue into branch/v12 with commit 1912264 Jul 19, 2023
@alexfornuto alexfornuto deleted the bot/backport-23255-branch/v12 branch July 19, 2023 17:41
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