Skip to content

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

Open
Ynng wants to merge 1 commit intomainfrom
Ynng/add-clear-console-buffer
Open

Add an endpoint to clear an instance's console buffer#408
Ynng wants to merge 1 commit intomainfrom
Ynng/add-clear-console-buffer

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).
@netlify
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

@netlify
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