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

[APM] Service map fix missing ML health indicators for camelCased services #68979

Merged

Conversation

ogupte
Copy link
Contributor

@ogupte ogupte commented Jun 12, 2020

Closes #68978 by encoding service names before comparing them to ML job group names.

@ogupte ogupte added release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v7.9.0 labels Jun 12, 2020
@ogupte ogupte requested a review from a team as a code owner June 12, 2020 01:28
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jun 12, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@ogupte
Copy link
Contributor Author

ogupte commented Jun 12, 2020

@elasticmachine merge upstream

if (!serviceName) {
// APM ML job service was not found
return;
}
const serviceGroupName = encodeForMlApi(serviceName);
Copy link
Member

Choose a reason for hiding this comment

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

nit

Suggested change
const serviceGroupName = encodeForMlApi(serviceName);
const encodedServiceName = encodeForMlApi(serviceName);

encodeForMlApi(serviceName),
serviceName,
])
);
const apmJobGroups = mlJob.groups.filter(
(groupName) => groupName !== APM_ML_JOB_GROUP_NAME
);
if (apmJobGroups.length === mlJob.groups.length) {
Copy link
Member

Choose a reason for hiding this comment

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

I think this would read better as:

  const hasApmGroup = mlJob.groups.some(
    (groupName) => groupName !== APM_ML_JOB_GROUP_NAME
  );
  if (!hasApmGroup) {
    // ML job missing "apm" group
    return;
  }

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@ogupte ogupte merged commit fd740a6 into elastic:master Jun 12, 2020
ogupte added a commit to ogupte/kibana that referenced this pull request Jun 12, 2020
…vices (elastic#68979)

* Closes elastic#68978 by encoding service names before comparing them to ML job group names.

* Code tweak for readbility

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ogupte added a commit to ogupte/kibana that referenced this pull request Jun 12, 2020
…vices (elastic#68979)

* Closes elastic#68978 by encoding service names before comparing them to ML job group names.

* Code tweak for readbility

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ogupte added a commit that referenced this pull request Jun 12, 2020
…vices (#68979) (#69023)

* Closes #68978 by encoding service names before comparing them to ML job group names.

* Code tweak for readbility

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ogupte added a commit that referenced this pull request Jun 12, 2020
…vices (#68979) (#69022)

* Closes #68978 by encoding service names before comparing them to ML job group names.

* Code tweak for readbility

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.8.0 v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Service map health indicators missing for services with camelcase names
4 participants