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

db: recreate projects with the same name #318

Merged
merged 3 commits into from
May 22, 2024

Conversation

ig-ra
Copy link
Contributor

@ig-ra ig-ra commented May 21, 2024

allow to recreate project with the same name.

  • use hook to check whether non-deleted project exists with the same name
  • return duplicated record if so
  • allow if there are deleted projects
  • change project:name index to be non-unique

@ig-ra ig-ra requested review from daabr, itayd and efiShtain May 21, 2024 20:17
Copy link
Contributor

@daabr daabr left a comment

Choose a reason for hiding this comment

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

The code is fine, but I don't see why we should allow this to happen.

This will allow situations where I refer to a project without knowing that it was deleted and replaced by another project.

Other than simple confusion, this is also an opening for abuse and attacks.

@itayd
Copy link
Contributor

itayd commented May 21, 2024

yes i am not a fan of this approach. will need to brainstorm another solution.

@ig-ra ig-ra force-pushed the igor/eng-871-recreate-projects-with-the-same-name branch from d1f8002 to 8d3cb4f Compare May 22, 2024 07:44
@ig-ra ig-ra merged commit 109e21b into main May 22, 2024
11 checks passed
@ig-ra ig-ra deleted the igor/eng-871-recreate-projects-with-the-same-name branch May 22, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants