Skip to content

W-17909761 - feat: confirm agent delete #1301

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 8 commits into from
Mar 18, 2025
Merged

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Feb 28, 2025

What does this PR do?

When deleting by agent pseudo type, ask the user which topics (genAiPlugins) related to the agent that they'd like to delete. Topics can be used by multiple agents so developers might not want to delete them with the agent metadata.

What issues does this PR fix or reference?

@W-17909761@

@@ -189,6 +191,29 @@ export class Source extends SfCommand<DeleteSourceJson> {
fsPaths: await getPackageDirs(),
include: this.componentSet,
});
// Confirm if the user wants to delete GenAiPlugins as part of an agent
if (!this.flags['no-prompt']) {
Copy link
Contributor

Choose a reason for hiding this comment

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

so if --no-prompt it will delete all genAiFuncs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, only GenAiPlugins. GenAiFuncs are not included in the delete.

@WillieRuemmele
Copy link
Contributor

QA Notes

with SDR branch built/linked

✅ : choose all agents, see all topics
✅ : choose specific agent, see only topics related to that
✅ : deletes specified agent/topics/versions in org

@WillieRuemmele WillieRuemmele merged commit e895e0b into main Mar 18, 2025
43 checks passed
@WillieRuemmele WillieRuemmele deleted the sh/confirm-agent-delete branch March 18, 2025 23:12
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