You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @siavashs! I'm here to help you with any bugs or questions you might have while you wait for a human maintainer. If you need assistance or want to become a contributor, just let me know!
The issue you're encountering seems to be related to a RangeError that occurs when handling cut and paste operations in the Thanos query UI. This error is specifically related to the mapPos and applyTransaction functions in the index.js file, which are part of the query UI's internal mechanisms for managing text input and state updates.
The error message "Position 65536 is out of range for changeset of length 8" suggests that there is an inconsistency in how the positions are being mapped or updated during the cut and paste operations. This could be due to a bug in the logic that handles these operations, causing the query to become uneditable.
To address this issue, you might want to investigate the following:
Check for Updates: Ensure that you are using the latest version of Thanos, as this issue might have been addressed in a newer release.
Review the Code: Look into the mapPos and applyTransaction functions in the index.js file to understand how they handle position mapping and transaction application. There might be a need to adjust the logic to correctly handle the changeset length and position mapping.
Error Handling: Consider adding additional error handling or logging around these functions to capture more detailed information about the state when the error occurs. This can help in diagnosing the root cause.
Unfortunately, without direct access to the specific code in question, these are general suggestions. If the issue persists, further investigation into the codebase or reaching out to the maintainers for a potential fix might be necessary.
Uh oh!
There was an error while loading. Please reload this page.
Thanos, Prometheus and Golang version used: Docker image with tag v0.38.0
Object Storage Provider: N/A
What happened: queries become readonly in the UI after cut/paste with errors in console
Screen recording https://github.com/user-attachments/assets/6a863802-d18c-4576-9372-6ac18de7cd2f
What you expected to happen: cut/pasted queries must still be editable
How to reproduce it (as minimally and precisely as possible):
docker run -it --rm -p 10902:10902 thanosio/thanos:v0.38.0 query
true == true
== true
==
Full logs to relevant components:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: