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: patch-diff.githubusercontent.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:751c3182-daa3-f5fc-c6b2-0fe4a91f9bb6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C12E:120619:C18927:1109414:6970BC3C |
| html-safe-nonce | b3322f0165174764192b25ede2d93f87cb644a5ec4ed70e57d9c310dc739d645 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTJFOjEyMDYxOTpDMTg5Mjc6MTEwOTQxNDo2OTcwQkMzQyIsInZpc2l0b3JfaWQiOiIzMzc4ODYxMDE3MDI5MTk2ODYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d987f743a984e7954ed9fddf2a100aff359535270434c224f9e0df8edfe1b2e9 |
| 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 | 8e0be80373b724b033cdf8a7b1f78bf5fb6a5d7a2182a9a403aa30894606e390 |
| 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 | 84d9d5bf3b01412ea10f7c2429cbfc735ccce9ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width