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

Adding .NET signatures to FDC3 documentation #1108

Merged
merged 30 commits into from
Sep 2, 2024
Merged

Conversation

kriswest
Copy link
Contributor

resolve #931

Changes:

  • Adds tabs throughout API spec for .NET signatures,
  • Moves supported platforms and API access content under API section

Reveiw notes:

  • Ensure a Changelog entry is added before merging
  • Needs a vote of the SWG before merging

Copy link

netlify bot commented Nov 15, 2023

Deploy Preview for fdc3 ready!

Name Link
🔨 Latest commit 7425e83
🔍 Latest deploy log https://app.netlify.com/sites/fdc3/deploys/66c8b9db63f7f80008808e69
😎 Deploy Preview https://deploy-preview-1108--fdc3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kriswest kriswest marked this pull request as draft November 15, 2023 17:58
@kriswest
Copy link
Contributor Author

@bingenito @robmoffat my meeting was cancelled so I got this out of the way. I've added tabs for .NET signatures and examples throughout the docs (although just noticed I missed some in the spec page, will fix). The .NET tabs all currently contain the content TBC. If you don't want to translate the examples we can always delete their tabs and stick with TS only, or we can encourage other contributors to take those on.

I've also migrated the JS/TS specific API access content under 'supported platforms' (clearing up some duplicated content along the way) and moved that page under the API section (as that's what it actually relates to) - I haven't prepped anything for .NET on that page as yet.

I also haven't touched the context pages as yet - we want to move to something generated from the schemas so I don't think that worth the effort - doing so will change the example from TypeScript to JSON. If we do something for .NET there I'd suggest we do it in the Context overview (as that will remain and won't be generated from schemas): https://fdc3.finos.org/docs/next/context/spec

To work on this, check out the branch then run the following in your terminal from the directory:

cd website
npm install
npm run start

That'll build it and open a browser window with a preview. Note you'll see the current version by default, to see your changes use the version menu at the top left to select the 'next' version of the spec (or use the local deep link below). The preview will update whenever you save - I suggest saving often as you'll find out if you broke the page 😉

Local deep link: http://localhost:3000/docs/next/api/ref/DesktopAgent
Preview deep link: https://deploy-preview-1108--fdc3.netlify.app/docs/next/api/spec

@bingenito
Copy link
Member

@kriswest Confirmed I can see your changes in local hosted site. We will need to add support for csharp to the docusaurus config (it isn't on by default).

image

@bingenito
Copy link
Member

Here we go. I think you can close this PR if you want and we can continue working on this branch in tandem to create eventual PR.

image

@kriswest
Copy link
Contributor Author

@bingenito I converted this to a draft PR for now - I find the diffs and preview they provide useful and it gives us a thread to discuss as we go ;-)

Did you push your change to the docusaurus config?

@bingenito
Copy link
Member

@kriswest I don't have permission to push to this branch. Do you want me to do my contribution through a PR to this branch and then we PR to master for group review?

@kriswest
Copy link
Contributor Author

@kriswest I don't have permission to push to this branch. Do you want me to do my contribution through a PR to this branch and then we PR to master for group review?

@robmoffat @maoo now that we've got branch protection rules in place for the master branch of the FDC3 repo, is it possible to give push rights to the fdc3-participants team (which Brian is in) to facilitate collaboration by participants on PRs like this?

If not, do we need to use a fork that we both have rights to achieve the same thing elsewhere and/or PR into this branch from a fork? Please advise on best practice :-)
The final alternative is that we get Brian appointed as a maintainer (which we propose to do anyway with the .NET contribution) - although I'm sure this will come up again with others (and we'll follow whatever procedure you advise/require).

@maoo
Copy link
Member

maoo commented Nov 17, 2023

Hi @kriswest !

The general best practice is to fork, invite, collaborate and submit PR, as both you and @bingenito suggested.

That said, given that Brian wrote the .net client, and is willing to collaborate and maintain this part of code, I believe he's a candidate to become an FDC3 maintainer. As FDC3 lead maintainer, you have the authority (and rights, via https://github.com/orgs/finos/teams/fdc3-maintainers) to make it happen, assuming other maintainers are ok with it.

Copy link

linux-foundation-easycla bot commented Dec 5, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@kriswest
Copy link
Contributor Author

/easycla

@kriswest kriswest marked this pull request as ready for review August 22, 2024 13:34
@kriswest kriswest requested a review from a team as a code owner August 22, 2024 13:34
@kriswest kriswest requested a review from a team August 22, 2024 13:34
@kriswest kriswest changed the title WIP: Adding .NET signatures to FDC3 documentation Adding .NET signatures to FDC3 documentation Aug 22, 2024
@kriswest
Copy link
Contributor Author

Added a changelog entry and changed this PR to ready to review as I think it is @bingenito.

It'll need a review from @hughtroeger and perhaps another member of @finos/fdc3-maintainers.

@kriswest
Copy link
Contributor Author

@bingenito you were a contributor to this PR but are currently not the last push if you want to add a review yourself.

bingenito
bingenito previously approved these changes Aug 22, 2024
@kriswest
Copy link
Contributor Author

Thanks @bingenito - we just need @hughtroeger's blessing in that case ;-)

@bingenito
Copy link
Member

@kriswest Should globals.md be showing as deleted?

@bingenito
Copy link
Member

bingenito commented Aug 23, 2024

@kriswest Should globals.md be showing as deleted?

Looks like it was in the very first commit with the creation of supported platforms. I guess I didn't notice that content was moved.

Copy link
Contributor Author

Yes, it's only relevant to web so it made sense to move to supported-platforms. fdc3-for-the-web will replace the recommendation with using getAgent() anyway, so its reworked further in that PR.

Comment on lines +47 to +50
/// <summary>
/// Returned if the specified channel is not found when attempting to join a
/// channel via the `JoinUserChannel` function of the DesktopAgent.
/// </summary>
Copy link
Contributor

Choose a reason for hiding this comment

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

These summary tags don't seem to render on the docs site. Are they supposed to apply formatting?

image

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 think thats all the formatting they get in prism - as a comment block.

Copy link
Member

@bingenito bingenito Sep 3, 2024

Choose a reason for hiding this comment

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

c# doc syntax for intellisense and if you were to do doc generation. I copied and pasted directly from the source and did not delete commments.

@kriswest
Copy link
Contributor Author

kriswest commented Sep 2, 2024

🎉 we (well @bingenito) got there! Merging...

@kriswest kriswest merged commit 4251730 into main Sep 2, 2024
6 checks passed
@kriswest kriswest deleted the DOTNET-FDC3-signatures branch September 2, 2024 16:31
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.

Proposal to add .NET interfaces and context declarations
4 participants