hipster-labs / generator-jhipster-spring-cloud-stream

:mailbox_closed: JHipster module for messaging microservices with Spring Cloud Stream
Apache License 2.0
22 stars 10 forks source link

TODO list before 1st release #4

Closed pascalgrimaud closed 6 years ago

pascalgrimaud commented 6 years ago

Here a TODO list before the 1st release of this module:

Bug:

Helped by: https://github.com/danielpetisme/jhipster-sample-app-rabbitmq The diff: https://github.com/danielpetisme/jhipster-sample-app-rabbitmq/compare/master...rabbit-binder

Don't hesitate to edit this ticket.

antarus commented 6 years ago

The add of property is made but it does not please me at all. I need to find a way to just modify the original yaml and not rewrite it completely. Currently the formatting is not good, the original comments of yaml are deleted.

Added a property in the file is not complicated, if it is put at the end or beginning of the file. The problem is if i want to add a property with one or more common. Spring.cloud.etc .. I try but regex it's not my cup of tea: D

antarus commented 6 years ago

As kafka does not manage for the moment in our module, should not we block the generation if the main application uses kafka?

pascalgrimaud commented 6 years ago

Yes, we should block if Kafka is already used! No need to use both

danielpetisme commented 6 years ago

Actually you can have both binders (technically speaking). The binder could be an option list with at least one choosen.

antarus commented 6 years ago

yes we should have a list of message broker to display.

pascalgrimaud commented 6 years ago

@antarus :

We won't be able to use these functions unless there is a new release of JHipster. And it won't work for project older than 4.10.2

Here the solution I suggest, which works for older projects and newer:

Are you OK with that ?

antarus commented 6 years ago

@pascalgrimaud

Exactly, I tested only with the generator locally ...sorry ! I would not make the same mistake with switching the yaml code to the main generator, I'll wait for a release before deleting it here.

Yes, we can do it according to your suggestion, it seems to me a good solution.

antarus commented 6 years ago

@pascalgrimaud Since we just need to add properties to the yaml file, I'll do the update and delete methods later if need.

pascalgrimaud commented 6 years ago

it's ok, let's do it later

antarus commented 6 years ago

I correct the anomaly and I try the prompt. I pull request later.

pascalgrimaud commented 6 years ago

@antarus : are you ok to change the main author (pascalgrimaud -> you), as you are the one who coded the most for this module? It won't change anything, as it will be still under Apache Licence.

If yes, these files need to be changed:

Then, you will be the one who will publish the module to https://www.npmjs.com/

antarus commented 6 years ago

@pascalgrimaud Hello, originally, I just wanted to participate and help the jhipster project, since I use it in my company. I did not even use rabbit, this module seemed to me a good base to develop a module with jhipster and give me a preview of the generator. So I'm not sure I'm the best person to manage the npm delivery (which I've never done before: D). I just want to help, add features, for example, I did not find how to integrate this module with the main generator. let me explain :

pascalgrimaud commented 6 years ago

It's OK, I will do release, it's quite simple. If one day you change your mind, I can give you the lead on this.

About your questions. The workflow is:

antarus commented 6 years ago

OK. I agree that the workflow is simple and changes can be made quickly for this module. It seemed to me that the main generator supported module registration to perform certain actions. I have a module and I would like to improve the integration of modules in the main generator. I'm going to think about that, see doing a POC and make a suggestion directly in generator-jhipster.

We are close to a first release it's nice: D

pascalgrimaud commented 6 years ago

Yes, but let's do the release after the official release of generator-jhipster See https://groups.google.com/forum/#!topic/jhipster-dev/rOLxkeCtPYI

antarus commented 6 years ago

yes ! good idea :)

pascalgrimaud commented 6 years ago

I will try to:

If everything is OK, let release !

pascalgrimaud commented 6 years ago

@antarus : do you have Twitter? I want to mention you as soon as this is released.

antarus commented 6 years ago

@pascalgrimaud hello, no i don't use twitter :)

pascalgrimaud commented 6 years ago

Release done! https://twitter.com/pascalgrimaud/status/935413124294995969

Thanks for your hard work, @antarus

antarus commented 6 years ago

yes ;) it's cool !