Title: before_validation :update_permalink, on: :create is never triggered in an hyper model · Issue #218 · hyperstack-org/hyperstack · GitHub
Open Graph Title: before_validation :update_permalink, on: :create is never triggered in an hyper model · Issue #218 · hyperstack-org/hyperstack
X Title: before_validation :update_permalink, on: :create is never triggered in an hyper model · Issue #218 · hyperstack-org/hyperstack
Description: This is a common pattern to initialize some attributes before validation on creation. For instance acts_as_permalink does that: https://github.com/kmcphillips/acts_as_permalink/blob/55e824a5bf76f30ce8250dd9438bc46234e25b45/lib/concern.rb...
Open Graph Description: This is a common pattern to initialize some attributes before validation on creation. For instance acts_as_permalink does that: https://github.com/kmcphillips/acts_as_permalink/blob/55e824a5bf76f30...
X Description: This is a common pattern to initialize some attributes before validation on creation. For instance acts_as_permalink does that: https://github.com/kmcphillips/acts_as_permalink/blob/55e824a5bf76f30...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/218
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"before_validation :update_permalink, on: :create is never triggered in an hyper model","articleBody":"This is a common pattern to initialize some attributes before validation on creation. For instance acts_as_permalink does that: https://github.com/kmcphillips/acts_as_permalink/blob/55e824a5bf76f30ce8250dd9438bc46234e25b45/lib/concern.rb#L10\r\n\r\nBut in hyperstack, a new_record is saved without validation and validated later:\r\nhttps://github.com/hyperstack-org/hyperstack/blob/bf2fa766e8a219810e69933f965047dfd982bd67/ruby/hyper-model/lib/reactive_record/active_record/reactive_record/isomorphic_base.rb#L499\r\n\r\nThe callback is never triggered because validation is applied to a record that is already created.","author":{"url":"https://github.com/lionelchauvin","@type":"Person","name":"lionelchauvin"},"datePublished":"2019-07-19T12:17:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/218/hyperstack/issues/218"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b4e23a1-139d-5eb1-28a7-8f52f43766d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D480:165A40:9B3CD7:CBBA13:6991F229 |
| html-safe-nonce | d45dd22b6d48398629bb5e3285032b5ae03c6a3c4df67dd3382d70e386292265 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDgwOjE2NUE0MDo5QjNDRDc6Q0JCQTEzOjY5OTFGMjI5IiwidmlzaXRvcl9pZCI6IjM1ODU4NTEwMDg3NDI0NTM4MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1575a7bc1f7cd02ac5c3f110c18c79b7699857e14839f89705d3ab2258440595 |
| hovercard-subject-tag | issue:470295427 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hyperstack-org/hyperstack/218/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10e91ff53d493002efa68d4c146ff8260a86b2067356f8d5e92db466a45bfa0d/hyperstack-org/hyperstack/issues/218 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10e91ff53d493002efa68d4c146ff8260a86b2067356f8d5e92db466a45bfa0d/hyperstack-org/hyperstack/issues/218 |
| og:image:alt | This is a common pattern to initialize some attributes before validation on creation. For instance acts_as_permalink does that: https://github.com/kmcphillips/acts_as_permalink/blob/55e824a5bf76f30... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lionelchauvin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperstack-org/hyperstack git https://github.com/hyperstack-org/hyperstack.git |
| octolytics-dimension-user_id | 34562730 |
| octolytics-dimension-user_login | hyperstack-org |
| octolytics-dimension-repository_id | 145879576 |
| octolytics-dimension-repository_nwo | hyperstack-org/hyperstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145879576 |
| octolytics-dimension-repository_network_root_nwo | hyperstack-org/hyperstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width