Skip to content
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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

prajwolbhandari1
Copy link
Contributor

  • 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: #2551

…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
@yanavasileva
Copy link
Member

Hi @prajwolbhandari1,

Thank you for raising this.
We will have a look and get back to you. As the changes are a lot it might take some time to cover everything.

Best,
Yana

@yanavasileva
Copy link
Member

Note to myself:

  • docs for user operation logs and authorizations

@prajwol123
Copy link

@yanavasileva any update on this?

@yanavasileva
Copy link
Member

Thank you for your patience with this.
I didn't have the time to start with the review yet. I will get to it next week.

Copy link
Member

@yanavasileva yanavasileva left a 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.

Copy link
Member

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)

@github-actions github-actions bot added the group:stale DRI: Yana label Jun 15, 2024
@prajwolbhandari1
Copy link
Contributor Author

thank you @yanavasileva. I will work on these changes as soon as possible.

@github-actions github-actions bot added group:stale DRI: Yana and removed group:stale DRI: Yana labels Jun 20, 2024
- add revision to comments
- change authorization to task_assign from task_update
- refactor code
- add more java docs
@github-actions github-actions bot removed the group:stale DRI: Yana label Jun 27, 2024
@yanavasileva yanavasileva changed the title feat(engine, engine-rest-core, engine-rest-openapi) Add update and delete Java/Rest APIs of task and processInstance feat(core) Add update and delete command Java/Rest APIs Jun 27, 2024
@github-actions github-actions bot added the group:stale DRI: Yana label Jun 28, 2024
@github-actions github-actions bot added group:stale DRI: Yana and removed group:stale DRI: Yana labels Jul 3, 2024
Copy link

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.

@prajwol123
Copy link

prajwol123 commented Jul 12, 2024 via email

@yanavasileva
Copy link
Member

@prajwolbhandari1, you can continue the work in this one, I reopened it for you.

@prajwolbhandari1
Copy link
Contributor Author

@yanavasileva just pushed changes

@yanavasileva yanavasileva self-requested a review August 13, 2024 07:17
Copy link
Member

@yanavasileva yanavasileva left a 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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Good one.

Copy link
Contributor Author

@prajwolbhandari1 prajwolbhandari1 left a 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.

Copy link
Contributor Author

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?

@prajwolbhandari1
Copy link
Contributor Author

@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.

Let me know what u think. I want to wait till you are done with your review.

@yanavasileva yanavasileva self-requested a review September 7, 2024 10:34
Copy link
Member

@yanavasileva yanavasileva left a 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.

- 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
@prajwolbhandari1
Copy link
Contributor Author

I am preparing for the changes. Pushing the changes soon.

@prajwolbhandari1
Copy link
Contributor Author

@yanavasileva FYI, just pushed my changes.

@yanavasileva
Copy link
Member

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
@prajwol123
Copy link

The branch has conflicts. Could you please resolve them, it will easy the review process.

will do as soon as possible

@prajwolbhandari1
Copy link
Contributor Author

The branch has conflicts. Could you please resolve them, it will easy the review process.

will do as soon as possible

@yanavasileva FYI, Resolved conflicts.

@prajwol123
Copy link

@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.

@yanavasileva
Copy link
Member

Hi Team,

Unfortunately, the feature won't make the cut for the 7.22 release.

@prajwol123 / @prajwolbhandari1

Feel free to make any necessary minor adjustments if it will help speed up the code merge for the upcoming release.

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,
Yana

@prajwol123
Copy link

Hi Team,

Unfortunately, the feature won't make the cut for the 7.22 release.

@prajwol123 / @prajwolbhandari1

Feel free to make any necessary minor adjustments if it will help speed up the code merge for the upcoming release.

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,

Yana

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.

@prajwol123
Copy link

Any updates on this ? @yanavasileva

@prajwol123
Copy link

any ideas ? @yanavasileva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants