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: implement metricFindQuery #11

Merged
merged 59 commits into from
Aug 11, 2023
Merged

Conversation

ggracechoi
Copy link
Contributor

Pull Request

🤨 Rationale

When users create a query variable, the dropdown list needs to populate with all the systems the user has access to. The user should also be able to look up a system by typing in the system alias. This PR satisfies this user story.

👩‍💻 Implementation

The metricFindQuery method was implemented using the /query-systems route. Two projections were made to extract the id and the alias. Additionally, a new VariableQuery interface was created in types.ts.

🧪 Testing

The web dev tools were used to test this change. We checked to see if the query variable populated with all the systems that were present in the response.

✅ 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>
Copy link
Collaborator

@cameronwaterman cameronwaterman left a comment

Choose a reason for hiding this comment

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

We'll need to add tests for this stuff at some point but for the sake of time we can defer them for now

Copy link
Collaborator

@cameronwaterman cameronwaterman left a comment

Choose a reason for hiding this comment

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

Changing my review until open questions are resolved

Copy link
Collaborator

@cameronwaterman cameronwaterman left a comment

Choose a reason for hiding this comment

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

Changing my review until open questions are resolved

src/datasources/system/SystemDataSource.ts Outdated Show resolved Hide resolved
src/datasources/system/components/SystemQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/system/module.ts Show resolved Hide resolved
src/datasources/system/components/SystemQueryEditor.tsx Outdated Show resolved Hide resolved
src/datasources/system/types.ts Outdated Show resolved Hide resolved
@ggracechoi ggracechoi merged commit a5abed2 into main Aug 11, 2023
1 check passed
mure pushed a commit that referenced this pull request Aug 11, 2023
# [1.8.0](v1.7.0...v1.8.0) (2023-08-11)

### Features

* implement metricFindQuery  ([#11](#11)) ([a5abed2](a5abed2))
@mure
Copy link
Collaborator

mure commented Aug 11, 2023

🎉 This PR is included in version 1.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mure mure added the released label Aug 11, 2023
@mure mure deleted the users/grchoi/systems-datasource branch October 3, 2024 15:54
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