Skip to content

Update solution for services v1 and transaction v2#7

Merged
hellt merged 2 commits intosrx-2025-solutionfrom
srx-2025-solution-update-for-25.8.1
Aug 30, 2025
Merged

Update solution for services v1 and transaction v2#7
hellt merged 2 commits intosrx-2025-solutionfrom
srx-2025-solution-update-for-25.8.1

Conversation

@hellt
Copy link
Copy Markdown
Contributor

@hellt hellt commented Aug 16, 2025

No description provided.

@hellt hellt marked this pull request as ready for review August 30, 2025 18:18
Copilot AI review requested due to automatic review settings August 30, 2025 18:18
Copy link
Copy Markdown

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 updates the solution to use services v1 API instead of v1alpha1 and transaction v2 API instead of v1, along with upgrading the pydantic-eda dependency from v0.3.2 to v0.4.0.

  • Updated import statements and API versions from v1alpha1 to v1 for services
  • Migrated transaction API from v1 to v2 with improved error handling
  • Enhanced EDAClient constructor to accept username/password parameters

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

File Description
src/virtualnetwork.py Updated services import from v1alpha1 to v1 and reformatted long parameter lists
src/client.py Migrated from transaction v1 to v2 API with enhanced error handling and authentication
pyproject.toml Upgraded pydantic-eda dependency from v0.3.2 to v0.4.0
main.py Updated EDAClient instantiation to include username and password parameters

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

eda = EDAClient(
base_url="https://<your_group_id>.srexperts.net:9443",
username="admin",
password="<fill in the password>",
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

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

Hardcoded placeholder password in production code creates a security risk. Consider using environment variables or a secure configuration mechanism instead of placeholder text.

Copilot uses AI. Check for mistakes.
@hellt hellt merged commit c0473e0 into srx-2025-solution Aug 30, 2025
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