-
Notifications
You must be signed in to change notification settings - Fork 19
Add Service Annotation Support #291
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8b901c6
Add service Annotation Support
gpachecoNI 7e3b6b5
Copy discovery_service.proto and run generate grpc stub
gpachecoNI e324dce
Fix style and running black.
gpachecoNI f5d92c0
Fix mypy errors.
gpachecoNI 1b205ed
Fix mypy on Tests
gpachecoNI f527443
Too many characters in single line
gpachecoNI 0907c30
Fix mypy, black
gpachecoNI c545341
Revert Update to Example
gpachecoNI 3932dea
Reran Black
gpachecoNI ab61d7f
Fix comments
gpachecoNI 91f1328
Fix comments
gpachecoNI c079fb4
Fix comments
gpachecoNI 2bbf37d
Revert "Fix style and running black."
gpachecoNI f990831
Fix comments
gpachecoNI 38bd275
Simplify regex
gpachecoNI 11756b0
Revert changes made by black
gpachecoNI b91174a
Simplify Regex
gpachecoNI 7e22dec
Revert more black change simplify code
gpachecoNI 3c2ac07
Revert Black
gpachecoNI a3568e6
revert black changes
gpachecoNI 5e5b921
Change annotation from test to avoid confusion
gpachecoNI f91e23f
Fix naming of tests examples.
gpachecoNI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 25 additions & 21 deletions
46
...mentlink_service/_internal/stubs/ni/measurementlink/discovery/v1/discovery_service_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"services": [ | ||
{ | ||
"displayName": "SampleMeasurement", | ||
"serviceClass": "SampleMeasurement_Python", | ||
"descriptionUrl": "https://www.example.com/SampleMeasurement.html", | ||
"providedInterfaces": [ | ||
"ni.measurementlink.measurement.v2.MeasurementService" | ||
], | ||
"path": "start.bat", | ||
"annotations": { | ||
"ni/service.description": "Testing extra Client info", | ||
"client/extra.NumberID" : 500, | ||
"client/extra.Parts" : [ "A25898", "A25412" ], | ||
"client/extra.GroupName" : { | ||
"SpeakerType": "true", | ||
"PhoneType": "false" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"services": [ | ||
{ | ||
"displayName": "SampleMeasurement", | ||
"serviceClass": "SampleMeasurement_Python", | ||
"descriptionUrl": "https://www.example.com/SampleMeasurement.html", | ||
"providedInterfaces": [ | ||
"ni.measurementlink.measurement.v1.MeasurementService" | ||
], | ||
"path": "NoFile.exe", | ||
"annotations": { | ||
"description": "An annotated test measurement service.", | ||
"collection": "Tests.Measurements", | ||
"tags": [ | ||
"test", | ||
"measurement" | ||
], | ||
"custom": { | ||
"foo": "bar", | ||
"baz": [ "qux", "quux", "quuux" ], | ||
"snork": { | ||
"blarg": "flarp", | ||
"oogle": [ "foogle", "boogle" ], | ||
"ork": [ "zork", "gork", "bork" ] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"services": [ | ||
{ | ||
"displayName": "SampleMeasurement", | ||
"serviceClass": "SampleMeasurement_Python", | ||
"descriptionUrl": "https://www.example.com/SampleMeasurement.html", | ||
"providedInterfaces": [ | ||
"ni.measurementlink.measurement.v1.MeasurementService", | ||
"ni.measurementlink.measurement.v2.MeasurementService" | ||
], | ||
"path": "start.bat", | ||
"annotations": { | ||
"ni/service.collection": "CurrentTests.Inrush" | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"services": [ | ||
{ | ||
"displayName": "SampleMeasurement", | ||
"serviceClass": "SampleMeasurement_Python", | ||
"descriptionUrl": "https://www.example.com/SampleMeasurement.html", | ||
"providedInterfaces": [ | ||
"ni.measurementlink.measurement.v2.MeasurementService" | ||
], | ||
"path": "start.bat", | ||
"annotations": { | ||
"ni/service.tags": [ "powerup", "current", "voltage" ] | ||
} | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.