Skip to content

Conversation

brandon-wada
Copy link
Collaborator

No description provided.

@brandon-wada brandon-wada requested a review from Dexcrash January 8, 2025 21:52
Comment on lines +311 to +315
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)
Copy link
Contributor

@tyler-romero tyler-romero Feb 26, 2025

Choose a reason for hiding this comment

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

Suggested change
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!

Comment on lines +445 to +446
page (int): A page number within the paginated result set.. [optional]
page_size (int): Number of results to return per page.. [optional]
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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)

Copy link
Contributor

@tyler-romero tyler-romero left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants