You are here: Foswiki>Tasks Web>Item14343 (13 Jun 2018, GeorgeClark)Edit Attach

Item14343: Minor topic rearranging to further simplify upgrades.

pencil
Priority: Enhancement
Current State: Being Worked On
Released In: 2.2.0
Target Release: minor
Applies To: Engine
Component: FoswikiUsability
Branches: Item14343 master Item14288 Item14454 Item14380 Item14537
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
There are probably some low hanging fruit to help simplify upgrades to new Foswiki versions.

  1. Remove AdminUserLeftBar.txt from the upgrade package. No code change, that's just a procedure issue.
  2. Move Main.GroupViewTemplate to System.GroupViewTemplate. For the most part, the template will be found automatically based upon the template search path.
  3. Change Main.WikiGroups to %INCLUDE{"Main.WikiGroupsComponents, System.WikiGroupsComponents", and move the "guts" to System.WikiGroupsComponents.
  4. Move Main.GroupTemplate to System.GroupTemplate.
  5. Edit TopicUserMapping.pm, to look for GroupTemplate in the Usersweb, then System web.

-- GeorgeClark - 16 Mar 2017

Currently our "upgrade" package for the Main web only ships 4 files We probably can easily eliminate these:
 Foswiki-upgrade-2.1.3/data/Main/GroupTemplate.txt
 Foswiki-upgrade-2.1.3/data/Main/GroupViewTemplate.txt
 Foswiki-upgrade-2.1.3/data/Main/WikiGroups.txt
 Foswiki-upgrade-2.1.3/data/Main/AdminUserLeftBar.txt

We could probably also drop the _default and _empty webs completely from the upgrade package.

-- GeorgeClark - 16 Mar 2017

GroupTemplate usage is hardcoded into TopicUserMappingContrib. It's a minor change to check for System.GroupTemplate if Main.GroupTemplate does not exist.

-- GeorgeClark - 16 Mar 2017

Checked into the Item14343 branch. Should be okay to merge but want 2nd set of eyes please.

-- GeorgeClark - 17 Mar 2017

Reopening. These changes are vulnerable to the Item14629 issues. The topics that can be customized by creating a topic in the Main web need to be secured by configuration.

-- GeorgeClark - 04 Mar 2018

 
Topic revision: r13 - 13 Jun 2018, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy