-
Notifications
You must be signed in to change notification settings - Fork 4
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
adds the ability to pin a note #301
base: main
Are you sure you want to change the base?
Conversation
try: | ||
api_response = api_instance.list_detector_rules(detector_id, page=page, page_size=page_size) | ||
pprint(api_response) | ||
except groundlight_openapi_client.ApiException as e: | ||
print("Exception when calling ActionsApi->list_detector_rules: %s\n" % e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try: | |
api_response = api_instance.list_detector_rules(detector_id, page=page, page_size=page_size) | |
pprint(api_response) | |
except groundlight_openapi_client.ApiException as e: | |
print("Exception when calling ActionsApi->list_detector_rules: %s\n" % e) | |
try: | |
api_response = api_instance.list_detector_rules(detector_id, page=page, page_size=page_size) | |
pprint(api_response) | |
except groundlight_openapi_client.ApiException as e: | |
print("Exception when calling ActionsApi->list_detector_rules: %s\n" % e) | |
#TEST |
Ignore this!
page (int): A page number within the paginated result set.. [optional] | ||
page_size (int): Number of results to return per page.. [optional] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny nit: two periods at the end of these sentences
def test_note_pinned(gl_experimental: ExperimentalApi): | ||
name = f"Test {datetime.utcnow()}" | ||
det = gl_experimental.create_detector(name, "test_query") | ||
gl_experimental.create_note(det, "test_note", "test/assets/cat.jpeg", True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gl_experimental.create_note(det, "test_note", "test/assets/cat.jpeg", True) | |
gl_experimental.create_note(det, "test_note", "test/assets/cat.jpeg", is_pinned=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.