ebsan / generator-jhipster-es-entity-reindexer Goto Github PK
View Code? Open in Web Editor NEWGenerates code to reindex selected entities with Elasticsearch.
License: Apache License 2.0
Generates code to reindex selected entities with Elasticsearch.
License: Apache License 2.0
We should be able to add Application properties for reindex-on-startup to application.yml without rewriting the whole file. There is no jhipster needle for it but alternative is dicussed in jhipster/generator-jhipster#17838.
Version 1.0.2
JHipster 7.9.3
During the installation of the generator, the application.yml
looks to have received several changes that were unintended.
Specifically:
management:env:enabled:true
spring:application:name
is updated to AndroidSoftwarePortal
spring:main:allow-circular-references:true
is set (possibly intentional, but no documented explanation ๐ค )spring:task:execution:thread-name-prefix
is updated to android-software-portal-task-
spring:task:scheduling:thread-name-prefix
is updated to android-software-portal-scheduling-
spring:security:oauth2
is removed (somewhat alarming)jhipster:clientApp:name
is updated to androidSoftwarePortalApp
jhipster:api-docs:{title,description}
are updated to Android Software Portal API
and Android Software Portal API documentation
, respectivelyjhipster:security:content-security-policy
is updated (omitted for brevity)jhipster:security:oauth2
is removed (somewhat alarming, but possibly an artifact of a missing EOF line feed and Git behaviors)I reverted these changes, leaving only application:elasticsearch:reindex-on-startup:true
Using Jhipster 7.9.3 when I generate a standard gateway and basic entity and chose "react" instead of angular as client framework the reindexer will not work and gives the following error
When creating a standard reactive microservice with a basic entity when the reindex is run the resulting generated ElasticsearchIndexService class tries to use jpaRepository instead of R2dbcRepository and contains compile errors.
Jhipster version: 7.9.3
node version: v16.13.0
npm version: 8.1.0
Version 1.0.2
JHipster 7.9.3
Installed per instructions, npm install -g generator-jhipster-es-entity-reindexer
then followed with yo jhipster-es-entity-reindexer
Classes were placed in /src/main/java/undefined/{config,web/rest,service}
:
% pwd
~/Development/monolith/src/main/java/undefined
% ls **/*
config/ApplicationProperties.java service/ElasticsearchIndexService.java web/rest/ElasticsearchIndexResource.java
config:
ApplicationProperties.java
service:
ElasticsearchIndexService.java
web:
rest
web/rest:
ElasticsearchIndexResource.java
Previous versions allowed an environment variable set by the user to reindex all entities. Another way to do it would be to add a Application Specific property for the ApplicationProperties class. There may be more ways to do this so we need to investigate.
The original module handled Jhipster applications that skipped frontend or backend parts of the app (https://www.jhipster.tech/separating-front-end-and-api/).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.