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

Option for collection property to be unique #632

Open
pensierinmusica opened this issue Aug 6, 2015 · 1 comment
Open

Option for collection property to be unique #632

pensierinmusica opened this issue Aug 6, 2015 · 1 comment

Comments

@pensierinmusica
Copy link

When defining a collection property, it would be nice to have the option to set it as "unique", besides the – already available – "required" (see screenshot below).

From a UI perspective, in order of implementation complexity, we could have:

  • Another checkbox
  • A dropdown with multiple selection (e.g. something like this)
  • An "options" button, that opens a modal dialog with checkboxes

screenshot

Thoughts?

@ericfong
Copy link
Member

ericfong commented Aug 7, 2015

Any one know npm library that give us a web gui to edit the mongo indexes?

So, we can depend on lib instead of writing one?

docnoe added a commit to docnoe/deployd that referenced this issue Sep 16, 2015
adds possibility to set a property to be unique

changes collection to parse property keys and set/remove a mongodb index
on the corresponding field if "unique" is true

adds checkbox to dashboard to toggle unique property

fixes deployd#632
docnoe added a commit to docnoe/deployd that referenced this issue Sep 17, 2015
adds possibility to set a property to be unique

changes collection to parse property keys and set/remove a mongodb index
on the corresponding field if "unique" is true

adds checkbox to dashboard to toggle unique property

fixes deployd#632
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

No branches or pull requests

2 participants