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

Add Authentication & Logging #11

Merged
merged 30 commits into from
Jan 7, 2025

Conversation

JacobKnightley
Copy link
Collaborator

@JacobKnightley JacobKnightley commented Jan 6, 2025

This pull request includes several updates to the project, focusing on configuration improvements, dependency management, and adding sample scripts for various authentication methods. The most important changes are grouped by theme below:

Configuration Improvements:

  • .vscode/settings.json: Enabled editor.formatOnSave for all files and specifically for PowerShell files, and removed redundant editor.formatOnSave setting from the ruff section. [1] [2]

Dependency Management:

  • pyproject.toml: Changed to dynamically load version and dependencies from VERSION and requirements.txt files, respectively. [1] [2]
  • requirements-dev.txt: Added ruff, gitpython, build, and twine as development dependencies.

Version Update:

  • VERSION: Updated the version to 0.1.6.

Sample Scripts:

Code Enhancements:

@JacobKnightley JacobKnightley requested a review from a team as a code owner January 6, 2025 04:26
@JacobKnightley JacobKnightley marked this pull request as draft January 6, 2025 04:35
@JacobKnightley JacobKnightley removed the request for review from a team January 6, 2025 04:35
@JacobKnightley JacobKnightley changed the base branch from users/JacobKnightley/update_format to main January 6, 2025 16:55
@JacobKnightley JacobKnightley force-pushed the users/JacobKnightley/authentication_logging branch from 9cd65ce to 8c86edf Compare January 6, 2025 17:23
@JacobKnightley JacobKnightley changed the base branch from main to users/JacobKnightley/identify_auth_type January 6, 2025 17:24
@JacobKnightley JacobKnightley changed the base branch from users/JacobKnightley/identify_auth_type to main January 6, 2025 17:25
@JacobKnightley JacobKnightley marked this pull request as ready for review January 6, 2025 19:25
Copy link
Collaborator Author

@JacobKnightley JacobKnightley left a comment

Choose a reason for hiding this comment

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

Please make changes.



class FabricEndpoint:
"""
Handles interactions with the Fabric API, including authentication and request management.
"""

def __init__(self, debug_output=False):
def __init__(self, token_credential=None):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should not be optional

token_credential = TokenCredential

# Optional: Print all API calls to log file
change_log_level()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Invalid, needs "DEBUG" in call

src/fabric_cicd/_items/_datapipeline.py Outdated Show resolved Hide resolved
@JacobKnightley
Copy link
Collaborator Author

Please make changes.

Fixed all suggested changes.

@JacobKnightley JacobKnightley requested a review from a team January 6, 2025 22:46
devtools/debug_local.py Show resolved Hide resolved
sample/set_vars_from_ado_build.py Show resolved Hide resolved
src/fabric_cicd/__init__.py Outdated Show resolved Hide resolved
Copy link

@shirasassoon shirasassoon left a comment

Choose a reason for hiding this comment

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

Reviewed each of the files and the changes look good.

@JacobKnightley JacobKnightley merged commit 8524aa6 into main Jan 7, 2025
5 checks passed
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