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

Added docs functionality #32

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Added docs functionality #32

merged 2 commits into from
Oct 30, 2023

Conversation

Vasilije1990
Copy link
Contributor

@Vasilije1990 Vasilije1990 commented Oct 30, 2023

Summary by CodeRabbit

Refactor:

  • Updated import paths in api.py for AsyncSessionLocal and session_scope to improve code organization and maintainability. This change does not affect the functionality or user experience of the application.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 30, 2023

Walkthrough

The changes primarily involve the modification of import paths in the api.py file under the level_3 directory. The AsyncSessionLocal and session_scope imports have been updated to use a different module path, enhancing the code's structure and readability.

Changes

File Path Summary
level_3/.../api.py Import paths for AsyncSessionLocal and session_scope have been updated from level_3.database.database and level_3.database.database_crud to database.database and database.database_crud respectively.

🐇🍂

In the season of fall, when leaves gently sway,

CodeRabbit hopped along, making changes today.

Paths have been shortened, the code's now neat,

Like a tidy burrow, where all paths meet.

Celebrate the changes, for they're not small,

In the world of code, they matter to all. 🎃🍁


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d76cdf7 and 4c586dc.
Files ignored due to filter (3)
  • level_3/docker-compose.yml
  • level_3/poetry.lock
  • level_3/pyproject.toml
Files selected for processing (1)
  • level_3/api.py (1 hunks)
Files skipped from review due to trivial changes (1)
  • level_3/api.py

@Vasilije1990 Vasilije1990 merged commit 4cc21ac into main Oct 30, 2023
@Vasilije1990 Vasilije1990 deleted the optimizations_of_docker branch March 25, 2024 13:44
borisarzentar pushed a commit that referenced this pull request Dec 4, 2024
Rework of the cognee lib exception/error handling.

Added custom exceptions and custom exception handling.

Whenever a custom exception is raised in the cognee fastapi backend it
will be processed by the exception handler making sure exception
information is logged and proper JSONResponse is sent. No need to catch
these exception in endpoints with the goal of logging and responding.

Note: The exception handler is only used for the cognee FastAPI backend
server, using cognee as a library won't utilize this exception handling
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