Skip to content

fix(cli): use relative path for local directory log message - #111

Merged
Integer-Ctrl merged 3 commits into
dbpedia:mainfrom
saicharan13245-ship-it:fix-data-location
Nov 23, 2026
Merged

Integer-Ctrl merged 3 commits into
dbpedia:mainfrom
saicharan13245-ship-it:fix-data-location

Conversation

@saicharan13245-ship-it

@saicharan13245-ship-it saicharan13245-ship-it commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Pull Request

Description

Wrapped the directory output in os.path.relpath() so the CLI prints a clean relative path instead of a confusing absolute path for Docker mounts

Related Issues
Fixes issue #68

Type of change

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • Housekeeping

Checklist:

  • [ x] My code follows the ruff code style of this project.
  • [ x] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works
  • [x ] New and existing unit tests pass locally with my changes
    • [x ] poetry run pytest - all tests passed
    • [x ] poetry run ruff check - no linting errors

Summary by CodeRabbit

  • Bug Fixes
    • When no download directory is specified, the selected directory is displayed as a path relative to the current working directory instead of as a full path. Download behavior is unchanged: files are downloaded to the same selected location, and specifying a download directory continues to work as before.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

When no localDir is supplied, the missing-directory message displays the selected directory as a path relative to the current working directory. The Poetry package version changes from 1.3.0 to 1.3.1.

Changes: Download message and package version

Layer / File(s) Summary
Display relative directory path
databusclient/api/download.py
The missing-directory message displays localDir relative to the current working directory.
Update package version
pyproject.toml
The Poetry package version changes from 1.3.0 to 1.3.1.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Suggested reviewers: integer-ctrl, prakhar54-byte

Merge Risk: Minimal · up to fea04

The CLI's missing-directory message now shows a relative path, and the package version moves to 1.3.1. The change is small and low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the CLI log message for the local directory now uses a relative path. The raw summary confirms that download.py prints a path relative to the current working directory…
Description check Passed The description states the change clearly. It explains that the directory output now uses os.path.relpath() to avoid confusing absolute paths for Docker mounts, and it links issue #68. It marks the bu…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the CLI log message for the local directory now uses a relative path. The raw summary confirms that download.py prints a path relative to the current working directory when no localDir is supplied. The title uses the conventional fix(cli) prefix and is specific enough for a reader scanning history.

Full details: Description check

Explanation

The description states the change clearly. It explains that the directory output now uses os.path.relpath() to avoid confusing absolute paths for Docker mounts, and it links issue #68. It marks the bug fix type and records that ruff and pytest passed. Gaps: the 'I have added tests' item is unchecked, and the template's 'I have commented my code' and documentation items are unchecked with no reason given. The Type of change and checklist markers also contain stray spaces ('[ x]', '[x ]'), which may not render as checked boxes. The description does not state whether any test covers the new behavior.

Resolution

Optional improvements: state whether a test covers the relative path output, or explain why none was added. Fix the checkbox markup so the ticks render correctly (for example '[x]' with no inner spaces). Confirm the unchecked commenting and documentation items do not apply.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b23a4148-901a-4ddc-8674-c9b3ca1888a1
Commits

Reviewing files that changed from the base of the PR and between d64123a and fea0425.

Files selected for processing: 1

  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Integer-Ctrl Integer-Ctrl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for your contribution @saicharan13245-ship-it!

@Integer-Ctrl
Integer-Ctrl merged commit 55b25a0 into dbpedia:main Nov 23, 2026
2 checks passed
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