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

Feat operation param #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Feat operation param #23

wants to merge 3 commits into from

Conversation

AuPath
Copy link
Collaborator

@AuPath AuPath commented Sep 5, 2024

The name of the operation can now be specified in one the following ways:

  1. .to("graph://get?...)
  2. .to("graph://?operation=get") The parameter value is case insensitive

Closes #22

Marco Grassi added 2 commits July 23, 2024 09:12
Closes #22

The name of the operation must be specified in one the following ways:

1) .to("graph://get?...)
2) .to("graph://?operation=get") The parameter is case insensitive
@AuPath AuPath added the enhancement New feature or request label Sep 5, 2024
@AuPath AuPath self-assigned this Sep 5, 2024
@@ -44,8 +44,21 @@ protected void doStart() throws Exception {
} else {
operationConfig = new GraphBean();
}

// todo name of operation can either come from endpoint.getName() or endpoint.getOperationName()
Copy link
Member

Choose a reason for hiding this comment

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

@AuPath could you explain further the TODO?

String operation;
if (endpoint.getName().equals("") && endpoint.getOperation() != null)
operation = endpoint.getOperation();
else if (endpoint.getName() != null && endpoint.getOperation() == null)
Copy link
Member

Choose a reason for hiding this comment

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

Check w.r.t. the same condition for inputFormat parameter in mapt component. What should be done if both are provided?

Copy link
Member

@marioscrock marioscrock left a comment

Choose a reason for hiding this comment

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

Check if the behaviour for the two parameters should be harmonised

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow operation name as parameter
2 participants