extiverse / bazaar

The extension marketplace for your Flarum forum.
https://discuss.flarum.org/d/5151
MIT License
59 stars 14 forks source link

Add update extension link #22

Closed clarkwinkelmann closed 7 years ago

clarkwinkelmann commented 7 years ago

The API endpoint for that is ready, but it's not implemented in the UI.

Add a button in the dropdown to update an extension.

Also add a visual indicator that an update is available.

luceos commented 7 years ago

In addition, based on our chat. This should:

clarkwinkelmann commented 7 years ago

Maintenance mode is not really necessary for the composer update itself, because it's a simple folder switch and requests usually finish with the old version and start with the new version afterwards.

Maintenance mode might be useful while migrations and extensions events are run

clarkwinkelmann commented 7 years ago

Given Flarum has no update capability at the moment, we need to choose which actions / events we do upon extension updates.

For instance we should attempt to run migrations and clear cache. An extension updated event might also be very useful, but it should really be registered in core so you don't need code specific for Bazaar in your extension

luceos commented 7 years ago

Until core has all what we need, I suggest we will implement it ourselves. We can start contributing/moving stuff from Bazaar (and other extensions) to core once our code has become more settled and beta 7 is released (not much will be added to that release anyway and after beta 7 a complete overhaul will take place in preparation of the stable version).

For now we need to run:

Triggering an event to listen on makes sense. I'd still suggest setting Flarum to maintenance mode by default or allowing this to be a setting the webmaster can decide on.

luceos commented 7 years ago
luceos commented 7 years ago

Moved update to use require command, but it does not accept the version select yet.