The project root should redirect to the first mount in the nav bar to which the user has 'read' access.
Write a script that updates all projects:
The home page content should be moved into a new wiki called "Home", in the first position.
The home tool itself should then be uninstalled.
Diff:
Diff:
after discussion with Mark: redirect project to the first mount in tool-bar order to which the user has 'read' (or better) access, even if that mount is a subproject or the admin tool
Diff:
work is on forge:wo/1507. Script is run like this
Things to test: do Wikis still work (particularly changing the home page or turning the discussion/left-bar on or off); are Wikis created in the first position, do they contain the correct content. Are Wikis not created for projects that didn't have home tools. Are all home tools replaced. Does going to the project itself automatically redirect to the new home Wiki now (or whatever mount is first).
The things not mentioned in this ticket:
are on wo/1507b, but they still need a little more work
ac.options['ordinal'] if 'ordinal' in ac.options else 0
couldn't that be better writtenac.options.get('ordinal', 0)
?{'neighborhood_id
: {'$ne': ObjectId("4be2faf8898e33156f00003e")}}` ? (that's the u nbhd id in prod)need re-review of the script on wo/1507... super hard to test so maybe just code review. If you want to try testing, copy the script onto a sandbox that was built before the change to home creation, then run the script and see if it survives
the code looks good from review -- the proof will be when it's run I guess.