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: display system metadata #7

Merged
merged 43 commits into from
Aug 1, 2023
Merged

Conversation

ggracechoi
Copy link
Contributor

Pull Request

🤨 Rationale

The Metadata query type needs to display the metadata of all accessible systems on a dashboard. The following fields need to be included:

  • id
  • alias
  • connection status
  • locked status
  • system start time
  • model
  • vendor
  • operating system
  • ip address
  • workspace

This PR satisfies this user story.

👩‍💻 Implementation

A new SystemInfo interface was created in types.ts to encapsulate all of the different fields. The metadata was then pulled from the /query-systems route in SystemDataSource.ts. Due to the large amount of data in the response, several projections were made to extract the specific data that was needed.

🧪 Testing

The web dev tools were used to test this change. We checked to see if a call was being made when the Metadata tab was clicked and that the response matched what was expected.

✅ Checklist

mure and others added 30 commits June 29, 2023 18:59
Co-authored-by: Cameron Waterman <cameron.waterman@ni.com>
Co-authored-by: Cameron Waterman <cameron.waterman@ni.com>
release.config.js Outdated Show resolved Hide resolved
src/core/utils.ts Outdated Show resolved Hide resolved
src/datasources/system/SystemDataSource.ts Outdated Show resolved Hide resolved
src/datasources/system/SystemDataSource.ts Outdated Show resolved Hide resolved
src/datasources/system/SystemDataSource.ts Outdated Show resolved Hide resolved
@ggracechoi ggracechoi merged commit fa5c1f5 into main Aug 1, 2023
1 check passed
mure pushed a commit that referenced this pull request Aug 1, 2023
# [1.7.0](v1.6.1...v1.7.0) (2023-08-01)

### Features

* display system metadata ([#7](#7)) ([fa5c1f5](fa5c1f5))
@mure
Copy link
Collaborator

mure commented Aug 1, 2023

🎉 This PR is included in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mure mure added the released label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants