Skip to content

ref(projects): Redirect post project transfer to project teams page #52925

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

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

ceorourke
Copy link
Member

When a user approves transferring a project to a new organization the project isn't added to a team which results in confusion because the project doesn't show up on the projects page. The user needs to add the project to a team for it to show up in most places in the UI, so we should redirect them to the appropriate page to do so.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 14, 2023
this.props.router.push(normalizeUrl(`/organizations/${orgSlug}/projects/`));
const projectSlug = this.state.transferDetails.project.slug;
this.props.router.push(
normalizeUrl(`/settings/${orgSlug}/projects/${projectSlug}/teams/`)
Copy link
Member Author

@ceorourke ceorourke Jul 14, 2023

Choose a reason for hiding this comment

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

This was tough to test locally since we can't create new organizations - I went directly to the accept-transfer endpoint to accept the transfer, but it's not actually doing anything since it's "transferring" a project to the org it already belongs in.

Testing this in prod I was surprised to see that after accepting the project transfer, I'm not redirected to the project's new organization, which is what I'd expect to happen based on the existing code.

@ceorourke ceorourke requested a review from a team July 14, 2023 22:31
@ceorourke ceorourke merged commit bb60f37 into master Jul 18, 2023
@ceorourke ceorourke deleted the ceorourke/project-transfer-redirect branch July 18, 2023 16:44
ceorourke added a commit that referenced this pull request Jul 18, 2023
ceorourke added a commit that referenced this pull request Jul 18, 2023
…s page" (#53089)

Reverts #52925 #53087 

Sadly it did not work, not sure why but it doesn't redirect to the new
org so you just land on a page that says the project was not found
(since it was transferred).
ceorourke added a commit that referenced this pull request Jul 25, 2023
Take 2 of #52925 

When a user approves transferring a project to a new organization the
project isn't added to a team which results in confusion because the
project doesn't show up on the projects page. The user needs to add the
project to a team for it to show up in most places in the UI, so we
should redirect them to the appropriate page to do so.
chloeho7 pushed a commit that referenced this pull request Jul 25, 2023
Take 2 of #52925 

When a user approves transferring a project to a new organization the
project isn't added to a team which results in confusion because the
project doesn't show up on the projects page. The user needs to add the
project to a team for it to show up in most places in the UI, so we
should redirect them to the appropriate page to do so.
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants