Ticket #2547 (assigned enhancement)

Opened 8 years ago

Last modified 8 years ago

Field property in TreeCache and use in getFolderInfo

Reported by: gracinet Owned by: cgoutte
Priority: P2 Milestone: CPS 3.6.1
Component: CPSCore Version: unspecified
Severity: normal Keywords:

Description (last modified by gracinet) (diff)

Most common use-cases of customization would be covered if getFolderInfo could be passed (by Tree Cache Updater) a list of fields to be extracted and put them directly in the results.

Even the short_title logic should become a field (through a read- or write- process expression).

Note that CPSCore is not supposed to be aware of CPSSchemas concepts, but in the property label/help, one could make explicit that "field" is purely abstract in that context: its meaning actually depends on the chosen extractor.

Once that's done, getFolderInfo gets generic enough, so that one may consider replacing it by in an adapter on ICPSProxy providing ITreeCacheInfoExtractor (interface to be created) to keep the door open for deeper customization.

Impacted products: CPSCore (new property), CPSDefault (getFolderInfo or adapter registration) and potentially CPSSchemas (Data Model based adapter definition to ITreeCacheInfoExtractor)

Change History

comment:1 Changed 8 years ago by gracinet

  • Owner changed from gracinet to cgoutte
  • Status changed from new to assigned
  • Description modified (diff)
Note: See TracTickets for help on using tickets.