Closed pascalgrimaud closed 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
As kafka does not manage for the moment in our module, should not we block the generation if the main application uses kafka?
Yes, we should block if Kafka is already used! No need to use both
Actually you can have both binders (technically speaking). The binder could be an option list with at least one choosen.
yes we should have a list of message broker to display.
@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 ?
@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.
@pascalgrimaud Since we just need to add properties to the yaml file, I'll do the update and delete methods later if need.
it's ok, let's do it later
I correct the anomaly and I try the prompt. I pull request later.
@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/
@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 :
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:
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
Yes, but let's do the release after the official release of generator-jhipster See https://groups.google.com/forum/#!topic/jhipster-dev/rOLxkeCtPYI
yes ! good idea :)
I will try to:
If everything is OK, let release !
@antarus : do you have Twitter? I want to mention you as soon as this is released.
@pascalgrimaud hello, no i don't use twitter :)
Release done! https://twitter.com/pascalgrimaud/status/935413124294995969
Thanks for your hard work, @antarus
yes ;) it's cool !
Here a TODO list before the 1st release of this module:
Bug:
MessageRessource
toMessageResource
-> fixed by https://github.com/hipster-labs/generator-jhipster-spring-cloud-stream/pull/5Helped 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.