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

revisit placeholder mechanism #10

Open
fbiville opened this issue Dec 3, 2020 · 0 comments
Open

revisit placeholder mechanism #10

fbiville opened this issue Dec 3, 2020 · 0 comments

Comments

@fbiville
Copy link
Contributor

fbiville commented Dec 3, 2020

The generated code samples currently use placeholders for the connection parameters (see this example).
This is in turn used by the Sandbox UI to replace these placeholders with the connection settings of the actual provisioned sandbox instance.
The downside of this is that the code is not directly runnable by users, as they need to replace the placeholders as well.

We might want instead to generate valid connection settings, which implies that:

  • a demo server database is always available for each sandbox repository in https://github.com/neo4j-graph-examples/
  • the instance data matches the dump versioned in the corresponding sandbox repository
  • sandbox UI (and Neo4j Desktop UI at some point) is able to replace these values with the actual connection settings of the running instance (e.g. replacing "neo4j+s://demo.neo4jlabs.com:7687" and replacing "pole", "pole" with "neo4j","a-sandbox-password" and also change the "pole" database bit in the session to "neo4j" in sandbox 4.x)
  • the values are properly documented so users are not confused
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

No branches or pull requests

1 participant