Skip to content

Conversation

@Oksamies
Copy link
Contributor

@Oksamies Oksamies commented Sep 17, 2025

Correct the params and data in connection Disconnect
Correct the params and data in service account remove

Summary by CodeRabbit

  • Bug Fixes

    • Improved reliability when removing service accounts to prevent failures during deletion.
    • Streamlined disconnecting third-party connections; no longer requires username, ensuring more consistent behavior.
  • Refactor

    • Adjusted request formatting for account-related actions to align with backend expectations, improving stability without changing user workflows.

@coderabbitai
Copy link

coderabbitai bot commented Sep 17, 2025

Walkthrough

Two UI components update how they form API requests: one moves a service account identifier from request body to URL params; the other moves provider from URL params to request body and removes user from params. No exported interfaces changed.

Changes

Cohort / File(s) Summary
API request payload/params adjustments
apps/cyberstorm-remix/app/settings/teams/team/tabs/ServiceAccounts/ServiceAccounts.tsx, apps/cyberstorm-remix/app/settings/user/Connections/Connections.tsx
ServiceAccounts: send uuid in route params; empty body for removal. Connections: remove user from params; include { provider } in body and only provider in params for disconnect. No signature changes.

Sequence Diagram(s)

sequenceDiagram
  participant UI as Settings UI
  participant API as Backend API

  rect rgba(200,235,255,0.25)
    note over UI,API: Service Account Removal (changed)
    UI->>API: DELETE /service-accounts/:uuid\nBody: {}
    API-->>UI: 200/4xx
  end

  rect rgba(220,255,220,0.25)
    note over UI,API: User Connection Disconnect (changed)
    UI->>API: POST /connections/disconnect?provider=:p\nBody: { provider: p }
    API-->>UI: 200/4xx
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my whiskers at shifting streams,
Params hop paths, payloads find new seams.
URLs nibble uuids with care,
Bodies carry providers to share.
In tidy burrows of code we dwell—
small hops, clean trails, all’s well. 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title concisely describes the primary change — correcting API fetch params and request data in settings actions — and maps to the edits shown (service account removal and connection disconnect), so it accurately reflects the changeset while remaining short and focused.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 09-17-correct_api_fetch_params_and_data_in_few_settings_actions

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8b08754 and 5d42bcd.

📒 Files selected for processing (2)
  • apps/cyberstorm-remix/app/settings/teams/team/tabs/ServiceAccounts/ServiceAccounts.tsx (1 hunks)
  • apps/cyberstorm-remix/app/settings/user/Connections/Connections.tsx (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Test
  • GitHub Check: Generate visual diffs
  • GitHub Check: Generate visual diffs
  • GitHub Check: CodeQL
🔇 Additional comments (2)
apps/cyberstorm-remix/app/settings/teams/team/tabs/ServiceAccounts/ServiceAccounts.tsx (1)

160-169: LGTM — uuid param is correct and DELETE has no body

teamServiceAccountRemove uses params.team_name and params.uuid in its path and request params schema, so passing uuid: serviceAccount.identifier is correct.

apps/cyberstorm-remix/app/settings/user/Connections/Connections.tsx (1)

126-133: Keep provider in both params and body — the endpoint requires both

The delete endpoint builds the path with params.provider (/api/cyberstorm/user/linked-account/${params.provider}/disconnect/) and its request schema also validates provider in the body (userLinkedAccountDisconnectRequestDataSchema), so keep both. See packages/thunderstore-api/src/delete/userLinkedAccountDisconnect.ts and packages/thunderstore-api/src/schemas/requestSchemas.ts.

Likely an incorrect or invalid review comment.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Oksamies Oksamies changed the base branch from 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes to graphite-base/1543 September 18, 2025 16:47
@Oksamies Oksamies force-pushed the 09-17-correct_api_fetch_params_and_data_in_few_settings_actions branch from 5643f63 to c07f9f2 Compare September 18, 2025 16:48
@Oksamies Oksamies changed the base branch from graphite-base/1543 to 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes September 18, 2025 16:48
@Oksamies Oksamies changed the base branch from 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes to graphite-base/1543 September 18, 2025 17:29
@Oksamies Oksamies force-pushed the 09-17-correct_api_fetch_params_and_data_in_few_settings_actions branch from c07f9f2 to 47294ed Compare September 18, 2025 17:31
@Oksamies Oksamies changed the base branch from graphite-base/1543 to 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes September 18, 2025 17:31
Copy link
Contributor

@VilppeRiskidev VilppeRiskidev left a comment

Choose a reason for hiding this comment

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

Nice 👍

@Oksamies Oksamies changed the base branch from 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes to graphite-base/1543 September 19, 2025 11:19
@Oksamies Oksamies force-pushed the 09-17-correct_api_fetch_params_and_data_in_few_settings_actions branch from 47294ed to c392acb Compare September 19, 2025 11:23
@Oksamies Oksamies changed the base branch from graphite-base/1543 to 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes September 19, 2025 11:23
@Oksamies Oksamies changed the base branch from 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes to graphite-base/1543 September 19, 2025 12:49
@Oksamies Oksamies force-pushed the 09-17-correct_api_fetch_params_and_data_in_few_settings_actions branch from c392acb to 52c3204 Compare September 19, 2025 12:51
@Oksamies Oksamies changed the base branch from graphite-base/1543 to 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes September 19, 2025 12:51
@Oksamies Oksamies changed the base branch from 09-17-update_thunderstore-api_to_match_up_coming_cyberstorm_api_changes to graphite-base/1543 September 23, 2025 12:57
Correct the params and data in connection Disconnect
Correct the params and data in service account remove
@Oksamies Oksamies force-pushed the 09-17-correct_api_fetch_params_and_data_in_few_settings_actions branch from 52c3204 to 5d42bcd Compare September 23, 2025 13:06
@Oksamies Oksamies changed the base branch from graphite-base/1543 to master September 23, 2025 13:06
@Oksamies Oksamies merged commit 1ecd3ce into master Sep 23, 2025
32 of 33 checks passed
@Oksamies Oksamies deleted the 09-17-correct_api_fetch_params_and_data_in_few_settings_actions branch September 23, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants