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

TINKERPOP-2995 Create Sample Applications in each GLV #2298

Merged
merged 54 commits into from
Dec 14, 2023

Conversation

ryn5
Copy link
Contributor

@ryn5 ryn5 commented Oct 17, 2023

https://issues.apache.org/jira/browse/TINKERPOP-2995
Created sample applications for each GLV in Java, Python, C#, JS, and Go which includes connection, basic Gremlin, and simple traversal examples.

@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (05ac05d) 76.17% compared to head (0a47f61) 76.17%.
Report is 33 commits behind head on 3.7-dev.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.7-dev    #2298   +/-   ##
==========================================
  Coverage      76.17%   76.17%           
- Complexity     13113    13114    +1     
==========================================
  Files           1083     1083           
  Lines          64995    64995           
  Branches        7259     7259           
==========================================
+ Hits           49510    49513    +3     
+ Misses         12789    12784    -5     
- Partials        2696     2698    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@FlorianHockmann FlorianHockmann left a comment

Choose a reason for hiding this comment

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

I only reviewed the .NET example. Apart from my minor inline comments, I have two general questions:

  • Are the examples already included in our build pipeline? Because it looks to me like they aren't built via GH Actions.
  • How do we want to use the examples / How do we make users aware of them?

gremlin-dotnet/example/Example.cs Outdated Show resolved Hide resolved
gremlin-dotnet/example/Example.cs Outdated Show resolved Hide resolved
gremlin-dotnet/example/.gitignore Outdated Show resolved Hide resolved
@ryn5
Copy link
Contributor Author

ryn5 commented Oct 19, 2023

@FlorianHockmann The examples aren't integrated into the pipeline or GH actions, but they are self-contained as simple projects in their respective example folders and can be run after building. Currently undecided on where to introduce them to users, but we could maybe add them to either the docs in each GLV section or in README files.

@FlorianHockmann
Copy link
Member

The examples aren't integrated into the pipeline or GH actions, but they are self-contained as simple projects in their respective example folders and can be run after building.

I think we should look into adding them to the main Maven build and at least add a smoke test for them (like executing the methods to ensure that no exception gets thrown) so they are covered by GH actions. Otherwise, we won't notice if we break them, e.g., by changing some API.
This probably means however that their connection parameters need to be changed as the test server doesn't listen on port 8182.

Currently undecided on where to introduce them to users, but we could maybe add them to either the docs in each GLV section or in README files.

I think a short mention in the reference docs for each GLV would be great as that is the place where we mostly document the GLVs. README files could of course also make sense, especially if the applications contain more than a single file (depending on @kenhuuu's comment) to briefly explain the application and its structure. README's are usually also what search engines will link to so that's where users will land if they didn't follow a link from somewhere else in our docs.

We should probably also remove the current Gremlin.Net.Template (docs src) as it basically served the same purpose and we don't need two example applications for .NET.

@spmallette
Copy link
Contributor

This probably means however that their connection parameters need to be changed as the test server doesn't listen on port 8182.

if we use a nonstandard port i think it would be good to ensure the comments are clear that the standard port is 8182.

@FlorianHockmann
Copy link
Member

Maybe I'm also overcautious here and we don't need any tests. Ensuring that the applications still compile probably already covers most cases as we would already notice breaking changes. But then I would at least let GH actions build the applications which should be easy to do by integrating them into the Maven build.

@kenhuuu
Copy link
Contributor

kenhuuu commented Nov 30, 2023

Maybe I'm also overcautious here and we don't need any tests. Ensuring that the applications still compile probably already covers most cases as we would already notice breaking changes. But then I would at least let GH actions build the applications which should be easy to do by integrating them into the Maven build.

This has already turned out to be a really good idea as #2366 would already cause these examples to break eventually.

@ryn5 ryn5 changed the base branch from master to 3.7-dev November 30, 2023 03:28
Copy link
Contributor

@Cole-Greer Cole-Greer left a comment

Choose a reason for hiding this comment

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

Thanks Ryan! Overall the changes here look good to me, just added a few minor comments.

docs/src/dev/developer/release.asciidoc Outdated Show resolved Hide resolved
docs/src/reference/gremlin-variants.asciidoc Show resolved Hide resolved
@Cole-Greer
Copy link
Contributor

Thanks for all the updates Ryan!

VOTE +1

@vkagamlyk
Copy link
Contributor

VOTE+1

@Cole-Greer Cole-Greer merged commit 6fbafc4 into apache:3.7-dev Dec 14, 2023
24 checks passed
@ryn5 ryn5 mentioned this pull request Feb 13, 2024
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.

7 participants