Skip to content

Conversation

@omahs
Copy link

@omahs omahs commented May 9, 2025

fix: typos


Important

Fixes various typos in comments, strings, and variable names across multiple files to improve code readability and correctness.

  • Comments and Strings:
    • Fix typo "Moniitor" to "Monitor" in docs/otel-demo-docs.md.
    • Correct "recieved" to "received" in billings.json, BillingContainer.tsx, and IntegrationDetailHeader.tsx.
    • Change "seperated" to "separated" in ClientSideQBSearch.tsx and QueryBuilderSearchV2.tsx.
    • Fix "occured" to "occurred" in SampleLogsResponseDisplay.tsx and http_handler.go.
    • Correct "defautl" to "default" in PlannedDowntime.tsx and PlannedDowntimeutils.ts.
    • Change "reciever" to "receiver" in applicationLogsFromLogFile.md and syslogs.md.
    • Fix "writting" to "writing" in utils.test.tsx.
    • Correct "inital" to "initial" in useResourceAttribute.test.tsx.
    • Fix "them" to "the" in DateTimeSelectionV2/index.tsx.
  • Variable and Constant Names:
    • Rename ROUTES_NOT_TO_BE_OVERRIDEN to ROUTES_NOT_TO_BE_OVERRIDDEN in Private.tsx and routes.ts.
    • Change GET_INTIAL_APPLICATION_DATA to GET_INITIAL_APPLICATION_DATA in metric.ts and metrics.ts.

This description was created by Ellipsis for 6d21364. You can customize this summary. It will automatically update as commits are pushed.

@omahs omahs requested review from a team and YounixM as code owners May 9, 2025 16:34
@welcome
Copy link

welcome bot commented May 9, 2025

Welcome to the SigNoz community! Thank you for your first pull request and making this project better. 🤗

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 6d21364 in 1 minute and 52 seconds. Click for details.
  • Reviewed 395 lines of code in 24 files
  • Skipped 0 files when reviewing.
  • Skipped posting 25 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. pkg/query-service/app/logs/v4/query_builder.go:103
  • Draft comment:
    Potential formatting issue in getExistsNexistsFilter: when key.IsColumn is true, the format string uses an extra backtick. Consider changing %s_exists=%vto%s_exists=%v` to avoid stray backticks.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. pkg/query-service/app/logs/v4/query_builder.go:352
  • Draft comment:
    Avoid using magic numbers directly. The value 1800 (used to adjust bucket start in buildLogsQuery) should be defined as a named constant to improve code readability and maintainability.
  • Reason this comment was not posted:
    Comment was on unchanged code.
3. pkg/query-service/app/logs/v4/query_builder.go:352
  • Draft comment:
    Consider extracting the magic number 1800 (used in the bucketStart calculation) into a well‐named constant. This will improve readability and ease future maintenance.
  • Reason this comment was not posted:
    Comment was on unchanged code.
4. pkg/query-service/app/logs/v4/query_builder.go:304
  • Draft comment:
    In generateAggregateClause, the calculation for rate (casting step to float and then adjusting based on total duration for table panels) is non‐trivial. Consider adding comments or extracting this logic into a helper function to clarify the rationale.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. pkg/query-service/app/logs/v4/query_builder.go:140
  • Draft comment:
    Ensure that the value passed into the query is properly sanitized. Verify that utils.ClickHouseFormattedValue (used on line 142) safely escapes user‑supplied input to prevent any risk of SQL injection.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. pkg/query-service/app/logs/v4/query_builder.go:104
  • Draft comment:
    Review the formatting in getExistsNexistsFilter for materialized columns. The construction of the string using trimmed getClickhouseKey and appending '_exists`' should be verified for correct SQL syntax. Consider adding tests or refactoring this into a helper to ensure consistent escaping.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. docs/otel-demo-docs.md:231
  • Draft comment:
    Typo: Change "it's UI" to "its UI" to correctly indicate possession in the phrase "Signoz exposes its UI".
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
8. frontend/src/AppRoutes/routes.ts:26
  • Draft comment:
    There's a potential typographical error in the import name 'ListAllALertsPage'. It seems like it might be intended to be 'ListAllAlertsPage' (with a lowercase 'l' after 'A'). Please verify and correct if necessary.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
