Title: if you change primary key to something other than id, incoming broadcast messages will not work · Issue #358 · hyperstack-org/hyperstack · GitHub
Open Graph Title: if you change primary key to something other than id, incoming broadcast messages will not work · Issue #358 · hyperstack-org/hyperstack
X Title: if you change primary key to something other than id, incoming broadcast messages will not work · Issue #358 · hyperstack-org/hyperstack
Description: Problem is load_from_json is passed the primary_key attribute, but it is checking for id instead of primary_key. Then it attempts to call hyperstack_internal_setter'your_primary_key_value' instead of _hyperstack_internal_setter_id. But t...
Open Graph Description: Problem is load_from_json is passed the primary_key attribute, but it is checking for id instead of primary_key. Then it attempts to call hyperstack_internal_setter'your_primary_key_value' instead ...
X Description: Problem is load_from_json is passed the primary_key attribute, but it is checking for id instead of primary_key. Then it attempts to call hyperstack_internal_setter'your_primary_key_value' ...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/358
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"if you change primary key to something other than id, incoming broadcast messages will not work","articleBody":"Problem is load_from_json is passed the primary_key attribute, but it is checking for `id` instead of primary_key.\r\n\r\nThen it attempts to call _hyperstack_internal_setter_'your_primary_key_value' instead of _hyperstack_internal_setter_id. But that method is just a nop, so instead load_from_json should just add this guard:\r\n\r\ntarget.send(\"_hyperstack_internal_setter_#{method}\", value.first) unless method == target.class.primary_key\r\n\r\non about line 509","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2021-02-22T19:15:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/358/hyperstack/issues/358"}
| 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:30c4cfd2-9fd1-83da-9608-9c1b651a659a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8E8:236EAA:180D8F5:1EC5A12:69926771 |
| html-safe-nonce | d1f713d012c331f98a6412f04f570e5213b30b48e81fb5e81de9022b87881f87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEU4OjIzNkVBQToxODBEOEY1OjFFQzVBMTI6Njk5MjY3NzEiLCJ2aXNpdG9yX2lkIjoiNjM4MTMzNDE1ODE0OTU3NjU2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85dbc23c00e8f1ce7aeedf8c90987bbfc11a209190a75e9face237763e174a1c |
| hovercard-subject-tag | issue:813785640 |
| 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/358/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df116e3dfce7ec376747b01dd593f07270fb4ce7d0205d53adcd966143d25767/hyperstack-org/hyperstack/issues/358 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df116e3dfce7ec376747b01dd593f07270fb4ce7d0205d53adcd966143d25767/hyperstack-org/hyperstack/issues/358 |
| og:image:alt | Problem is load_from_json is passed the primary_key attribute, but it is checking for id instead of primary_key. Then it attempts to call hyperstack_internal_setter'your_primary_key_value' instead ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | catmando |
| 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