Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N°6275 - Propose CaseLog extensibility API to manage history #493

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

odain-cbd
Copy link
Contributor

@odain-cbd odain-cbd commented May 10, 2023

Why?
ormCaseLog tend to become huge sometimes (seen in iTop SaaS infrastructure). it could be nice to implement some shrinking logic.

There is also a remaining bug regarding broken indexes:

N°5341 - Repair misalignment between Caselog and caselog index

Current PR aims at proposing an extension API to manipulate ormCaseLog objects (while calling constructor/AddLogEntry* methods). With such an API we could for example propose some repairment algorithm apart from any iTop release.

** Configuration **
Once you have written your own classes that implement iOrmCaseLogExtension interface, you have also to configure which one will be enabled via iTop following configuration variable: ormcaselog_extension_classes
This is the sorted list of enabled extension.

Example of proposed configuration (config-itop.php):

'ormcaselog_extension_classes' => [
'Combodo\\iTop\\Extension1',
'Combodo\\iTop\\Extension2',
'Combodo\\iTop\\Extension3',
]

@odain-cbd odain-cbd added enhancement New feature or request core API internal Work made by Combodo labels May 10, 2023
@odain-cbd odain-cbd self-assigned this May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API core enhancement New feature or request internal Work made by Combodo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant