You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is impossible to use the Update project method to rename a project. Sending an object requires us to use the current slug. we can update the Name property but this one maps to the Legacy Name.
The current implementation use the slug from the object. Instead, the slug should be a separate parameter UpdateProject(o Organization, projectSlug string, p Project)
Another problem is to get the output value of the update method. For that, we should be able to pass a reference to the update method.
Current implementation:
// UpdateProject takes a organization and project then updates it on the server sidefunc (c*Client) UpdateProject(oOrganization, pProject) error {
returnc.do("PUT", fmt.Sprintf("projects/%s/%s", *o.Slug, *p.Slug), &p, &p)
}
Suggested implementation:
// UpdateProject takes a organization and project then updates it on the server sidefunc (c*Client) UpdateProject(oOrganization, projectSlugstring, p*Project) error {
returnc.do("PUT", fmt.Sprintf("projects/%s/%s", *o.Slug, projectSlug), p, p)
}
The text was updated successfully, but these errors were encountered:
It is impossible to use the Update project method to rename a project. Sending an object requires us to use the current slug. we can update the
Name
property but this one maps to the Legacy Name.The current implementation use the slug from the object. Instead, the slug should be a separate parameter
UpdateProject(o Organization, projectSlug string, p Project)
Another problem is to get the output value of the update method. For that, we should be able to pass a reference to the update method.
Current implementation:
Suggested implementation:
The text was updated successfully, but these errors were encountered: