You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "essobedo (via GitHub)" <gi...@apache.org> on 2023/09/01 14:35:25 UTC

[GitHub] [camel] essobedo opened a new pull request, #11280: CAMEL-19752: camel-elasticsearch - Add a doc-only mode to ease migration

essobedo opened a new pull request, #11280:
URL: https://github.com/apache/camel/pull/11280

   Fixes https://issues.apache.org/jira/browse/CAMEL-19752 for 3.20
   
   ## Motivation
   
   For some operations like update, the payload could need to be embedded in a "doc" JSON object which makes the migration from `camel-elasticsearch-rest` more complex.
   
   ## Modifications
   
   * Add the new component option `enableDocumentOnlyMode` to be able to switch globally to a mode that allows the same body content as the legacy component `camel-elasticsearch-rest` to ease the migration
   * Add the new header `enableDocumentOnlyMode` to be able to switch per request to a mode that allows the same body content as the legacy component `camel-elasticsearch-rest` to ease the migration
   * Add more doc about the specific behavior of the update operation
   * Fix all the tests that don't use requests that don't need to be embedded in a "doc" JSON object


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] github-actions[bot] commented on pull request #11280: CAMEL-19752: camel-elasticsearch - Add a doc-only mode to ease migration

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11280:
URL: https://github.com/apache/camel/pull/11280#issuecomment-1702854294

   :star2: Thank you for your contribution to the Apache Camel project! :star2: 
   
   :warning: Please note that the changes on this PR may be **tested automatically**. 
   
   If necessary Apache Camel Committers may access logs and test results in the job summaries!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] essobedo commented on pull request #11280: CAMEL-19752: camel-elasticsearch - Add a doc-only mode to ease migration

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on PR #11280:
URL: https://github.com/apache/camel/pull/11280#issuecomment-1702967855

   Depends on https://github.com/apache/camel/pull/11282


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] essobedo merged pull request #11280: CAMEL-19752: camel-elasticsearch - Add a doc-only mode to ease migration

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo merged PR #11280:
URL: https://github.com/apache/camel/pull/11280


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel] essobedo commented on pull request #11280: CAMEL-19752: camel-elasticsearch - Add a doc-only mode to ease migration

Posted by "essobedo (via GitHub)" <gi...@apache.org>.
essobedo commented on PR #11280:
URL: https://github.com/apache/camel/pull/11280#issuecomment-1702947929

   The build fails due to the next compilation error:
   
   ```
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile (default-testCompile) on project camel-as2: Compilation failure: Compilation failure: 
   [ERROR] /home/runner/work/camel/camel/components/camel-as2/camel-as2-component/src/test/java/org/apache/camel/component/as2/AS2ClientManagerIT.java:[343,37] error: cannot find symbol
   [ERROR]   symbol:   class ApplicationEntity
   [ERROR]   location: class AS2ClientManagerIT
   [ERROR] /home/runner/work/camel/camel/components/camel-as2/camel-as2-component/src/test/java/org/apache/camel/component/as2/AS2ClientManagerIT.java:[344,30] error: cannot find symbol
   [ERROR]   symbol:   class ApplicationEntity
   [ERROR]   location: class AS2ClientManagerIT
   [ERROR] -> [Help 1]
   org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile (default-testCompile) on project camel-as2: Compilation failure
   	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:375)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
   	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
   	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
   	at org.mvndaemon.mvnd.builder.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:198)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
   	at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1310)
   	at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:183)
   	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)
   	... 12 common frames omitted
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org