Results 1 to 4 of 4
Like Tree3Likes
  • 1 Post By Chris_C
  • 1 Post By jmertic
  • 1 Post By Chris_C

Thread: Sugar Update

  1. #1
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Sugar Update

    Sugar Update needs to be improved so that it's mostly automatic, self-updating with just a few clicks, and extremely user friendly - like other major PHP web application frameworks: Joomla 1.7, Wordpress 3, and Drupal.

    Sugar should automatically go online and check for updates every 24 hours - not only for Sugar itself, but also for ALL installed 3rd party modules - whether they came from Sugarforge, SugarExchange, or were developed by an independent Sugar developer.

    The web address for Sugar to check for updates for each module, should be made part of the spec for the XML manifest that comes with each module. Same for Sugar itself.

    Sugar Update should notify the Admin by email that updates are available, what they are, and what each one brings: new features, and fixes.

    The Admin should simply check which modules they want to update, and click Go.

    Dependencies on other components should also be handled properly - and should be specified in each module's manifest, or be able to be determined by auto-scanning the code - so that Sugar can keep itself, and the Admin, out of "dependency hell".

    If the update doesn't work for any reason, Sugar has be equipped to perform a foolproof, perfect "undo" - a rollback of all changes.

    Your thoughts ?
    David Esrati likes this.

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Sugar Update

    Nice idea, but I'm not sure if this could work, because each single row of the code could have been changed manually for whatever reason (bugfix, customization, ...). How would you handle this?
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Sugar Update

    This is definitely something on our radar. Thanks for your feedback!
    Chris_C likes this.
    John Mertic
    Sugar Community Manager

  4. #4
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: Sugar Update

    Quote Originally Posted by sts View Post
    Nice idea, but I'm not sure if this could work, because each single row of the code could have been changed manually for whatever reason (bugfix, customization, ...). How would you handle this?
    Use the SHA1 fingerprints, and diffs, to detect changes in the core files.

    Sugar can automatically wget its own fingerprints from the main sugarcrm.com site.

    Use them to scan the core files and when the fingerprints mismatch, the file has been changed.

    It can also do change detection by diffing against the known untouched source code files.

    Same change-detection method should be done with the modules.

    Sugar should flag changed files against the known untouched base version of the module.

    Sugar could either generate fingerprints when the module is unzipped and installed the first time - or wget the fingerprints from a URL the developers specify in the XML manifest.

    Obviously, a untouched original code base is totally safe to upgrade - no changes will be lost because none were made.

    For the times when Sugar auto-update finds changes, it should at least flag the files or modules it finds them in, and give the admin the opportunity to save the diffs, and/or save off the full code files, with just a few clicks.

    But then we're getting into a developer role - it can be some work to reintegrate the changes - there's a better way to it - and that's with overrides.

    Sugar needs to evolve to a model like Joomla, Wordpress, Drupal, and other PHP web app frameworks use - overrides.

    The new override code goes in separate files, in separate folders related to the original but in a standard folder hierarchy, and the new code just overrides the behavior of the core dynamically.

    Also, "template overrides" to the Smarty visual template/layout of the application in the browser.
    Last edited by Chris_C; 2012-01-31 at 05:03 PM.
    David Esrati likes this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Advanced Update Sugar 4.5 VS Sugar 5.x
    By mathieuf in forum Installation and Upgrade Help
    Replies: 6
    Last Post: 2009-09-21, 12:32 PM
  2. ACL error during update to Sugar 5
    By stijn75 in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-12-27, 01:40 PM
  3. how to configurate sugar update
    By fionazhao in forum General Discussion
    Replies: 0
    Last Post: 2006-05-16, 01:58 AM
  4. Remove Update Sugar Message
    By ozzieuk in forum Help
    Replies: 1
    Last Post: 2005-12-15, 03:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •