Skip to content

Emit notif references - #266

Merged
souissimai merged 20 commits into
mainfrom
emit-notif-references
Sep 24, 2026
Merged

souissimai merged 20 commits into
mainfrom
emit-notif-references

Conversation

@souissimai

Copy link
Copy Markdown
Contributor

PR Summary

SOUISSI Maissa (Externe) added 7 commits August 14, 2026 17:02
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
SOUISSI Maissa (Externe)
fix
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
SOUISSI Maissa (Externe)
fix
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 1296e119-613f-4c15-bec7-f027249c50d4


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

SOUISSI Maissa (Externe)
fix
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
@souissimai
souissimai changed the base branch from main to update-reference-element August 26, 2026 12:11
SOUISSI Maissa (Externe) added 4 commits August 26, 2026 21:11
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
Base automatically changed from update-reference-element to main August 27, 2026 11:43
souissimai and others added 2 commits August 30, 2026 17:26
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>

private void notifySharedElementHasChanged(DirectoryElementEntity sharedElement, String userId) {
Map<ReferenceType, List<ReferenceAttributes>> referencesByType = ElementAttributes.toReferencesAttributesByType(sharedElement);
boolean hasRelevantReference = Stream.of(ReferenceType.STUDY_NODE, ReferenceType.NETWORK_MODIFICATION)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this test really necessary ?
Why only STUDY_NODE and NETWORK_MODIFICATION ?

    Map<ReferenceType, List<ReferenceAttributes>> referencesByType = ElementAttributes.toReferencesAttributesByType(sharedElement);
    if (referencesByType.values().stream().anyMatch(not(List::isEmpty))) {
        notificationService.emitSharedElementChanged(sharedElement.getId(), referencesByType, userId);
    }


@Test
@SneakyThrows
void testSharedElementUpdateNotification() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rename by testSharedElementUpdated


@Test
@SneakyThrows
void testElementUpdateNotificationWithoutSharedReferences() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ranme by testElementUpdated

Comment thread src/test/java/org/gridsuite/directory/server/DirectoryTest.java
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
SOUISSI Maissa (Externe) and others added 2 commits September 11, 2026 11:24
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
SOUISSI Maissa (Externe) and others added 2 commits September 22, 2026 14:11
SOUISSI Maissa (Externe)
fix
Signed-off-by: SOUISSI Maissa (Externe) <souissimai@gm0winl878.bureau.si.interne>
@sonarqubecloud

Copy link
Copy Markdown

@souissimai
souissimai merged commit c811eea into main Sep 24, 2026
5 checks passed
@souissimai
souissimai deleted the emit-notif-references branch September 24, 2026 09:45
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