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

chore: added debug statements for rbac issue #6580

Closed
wants to merge 5 commits into from

Conversation

vikrantgupta25
Copy link
Member

@vikrantgupta25 vikrantgupta25 commented Dec 3, 2024

Summary

  • added loggers for debugging rbac errors

Related Issues / PR's

Screenshots

NA

Affected Areas and Manually Tested Areas


Important

Add debug logging in utils.ts, DashboardsList.tsx, and http_handler.go for RBAC issue diagnosis.

  • Logging:
    • Add Sentry.captureEvent and console.trace in afterLogin() in utils.ts to log getUserResponse payload.
    • Add Sentry.captureEvent and console.info in DashboardsList() in DashboardsList.tsx to log user email, role, and createNewDashboard permission.
    • Add zap.L().Info in getUser() in http_handler.go to log user ID, email, and role.

This description was created by Ellipsis for 39566bf. It will automatically update as commits are pushed.

Copy link

github-actions bot commented Dec 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the chore label Dec 3, 2024
Copy link

github-actions bot commented Dec 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@vikrantgupta25 vikrantgupta25 marked this pull request as ready for review December 3, 2024 09:08
Copy link

github-actions bot commented Dec 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

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.

❌ Changes requested. Reviewed everything up to 1934f74 in 1 minute and 24 seconds

More details
  • Looked at 44 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. pkg/query-service/app/http_handler.go:2148
  • Draft comment:
    Do not add non-ClickHouse related functions to the ClickHouseReader interface. Use the DAO in the telemetry instance to access such information instead.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_AIpesF31YX6YyChq


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

github-actions bot commented Dec 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

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.

❌ Changes requested. Incremental review on 1a7ea09 in 47 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. frontend/src/container/ListOfDashboard/DashboardsList.tsx:115
  • Draft comment:
    Avoid using inline styles. Use external stylesheets, CSS classes, or styled components instead. This issue is also present in other parts of the file.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_YIIYe51DOYFdW4kt


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

github-actions bot commented Dec 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

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.

👍 Looks good to me! Incremental review on 39566bf in 38 seconds

More details
  • Looked at 55 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. frontend/src/AppRoutes/utils.ts:55
  • Draft comment:
    Avoid using console.trace for logging in production code. Consider using a proper logging mechanism or remove it after debugging.
  • Reason this comment was not posted:
    Comment was on unchanged code.
2. frontend/src/container/ListOfDashboard/DashboardsList.tsx:106
  • Draft comment:
    Avoid using console.info for logging in production code. Consider using a proper logging mechanism or remove it after debugging. This applies to other instances of console.info in this file as well.
  • Reason this comment was not posted:
    Comment was on unchanged code.
3. frontend/src/container/ListOfDashboard/DashboardsList.tsx:117
  • Draft comment:
    Avoid using inline styles. Use external stylesheets, CSS classes, or styled components instead. This is also applicable at line 979.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_NzJJ60pv6ymxEals


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@vikrantgupta25
Copy link
Member Author

This is no longer needed !

@vikrantgupta25 vikrantgupta25 deleted the debugging-rbac-issue branch December 13, 2024 11:10
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.

1 participant