Title: Labels are returned as keys, not as values? · Issue #15 · ByteInternet/hypernode-api-php · GitHub
Open Graph Title: Labels are returned as keys, not as values? · Issue #15 · ByteInternet/hypernode-api-php
X Title: Labels are returned as keys, not as values? · Issue #15 · ByteInternet/hypernode-api-php
Description: That doesn't look right? I create a brancher node through the API like this; $labels = ['hiereenlabel', 'nogeenlabel']; $client->brancherApp->create($originHypernode, [ 'labels' => $labels, 'clear-services' => $clearServices, ]); Then wh...
Open Graph Description: That doesn't look right? I create a brancher node through the API like this; $labels = ['hiereenlabel', 'nogeenlabel']; $client->brancherApp->create($originHypernode, [ 'labels' => $labels, 'clear-...
X Description: That doesn't look right? I create a brancher node through the API like this; $labels = ['hiereenlabel', 'nogeenlabel']; $client->brancherApp->create($originHypernode, [ ...
Opengraph URL: https://github.com/ByteInternet/hypernode-api-php/issues/15
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Labels are returned as keys, not as values?","articleBody":"That doesn't look right?\r\n\r\nI create a brancher node through the API like this;\r\n\r\n```\r\n$labels = ['hiereenlabel', 'nogeenlabel'];\r\n$client-\u003ebrancherApp-\u003ecreate($originHypernode, [\r\n 'labels' =\u003e $labels,\r\n 'clear-services' =\u003e $clearServices,\r\n ]);\r\n```\r\n\r\nThen when I request a list (with the new list command, see #14), I get this;\r\n\r\n```\r\n [0] =\u003e Array \r\n ( \r\n [id] =\u003e 15803 \r\n [name] =\u003e hypernodenamehere-eph1z2ypy\r\n [cost] =\u003e 1 \r\n [created] =\u003e 2023-03-27T16:18:59.326882+02:00\r\n [ip] =\u003e \r\n [end_time] =\u003e \r\n [elapsed_time] =\u003e 3\r\n [labels] =\u003e Array\r\n (\r\n [labelhier] =\u003e \r\n [nogeenlabel] =\u003e \r\n ) \r\n\r\n )\r\n```\r\n\r\nI would've expected to see:\r\n\r\n```\r\n [labels] =\u003e Array\r\n (\r\n [0] =\u003e 'labelhier'\r\n [1] =\u003e 'nogeenlabel'\r\n ) \r\n```\r\n","author":{"url":"https://github.com/peterjaap","@type":"Person","name":"peterjaap"},"datePublished":"2023-03-27T14:21:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/15/hypernode-api-php/issues/15"}
| 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:e1e9845b-fb7a-6001-4bd9-05f0215a28c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCDA:2E3F95:E89961:14195FB:696A8688 |
| html-safe-nonce | 99c89aec6ada158ffd22e50bb1b130ac394a2392b557f0959cb047123af92c88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0RBOjJFM0Y5NTpFODk5NjE6MTQxOTVGQjo2OTZBODY4OCIsInZpc2l0b3JfaWQiOiIxOTMzNzUxNTE3MTgwNDk1NDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6d31030014c9abd2de4b48d51cfe05fba32332a0038b61fc9f7279e546129d06 |
| hovercard-subject-tag | issue:1642193205 |
| 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/ByteInternet/hypernode-api-php/15/issue_layout |
| twitter:image | https://opengraph.githubassets.com/19f7b4a296471ffdf55427ba3fb3b63b44b2b1e3d77aaf4b31cb239cfdbc59b7/ByteInternet/hypernode-api-php/issues/15 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19f7b4a296471ffdf55427ba3fb3b63b44b2b1e3d77aaf4b31cb239cfdbc59b7/ByteInternet/hypernode-api-php/issues/15 |
| og:image:alt | That doesn't look right? I create a brancher node through the API like this; $labels = ['hiereenlabel', 'nogeenlabel']; $client->brancherApp->create($originHypernode, [ 'labels' => $labels, 'clear-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peterjaap |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/ByteInternet/hypernode-api-php git https://github.com/ByteInternet/hypernode-api-php.git |
| octolytics-dimension-user_id | 1357758 |
| octolytics-dimension-user_login | ByteInternet |
| octolytics-dimension-repository_id | 530637411 |
| octolytics-dimension-repository_nwo | ByteInternet/hypernode-api-php |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 530637411 |
| octolytics-dimension-repository_network_root_nwo | ByteInternet/hypernode-api-php |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width