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

docs(clients): add onboarding for new influxdb3-go, influxdb3-csharp, influxdb3-java #6690

Closed

Conversation

Sciator
Copy link
Contributor

@Sciator Sciator commented May 16, 2023

  1. Changed golang wizard to use new https://github.com/bonitoo-io/influxdb3-go for ioxOnboarding
  2. Added java wizard + use new https://github.com/bonitoo-io/influxdb3-java for ioxOnboarding
  3. Added c# wizard + use new https://github.com/bonitoo-io/influxdb3-csharp for ioxOnboarding

GO

localhost_8086_orgs_9a7af706bd9f558b_new-user-setup_golang (1)

CSharp

image
image
image
image
image
image
image

Java

image
image
image
image
image
image
image

Checklist

Authors and Reviewer(s), please verify the following:

  • A PR description, regardless of the triviality of this change, that communicates the value of this PR
  • Well-formatted conventional commit messages that provide context into the change
  • Documentation updated or issue created (provide link to issue/PR)
  • Signed CLA (if not already signed)
  • Feature flagged, if applicable

@mavarius mavarius self-assigned this May 30, 2023
@bednar bednar changed the title docs: install, write, query influxdb3-go docs(clients): add onboarding for new influxdb3-go, influxdb3-csharp Jun 1, 2023
@bednar bednar changed the title docs(clients): add onboarding for new influxdb3-go, influxdb3-csharp docs(clients): add onboarding for new influxdb3-go, influxdb3-csharp, influxdb3-java Jun 2, 2023
@bednar bednar marked this pull request as ready for review June 9, 2023 11:23
@bednar bednar requested a review from a team as a code owner June 9, 2023 11:23
Copy link
Collaborator

@mavarius mavarius left a comment

Choose a reason for hiding this comment

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

Overall, I'm glad these libraries are a thing now. However, this PR needs some changes.

  1. These new client libraries are for Serverless, not TSM. The home pages and guides differ (TSM has Flux guides, and Serverless has SQL guides). The TSM home page should not be modified in this PR.

TSM Home page
image

Serverless Homepage
image

  1. The "Application Code" sections of "Add Data" and "Query Data" need updating on the home page to have the appropriate language options open the new guides.
    image

The Add Data section dropdown should still contain all the languages, however, when Go, C#, or Java are selected the new guides should be presented.
image

The Query Data section dropdown should only show C#, Go, Java, and Python (the ones with SQL guides).
image

  1. The Client Libraries section of the Load Data page should have the C# and Java cards updated to include the "write | query" tag. These cards should also link to the new guides.
    image

  2. We're trying not to use the term IOx going forward so more appropriate terminology should be used. "Serverless" when talking about the service, and other appropriate terms such as "InfluxDBClient", "Write" or "Query" when naming things in the example code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the wrong file. The file that should be edited is HomepageContents.tsx since this is for Serverless accounts, not TSM accounts.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed.

results of what we have written.
</p>
<p>
Add the following code to the <code>IOxExample</code> class:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we call this class something more specific to what they're doing than "IOxExample"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Renamed to WriteQueryExample.


namespace InfluxDB3.Examples.IOx;

public class IOxExample
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename this class to be something more meaningful to the end-user.

Copy link
Contributor

Choose a reason for hiding this comment

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

Renamed to WriteQueryExample.

using InfluxDB3.Client;
using InfluxDB3.Client.Write;

namespace InfluxDB3.Examples.IOx;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avoid the term IOx if possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

Renamed to InfluxDB3.Examples

onCopy={this.logCopyCodeSnippet}
text="dotnet add package InfluxDB3.Client"
/>
</>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are there any other things that the user needs to have installed to make this work properly? Are there version requirements that must be met to avoid errors? If so, please add them here. See the Go and Python guides for examples of this.

Copy link
Contributor

Choose a reason for hiding this comment

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

No. The dotnet add package InfluxDB3.Client install latest stable version of the client with all required dependencies.

onCopy={this.logCopyCodeSnippet}
text={gradleDependency}
/>
</>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add links to other dependencies or specify minimum versions of things needed to get this running (including Maven & Gradle). (See Python and Go examples)

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed

import {getBuckets} from 'src/buckets/actions/thunks'
import {event} from 'src/cloud/utils/reporting'

const logCopyCodeSnippet = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Scope these functions within the component.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed

/>
)
}
case 8: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is no case 8, this is redundant.

Copy link
Contributor

@bednar bednar Jun 14, 2023

Choose a reason for hiding this comment

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

Fixed

/>
)
}
case 8: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Redundant, there is no case 8.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed

src/shared/containers/SetOrg.tsx Outdated Show resolved Hide resolved
@bednar
Copy link
Contributor

bednar commented Jun 14, 2023

@mavarius Thanks for your review, I've fulfilled all requirements... the Java and C# wizards also support the TSM engine, so they can be used with HomepageContentsTSM.

@bednar bednar requested a review from mavarius June 14, 2023 11:29
Copy link
Collaborator

@mavarius mavarius left a comment

Choose a reason for hiding this comment

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

Looks good. The only thing left is to ensure the dropdown doesn't get cut off and scrolls instead. I think after that we'll be good to go. Thanks!

@@ -46,6 +46,8 @@ export const QueryDataAccordion: FC = () => {
const languageList = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's list these alphabetically like the "Write Data" list. Also, it is getting cut off, it should scroll like the other one.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

The list is sorted alphabetically.

I'm unable to modify the scss to display the entire list. For the Add Data dropdown, it works because there's sufficient space beneath it:

image

A quick but inelegant solution would be to set the max-height to 75px. However, this seems like an unsightly workaround to me.

Copy link
Collaborator

@mavarius mavarius Jun 28, 2023

Choose a reason for hiding this comment

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

Found a fix for the dropdown issue. In the OptionAccordion.scss file, make this change:
image

This will allow the section with the dropdown to appear above the others like this:
image

@bednar bednar requested a review from mavarius June 29, 2023 06:55
Copy link
Collaborator

@mavarius mavarius left a comment

Choose a reason for hiding this comment

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

Looks good, I think it's ready for merge once the tests are passed.

@@ -80,7 +80,7 @@ export const QueryDataAccordion: FC = () => {
/>
<OptionAccordionElement
elementTitle="Application Code"
elementDescription="Write data into your database directly with your application code."
elementDescription="Query your data directly with your application code."
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch

@bednar bednar enabled auto-merge June 30, 2023 07:09
@bednar
Copy link
Contributor

bednar commented Jun 30, 2023

@mavarius, the ci/circleci: monitor-ci-tests is dependent on API_KEY and MONITOR_CI_BRANCH environment variables, which are not propagated to the forked repository:

image

I've created a new PR with the same content within this repository and all checks have passed: #6753. Could you please approve #6753?

Thank you for your reviews. 👍

@bednar
Copy link
Contributor

bednar commented Jul 13, 2023

@mavarius thanks, closing this PR because the #6753 is merged

@bednar bednar closed this Jul 13, 2023
auto-merge was automatically disabled July 13, 2023 05:43

Pull request was closed

@bednar bednar deleted the docs-influxdb3-go-getting-started branch July 13, 2023 05:43
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