Coder Social home page Coder Social logo

generator-jhipster-es-entity-reindexer's People

Contributors

ebsan avatar euddin1 avatar mraible avatar nitram84 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

generator-jhipster-es-entity-reindexer's Issues

application.yml file gets unnecessary changes

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:

  1. Removal of management:env:enabled:true
  2. spring:application:name is updated to AndroidSoftwarePortal
  3. spring:main:allow-circular-references:true is set (possibly intentional, but no documented explanation ๐Ÿค” )
  4. spring:task:execution:thread-name-prefix is updated to android-software-portal-task-
  5. spring:task:scheduling:thread-name-prefix is updated to android-software-portal-scheduling-
  6. spring:security:oauth2 is removed (somewhat alarming)
  7. jhipster:clientApp:name is updated to androidSoftwarePortalApp
  8. jhipster:api-docs:{title,description} are updated to Android Software Portal API and Android Software Portal API documentation, respectively
  9. jhipster:security:content-security-policy is updated (omitted for brevity)
  10. 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

Indexer not working for React front-end and Reactive backend

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

image

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

gateway_yo.json.txt
microservice_yo.json.txt

Install creates undefined package

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

Allow app to reindex all entities on startup

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.