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

Shorten urls in the base classes #1040

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ryneeverett
Copy link
Collaborator

No description provided.

With only one exception, this method is only used to process urls which
are going to be passed to `IssueService.build_annotations` and
`Issue.build_default_description`. There are a few benefits to doing
this in the base classes instead:

- DRYer, one less thing to worry about in service implementations, and
  more reliable -- I'm pretty sure every service wasn't applying this
  method in all the places it should have been.
- Less coupling between the base classes since the Service was calling a
  method on the Issue.
This is inconsistent with all the other services and I suspect an
unintentional oversight.
@ryneeverett ryneeverett changed the title Get processed url internally Shorten urls in the base classes Apr 3, 2024
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

1 participant