Skip to content

Overlapping path check too strict - #685

Merged
spoorcc merged 3 commits into
mainfrom
spoorcc/issue684
Mar 9, 2025
Merged

Overlapping path check too strict#685
spoorcc merged 3 commits into
mainfrom
spoorcc/issue684

Conversation

@spoorcc

@spoorcc spoorcc commented Mar 7, 2025

Copy link
Copy Markdown
Contributor

Fixes #684

Description by Korbit AI

What change is being made?

Relax the overlapping path check in the dfetch update command to ignore scenarios where a real path matches exactly with a destination or does not have any actual parent/child overlapping paths, and add relevant tests to ensure proper functionality.

Why are these changes being made?

The previous implementation erroneously flagged exact path matches as overlaps due to a strict common prefix logic, causing unnecessary warnings and process skips during updates. The new approach accurately identifies true overlapping paths by leveraging Path parent relationships and ensures only genuine overlaps are warned against, thus resolving issue #684 efficiently.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

@korbit-ai korbit-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've completed my review and didn't find any issues... but I did find this frog.

           .--._.--.
          ( O     O )
          /   . .   \
         .`._______.'.
        /(           )\
      _/  \  \   /  /  \_
   .~   `  \  \ /  /  '   ~.
  {    -.   \  V  /   .-    }
_ _`.    \  |  |  |  /    .'_ _
>_       _} |  |  | {_       _<
 /. - ~ ,_-'  .^.  `-_, ~ - .\
         '-'|/   \|`-`
Files scanned
File Path Reviewed
dfetch/commands/update.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions
Issue Categories
Category Enabled
Documentation
Logging
Error Handling
Readability
Design
Performance
Security
Functionality

Feedback and Support

Note

Korbit Pro is free for open source projects 🎉

Looking to add Korbit to your team? Get started with a free 2 week trial here

@ben-edna
ben-edna force-pushed the spoorcc/issue684 branch 2 times, most recently from 8e3d85a to cf4ceb5 Compare March 7, 2025 16:48
@spoorcc
spoorcc merged commit 7d2b6b8 into main Mar 9, 2025
@spoorcc
spoorcc deleted the spoorcc/issue684 branch March 9, 2025 20:29
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.

Overlapping path check too strict

2 participants