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

Improve SDK documentation #415

Merged
merged 13 commits into from
Oct 7, 2024
Merged

Improve SDK documentation #415

merged 13 commits into from
Oct 7, 2024

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Aug 26, 2024

🎟️ Tracking

📔 Objective

Add further SDK documentation.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

github-actions bot commented Aug 26, 2024

Logo
Checkmarx One – Scan Summary & Details712bf17e-0000-4fab-b22a-2a9a96967565

No New Or Fixed Issues Found

Copy link

cloudflare-workers-and-pages bot commented Sep 24, 2024

Deploying contributing-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 09a4f28
Status: ✅  Deploy successful!
Preview URL: https://22b164e5.contributing-docs.pages.dev
Branch Preview URL: https://sdk.contributing-docs.pages.dev

View logs

@Hinton Hinton marked this pull request as ready for review September 26, 2024 11:06
@Hinton Hinton requested a review from a team as a code owner September 26, 2024 11:06
dani-garcia
dani-garcia previously approved these changes Sep 26, 2024
Copy link
Member

@dani-garcia dani-garcia left a comment

Choose a reason for hiding this comment

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

Nice LGTM just a small typo

docs/architecture/sdk/index.md Outdated Show resolved Hide resolved
docs/architecture/sdk/versioning.md Show resolved Hide resolved
dani-garcia
dani-garcia previously approved these changes Sep 26, 2024
@withinfocus withinfocus changed the title Improve sdk documentation Improve SDK documentation Sep 26, 2024
Copy link
Contributor

@withinfocus withinfocus left a comment

Choose a reason for hiding this comment

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

Few tweaks, up to you.

docs/architecture/sdk/index.md Outdated Show resolved Hide resolved
docs/architecture/sdk/index.md Outdated Show resolved Hide resolved
docs/architecture/sdk/index.md Outdated Show resolved Hide resolved
docs/architecture/sdk/server-bindings.md Outdated Show resolved Hide resolved
docs/getting-started/sdk/index.md Outdated Show resolved Hide resolved
docs/getting-started/sdk/index.md Outdated Show resolved Hide resolved
withinfocus
withinfocus previously approved these changes Sep 27, 2024
withinfocus
withinfocus previously approved these changes Sep 27, 2024
docs/architecture/sdk/index.md Outdated Show resolved Hide resolved
`Client` struct. Below is an example of a generator extension for the `Client` struct.

```rust
pub struct ClientGenerator<'a> {
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: I know this is an established format but to me ClientGenerator sounds weird, like it's something that generates clients. It's the same thing with the other client extensions, e.g. ClientVault which sounds like there are multiple vaults and this one belongs to the Client.

On the other hand ClientGeneratorExt sounds very reasonable, it's a Generator Extension for the Client.

I don't think I would've reacted to this if we would've just passed around the Client struct and simply applied Extensions to it, i.e. Client.password(...), but as it is now, we are actually creating secondary "sub-clientswhich themself have a reference to theClientinstance.Client.generator()` actively constructs a new type of "Client"

Maybe I'm just nitpicking I don't know, but I think we'll have problems referring to things in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm open for alternative name schemas.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Hinton
Well my suggestion is to flip the name from ClientGenerator to GeneratorClient, not that big change considering how big my previous message was xD

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems fine to me. Mind creating a jira issue and tackling this mountain of a task :).

Copy link
Contributor

Choose a reason for hiding this comment

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

docs/architecture/sdk/server-bindings.md Show resolved Hide resolved
docs/architecture/sdk/versioning.md Outdated Show resolved Hide resolved
docs/getting-started/sdk/index.md Show resolved Hide resolved
@Hinton Hinton requested a review from withinfocus October 7, 2024 16:21
@Hinton Hinton enabled auto-merge (squash) October 7, 2024 16:21
@Hinton Hinton merged commit 7a68bf7 into main Oct 7, 2024
8 checks passed
@Hinton Hinton deleted the sdk branch October 7, 2024 19: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.

4 participants