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

[dashboard] Don't list deleted user projects #5111

Merged
merged 1 commit into from
Aug 9, 2021
Merged

Conversation

jankeromnes
Copy link
Contributor

Fixes #5063

Fun fact: Deleting user projects actually worked as expected, but the observed symptoms were caused by two different problems:

  • The findUserProjects method returned all projects, even those marked as deleted (whereas the findTeamProjects method correctly returned only non-deleted projects)
  • When listing a deleted user project, the page also tried to fetch its prebuilds, which failed with the error reported in the issue

This PR fixes both problems. ✅

@roboquat roboquat requested a review from AlexTugarev August 9, 2021 07:40
Copy link
Member

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

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

Thanks! 👏🏻

@roboquat
Copy link
Contributor

roboquat commented Aug 9, 2021

LGTM label has been added.

Git tree hash: a06e2bf876e37ac79cf295998bd9c7ebe8d75f3a

@roboquat
Copy link
Contributor

roboquat commented Aug 9, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev

Associated issue: #5063

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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.

Can not delete projects for personal accounts
4 participants