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

Juno Deletion Routes + Tweaks #182

Open
13 tasks
UZ9 opened this issue Mar 4, 2025 · 0 comments
Open
13 tasks

Juno Deletion Routes + Tweaks #182

UZ9 opened this issue Mar 4, 2025 · 0 comments
Assignees

Comments

@UZ9
Copy link
Contributor

UZ9 commented Mar 4, 2025

Overview

To support the deletion of users and projects, new routes need to be added to Juno. While you're at it, there's a few other QoL tweaks. We want to switch some of our methods to "replace if exists" rather than "throw error if exists." We've already had several situations where a mistyped sendgrid key has to be manually changed on our side when they could've entered in a new key.

Requirements

  • NEW: DELETE /user route
  • NEW: DELETE /project route -> also unlinks all users from the project
  • CHANGE: POST /email/setup -> instead of erroring with sendgrid key already exists, replace the existing sendgrid key (otherwise if someone mistypes their sendgrid key we don't have to go in and delete it)
  • CHANGE: POST /email/register-domain -> same, replace if already exists
  • CHANGE: POST /email/verify-domain -> same, replace if already exists

Testing

  • Test deleting an existing user
  • Test deleting a nonexistent user
  • Test deleting existing project
  • Test deleting non-existent project
  • Test that user linked to project is no longer linked to project after project deletion
  • Test being able to replace existing sendgrid key (and potentially remove old test intentionally throwing an error if it exists)
  • Same for /email/register-domain
  • Same for /email/verify-domain
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

No branches or pull requests

2 participants