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

Takipi/feature/deployment routing improvement #57

Closed

Conversation

guycastel
Copy link
Contributor

@guycastel guycastel commented Oct 27, 2019

} else if (allDeps.contains(viewDepName)) {
allDepViews.add(view);
for (SummarizedView view : views.values()) {
String deploymentNameFromView = (input.prefix != null) ?
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe an easier approach is to search for a deployment suffix in a "view name" and not trim the view's name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That way will match views with other prefixes.

BTW, viewName.startsWith(prefix) && viewName.endsWith(depName)
is also not accurate because there can be anything in between.

(view.name.replace(cleanPrefix(input), "")) :
(view.name);

for (SummarizedDeployment deployment : deployments) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should have a separate collections that after each matched deployment it will be removed from the next iteration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍
Removed this check, it's unnecessary.

@dor-levi
Copy link
Contributor

Replaced by #58

@dor-levi dor-levi closed this Nov 12, 2019
@dor-levi dor-levi deleted the takipi/feature/deployment-routing-improvement branch November 12, 2019 11:31
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.

3 participants