-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Home]: Able to add duplicate home #380
Comments
@brylie it is not possible to make home names unique groupwise as mongo does not support composite keys. is it okay to make the home names unique across all groups? |
We have use-cases where homes have duplicate names across the system. E.g. "Ward 1" could be used in multiple group homes. Duplicate home names will be allowed with the multi-tenancy application, so we should carefully consider whether to take any action here. |
@brylie Agreed. Yet a group must have unique names so we will have to consider this while making the multitenancy app. |
Can we use a pre-save hook to check for a duplicate home name in the same group when saving a home? E.g. in the AutoForm beforeSubmit or the equivalent? |
Yes good for all cases. We will only have think about data import feature |
There is also a collection hooks package, which may be more or less maintained. |
Steps to Reproduce
Screenshot :http://prntscr.com/njhk6b
The text was updated successfully, but these errors were encountered: