-
Notifications
You must be signed in to change notification settings - Fork 0
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
Compatibility with crud module #1
Comments
That's weird. I have just tested it seeding some data via YAML, the created_at and updated_at fields are indeed populated. Even so, those field are only intended for inner control and shall never be editable. Can you detail what steps are you doing? |
Let me try to come up with a demo app to reproduce the coming days, I might have been to fast reporting this. |
I have an object in the db with both _at fields and they are null. I go to the crud admin and it shows the fields. created_at I do not touch them and save the form. They are still null afterwards where in fact updated_at should have been auto-updated. Are they marked as hidden when you add the fields? |
So what's to fix here: When a entity is edited in the crud the updated_ad should be updated which is not the case. If you want I can send you a small test project but it's actually trivial to reproduce. Maybe these fields should be hidden in the crud? |
Bad and good news The bad one: At current, it's impossible annotated created_at and updated_at fields with @exclude, since that annotation is compiled at run time and Chronostamp makes some byte-code enhancement therefore all required dependencies must be precompiled in order to build the module. The good one: I modified the play! built-in module so that @exclude and @hidden annotations are precompiled as well. https://github.com/omaroman/crud Meanwhile, you can download both modules and try the demo module included with Chronostamp, it excludes timestamp fields when using the modified CRUD module. I will submit those changes to the play framework repository. Let's hope they're accepted. BTW, thanks for your feedback. |
could you add a link to the pull request? |
When I edit an entity in the crud module the updated_at field in not populated
The text was updated successfully, but these errors were encountered: