Title: Refactor Query/Flied classes `.get_info` and related methods for better programmatic use · Issue #76 · CorrelAid/datenguide-python · GitHub
Open Graph Title: Refactor Query/Flied classes `.get_info` and related methods for better programmatic use · Issue #76 · CorrelAid/datenguide-python
X Title: Refactor Query/Flied classes `.get_info` and related methods for better programmatic use · Issue #76 · CorrelAid/datenguide-python
Description: Description The Query class (and the related Field class) from the query_builder module has some functionality to display information about a query at hand and which fields,enums etc. one might add to it. A lot of this functionality is r...
Open Graph Description: Description The Query class (and the related Field class) from the query_builder module has some functionality to display information about a query at hand and which fields,enums etc. one might add...
X Description: Description The Query class (and the related Field class) from the query_builder module has some functionality to display information about a query at hand and which fields,enums etc. one might add...
Opengraph URL: https://github.com/CorrelAid/datenguide-python/issues/76
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Refactor Query/Flied classes `.get_info` and related methods for better programmatic use","articleBody":"### Description\r\n\r\nThe `Query` class (and the related `Field` class) from the `query_builder` module has some functionality to display information about a query at hand and which fields,enums etc. one might add to it. A lot of this functionality is related to the `.get_info` method.\r\nCurrently this method prints the information to stdout when it is called. This has two main disadvantages.\r\n 1. The method name is misleading as it doesn't \"get\" anything but instead \"prints\" something\r\n 2. It's difficult to build applications on top of the query_builder class that make use of the `.get_info` information in their own way (i.e. don't do naive printing). Such an application could be a dashboard for data exploration.\r\n\r\nI would suggest to refactor `.get_info` and related methods to return a data type, for instance a dict or a named tumple containing the information, such that it can be build upon. Addionally one could extend the Query/Field class to additionally retain its info printing funcitonality based on the new `.get_info` but under a different name. For instance `.print_info`.","author":{"url":"https://github.com/KonradUdoHannes","@type":"Person","name":"KonradUdoHannes"},"datePublished":"2020-05-11T05:18:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/76/datenguide-python/issues/76"}
| 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:15cbe57a-1c11-c1ab-17c2-ccc342ac2c8f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A766:1C4A00:B7C294:FB1025:698F32E1 |
| html-safe-nonce | 1eeed1c3af41ee2fda74cd8e6f8f307ec54ec1bae9c84f939a3acb8ee1041113 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzY2OjFDNEEwMDpCN0MyOTQ6RkIxMDI1OjY5OEYzMkUxIiwidmlzaXRvcl9pZCI6IjU1NDE1MjE2NzkyOTU5MTg4MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 90868795db280f867e52020df21056213481f827801aeb8626d8d902fa1e7d69 |
| hovercard-subject-tag | issue:615594716 |
| 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/CorrelAid/datenguide-python/76/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96eb46d76427f526ce84b549cfdad9b084c8d533b71648248994c472202d3087/CorrelAid/datenguide-python/issues/76 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96eb46d76427f526ce84b549cfdad9b084c8d533b71648248994c472202d3087/CorrelAid/datenguide-python/issues/76 |
| og:image:alt | Description The Query class (and the related Field class) from the query_builder module has some functionality to display information about a query at hand and which fields,enums etc. one might add... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KonradUdoHannes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1 |
| turbo-cache-control | no-preview |
| go-import | github.com/CorrelAid/datenguide-python git https://github.com/CorrelAid/datenguide-python.git |
| octolytics-dimension-user_id | 12309077 |
| octolytics-dimension-user_login | CorrelAid |
| octolytics-dimension-repository_id | 193223252 |
| octolytics-dimension-repository_nwo | CorrelAid/datenguide-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193223252 |
| octolytics-dimension-repository_network_root_nwo | CorrelAid/datenguide-python |
| 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 | e2fe82f90e107669021e243add8f74ea2a9be1b3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width