IsDefaultProject returns whether a project resource ID is the default project. Handles both new format ("default-{workspaceID}") and legacy format ("default").
(workspaceID, projectID string)
| 34 | // IsDefaultProject returns whether a project resource ID is the default project. |
| 35 | // Handles both new format ("default-{workspaceID}") and legacy format ("default"). |
| 36 | func IsDefaultProject(workspaceID, projectID string) bool { |
| 37 | return projectID == DefaultProjectID(workspaceID) || projectID == "default" |
| 38 | } |
| 39 | |
| 40 | const ( |
| 41 | // DefaultTestEnvironmentID is the initial resource ID for the test environment. |
no test coverage detected