Skip to content

[plugins] create plugin from manifest only has missing parts #170

Open
@davidmeirlevy

Description

currently, it's trying to save the plugin and then enrich the data from the plugin's manifest:
https://github.com/greenpress/greenpress/blob/main/apps/plugins/server/controllers/manage-plugins.ts#L35

"save" cannot be completed in the database since some metadata is mandatory - but this data exists on the manifest.
so - we should retrieve the manifest before saving, set the mandatory metadata, and then continue to enrich plugin data according to the function that exists (this function needs an existing plugin in DB in order to continue because it binds the plugin to the platform by mentioning its row's ID.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions