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

refactor(links): clean up, test UrlRepository #554

Merged
merged 3 commits into from
Sep 9, 2020

Conversation

LoneRifle
Copy link
Contributor

Problem and Solution

As part of routine work to stabilise the codebase, do the following:

  • Fix file name typo for UrlManagementService
  • Remove UrlRepository.incrementClicks(), not used
  • Provide test coverage for UrlRepository (and S3ServerSide by extension)

Click-tracking has been moved to LinkStatisticsRepository, so remove
`UrlRepository.incrementClicks()` and references to it, including
a similar method on LinkStatisticsRepository
- Provide tests for `findShortUrl()`, `create()` and `update()`
- Change the signature for UrlRepository.update so that it is
  more easily tested
Copy link
Member

@yong-jie yong-jie left a comment

Choose a reason for hiding this comment

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

LGTM

@LoneRifle LoneRifle merged commit b2d655f into develop Sep 9, 2020
@yong-jie yong-jie deleted the refactor/repositories/url-management branch September 9, 2020 05:21
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