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

feat(links): disclose owner on dup creation #640

Merged
merged 2 commits into from
Sep 30, 2020

Conversation

LoneRifle
Copy link
Contributor

@LoneRifle LoneRifle commented Sep 24, 2020

Problem

It is not obvious to the user who they should speak to
when a link they are trying to create already exists. They
often have to turn to support, which then would have to do a
manual lookup via a database query.

Solution

If the user attempts to create a link that already exists,
disclose the owner's e-mail

  • Declare and implement UserRepository.findUserByUrl()
  • Lookup owner if link already exists on creation, and disclose e-mail
    to user

Screenshot

image

If the user attempts to create a link that already exists,
disclose the owner's e-mail

- Declare and implement `UserRepository.findUserByUrl()`
- Lookup owner if link already exists on creation, and disclose e-mail
  to user
@LoneRifle LoneRifle force-pushed the feature/links/disclose-owner branch from 1bce502 to 1fc6f14 Compare September 24, 2020 16:15
@LoneRifle
Copy link
Contributor Author

@opengovsg/gosg-engineers could someone have a look?

Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

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

Logic can be simplified as suggested.

@LoneRifle LoneRifle force-pushed the feature/links/disclose-owner branch from d130481 to 5e12ca5 Compare September 29, 2020 02:53
@LoneRifle LoneRifle merged commit cdacc9b into develop Sep 30, 2020
@LoneRifle LoneRifle deleted the feature/links/disclose-owner branch September 30, 2020 04:53
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.

3 participants