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

AO3-931 Show placeholder for deleted invitee #5000

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

Conversation

brianjaustin
Copy link
Member

@brianjaustin brianjaustin commented Dec 21, 2024

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-931 (yes, that's a real ticket number 😅 )

Purpose

When a user sends an invitation, someone accepts it, and then the invitee deletes their account, show the old invitee as a placeholder (suggested by PAC/Support elsewhere):

invitations list view with deleted user placeholder

invitation detail with deleted user placeholder

Side note: the invitation detail page is... a bit confusing as-is. I'm OK using this story to update that if we want, but I haven't done that on my own for a number of reasons.

copy_and_use: copy and use
copy_link: Copy link
created_at: Created at
deleted_user: deleted user (%{user_id})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you capitalize "Deleted" here so the invitee and sender will match when we do AO3-6095? I was going to say I'd add the user ID to that issue, but I think it would show the ID to users, not just admins, so we probably don't want that.

Relatedly, are we sure this only shows the user ID if you're an admin?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh at the moment it definitely shows to both, my thought was it's not a big concern because user ID isn't PII. But it's also not particularly useful to a non-admin so I am also not opposed to adding another check in the helper

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's go with an additional check, then! I'll update AO3-6095 to request the same behavior.

link_to(invitation.creator.login, invitation.creator)
elsif invitation.creator.is_a?(Admin)
when Admin
Copy link
Collaborator

Choose a reason for hiding this comment

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

I might be wandering out of scope here, but while I was updating AO3-6095, I noticed it specifies using Deleted admin when the admin is deleted. We don't cover that case here, so is it possible this page would either 500 or incorrectly specify the queue if the admin who issued an invitation was now deleted?

Copy link
Collaborator

@sarken sarken left a comment

Choose a reason for hiding this comment

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

One of these days, I will hit the right button on my review comments. One of them! (And no other.)

Comment on lines +1364 to +1365
deleted_user: deleted user
deleted_user_with_id: deleted user (%{user_id})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you fix the capitalization here? shakes fist at lowercase

@sarken
Copy link
Collaborator

sarken commented Jan 3, 2025

Oh, hey, this is actually the updated version of the issue you worked on: https://otwarchive.atlassian.net/issues/AO3-5498

Would you like to grab that and finish it off?

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

Successfully merging this pull request may close these issues.

2 participants