
Problems Creating Model With UUID Property
Reported by scrapcoder | June 23rd, 2010 @ 08:34 AM | in 1.0.2
Essentially, the model I'm trying to use the UUID property in isn't getting saved to the database, and I cannot find any useful information in the logs or errors as to why it isn't getting saved.
Code to reproduce the problem, along with the logging output I generated when running it, is Gisted here: https://gist.github.com/0a77160612394a0ecc67
Please help! I've got Python-lovers breathing down my neck ready to convert my stuff to Python since I can't get this figured out... :(
-- Bryan
Comments and changes to this ticket
-
Piotr Solnica (solnic) June 23rd, 2010 @ 09:01 AM
- Milestone set to 1.0.2
- State changed from new to accepted
- Assigned user set to Piotr Solnica (solnic)
-
scrapcoder June 23rd, 2010 @ 11:24 AM
Hi Piotr,
I've updated my Gist to reflect the fact that the issue of not saving to the database is indeed due to the use of UUIDs by also executing the test using an id of type Serial rather than an id of type UUID. When I use a Serial id, things work as they should.
-- Bryan
-
Piotr Solnica (solnic) June 23rd, 2010 @ 11:36 AM
Thanks, I've already identified the problem and will fix it this week
-
scrapcoder June 23rd, 2010 @ 03:05 PM
Ah, sweet! Thanks! Any chance you can tell me what it is and/or I can hack some code up for use until you fix it?
-
Piotr Solnica (solnic) June 24th, 2010 @ 04:10 AM
I will fix it later today on master so you could use latest sources if you want.
-
scrapcoder June 27th, 2010 @ 09:13 PM
- Milestone order changed from 0 to 0
Hi Piotr,
Were you able to fix the problem last week? Just curious. Thanks again!
-- Bryan
-
Piotr Solnica (solnic) June 30th, 2010 @ 05:11 AM
- State changed from accepted to resolved
(from [b08a815252cf63915a08fd318c0129f563ed29fb]) [uuid] Adds an overridden #valid? which should return true also if the value is a string.
[#1335 state:resolved] http://github.com/datamapper/dm-types/commit/b08a815252cf63915a08fd...
-
Piotr Solnica (solnic) June 30th, 2010 @ 05:13 AM
Hey scrapcoder, as you see I just pushed a fix. I also checked it against your gist and the problem seems to be gone. You can use sources from master in your app to have it working. Expect a 1.0.1 release soon too :)
-
scrapcoder June 30th, 2010 @ 08:23 AM
Awesome Piotr, thanks! I just downloaded the source and tried it out and it indeed now works. Appreciate the help! Thanks for contributing to such a great project. :)
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
-
1335 Problems Creating Model With UUID Property [#1335 state:resolved] http://github.com/datamapper/dm-t...