Item14343: Minor topic rearranging to further simplify upgrades.
Priority: Enhancement
Current State: Being Worked On
Released In: 2.2.0
Target Release: minor
There are probably some low hanging fruit to help simplify upgrades to new Foswiki versions.
- Remove AdminUserLeftBar.txt from the upgrade package. No code change, that's just a procedure issue.
- Move Main.GroupViewTemplate to System.GroupViewTemplate. For the most part, the template will be found automatically based upon the template search path.
- Change Main.WikiGroups to %INCLUDE{"Main.WikiGroupsComponents, System.WikiGroupsComponents", and move the "guts" to System.WikiGroupsComponents.
- Move Main.GroupTemplate to System.GroupTemplate.
- 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