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

Add an endpoint to clear an instance's console buffer #408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ynng
Copy link
Member

@Ynng Ynng commented Aug 16, 2024

Fixes #299

Add an endpoint to clear an instance's console buffer by clearing the circular buffer within the global app state buffer.

  • core/src/lib.rs

    • Add a method clear_console_buffer to the AppState struct to clear the console buffer for a specific instance.
  • core/src/handlers/events.rs

    • Add a new function clear_console_buffer to handle the request to clear the console buffer.
    • Add a new route /instance/:uuid/console/clear to handle the request to clear the console buffer.

For more details, open the Copilot Workspace session.

Fixes #299

Add an endpoint to clear an instance's console buffer by clearing the circular buffer within the global app state buffer.

* **core/src/lib.rs**
  - Add a method `clear_console_buffer` to the `AppState` struct to clear the console buffer for a specific instance.

* **core/src/handlers/events.rs**
  - Add a new function `clear_console_buffer` to handle the request to clear the console buffer.
  - Add a new route `/instance/:uuid/console/clear` to handle the request to clear the console buffer.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Lodestone-Team/lodestone/issues/299?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

netlify bot commented Aug 16, 2024

Deploy Preview for lodestone-storybook canceled.

Name Link
🔨 Latest commit c3bb247
🔍 Latest deploy log https://app.netlify.com/sites/lodestone-storybook/deploys/66beedf3017fe90008236da1

Copy link

netlify bot commented Aug 16, 2024

Deploy Preview for lodestone-dashboard canceled.

Name Link
🔨 Latest commit c3bb247
🔍 Latest deploy log https://app.netlify.com/sites/lodestone-dashboard/deploys/66beedf331c11b0008c37be5

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.

Add an endpoint on backend to clear an instance's console buffer
1 participant