Skip to content

fix: FilesClient.get_auth_ok; debug launch params #225

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

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

mike9ant
Copy link
Contributor

Fixed get_auth_ok in files client to use correct organization.

Launch debug params updated for venv.

@mike9ant mike9ant requested a review from a team as a code owner May 23, 2025 11:20
@checkmarx-do
Copy link

checkmarx-do commented May 23, 2025

Logo
Checkmarx One – Scan Summary & Details05eedc5f-2392-4e26-995b-b9f355e60b5e

Great job, no security vulnerabilities found in this Pull Request

@sg-s sg-s requested a review from Copilot May 23, 2025 12:59
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an authentication issue in the FilesClient by ensuring the correct organization is used and updates the VS Code debug launch parameters for a virtual environment.

  • Use self.organization_id instead of a hardcoded default
  • Update debug configuration to explicitly use the virtual environment interpreter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/files/files_client.py Replaces the hardcoded organization ID with self.organization_id
.vscode/launch.json Updates the Python debug configuration for a venv
Comments suppressed due to low confidence (2)

.vscode/launch.json:5

  • [nitpick] The removal of the '(WSL)' suffix might cause confusion for users expecting a WSL-specific configuration. Consider clarifying the configuration name or providing an additional one for WSL if needed.
"name": "Python: Debug Current File",

src/files/files_client.py:1087

  • Ensure that self.organization_id is properly initialized before calling check_auth_ok to avoid unexpected API behavior.
orgFriendlyId=self.organization_id,

@sg-s sg-s merged commit c2403c7 into main Jun 18, 2025
11 of 12 checks passed
@sg-s sg-s deleted the michaels-files-chekauth-fix branch June 18, 2025 23:52
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.

3 participants