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

DM-31344: Fix some logic for ButlerURI.relative_to() #555

Merged
merged 4 commits into from Aug 10, 2021
Merged

Conversation

timj
Copy link
Member

@timj timj commented Aug 6, 2021

Rewrites the ButlerURI.relative_to() code for scheme-less URIs so that it works correctly with S3 URIs.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Previously there was specialization code in the file scheme
that tried to work with file and scheme-less URIs. This code
worked except it failed to understand that we need S3 URIs
to be the parent for a scheme-less child.

Change the logic so that file is now a completely standard
implementation using the base class, and schemeless converts
the parameters to handle the different scenarios before calling
the base implementation.
Copy link

@SergeyPod SergeyPod left a comment

Choose a reason for hiding this comment

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

Looks fine with me.

@timj timj merged commit 11e2f9f into master Aug 10, 2021
@timj timj deleted the tickets/DM-31344 branch August 10, 2021 22:56
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.

None yet

2 participants