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

Remove trailing slash of base_url upon Api initialization #214

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

JR-1991
Copy link
Member

@JR-1991 JR-1991 commented Aug 28, 2024

Issue #213 highlighted failing tests within the SWORD API authentication, and the cause was a trailing slash in the base_url, which led to a malformed URL. This could be a potential point of frustration for users, as there is no indication that the base_url should not end with a slash. Therefore, this PR modifies the __init__ method of the base Api class to automatically strip any trailing slash, so users no longer need to worry about this.

Closes #213

@JR-1991 JR-1991 added the pkg:api api related activities label Aug 28, 2024
@JR-1991 JR-1991 added this to the 0.3.4 milestone Aug 28, 2024
@JR-1991 JR-1991 self-assigned this Aug 28, 2024
@JR-1991 JR-1991 requested a review from shoeffner August 28, 2024 07:48
Copy link
Collaborator

@shoeffner shoeffner left a comment

Choose a reason for hiding this comment

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

Seems to be a good pragmatic solution.

:shipit:

@JR-1991 JR-1991 merged commit 5e077fd into main Aug 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:api api related activities
Projects
Development

Successfully merging this pull request may close these issues.

GitHub Action fails upon authentication with SWORD API
2 participants