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 #1679

Merged
merged 4 commits into from
Dec 10, 2024
Merged

up #1679

merged 4 commits into from
Dec 10, 2024

Conversation

emrgnt-cmplxty
Copy link
Contributor

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

Important

Remove AuthRouter, update database configurations, enhance SDKs, and add integration tests for various components.

  • Behavior:
    • Remove AuthRouter and its references from __init__.py, app.py, and builder.py.
    • Add r2r_with_auth.toml for authentication configuration.
    • Remove enable_fts from DatabaseConfig in database.py and postgres.py.
    • Update create_entity and create_relationship in graph_router.py to require description and set default weight.
    • Add error handling for empty queries in retrieval_router.py.
  • Database:
    • Remove AuthRouter related code from auth_router.py.
    • Update vector.py to always create fts index and handle $contains filter for JSON arrays.
  • SDK:
    • Add create_entity, create_relationship, and create_community methods to graphs.py.
    • Update conversations.py to handle message updates.
  • Tests:
    • Add integration tests for conversations, documents, graphs, indices, retrieval, and users in tests/integration/.
  • Misc:
    • Update version to 3.3.10 in pyproject.toml.
    • Remove enable_fts from r2r.toml.

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

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review December 10, 2024 22:38
@emrgnt-cmplxty emrgnt-cmplxty merged commit 2efb6e9 into main Dec 10, 2024
1 of 19 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 b587e8e in 2 minutes and 4 seconds

More details
  • Looked at 3084 lines of code in 26 files
  • Skipped 0 files when reviewing.
  • Skipped posting 7 drafted comments based on config settings.
1. py/core/main/__init__.py:14
  • Draft comment:
    The removal of AuthRouter from the exports suggests a significant change in how authentication is handled. Ensure that this change is documented and that any new authentication mechanism is properly integrated and tested.
  • Reason this comment was not posted:
    Comment did not seem useful.
2. py/core/base/providers/database.py:101
  • Draft comment:
    The enable_fts option has been removed. Ensure that this change is intentional and that any features relying on full-text search are updated accordingly.
  • Reason this comment was not posted:
    Comment did not seem useful.
3. py/core/configs/r2r_with_auth.toml:7
  • Draft comment:
    The default admin credentials should be changed immediately in production environments to prevent unauthorized access.
  • Reason this comment was not posted:
    Comment did not seem useful.
4. py/core/main/api/v3/graph_router.py:669
  • Draft comment:
    The description parameter is now mandatory. Ensure this change aligns with the intended functionality and update any dependent code accordingly.
  • Reason this comment was not posted:
    Comment did not seem useful.
5. py/core/main/api/v3/indices_router.py:316
  • Draft comment:
    The filters parameter is commented out. Ensure this is intentional and that the functionality is not required elsewhere.
  • Reason this comment was not posted:
    Comment did not seem useful.
6. py/core/main/api/v3/retrieval_router.py:264
  • Draft comment:
    Raising an exception for an empty query is a good practice. Ensure this behavior is consistent across the application.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The query parameter in the search_app function is checked for an empty string, and an exception is raised if it is empty. This is a good practice to prevent unnecessary processing, but ensure that this behavior is consistent with the rest of the application.
7. py/core/main/app.py:30
  • Draft comment:
    The removal of auth_router suggests a change in authentication handling. Ensure this change is documented and tested.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_GEg40BPtODL3MkiE


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.

str(id),
branch_id,
)
print("conversation", conversation)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove or replace the print statement with proper logging to maintain clean code.

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