Skip to content

Commit

Permalink
adjust search engine warning. (#26143)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored May 15, 2024
1 parent d784835 commit c290eb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generators/server/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,13 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
// Don't touch the configuration for microservice entities published at gateways
!(applicationTypeGateway && entityConfig.microserviceName) &&
!application.searchEngineAny &&
!entityConfig.searchEngine
entityConfig.searchEngine !== NO_SEARCH_ENGINE
) {
if (entityConfig.searchEngine) {
this.log.warn('Search engine is enabled at entity level, but disabled at application level. Search engine will be disabled');
}
// Search engine can only be enabled at entity level and disabled at application level for gateways publishing a microservice entity
entityConfig.searchEngine = NO_SEARCH_ENGINE;
this.log.warn('Search engine is enabled at entity level, but disabled at application level. Search engine will be disabled');
}
},
configureModelFiltering({ application, entityConfig }) {
Expand Down

0 comments on commit c290eb9

Please sign in to comment.