Skip to content
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

Define deleteContent API in ChannelEditor #1527

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

apupier
Copy link
Member

@apupier apupier commented Oct 3, 2024

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@bc1656a). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1527   +/-   ##
=======================================
  Coverage        ?   69.90%           
  Complexity      ?       62           
=======================================
  Files           ?      276           
  Lines           ?     7733           
  Branches        ?     1474           
=======================================
  Hits            ?     5406           
  Misses          ?     2325           
  Partials        ?        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apupier apupier requested review from a team, igarashitm and lordrip and removed request for a team October 3, 2024 10:03
* Delete resource
* @param path The path of the resource relatively to the currently edited Camel file
*/
deleteResource(path: string): Promise<string | undefined>;
Copy link
Member

Choose a reason for hiding this comment

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

[curious-question]

  1. What could be in the returned in the string?
  2. What about returning a boolean signaling the operation's success?

Copy link
Member Author

@apupier apupier Oct 3, 2024

Choose a reason for hiding this comment

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

I went too fast. I implemented it with just Promise<void>, but we can return a boolean signaling the success.
let me update

@apupier apupier force-pushed the addDeleteresourceAPIToChannelAPI branch from e1a10cb to fd9e160 Compare October 3, 2024 11:47
Copy link

sonarcloud bot commented Oct 3, 2024

@apupier apupier merged commit cb1f68e into KaotoIO:main Oct 3, 2024
12 checks passed
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