Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: persist generated coder_app id #18487

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 3 commits into from
Jun 23, 2025
Merged

feat: persist generated coder_app id #18487

merged 3 commits into from
Jun 23, 2025

Conversation

dannykopping
Copy link
Contributor

Prerequisite for #18453 and #18449

coder_app resources generate new IDs upon creation, but we don't use that value currently. We need this value to persist since the new coder_ai_task resource will depend on it.

Signed-off-by: Danny Kopping <[email protected]>
@@ -967,6 +967,9 @@ func TestConvertResources(t *testing.T) {
if agent.GetInstanceId() != "" {
agent.Auth = &proto.Agent_InstanceId{}
}
for _, app := range agent.Apps {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For test reproducibility; see above.

@dannykopping dannykopping marked this pull request as ready for review June 23, 2025 08:25
@dannykopping dannykopping requested a review from hugodutka June 23, 2025 08:25
@@ -266,6 +266,7 @@ message App {
bool hidden = 11;
AppOpenIn open_in = 12;
string group = 13;
string id = 14;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe worth mentioning the nil/zero-id behaviour in a comment here?

Signed-off-by: Danny Kopping <[email protected]>
@dannykopping dannykopping enabled auto-merge (squash) June 23, 2025 08:44
@dannykopping dannykopping merged commit 66e8dbb into main Jun 23, 2025
37 checks passed
@dannykopping dannykopping deleted the dk/app-id branch June 23, 2025 08:46
@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants