Title: `group transfer-project` is confusing · Issue #1529 · python-gitlab/python-gitlab · GitHub
Open Graph Title: `group transfer-project` is confusing · Issue #1529 · python-gitlab/python-gitlab
X Title: `group transfer-project` is confusing · Issue #1529 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet I've wrapped the python gitlab CLI in some powershell tooling Relevant snippet: function Move-GitLabProject { [CmdletBinding()] param ( [Parameter(Position=0, Mandatory=$true)] [stri...
Open Graph Description: Description of the problem, including code/CLI snippet I've wrapped the python gitlab CLI in some powershell tooling Relevant snippet: function Move-GitLabProject { [CmdletBinding()] param ( [Param...
X Description: Description of the problem, including code/CLI snippet I've wrapped the python gitlab CLI in some powershell tooling Relevant snippet: function Move-GitLabProject { [CmdletBinding()] param ( [P...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1529
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`group transfer-project` is confusing","articleBody":"## Description of the problem, including code/CLI snippet\r\n\r\nI've wrapped the python gitlab CLI in some [powershell tooling](https://github.com/chris-peterson/pwsh-gitlab/blob/main/src/GitlabCli/Projects.psm1#L63)\r\n\r\nRelevant snippet:\r\n```powershell\r\nfunction Move-GitLabProject {\r\n [CmdletBinding()]\r\n param (\r\n [Parameter(Position=0, Mandatory=$true)]\r\n [string]\r\n $ProjectId,\r\n\r\n [Parameter(Position=1, Mandatory=$true)]\r\n [string]\r\n $DestinationGroup,\r\n\r\n [switch]\r\n [Parameter(Mandatory=$false)]\r\n $WhatIf = $false\r\n )\r\n\r\n $SourceProject = Get-GitLabProject -ProjectId $ProjectId\r\n $Group = Get-GitLabGroup -GroupId $DestinationGroup\r\n\r\n if ($WhatIf) {\r\n Write-Host \"WhatIf: Moving '$($SourceProject.Name)' (project id: $($SourceProject.Id)) to '$($Group.FullPath)' (group id: $($Group.Id))\"\r\n } else {\r\n gitlab group transfer-project --id $Group.Id --to-project-id $SourceProject.Id\r\n }\r\n}\r\n```\r\n\r\n## Expected Behavior\r\n\r\nRecommend that the parameters be renamed:\r\n\r\n`--id` -\u003e `--to-group-id`\r\n\r\n`--to-project-id` -\u003e `--project-id`\r\n\r\ntraditionally, `to` denotes a destination, not a source.\r\n\r\n## Actual Behavior\r\n\r\nTrial and error and code inspection before realizing I had the parameters backwards.\r\n\r\n## Specifications\r\n\r\n - python-gitlab version: 2.8.0\r\n - API version you are using (v3/v4): v4\r\n - Gitlab server version (or gitlab.com): 13.10.3 (Enterprise Edition)\r\n","author":{"url":"https://github.com/chris-peterson","@type":"Person","name":"chris-peterson"},"datePublished":"2021-06-22T18:34:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1529/python-gitlab/issues/1529"}
| 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:925d8964-878d-4277-bb86-1f28c3043f41 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED74:4DECD:CAC5B74:1062FA03:69770AF4 |
| html-safe-nonce | a9e1f83cd9ad3d0f149a73723f69f09358b7888309a6968358dcf5a80d4ef8b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDc0OjRERUNEOkNBQzVCNzQ6MTA2MkZBMDM6Njk3NzBBRjQiLCJ2aXNpdG9yX2lkIjoiODY2OTU5MjAyOTM1ODM5NDEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6026864faebe93d3e7ad89a90e514d7068ca17076d0a7b6184e483bd5643b56a |
| hovercard-subject-tag | issue:927526290 |
| 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/python-gitlab/python-gitlab/1529/issue_layout |
| twitter:image | https://opengraph.githubassets.com/82b1708561df88874182c9b736c7eda7db86a2e5639928de2aed2373a6df9f76/python-gitlab/python-gitlab/issues/1529 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/82b1708561df88874182c9b736c7eda7db86a2e5639928de2aed2373a6df9f76/python-gitlab/python-gitlab/issues/1529 |
| og:image:alt | Description of the problem, including code/CLI snippet I've wrapped the python gitlab CLI in some powershell tooling Relevant snippet: function Move-GitLabProject { [CmdletBinding()] param ( [Param... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chris-peterson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width