Title: Explore the option of sending partial entities as responses · Issue #28 · anomaly/lab-python-server · GitHub
Open Graph Title: Explore the option of sending partial entities as responses · Issue #28 · anomaly/lab-python-server
X Title: Explore the option of sending partial entities as responses · Issue #28 · anomaly/lab-python-server
Description: This is something I miss from my prestans days, we have a feature we called attribute_filters it essentially allowed us toggle the visibility of fields in responses. What this allowed is to use the same model for different use cases e.g:...
Open Graph Description: This is something I miss from my prestans days, we have a feature we called attribute_filters it essentially allowed us toggle the visibility of fields in responses. What this allowed is to use the...
X Description: This is something I miss from my prestans days, we have a feature we called attribute_filters it essentially allowed us toggle the visibility of fields in responses. What this allowed is to use the...
Opengraph URL: https://github.com/anomaly/lab-python-server/issues/28
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Explore the option of sending partial entities as responses","articleBody":"This is something I miss from my `prestans` days, we have a [feature](https://prestans.readthedocs.io/en/latest/validation.html#attribute-filters) we called `attribute_filters` it essentially allowed us toggle the visibility of fields in responses. What this allowed is to use the same model for different use cases e.g:\r\n\r\n- List of users in the master view only needs, `id`, `name`, `email`\r\n- Clicking a user then loads the entire user including children model (this is the heavy weight use case)\r\n\r\nPydantic has the idea of [excluding](https://pydantic-docs.helpmanual.io/usage/exporting_models/#advanced-include-and-exclude) keys when it serializes content.\r\n\r\nExplore and document:\r\n- if this is possible using the FastAPI + pydantic toolset\r\n- is this an OK thing to do according the OpenAPI specification ","author":{"url":"https://github.com/devraj","@type":"Person","name":"devraj"},"datePublished":"2022-08-04T02:05:34Z","url":"https://github.com/anomaly/lab-python-server/issues/28"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0d379559-9440-2f39-7d13-03c3b330646a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A40E:1F9F68:725834:9C81C6:6B0479B9 |
| html-safe-nonce | 2db9826756282d4cb848f68c09113db1ca4bc2af0d32d7bab033c6e357667a81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDBFOjFGOUY2ODo3MjU4MzQ6OUM4MUM2OjZCMDQ3OUI5IiwidmlzaXRvcl9pZCI6IjE2NTQ2NTkwODc3MDQ4MTYwNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 32311903d16fecc0cd4e28dc99f9ac30773f23b768899e7e5e448fb71fd7015c |
| hovercard-subject-tag | issue:1327971421 |
| 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/anomaly/lab-python-server/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/212923580b50c88f3b07a83e6d8c759caaed42d3902faef6b8b456db9a9acfd6/anomaly/lab-python-server/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/212923580b50c88f3b07a83e6d8c759caaed42d3902faef6b8b456db9a9acfd6/anomaly/lab-python-server/issues/28 |
| og:image:alt | This is something I miss from my prestans days, we have a feature we called attribute_filters it essentially allowed us toggle the visibility of fields in responses. What this allowed is to use the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devraj |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/anomaly/lab-python-server git https://github.com/anomaly/lab-python-server.git |
| octolytics-dimension-user_id | 3654837 |
| octolytics-dimension-user_login | anomaly |
| octolytics-dimension-repository_id | 491764445 |
| octolytics-dimension-repository_nwo | anomaly/lab-python-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 491764445 |
| octolytics-dimension-repository_network_root_nwo | anomaly/lab-python-server |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width