Skip to content

Support tags in CLI create-order command#193

Merged
cwasicki merged 3 commits into
frequenz-floss:v0.x.xfrom
cwasicki:clitag
Sep 23, 2025
Merged

Support tags in CLI create-order command#193
cwasicki merged 3 commits into
frequenz-floss:v0.x.xfrom
cwasicki:clitag

Conversation

@cwasicki
Copy link
Copy Markdown
Collaborator

No description provided.

@cwasicki cwasicki requested a review from a team as a code owner September 19, 2025 14:51
Copilot AI review requested due to automatic review settings September 19, 2025 14:51
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 adds support for optional tags in the CLI create-order command, allowing users to attach metadata to orders for tracking or categorization purposes.

  • Added tag parameter to both the CLI interface and underlying create-order function
  • Updated function signatures and parameter passing to support the new tag functionality

Reviewed Changes

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

File Description
src/frequenz/client/electricity_trading/cli/main.py Added click option for tag parameter and passed it through to the async function call
src/frequenz/client/electricity_trading/cli/etrading.py Added tag parameter to create_order function signature and passed it to the order creation

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

@click.option("--currency", default="EUR", type=str)
@click.option("--duration", default=900, type=int)
@click.option("--sign_secret", default=None, type=str)
@click.option("--tag", default=None, type=str)
Copy link

Copilot AI Sep 19, 2025

Choose a reason for hiding this comment

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

The click option for --tag is missing a help description. Consider adding a help parameter to explain what the tag is used for, similar to other options in the function.

Suggested change
@click.option("--tag", default=None, type=str)
@click.option("--tag", default=None, type=str, help="An optional tag to identify or group the order.")

Copilot uses AI. Check for mistakes.
@github-actions github-actions Bot added the part:docs Affects the documentation label Sep 19, 2025
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@florian-wagner-frequenz florian-wagner-frequenz left a comment

Choose a reason for hiding this comment

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

  • LGTM

@cwasicki cwasicki added this pull request to the merge queue Sep 23, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 78835cd Sep 23, 2025
5 checks passed
@cwasicki cwasicki deleted the clitag branch September 23, 2025 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants