这是indexloc提供的服务,不要输入任何密码
Skip to content

add docs for ddn plugins #1028

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

Merged
merged 1 commit into from
Jul 15, 2025
Merged

add docs for ddn plugins #1028

merged 1 commit into from
Jul 15, 2025

Conversation

BenoitRanque
Copy link
Contributor

Description 📝

Quick Links 🚀

Assertion Tests 🤖

a user should be able to understand how to configure a pre-ndc-request plugin
a user should be able to understand how to configure a pre-ndc-response plugin
a user should be able to understand the behavior expected of a webhook handling pre-ndc-request calls
a user should be able to understand the behavior expected of a webhook handling pre-ndc-response calls

@hasura-bot
Copy link
Contributor

@BenoitRanque Thanks for your PR! I've assigned @robertjdominguez to review it.

@hasura-bot
Copy link
Contributor

DX: Assertion Testing

✅ Diff

The PR's diff adds comprehensive information about configuring and understanding the behavior of pre-ndc-request and pre-ndc-response plugins. Each addition is clearly outlined, providing practical examples, use cases, and explicit details on plugin behavior, request structure, and response handling. Proper links to detailed configurations are also included, making it easy for users to navigate relevant sections. However, it may be beneficial to clarify the implications of the 'operationType' and 'ndcVersion' fields in the sample requests, as their roles are not immediately clear.

✅ Integrated

The new documentation integrates well with the existing set of files, enhancing the overall usability of the documentation. The structured approach—starting from explaining the plugin hooks, followed by their configuration, request/response formats, and use cases—allows users to sequentially understand the concept. The clear mapping between the diff and the architecture diagram in the introduction is commendable. One suggestion for improvement would be to cross-reference related sections more extensively; for instance, when discussing webhook customization options, it could be useful to directly link to the section discussing the structure and configuration of LifecyclePluginHookHeadersConfig to provide an immediate reference.

Copy link

Deploying ddn-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: c14c57c
Status: ✅  Deploy successful!
Preview URL: https://d467c66c.v3-docs-eny.pages.dev
Branch Preview URL: https://ndc-plugins-docs.v3-docs-eny.pages.dev

View logs

Copy link
Collaborator

@robertjdominguez robertjdominguez left a comment

Choose a reason for hiding this comment

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

@BenoitRanque — thanks for this!

I've approved it, but please see the note around metadata reference docs and how their content is generated.

@@ -67,18 +67,17 @@ definition:

## Metadata structure
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI — everything in these pages below this h2 is updated dynamically using this Action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's my bad. In terms of actionable feedback, should I remove that section, or leave it as is, or do something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to assume we can merge as-is, and the action will simply overwrite that whole section. Which is fine

@BenoitRanque BenoitRanque merged commit 2023e4c into main Jul 15, 2025
6 checks passed
@BenoitRanque BenoitRanque deleted the ndc_plugins_docs branch July 15, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants