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: Private Plugins #534

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Docs: Private Plugins #534

wants to merge 1 commit into from

Conversation

dericksozo
Copy link
Contributor

(docs): Adding the content for the Private Plugins page including screenshots.

This PR takes care of #521.

@dericksozo dericksozo added the documentation Improvements or additions to documentation label Nov 4, 2024
@dericksozo dericksozo self-assigned this Nov 4, 2024
toc_max_heading_level: 2
---

# Creating and Using Private Plugins
Copy link
Member

Choose a reason for hiding this comment

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

In some places (in the docs) it is called "custom plugins" and here it's "private plugins". I would go with private plugins all over the place


# Creating and Using Private Plugins

Private Plugins enable you to create [custom plugins](/plugins/overview/) exclusively for your organization's use. These plugins let you build secure, proprietary integrations while protecting sensitive business logic.
Copy link
Member

Choose a reason for hiding this comment

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

NSIU this sentence- "private plugins enable you to create custom plugins"???

Copy link
Member

Choose a reason for hiding this comment

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

In addition- it's not only about integrations but also defining and managing standards and best practices

3. Set the plugin's **Display Name** and **Description** - these will appear in the UI when selecting plugins
4. Choose the appropriate code generator (Node.js or .NET) that matches your target services

The Plugin Id you enter will become the name of your plugin's folder within the `plugins` folder.
Copy link
Member

Choose a reason for hiding this comment

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

"will become" sounds like we will create this folder. Maybe we need to say that the ID should match the folder name of the plugin in the repo or such


:::note
For a real-world example of using settings in your plugin, check out the [Supertokens authentication plugin](https://github.com/amplication/plugins/blob/a94dac7956e51903df0240eef7b704999fc6a752/plugins/auth-supertokens/src/index.ts#L160).
For more detailed information about settings and configurations, see our [plugin settings documentation](/plugins/define-plugin-settings).
Copy link
Member

Choose a reason for hiding this comment

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

This linked page is not connected to the docs menu. Is it on purpose?


## Publish Your Plugin

After adding a version to your plugin, configuring your plugin settings, and tagging your repository, it's time to publish your plugin.
Copy link
Member

Choose a reason for hiding this comment

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

Let's add a short explanation about publishing the plugin. Why do we need to publish it, what will happen after publishing the version (- the version is available to be used in services and templates, and this becomes the latest version).

### Include the Plugin in a Template

1. Navigate to the Templates tab in your Platform Console
2. Click on Create Template
Copy link
Member

Choose a reason for hiding this comment

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

Click on Create Template or navigate to an existing Template

### Include Plugin in a Service
1. Navigate to your service in the Platform Console
Copy link
Member

Choose a reason for hiding this comment

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

I guess you meant "in the Service Catalog"

### Common Issues and Solutions
- Undefined property errors: Verify plugin versions and publishing
Copy link
Member

Choose a reason for hiding this comment

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

  1. What does "publishing" mean?
  2. I think that all the errors in this section should mention when / where it can be seen, for example- "Undefined property errors" while generating the code for the service" or such

You successfully created your private plugin.
It's version-controlled in your Git repository and available for use in both templates and services that match its code generator.

For additional support, contact our support team.
Copy link
Member

Choose a reason for hiding this comment

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

Let's elaborate on this...
Something like - for more information or in case of issues and questions, use our Discord channel (link) or contact our support team in case you are customers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants