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(node): add Node version to report #537

Merged
merged 6 commits into from
May 16, 2019
Merged

Conversation

tomlongridge
Copy link
Contributor

  • Added Node version to device.runtimeVersions.node to improve reporting
  • Moved version info from metaData.device.

- Added Node version to device.runtimeVersions.node to improve reporting
- Moved version info from metaData.device.
@tomlongridge tomlongridge requested a review from a team May 15, 2019 07:39
@tomlongridge tomlongridge marked this pull request as ready for review May 15, 2019 07:39
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

The implementation looks good and will work for error reports.

However, we also track sessions and the product spec states that we should add the device.runtimeVersions field to the session payload as well. I believe it's possible to take a similar approach as we have already for this - @bengourley would have more context on this.

Copy link
Contributor

@bengourley bengourley left a comment

Choose a reason for hiding this comment

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

The initial work you did on this is effective for both reports and sessions, as they both extract the device property from the same client instance – the changes to session.js are unnecessary. The change you've made replaces the exising client.device property with the same data, essentially doing the same work twice. The device property gets passed in to the session payload here.

If you remove those changes to the implementation, the assertions you added to the tests should still pass. Please leave them in – they're a good addition.

A couple of other suggestions for the test description and changelog entry.

packages/plugin-node-device/test/device.test.js Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@bengourley bengourley merged commit 9378ab8 into next May 16, 2019
@bengourley bengourley deleted the toml-node-version-reporting branch May 16, 2019 13:57
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