9. frontend/src/container/BillingContainer/BillingContainer.test.tsx:75
  • Draft comment:
    Typo: Consider renaming 'freeTrailText' to 'freeTrialText' to match the correct spelling of 'trial'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
10. frontend/src/container/BillingContainer/BillingContainer.test.tsx:83
  • Draft comment:
    Typo: The variable 'onTrail' likely should be renamed to 'onTrial' for consistency with 'Free Trial'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
11. frontend/src/container/BillingContainer/BillingContainer.test.tsx:136
  • Draft comment:
    Typo: The test name 'Not on ontrail' likely contains a typo. Consider renaming it to 'Not on trial' for clarity and consistency.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
12. frontend/src/container/LogDetailedView/utils.tsx:266
  • Draft comment:
    Typographical issue: In the regex for matching ANSI escape sequences in the removeEscapeCharacters function (lines 266-267), the regex pattern uses [[0-9;]* which seems incorrect. It likely should escape the [ (e.g., \[[0-9;]*m) to properly match the literal '[' character. Please review and fix the regex patterns to accurately capture the intended escape sequences.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
13. frontend/src/container/MySettings/__tests__/MySettings.test.tsx:163
  • Draft comment:
    Typo in the error message text. Consider correcting it to something like 'Password must have a minimum of 8 characters'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
14. frontend/src/container/MySettings/__tests__/MySettings.test.tsx:168
  • Draft comment:
    Typographical error in test description: 'inavlid credentials' should be corrected to 'invalid credentials'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
15. frontend/src/container/OnboardingContainer/Modules/LogsManagement/SysLogs/syslogs.md:44
  • Draft comment:
    Typographical error: The sentence 'and adding the this line at the end' contains an extra article. Consider revising it to 'and adding this line at the end' or 'and add this line at the end' for clarity.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
16. frontend/src/container/PipelinePage/PipelineListsView/Preview/components/SampleLogs/SampleLogsResponseDisplay.tsx:12
  • Draft comment:
    Typo corrected: changed 'An error occured while querying sample logs' to 'An error occurred while querying sample logs'.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, as it only points out a typo correction. It doesn't provide any actionable feedback or suggestions for improvement.
17. frontend/src/container/QueryBuilder/filters/HavingFilter/__tests__/utils.test.tsx:65
  • Draft comment:
    Typographical error: In the test description on line 65, consider changing "Is having filter is enable" to "Is having filter enabled" for better readability.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
18. frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx:116
  • Draft comment:
    Typo: The state variable 'dynamicPlacholder' is misspelled. It should be 'dynamicPlaceholder' for clarity and consistency.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
19. frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx:434
  • Draft comment:
    Typo: In the comment 'when clicking on the button the search bar looses the focus', 'looses' should be 'loses'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
20. frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx:843
  • Draft comment:
    There's a small typo in the comment on line 843: 'sycn' should be spelled 'sync'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
21. frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx:95
  • Draft comment:
    Typo: Consider renaming 'isValidteRelativeTime' to 'isValidRelativeTime' (or a consistent variation) for clarity.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
22. frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx:341
  • Draft comment:
    Typo: 'minutedDiff' is likely intended to be 'minutesDiff'. Please consider renaming for clarity.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
23. frontend/src/hooks/useResourceAttribute/__tests__/useResourceAttribute.test.tsx:17
  • Draft comment:
    Typo corrected: changed '/inital-url?tab=overview' to '/initial-url?tab=overview'.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, as it only states that a typo was corrected. It does not provide any actionable feedback or suggestions for improvement.
24. pkg/query-service/app/logs/v4/query_builder.go:130
  • Draft comment:
    Typo found in TODO comment: instead of "as of now __attrs is only supports attributes_string", consider rephrasing to "as of now __attrs only supports attributes_string".
  • Reason this comment was not posted:
    Comment was on unchanged code.
25. pkg/query-service/app/logs/v4/query_builder.go:228
  • Draft comment:
    Typographical error: 'materialzied' should be corrected to 'materialized'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_IfgdSKlsJJMz4mXp

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants