Skip to content

Conversation

@pkjacob
Copy link
Contributor

@pkjacob pkjacob commented Oct 13, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings October 13, 2025 14:29
@pkjacob pkjacob marked this pull request as draft October 13, 2025 14:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors the resource event publishing system to support indexing new hubs in mod-search. The changes extract event publishing logic into a dedicated service that can intelligently identify and publish events for hub resources.

  • Introduces ResourceEventsPublisher interface and implementation to centralize event publishing
  • Replaces direct ApplicationEventPublisher usage with the new abstraction across service classes
  • Adds logic to identify and create events for new hub resources recursively

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ResourceEventsPublisher.java New interface defining methods for publishing resource events
ResourceEventsPublisherImpl.java Implementation that delegates to ResourceEventsProvider for event creation
ResourceEventsProvider.java Internal interface for generating resource events
ResourceEventsProviderImpl.java Core logic for identifying hub resources and creating appropriate events
ResourceServiceImpl.java Updated to use new ResourceEventsPublisher instead of direct ApplicationEventPublisher
ResourceMarcBibServiceImpl.java Updated to use new ResourceEventsPublisher instead of direct ApplicationEventPublisher
ResourceServiceImplTest.java Test updates to verify new event publishing behavior
ResourceMarcBibServiceImplTest.java Test updates to verify new event publishing behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@folio-org folio-org deleted a comment from Copilot AI Oct 13, 2025
@folio-org folio-org deleted a comment from Copilot AI Oct 13, 2025
@pkjacob pkjacob force-pushed the pjacob/MODLD-894 branch 4 times, most recently from 2db4a7e to f4eb19f Compare October 15, 2025 21:09
@pkjacob pkjacob requested a review from zepheiryan October 15, 2025 21:10
@pkjacob pkjacob force-pushed the pjacob/MODLD-894 branch 2 times, most recently from 0ebf547 to b041f72 Compare October 16, 2025 18:11
@pkjacob pkjacob requested review from PBobylev and removed request for PBobylev and zepheiryan October 16, 2025 20:52
@pkjacob pkjacob requested a review from Copilot October 16, 2025 21:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqubecloud
Copy link

@pkjacob pkjacob requested a review from zepheiryan October 17, 2025 20:28
@pkjacob pkjacob marked this pull request as ready for review October 17, 2025 21:14
@pkjacob pkjacob merged commit 4927f24 into master Oct 20, 2025
7 checks passed
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.

3 participants