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

Allow URLs for Sample Project dumps and scripts #345

Conversation

linuslundahl
Copy link
Contributor

@linuslundahl linuslundahl commented Feb 1, 2022

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Allows for dumpFile or a scriptFile in the sample project dbms description to point to a URL instead of a local file. The file will be downloaded before it is imported.

Also removes got for listSampleProjects and uses requestJson instead, which should work with the Desktop proxy.

What is the current behavior?

Currently only local files can be defined.

What is the new behavior?

(if this is a feature change)

Does this PR introduce a breaking change?

(What changes might users need to make in their application due to this PR?)

Other information:

@linuslundahl linuslundahl changed the title Allow URLs for dumps and scripts to import Allow URLs for Sample Project dumps and scripts Feb 1, 2022
@linuslundahl linuslundahl force-pushed the feature/url-for-import-sample-projects branch from a9c7279 to f6fa0d6 Compare February 2, 2022 09:05
@linuslundahl linuslundahl force-pushed the feature/url-for-import-sample-projects branch from f6fa0d6 to 5f6d3b3 Compare February 2, 2022 13:36
@linuslundahl linuslundahl marked this pull request as ready for review February 2, 2022 13:38
Copy link
Contributor

@nglgzz nglgzz 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 to me 🚀

@@ -130,7 +129,7 @@ export abstract class ProjectsAbstract<Env extends EnvironmentAbstract> {
/**
* Lists sample projects from github (https://github.com/neo4j-graph-examples)
*/
abstract listSampleProjects(fetch?: () => any | Got): Promise<List<ISampleProjectRest>>;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@linuslundahl linuslundahl merged commit 680a346 into neo4j-devtools:master Feb 3, 2022
@linuslundahl linuslundahl deleted the feature/url-for-import-sample-projects branch February 3, 2022 07:35
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.

2 participants