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 ACs to delete pending invite assignment edges #1999

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

celestemartinez
Copy link
Member

No description provided.

const conflictPolicy = invitation.content.reviewers_conflict_policy?.value
const conflictNYears = invitation.content.reviewers_conflict_n_years?.value

if (edge.ddate) {
if (edge.label === acceptedLabel) {
return Promise.reject(new OpenReviewError({ name: 'Error', message: `Edge cannot be removed as the user has already accepted the invitation.` }))
Copy link
Member

@melisabok melisabok Jan 29, 2024

Choose a reason for hiding this comment

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

I would change the error message to something more use friendly: "Can not remove the invitation because the invitations was already accepted" or "Can not remove the invitations because it was already responded".

Instead of having an if for each status, can we show a parametrized one? there might be in the future another states so I would prefer to check if the edge.label != "Invitation Sent" then throw error

@celestemartinez celestemartinez marked this pull request as ready for review March 1, 2024 14:41
@melisabok melisabok merged commit b84810f into master Mar 1, 2024
1 check passed
@melisabok melisabok deleted the fix/edit-invite-assignment-edges branch March 1, 2024 18:10
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.

None yet

2 participants