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

Task nxp 32775 retention align 2025 #184

Open
wants to merge 2 commits into
base: lts-2025
Choose a base branch
from

Conversation

guirenard
Copy link
Collaborator

No description provided.

@guirenard guirenard force-pushed the task-NXP-32775-retentionAlign-2025 branch from 1724a54 to c24c3b4 Compare January 8, 2025 12:14
@guirenard guirenard force-pushed the task-NXP-32775-retentionAlign-2025 branch from c24c3b4 to a4c37f0 Compare January 8, 2025 17:03
Comment on lines +91 to +95
<dependency>
<groupId>org.nuxeo.ecm.platform</groupId>
<artifactId>nuxeo-search-core</artifactId>
<scope>test</scope>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For information, this is a transitive dependency of nuxeo-platform-query-api which is already in the compile scope.

@@ -132,7 +132,7 @@ public void saveRetainUntil(Calendar retainUntil) {
}

public void setRule(RetentionRule rule, CoreSession session) {
setRuleIds(Arrays.asList(rule.getDocument().getId()));
setRuleIds(Collections.singletonList(rule.getDocument().getId()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setRuleIds(Collections.singletonList(rule.getDocument().getId()));
setRuleIds(List.of(rule.getDocument().getId()));

Comment on lines +219 to +224
LogEntry entry = LogEntry.builder(name, new Date())
.category(RetentionConstants.EVENT_CATEGORY)
.principalName(session.getPrincipal().getName())
.comment(evctx.getInput())
.build();
Framework.getService(AuditBackend.class).addLogEntries(Collections.singletonList(entry));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good idea (for all Nuxeo versions), this should be done by the audit itself by contributing to `"org.nuxeo.audit.service.AuditComponent#event".

Comment on lines +38 to +45
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-core-types.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-adapters.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-vocabularies.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-content-template.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-service-framework.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-listeners.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-operations.xml")
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-actions.xml")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not just @Deploy("org.nuxeo.retention.core")?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants