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(flows): add application flows #1001

Merged
merged 1 commit into from
Jan 28, 2021
Merged

Conversation

tcompiegne
Copy link
Member

existingFlows = new HashSet<>();
}
ExecutionFlow executionFlow = new ExecutionFlow(flow, executionPolicies);
existingFlows.remove(executionFlow);
Copy link
Contributor

Choose a reason for hiding this comment

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

Because existingFlows is a Set, from my point of view the remove call is useless

if (existingFlows == null || existingFlows.isEmpty()) {
return;
}
existingFlows.removeIf(executionFlow -> flowId.equals(executionFlow.getFlowId()));
Copy link
Contributor

Choose a reason for hiding this comment

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

why not a simple remove? ExecutionFlow equals & hasCode are based on the FlowId, result will be the same as far as I can say with a simplest code.

@tcompiegne tcompiegne force-pushed the issues/#4764-application-flows branch from b1f4179 to 02b2205 Compare January 18, 2021 20:20
@leleueri leleueri force-pushed the issues/#4764-application-flows branch 2 times, most recently from 1e2907a to 24e39f3 Compare January 26, 2021 13:56
@tcompiegne tcompiegne force-pushed the issues/#4764-application-flows branch from 24e39f3 to 474f98d Compare January 26, 2021 16:59
@tcompiegne tcompiegne force-pushed the issues/#4764-application-flows branch from 474f98d to 6d4e8c4 Compare January 26, 2021 17:14
@tcompiegne tcompiegne merged commit 5b0d791 into master Jan 28, 2021
@tcompiegne tcompiegne deleted the issues/#4764-application-flows branch January 28, 2021 21:40
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.

[gateway] [management] Auth Flows for applications
2 participants