Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.47k stars 1.55k forks source link

Adding a missing component plugin does not immediately update the app screens #9260

Closed melohagan closed 7 months ago

melohagan commented 1 year ago

Hosting

Describe the bug When importing an app that uses custom plugins into a new environment, you have to import the necessary plugins. The screens do not immediately update to begin showing again. You have to add another instance of the same plugin to reload the existing one.

To Reproduce Steps to reproduce the behavior:

  1. In a new environment import the app export with custom components (see below)
  2. Go to the Design section and see that the custom components have not loaded
  3. Go the plugins section of the portal and import the needed components from Github (see links below)
  4. Go to the Design section of the app and see that the component plugins have still not reloaded
  5. Add a plugin of the same type. Now see both plugins load.

Expected behavior Upon importing custom component plugins, existing apps should reload the components without having to insert another component.

Screenshots Header Image is missing Screenshot 2023-01-06 at 11 01 46

Add another header image, the existing one will now reload Screenshot 2023-01-06 at 11 02 22

App Export Hugo Plugin Submission-export-1673001481044.tar.gz

Additional context Plugin Github URLs used:

mike12345567 commented 1 year ago

The app_metadata document for an app DB contains a list of plugins that are used, when an app is imported a new app metadata document is generated, we need to copy over the list of plugins used from the old app metadata when importing apps.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity.

lolcabanon commented 1 year ago

Hey! Having the same issue here.

Can you provide instructions to do the export/import workflow correctly with custom plugins?

Like where is this app_metadata ? Is it something that would have to be copied manually, or is it on the roadmap to export it with the export function?

Thanks!

Edit:

Ok I just found the line in db.txt file... I guess it is to be implemented to restore usedPlugins from the exported app into the imported one?

Or is there another way to "boot up" plugins without actually having to add one on an app screen for them to show? It's not really a big deal but kinda annoying...

Thanks again!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity.

cgtms commented 1 week ago

This issue is still present on 2.32.17.