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

Fix incorrect deleteDraftProject logic #826

Merged
merged 1 commit into from
May 28, 2024

Conversation

rmunn
Copy link
Contributor

@rmunn rmunn commented May 28, 2024

Fixes #825.

This bug prevents the admin dashboard from being able to delete any projects, draft or real, because we got the conditional logic wrong, submitting deleteDraftProjects for real projects and deleteProject for draft projects.

@rmunn rmunn self-assigned this May 28, 2024
@rmunn rmunn requested a review from myieye May 28, 2024 08:17
Copy link

UI unit Tests

11 tests  ±0   11 ✅ ±0   0s ⏱️ ±0s
 3 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 3c26403. ± Comparison against base commit b2af1d4.

@rmunn
Copy link
Contributor Author

rmunn commented May 28, 2024

I can confirm that this works: I deployed a testing branch to our develop environment and couldn't delete any projects. (I was getting "Draft project not found" GQL errors when trying to delete the real project). Then I committed this fix to that same branch and deployed to develop again, and now I could delete projects again.

Copy link
Contributor

@myieye myieye left a comment

Choose a reason for hiding this comment

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

Excellent 😃

@rmunn rmunn merged commit b4e4061 into develop May 28, 2024
9 checks passed
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.

Draft project deletion has backwards logic
2 participants