Skip to content

Api: Make subproject alias optional, defaulting to child slug - #13247

Merged
stsewd merged 3 commits into
mainfrom
claude/api-v3-subproject-alias-2fk2cr
Aug 20, 2026
Merged

Api: Make subproject alias optional, defaulting to child slug#13247
stsewd merged 3 commits into
mainfrom
claude/api-v3-subproject-alias-2fk2cr

Conversation

@stsewd

@stsewd stsewd commented Aug 19, 2026

Copy link
Copy Markdown
Member

claude and others added 2 commits August 19, 2026 02:21
`validate_alias` ran the duplicate-alias and format checks even when
the alias was omitted or explicitly null, and `validate_subproject_alias`
crashed on `None` when checking for slashes. Skip those checks when no
alias is given, since the model already defaults it to the child's slug.
@stsewd
stsewd marked this pull request as ready for review August 19, 2026 02:55
@stsewd
stsewd requested a review from a team as a code owner August 19, 2026 02:55
@stsewd
stsewd requested a review from humitos August 19, 2026 02:55
self._get_response_dict("projects-subprojects-list_POST"),
)

def test_projects_subprojects_list_post_without_alias(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we have a test for an alias that is invalid already? It seems we don't, because we are changing the response in that case and there is no test updated/failing.

We should probably add one here as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We had some for non-unique aliases and aliases with slashes. I added one to test invalid characters.

@stsewd
stsewd merged commit 082b8cb into main Aug 20, 2026
10 checks passed
@stsewd
stsewd deleted the claude/api-v3-subproject-alias-2fk2cr branch August 20, 2026 16:22
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.

3 participants