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

adds the ability to pin a note #301

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

brandon-groundlight
Copy link
Collaborator

No description provided.

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
Member

@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
Member

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
Member

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
Member

@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