Giter Club home page Giter Club logo

cli-update's People

Contributors

brianteeman avatar degobbis avatar kubik-rubik avatar rdeutz avatar yvesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cli-update's Issues

Core extensions

Is it notIs not it better to exclude core extensions in the response of these methods?

  • getUpdateIds
  • getUpdates
  • getAllExtensions
  • infoInstalledVersions

They will anyway be updated with the Core.

Is this still active?

Last update was 10 months ago, but local testing appears to be working.

I'd like to contribute. One immediate change I'd make is to compare the update version with the current version and skip if they match (maybe with a force re-install option). Right now it appears that when an update is requested, it's performed if needed or not.

DO NOT UPDATE CORE THIS WAY

We are literally removing support in 3.5.0 from updating via JInstaller because of the ordering the update is done in and you are about to reintroduce it with this script.....

When updating this way/through Extension Manager the following process happens:

  • Extract package to tmp location
  • Look for extension script, if it exists load it into memory and if it has a preflight method, trigger that
  • Copy all the new files into place
  • Update the extensions table's database row
  • Run any SQL schema updates
  • If the extension script has an update method, trigger that
  • Cleanup from the update routine
  • If the extension script has a postflight method, trigger that

In the update component, it's more like this

  • Copy all the new files into place from a standalone script
  • Loop back into Joomla (now running the new version's code in full)
  • Load the extension script into memory, trigger preflight if it exists (it doesn't right now)
  • Update the extensions table's database row
  • Run any SQL schema updates
  • Trigger update method in extension script if it exists (it does)
  • Cleanup from the update routine
  • Trigger postflight method in extension script if it exists (it doesn't right now)

The important thing being is the postflight is called with the new versions code rather than the old versions code.....

If you keep the current code as is the Core Updates are going to go badly badly wrong......

Planned new features

New features I planned to insert:

  • Get list of extensions with state enabled, disabled or both
  • Get state of single extension (enabled/disabled)
  • Set state of single extension to enabled or disabled

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.