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

allow reexecutions only for the owner #2038

Merged
merged 8 commits into from
Aug 27, 2021

Conversation

thoniTUB
Copy link
Collaborator

To address that shareholders cannot cancel reexecutions. Shareholders create their own execution, when they execute a share.

awildturtok
awildturtok previously approved these changes Aug 23, 2021
Copy link
Collaborator

@awildturtok awildturtok left a comment

Choose a reason for hiding this comment

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

führt das nicht im Endeffekt dazu, dass User die eine Anfrage geteilt bekommen sie lazy neu erstellt bekommen? Gehen dabei evtl tags und labels kaputt? Ich bin mit nicht ganz sicher, wie der code da läuft.

@thoniTUB
Copy link
Collaborator Author

Ja Tags und Labels würden dabei nicht übernommen werden. Das sollten wir nochmal besprechen

@thoniTUB
Copy link
Collaborator Author

@awildturtok ich habe es jetzt so angepasst, dass eine Kopie mit gleichem Namen und gleichen Tags erzeugt wird. Beides ist dann aber nicht an das Original gekoppelt

@awildturtok awildturtok self-requested a review August 24, 2021 16:42
@@ -159,6 +154,15 @@
}
}

// If the user is not the owner of the execution, we definitely create a new Execution, so the owner can cancel it
if (!user.equals(execution.getOwner())) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

hatten wir nicht sogar eine isOwner Methode?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Stimmt :D

@thoniTUB thoniTUB requested a review from awildturtok August 27, 2021 13:41
@thoniTUB thoniTUB merged commit 0e5f867 into develop Aug 27, 2021
@delete-merged-branch delete-merged-branch bot deleted the feature/reexecute-only-for-owner branch August 27, 2021 14:40
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.

2 participants