Conversation
JimSuplizio
left a comment
There was a problem hiding this comment.
//CC @kushagraThapar
Is this even the correct place to put this? If this is a sample shouldn't it be under sdk/spring/azure-spring-boot-samples with the rest of them? The way this PR is, right now, is not something I want being checked in. sdk/spring samples notwithstanding, this is another thing that's using the spring boot BOM which should not outside of the sdk/spring/azure-spring-boot-samples directory.
Also, what's the difference between this and what's in sdk/spring/azure-spring-boot-samples/azure-spring-boot-sample-cosmosdb
|
@JimSuplizio - These set of samples are not related to azure-spring-boot-samples, but rather just a sample set of azure-spring-data-cosmosdb. The difference between what is present here and what is present is azure-spring-boot-samples is that the latter one uses azure-spring-boot-starter projects as for samples. That being said, I am also thinking, do we really need the samples project here, or can we have it somewhere else in a central location - like in azure-samples repo: https://github.com/Azure-Samples @jialindai @yiliuTo @saragluna thoughts ? |
|
Hi @kushagraThapar , I agree with you that this sample is not related with those in azure-spring-boot project, and it's better to be placed here. As for your concern about moving this sample to a central repo, I think reserving this sample here can help guide the use of the azure-spring-data-cosmosdb project. Besides, in this stage of repo migration, how about we focusing on moving this whole spring-data-cosmosdb project to SDK repo first? |
I agree on moving it as it is. I was wondering whether we should just leave it and not move it at all :) And we can worry about it later. But since the PR is already opened let's get it in now :) |
|
/CC @mitchdenny Right now, I kind of have a problem with this particular change for the following reasons:
|
|
Hi @JimSuplizio , for the point 1, I think I should add this sample as an additional module in sdk/cosmos/ci.yml. And for point 2 and 3, what is the meaning of "contained" you mentioned? Besides, since it's a sample project just like those in azure-spring-boot project, I think it's unlikely to be imported as a dependency by other modules in this SDK repo. And from this view, could it be permitted that this sample use spring boot BOM as parent instead of azure-client-sdk-parent? |
|
//CC @kushagraThapar @saragluna To be 100% clear, I will not accept any library/sample/starter that parents off of spring-boot-starter-parent outside of the spring subdirectory. |
|
@yiliuTo - The way these samples are configured (with pom file hierarchies and taking dependencies on spring-boot-bom) it does not fit the engineering pattern in azure-sdk-for-java.
I like the second option better and would like to close this PR. @JimSuplizio @jialindai @saragluna - let me know your thoughts ? |
kushagraThapar
left a comment
There was a problem hiding this comment.
The pom structure needs to be fixed before we get this in.
|
Guys, since we don't have one conclusion for the sample location now. I agree with @kushagraThapar that we should close this PR and revisit sample problem after track 2 work (migrate to cosmos sdk v4) which is more important. |
Thanks @jialindai for your input, @yiliuTo - Please close this PR. |
This pr migrates a sample of spring-data-cosmosdb to sdk/cosmos/azure-spring-data-cosmosdb/samples.