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

up #1701

Merged
merged 1 commit into from
Dec 16, 2024
Merged

up #1701

merged 1 commit into from
Dec 16, 2024

Conversation

emrgnt-cmplxty
Copy link
Contributor

@emrgnt-cmplxty emrgnt-cmplxty commented Dec 16, 2024

Important

Added update_config endpoint for system configuration updates and enhanced test coverage for collections and user management.

  • System Configuration:
    • Added update_config endpoint in system_router.py to allow superusers to update system configuration with deep merge validation.
  • Collections SDK:
    • Modified delete, remove_document, and remove_user methods in collections.py to return the full result instead of just the results key.
  • Tests:
    • Added new test cases in test_collections.py and test_collections_users_interaction.py to cover edge cases like non-existent collections, invalid data, and unauthorized actions.
    • Removed unused config fixture in test_collections.py.
    • Updated test_users.py with additional validation tests for user updates and deletions.

This description was created by Ellipsis for cdffcaf. It will automatically update as commits are pushed.

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review December 16, 2024 19:58
@emrgnt-cmplxty emrgnt-cmplxty merged commit 132a80b into main Dec 16, 2024
1 of 2 checks passed
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to cdffcaf in 1 minute and 31 seconds

More details
  • Looked at 997 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. py/core/main/api/v3/system_router.py:324
  • Draft comment:
    The method _deep_merge_dicts is used here but is not defined in the provided code. Ensure that this method is implemented correctly elsewhere to avoid runtime errors.
  • Reason this comment was not posted:
    Comment did not seem useful.
2. py/sdk/v3/collections.py:138
  • Draft comment:
    The return type of the delete method has been changed from a boolean to the raw result. Ensure that this change is intentional and that all consumers of this method are updated accordingly. This comment also applies to remove_document (line 210) and remove_user (line 277).
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_JDfxIdc6E0vooWlA


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

def test_refresh_token(client):
# Assume that refresh token endpoint checks token validity
# Try using a bogus refresh token
client.users.refresh_token() # refresh_token="invalid_token")
Copy link
Contributor

Choose a reason for hiding this comment

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

The test test_refresh_token is incomplete. It should include assertions to verify the behavior when using an invalid refresh token.

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.

1 participant