-
Notifications
You must be signed in to change notification settings - Fork 715
fix: syntax fix #8867
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
fix: syntax fix #8867
Conversation
PR Reviewer Guide 🔍(Review updated until commit 7facba3)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 7facba3
Previous suggestionsSuggestions up to commit c73a222
|
|
| Status | Total | Passed | Failed | Skipped | Flaky | Pass Rate | Duration |
|---|---|---|---|---|---|---|---|
| All tests passed | 365 | 340 | 0 | 19 | 6 | 93% | 7m 7s |
|
Persistent review updated to latest commit 7facba3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greptile Overview
Summary
Fixed curl command JSON quoting to work on Windows by replacing single quotes with double quotes and escaping inner JSON quotes.
- Changed
-d '[{...}]'to-d "[{\\\"...\\\"}]"in the curl example - This ensures the curl command works correctly on Windows cmd.exe, which doesn't handle single quotes as string delimiters
- The escaped double quotes (
\\") in the JavaScript template string produce the correct shell-escaped JSON format
Confidence Score: 5/5
- This PR is safe to merge with minimal risk
- The change is a simple, well-understood fix that replaces single quotes with properly escaped double quotes in a curl command string, making it compatible with Windows shells while maintaining Unix compatibility
- No files require special attention
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| web/src/components/ingestion/logs/Curl.vue | 5/5 | Changed curl command to use double quotes with escaped JSON for Windows compatibility |
Sequence Diagram
sequenceDiagram
participant User
participant CurlVue as Curl.vue Component
participant Template as Template String
participant Shell as User's Shell (Windows/Unix)
participant API as OpenObserve API
User->>CurlVue: View ingestion instructions
CurlVue->>Template: Generate curl command with escaped JSON
Template->>CurlVue: Return command string with double quotes
CurlVue->>User: Display curl command
User->>Shell: Execute curl command
Shell->>API: POST JSON data to /api/org/default/_json
API->>Shell: Return response
Shell->>User: Display result
No files reviewed, no comments
|
| Status | Total | Passed | Failed | Skipped | Flaky | Pass Rate | Duration |
|---|---|---|---|---|---|---|---|
| All tests passed | 365 | 344 | 0 | 19 | 2 | 94% | 4m 40s |
|
| Status | Total | Passed | Failed | Skipped | Flaky | Pass Rate | Duration |
|---|---|---|---|---|---|---|---|
| All tests passed | 365 | 341 | 0 | 19 | 5 | 93% | 4m 38s |
|
| Status | Total | Passed | Failed | Skipped | Flaky | Pass Rate | Duration |
|---|---|---|---|---|---|---|---|
| All tests passed | 365 | 343 | 0 | 19 | 3 | 94% | 4m 38s |
|
| Status | Total | Passed | Failed | Skipped | Flaky | Pass Rate | Duration |
|---|---|---|---|---|---|---|---|
| All tests passed | 366 | 343 | 0 | 19 | 4 | 94% | 7m 5s |
|
| Status | Total | Passed | Failed | Skipped | Flaky | Pass Rate | Duration |
|---|---|---|---|---|---|---|---|
| All tests passed | 376 | 351 | 0 | 21 | 4 | 93% | 4m 31s |
User description
resolves #7020
PR Type
Bug fix
Description
Diagram Walkthrough
File Walkthrough
Curl.vue
Properly escape JSON in curl exampleweb/src/components/ingestion/logs/Curl.vue
PR Type
Bug fix
Description
Fix curl JSON quoting for Windows
Use double-quoted payload with escaped quotes
Update Curl.vue ingestion example string
Diagram Walkthrough
File Walkthrough
Curl.vue
Make curl JSON payload Windows-compatibleweb/src/components/ingestion/logs/Curl.vue