Ticket #1703 (new defect)

Opened 2 years ago

Last modified 2 years ago

Portlet cache parameters GS initialisation

Reported by: gracinet Assigned to: gracinet
Priority: P2 Milestone: CPS 3.5.0
Component: CPSPortlets Version: 3.4.0
Severity: minor Keywords: portlet cache parameters event
Cc:

Description

Portlets created by Generic Setup have wrong cache parameters. Namely, the list of interesting events is empty after the import. A call to portlet.resetInterestingEvents solves the observed cache-related problems.

Reminders: portlet interesting events are object-level granular, which is potentially great but doesn't get leveraged. They simply are reset by cpsportlet_edit.py, afaict.

I plan to have the XML adapter call the above method if the list of events is empty.

Change History

07/23/06 15:06:36 changed by gracinet

  • severity changed from critical to minor.

Digging a bit further:

  • the tool's rebuild_portlets(), which is exposed in the Rebuild ZMI tab, calls resetInterestingEvents() on each portlet
  • the GS adapter for the portlets *tool* calls rebuild_portlets().

The latter means that the described issue applies to those extension profiles that don't have a portlets.xml file only. Putting a dummy one in the profile and running the step (actually, twice !) solves the issue, too.

In any case, the situation isn't very user-friendly. An option would be to lift the call of rebuild_portlets() to the import step handler, at the very end of the process.