-
Notifications
You must be signed in to change notification settings - Fork 2
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
add flag for disabling metrics #30
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughA new feature to disable metrics has been introduced across the application. This involves adding a state variable in the frontend, integrating a boolean attribute in the backend, and modifying methods to handle and propagate this new flag through the system, ultimately affecting the cargo build command. Changes
Sequence Diagram(s) (Beta)sequenceDiagram
participant User
participant Frontend
participant Backend
participant CommandBuilder
User->>Frontend: Toggle disable metrics
Frontend->>Backend: Send disable_metrics flag
Backend->>Backend: Update IPAHelperQuery with disable_metrics
Backend->>CommandBuilder: Build command with disable_metrics
CommandBuilder->>Backend: Return command
Backend->>Frontend: Respond to user
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 1
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- server/app/query/create/page.tsx (2 hunks)
- sidecar/app/query/ipa.py (4 hunks)
- sidecar/app/routes/start.py (3 hunks)
Additional Context Used
Biome (14)
server/app/query/create/page.tsx (14)
113-113: This enum declaration contains members that are implicitly initialized.
132-132: Use !== instead of !=.
!= is only allowed when comparing againstnull
133-133: Use !== instead of !=.
!= is only allowed when comparing againstnull
147-147: Use !== instead of !=.
!= is only allowed when comparing againstnull
170-170: Use !== instead of !=.
!= is only allowed when comparing againstnull
211-216: Enforce to have the onClick mouse event with the onKeyUp, the onKeyDown, or the onKeyPress keyboard event.
236-244: Enforce to have the onClick mouse event with the onKeyUp, the onKeyDown, or the onKeyPress keyboard event.
1-2: Some named imports are only used as types.
12-17: Some named imports are only used as types.
18-19: Some named imports are only used as types.
143-143: This hook specifies more dependencies than necessary: CommitSpecifier.COMMIT_HASH
158-158: This hook does not specify all of its dependencies: filteredCommitHashes.length
158-158: This hook specifies more dependencies than necessary: CommitSpecifier.BRANCH, commitHashes
226-232: Provide an explicit type prop for the button element.
Additional comments not posted (6)
sidecar/app/routes/start.py (3)
45-45
: Addeddisable_metrics
parameter to the function signature.
57-57
: Correctly appended '_disable-metrics' to the compiled ID based on thedisable_metrics
flag.
72-72
: Properly passed thedisable_metrics
flag to theIPAHelperQuery
constructor.sidecar/app/query/ipa.py (2)
167-167
: Addeddisable_metrics
attribute toIPAHelperCompileStep
and correctly handled it inbuild_from_query
andbuild_command
methods.Also applies to: 177-177, 184-184
409-409
: Addeddisable_metrics
attribute toIPAHelperQuery
class.server/app/query/create/page.tsx (1)
131-131
: Added state variabledisableMetricsEnabled
with a setter function.
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.
🚢
cc @ akoshelev
This adds the
disable-metrics
flag to compiling the helper binary:server/app/query/create/page.tsx
adds the new field to the formsidecar/app/routes/start.py
accepts that form field when starting a querysidecar/app/query/ipa.py
uses that input to construct the compile commandSummary by CodeRabbit
New Features
Improvements