Title: loading a parent scope should trigger client side scoping of children · Issue #82 · hyperstack-org/hyperstack · GitHub
Open Graph Title: loading a parent scope should trigger client side scoping of children · Issue #82 · hyperstack-org/hyperstack
X Title: loading a parent scope should trigger client side scoping of children · Issue #82 · hyperstack-org/hyperstack
Description: related to #78. For example: # assume the active scope has a client side filter method Todo.all.active.count # request just the count but not the whole scope Todo.all.each ... # fetch the parent scope ... # later after parent scope has f...
Open Graph Description: related to #78. For example: # assume the active scope has a client side filter method Todo.all.active.count # request just the count but not the whole scope Todo.all.each ... # fetch the parent sc...
X Description: related to #78. For example: # assume the active scope has a client side filter method Todo.all.active.count # request just the count but not the whole scope Todo.all.each ... # fetch the parent sc...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/82
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"loading a parent scope should trigger client side scoping of children","articleBody":"related to #78.\r\n\r\nFor example:\r\n\r\n```ruby\r\n# assume the active scope has a client side filter method\r\n\r\nTodo.all.active.count # request just the count but not the whole scope\r\nTodo.all.each ... # fetch the parent scope\r\n... # later after parent scope has finished loading\r\nTodo.all.active.each ... # this unnecessarily loads active from server\r\n```\r\nThe problem `all.active` collection is created first, and linked to `all` (the parent)\r\nbut parent does not have loaded collection yet, so we skip filtering.\r\n\r\nperhaps calling `sync_collection_with_parent` in the `all` method could fix it easily?","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2018-12-07T19:32:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/82/hyperstack/issues/82"}
| 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:e8fac44f-fe25-268f-58cc-447c3b431442 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDF2:804D0:B606E8:E7C1B7:699182AF |
| html-safe-nonce | 2e18698e815c0d9152db9483e3cfad76d99800b8997c5918b001a515ccecd8d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREYyOjgwNEQwOkI2MDZFODpFN0MxQjc6Njk5MTgyQUYiLCJ2aXNpdG9yX2lkIjoiMzUxMjE0Mjk1NzU1Njg5MjMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f9643d82b931cdfa52ec6f5e2c2598682634cf64eaf7238f481b8b1937840a7f |
| hovercard-subject-tag | issue:388785144 |
| 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/82/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e064539d33530e725bf177cc24412654816e7d7d057cf2f864c02db96b515e67/hyperstack-org/hyperstack/issues/82 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e064539d33530e725bf177cc24412654816e7d7d057cf2f864c02db96b515e67/hyperstack-org/hyperstack/issues/82 |
| og:image:alt | related to #78. For example: # assume the active scope has a client side filter method Todo.all.active.count # request just the count but not the whole scope Todo.all.each ... # fetch the parent sc... |
| 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