-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core) Add update and delete command Java/Rest APIs #4333
base: master
Are you sure you want to change the base?
feat(core) Add update and delete command Java/Rest APIs #4333
Conversation
…Instance DELETE /task/{taskId}/comment/{commentId} - deletes a comment of a given taskId and commentId DELETE /task/{taskId}/comment - deletes all comments of a given taskId PUT /task/comment - updates a comment DELETE /process-instance/{processInstanceId}/comment/{commentId} - deletes a comment of a given processInstanceId and commentId DELETE /process-instance/{processInstanceId}/comment. - deletes all comments of a given processInstanceId PUT /process-instance/comment - updates a comment related to: camunda#2551
…nd processInstance DELETE /task/{taskId}/comment/{commentId} - deletes a comment of a given taskId and commentId DELETE /task/{taskId}/comment - deletes all comments of a given taskId PUT /task/comment - updates a comment DELETE /process-instance/{processInstanceId}/comment/{commentId} - deletes a comment of a given processInstanceId and commentId DELETE /process-instance/{processInstanceId}/comment. - deletes all comments of a given processInstanceId PUT /process-instance/comment - updates a comment related to: camunda#2551
…k and processInstance DELETE /task/{taskId}/comment/{commentId} - deletes a comment of a given taskId and commentId DELETE /task/{taskId}/comment - deletes all comments of a given taskId PUT /task/comment - updates a comment DELETE /process-instance/{processInstanceId}/comment/{commentId} - deletes a comment of a given processInstanceId and commentId DELETE /process-instance/{processInstanceId}/comment. - deletes all comments of a given processInstanceId PUT /process-instance/comment - updates a comment related to: camunda#2551
Thank you for raising this. Best, |
Note to myself:
|
@yanavasileva any update on this? |
Thank you for your patience with this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 The changes look good as a start.
Unfortunately, more aspects need to be covered, I left comments below. One more general note:
❌ There's a lot of code duplication in the code of the commands. Please merge the commands (for PI and task) similarly to DeleteAttachmentCmd
. That way, the maintenance of the code will be easier.
...ne/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/UserOperationLogManager.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✍️ The new user operation logs must be documented here: https://docs.camunda.org/manual/latest/user-guide/process-engine/history/user-operation-log/#glossary-of-operations-logged-in-the-user-operation-log
Could you please raise a PR in the docs repo? (page)
engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/CommentEntity.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/CommandChecker.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/auth/AuthorizationCommandChecker.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cfg/multitenancy/TenantCommandChecker.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeleteProcessInstanceCommentCmd.java
Outdated
Show resolved
Hide resolved
engine/src/main/resources/org/camunda/bpm/engine/impl/mapping/entity/Comment.xml
Show resolved
Hide resolved
thank you @yanavasileva. I will work on these changes as soon as possible. |
- add revision to comments - change authorization to task_assign from task_update - refactor code - add more java docs
Signed-off-by: Bhandari, Prajwol <[email protected]>
Closing due to lack of requested feedback. If you would like us to look at this, please provide the requested information to re-open the PR. |
I am done with all changes. I will raise PR as soon as possible. Sent from my iPhoneOn Jul 11, 2024, at 10:05 PM, github-actions[bot] ***@***.***> wrote:
Closed #4333.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
@prajwolbhandari1, you can continue the work in this one, I reopened it for you. |
@yanavasileva just pushed changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started the review and to avoid losing the progress, I am posting my comments so far.
engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/db2_engine_7.21_to_7.22.sql
Outdated
Show resolved
Hide resolved
engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mariadb_engine_7.21_to_7.22.sql
Outdated
Show resolved
Hide resolved
engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mssql_engine_7.21_to_7.22.sql
Outdated
Show resolved
Hide resolved
engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mssql_engine_7.21_to_7.22.sql
Outdated
Show resolved
Hide resolved
engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mssql_engine_7.21_to_7.22.sql
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeleteProcessInstanceCommentCmd.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeleteTaskCommentCmd.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/UpdateCommentCmd.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Good one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yanavasileva thanks for the review. Are you done reviewing the PR? If you are, I can quickly make these good feedbacks. Please let me know. Thanks again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yanavasileva what exactly do you mean by size limit?
Let me know what u think. I want to wait till you are done with your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am done with the review, please proceed with adjustments.
Pay attention to these important findings:
- link
- link
- some of the test cases where for standalone tasks, we need to cover task part of process instances too.
Heads up, we approach the minor release code freeze.
❗ If you want the feature to be included in 7.22.0, please apply the feedback by 19th of September. I will try to check it on time and merge accordingly.
When you are ready with the changes. I kindly ask you to:
- run the engine test suite:
mvn clean install -f engine/pom.xml
- run the engine-rest tests:
mvn clean install -Pjersey2 -f engine-rest/engine-rest/pom.xml
- If tests are green, request a new review for the PR.
...ne-rest/src/main/java/org/camunda/bpm/engine/rest/sub/task/impl/TaskCommentResourceImpl.java
Outdated
Show resolved
Hide resolved
...ne-rest/src/main/java/org/camunda/bpm/engine/rest/sub/task/impl/TaskCommentResourceImpl.java
Outdated
Show resolved
Hide resolved
...ne-rest/src/main/java/org/camunda/bpm/engine/rest/sub/task/impl/TaskCommentResourceImpl.java
Show resolved
Hide resolved
...ne-rest/src/main/java/org/camunda/bpm/engine/rest/sub/task/impl/TaskCommentResourceImpl.java
Outdated
Show resolved
Hide resolved
...in/java/org/camunda/bpm/engine/rest/sub/runtime/impl/ProcessInstanceCommentResourceImpl.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/camunda/bpm/engine/test/api/authorization/TaskCommentAuthorizationTest.java
Outdated
Show resolved
Hide resolved
...a/org/camunda/bpm/engine/test/api/authorization/ProcessInstanceCommentAuthorizationTest.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeleteProcessInstanceCommentCmd.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/UpdateCommentCmd.java
Outdated
Show resolved
Hide resolved
engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DeleteProcessInstanceCommentCmd.java
Outdated
Show resolved
Hide resolved
- fix verbiage in ftl files - add standalone tests for delete comment(s) by process instance id and task id - fix/rewrite sql statement - write additional process instance tests - few minor changes
I am preparing for the changes. Pushing the changes soon. |
@yanavasileva FYI, just pushed my changes. |
The branch has conflicts. Could you please resolve them, it will easy the review process. |
# Conflicts: # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/db2_engine_7.21_to_7.22.sql # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/h2_engine_7.21_to_7.22.sql # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mariadb_engine_7.21_to_7.22.sql # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mssql_engine_7.21_to_7.22.sql # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/mysql_engine_7.21_to_7.22.sql # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/oracle_engine_7.21_to_7.22.sql # engine/src/main/resources/org/camunda/bpm/engine/db/upgrade/postgres_engine_7.21_to_7.22.sql
will do as soon as possible |
@yanavasileva FYI, Resolved conflicts. |
@yanavasileva any update on this? Feel free to make any necessary minor adjustments if it will help speed up the code merge for the upcoming release. |
Hi Team, Unfortunately, the feature won't make the cut for the 7.22 release. @prajwol123 / @prajwolbhandari1
Please note, that all Fidelity branches can't be adjusted by us, the fork don't allow edits. So it's not so easy to do even minor changes on the code of your contributions. If you want you can reconsider to enable editing. Best, |
Hey, no worries. Thank you for your help. Let's shoot for next release. Please let me know what you think about the latest code changes. |
Any updates on this ? @yanavasileva |
any ideas ? @yanavasileva |
deletes a comment of a given taskId and commentId
deletes all comments of a given taskId
updates a comment
deletes a comment of a given processInstanceId and commentId
deletes all comments of a given processInstanceId
updates a comment
related to: #2551