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: remove teams call for beta project list #1872

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Sep 10, 2024

Description of change

The teams feature is disabled on the beta platform, so we get a 404 if we try to call that endpoint.

How has this been tested? (if applicable)

Tested in beta dev environment.

Comment on lines 2710 to 2717
let team_projects_table = if self.beta {
let team_projects =
client.get_team_projects_list_beta(&team.id).await?.projects;
project::get_projects_table_beta(&team_projects, table_args.raw)
} else {
let team_projects = client.get_team_projects_list(&team.id).await?;
project::get_projects_table(&team_projects, table_args.raw)
};
Copy link
Member

Choose a reason for hiding this comment

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

inner branch can be flattened, or not 🤷‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, indeed!

@oddgrd oddgrd merged commit 651d760 into main Sep 11, 2024
31 of 33 checks passed
@oddgrd oddgrd deleted the fix/remove-teams-call-beta branch September 11, 2024 13:42
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.

2 participants