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

Feature: adding datasource backend template #2

Merged
merged 4 commits into from
Feb 4, 2022

Conversation

mckn
Copy link
Collaborator

@mckn mckn commented Jan 21, 2022

Description

This PR adds the following:

  • Template for a simple datasource backend
  • Asking user about organization name during scaffolding

@mckn mckn self-assigned this Jan 21, 2022
Copy link
Collaborator

@jackw jackw left a comment

Choose a reason for hiding this comment

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

Amazing work! 🚀

templates/datasource/src/plugin.json Show resolved Hide resolved
Comment on lines +7 to +8
"backend": true,
"executable": "gpx_{{ snakeCase pluginName }}",
Copy link
Collaborator

@jackw jackw Jan 24, 2022

Choose a reason for hiding this comment

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

Should we wrap these backend specific properties with hasBackend for datasource plugins that don't have a backend? 🤔 e.g.

{{#if hasBackend}}
"backend": true,
"executable": "gpx_{{ snakeCase pluginName }}",
{{/if}}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes! We should probably remove the possibility to scaffold a datsource plugin without a backend so maybe we should restructure this a bit.

Oh, I didn't know that you could to as you are show casing above.

Copy link
Collaborator

@leventebalogh leventebalogh left a comment

Choose a reason for hiding this comment

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

Very nice! 👏

templates/backend/pkg/plugin/datasource.go Show resolved Hide resolved
templates/backend/pkg/plugin/datasource.go Outdated Show resolved Hide resolved
templates/backend/pkg/plugin/datasource.go Outdated Show resolved Hide resolved
mckn and others added 2 commits January 25, 2022 10:26
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
@mckn mckn merged commit 8a3b2d6 into main Feb 4, 2022
@leventebalogh leventebalogh deleted the mckn/added-backend-template branch February 10, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants