Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Go docs #862

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Update Go docs #862

merged 4 commits into from
Jul 18, 2024

Conversation

tangowithfoxtrot
Copy link
Contributor

@tangowithfoxtrot tangowithfoxtrot commented Jun 27, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/SM-1265

📔 Objective

Correct a syntax error and use consistent and descriptive bitwardenClient variable name.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

github-actions bot commented Jun 27, 2024

Logo
Checkmarx One – Scan Summary & Details58ee0e75-4bd0-4fe7-b2ba-2bccd12433cb

No New Or Fixed Issues Found

Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.92%. Comparing base (f0dd3b9) to head (47f059e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #862   +/-   ##
=======================================
  Coverage   57.92%   57.92%           
=======================================
  Files         193      193           
  Lines       13120    13120           
=======================================
  Hits         7600     7600           
  Misses       5520     5520           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tangowithfoxtrot tangowithfoxtrot marked this pull request as ready for review July 15, 2024 16:33
@tangowithfoxtrot tangowithfoxtrot requested a review from a team July 15, 2024 16:33
@tangowithfoxtrot tangowithfoxtrot changed the title correct code snippets Update Go docs Jul 15, 2024
mzieniukbw
mzieniukbw previously approved these changes Jul 15, 2024
Copy link
Contributor

@mzieniukbw mzieniukbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -52,25 +52,25 @@ err := bitwardenClient.AccessTokenLogin(accessToken, &statePath)
#### Create a Project

```go
project, err := client.Projects().Create("organization_id", "project_name")
project, err := bitwardenClient.Projects().Create("organization_id", "project_name")
```

#### List Projects
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Should we add Get Project (by id) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Added in 2ec353f.

@@ -80,34 +80,34 @@ project, err := client.Projects().Delete([]string{"project_id_1", "project_id_2"
#### Create a Secret

```go
secret, err := client.Secrets().Create("key", "value", "note", "organization_id", []string{"project_id"})
secret, err := bitwardenClient.Secrets().Create("key", "value", "note", "organization_id", []string{"project_id"})
```

#### List Secrets
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Should we add Get Secrets (by id) and Get (multiple) Secrets By Ids ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 47f059e.

@tangowithfoxtrot tangowithfoxtrot merged commit acd14e6 into main Jul 18, 2024
104 checks passed
@tangowithfoxtrot tangowithfoxtrot deleted the sm-1265-review-go-docs branch July 18, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants