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

[ALFREDAPI-554] make service beans available in main application context #218

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

pvriel
Copy link
Contributor

@pvriel pvriel commented Jun 14, 2024

https://xenitsupport.jira.com/browse/ALFREDAPI-554

Problem: Alfred API's service beans (e.g. ISearchService) are present in a separate child application context, making them unavailable for AMPs to be used.

This PR makes the beans of the apix-impl subproject available in the main application context of Alfresco, which Alfresco also uses when initializing beans of AMPs.

Note to the reviewer: I noticed that running the test Gradle task does not work. The following problems occur:
TypeServiceUnitTest:
- testGetTypeDefinition_returnsNull_whenQnameInvalid
SetMetadataUnitTest:
- testGeneralizeTypeWithCleanUpEnabled
- testGeneralizeTypeWithCleanUpdisabled
SearchFacetServiceUnitTest:
- assertThat_getFacetResults_returnIncludes_translationsForListOfValueConstraints
SearchServiceUnitTest:
- all tests, except for testDefaultSearchQueryConsistencyIsTransactionalIfPossible
However, I noticed the same problem when running these tests on the master branch. These errors do not represent a new bug introduced by this PR.

@pvriel pvriel merged commit 5640ba8 into master Jun 17, 2024
11 checks passed
@pvriel pvriel deleted the ALFREDAPI-554-expose-services-in-main-app-context branch June 17, 2024 13:28
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