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(system): Filter system metadata by workspace and variable chaining #43

Merged

Conversation

cameronwaterman
Copy link
Collaborator

@cameronwaterman cameronwaterman commented Oct 5, 2023

Pull Request

🀨 Rationale

https://ni.visualstudio.com/DevCentral/_workitems/edit/2527391
https://ni.visualstudio.com/DevCentral/_workitems/edit/2541892

πŸ‘©β€πŸ’» Implementation

  • Add workspace field to metadata query which is capable of resolving variables.
  • Add variable resolution logic to metricFindQuery.

πŸ§ͺ Testing

Added tests and existing tests continue to pass.

βœ… Checklist

commit eb3a231
Author: Cameron Waterman <cameron.waterman@ni.com>
Date:   Thu Oct 5 09:19:51 2023 -0500

    Address review feedback

commit 723138e
Author: Cameron Waterman <cameron.waterman@ni.com>
Date:   Wed Oct 4 11:05:24 2023 -0500

    Remove unnecessary clearAllMocks

commit ec5db21
Author: Cameron Waterman <cameron.waterman@ni.com>
Date:   Wed Oct 4 10:58:21 2023 -0500

    feat(tag): Workspace variable resolution
@cameronwaterman cameronwaterman marked this pull request as ready for review October 5, 2023 20:24
cameronwaterman and others added 2 commits October 5, 2023 15:36
Co-authored-by: Melissa Hilliard <63749096+MelissaHilliard@users.noreply.github.com>
@cameronwaterman cameronwaterman changed the title feat(system): Filter system metadata by workspace feat(system): Filter system metadata by workspace and variable chaining Oct 5, 2023
Copy link
Collaborator

@mure mure left a comment

Choose a reason for hiding this comment

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

Maybe we could add a test to SystemVariableQueryEditor.test.tsx that tests if a user can select a variable option.

src/datasources/system/SystemDataSource.ts Show resolved Hide resolved
src/datasources/system/SystemDataSource.test.ts Outdated Show resolved Hide resolved
src/datasources/system/SystemDataSource.ts Show resolved Hide resolved
@mure
Copy link
Collaborator

mure commented Oct 5, 2023

image

It would be nice if we could not add the variable you're currently editing to the dropdown, but I'm not sure how to know that.

@cameronwaterman
Copy link
Collaborator Author

image

It would be nice if we could not add the variable you're currently editing to the dropdown, but I'm not sure how to know that.

Yeah I thought this as well, but wasn't having much luck actually getting the current variable name in the context of the variable query editor. I'll spend a bit more time looking into this today.

src/core/utils.ts Outdated Show resolved Hide resolved
src/test/fixtures.ts Outdated Show resolved Hide resolved
@cameronwaterman cameronwaterman merged commit 14de6ed into main Oct 9, 2023
1 check passed
@mure
Copy link
Collaborator

mure commented Oct 9, 2023

πŸŽ‰ This PR is included in version 3.7.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

@mure mure added the released label Oct 9, 2023
mure pushed a commit that referenced this pull request Oct 9, 2023
## [3.7.0](v3.6.0...v3.7.0) (2023-10-09)

### Features

* **system:** Filter system metadata by workspace and variable chaining ([#43](#43)) ([14de6ed](14de6ed))
@mure mure deleted the users/cwaterma/systems-workspace-variable-support 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.

4 participants