meteor-admin
meteor-admin copied to clipboard
crash on breaking unique constraint
I get no validation message for a Autoform unique field.
My admin crashes when I break a unique constraint.
This is almost certainly an autoform issue. Admin just renders the autoform forms.
I tested my schema with Autoform and it works like a charm. When I use it with yogiben:admin it crashes.
Have you tested a schema using unique constraints?
I have not. I can't see why it would be an issue.
Sorry, I don't have any advice at this time.
I'm having the same problem:
Schemas.Posts = new SimpleSchema
slug:
type: String
max: 60
index: 1
unique: true
As soon as I try to set a non unique slug I get the following:
W20150222-15:06:14.769(10)? (STDERR)
W20150222-15:06:14.771(10)? (STDERR) /Users/1pxsolid/.meteor/packages/meteor-tool/.1.0.40.1to9jkn++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173
W20150222-15:06:14.771(10)? (STDERR) throw(ex);
W20150222-15:06:14.772(10)? (STDERR) ^
W20150222-15:06:14.772(10)? (STDERR) RangeError: Maximum call stack size exceeded
And my admin and website then crash.
I'm guessing collection2 causes the invalidation, but what happens next might be related to the 'admin' package?
+1
+1