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

35 feature add key auth #38

Merged
merged 13 commits into from
Oct 13, 2024
Merged

35 feature add key auth #38

merged 13 commits into from
Oct 13, 2024

Conversation

kynmh69
Copy link
Owner

@kynmh69 kynmh69 commented Sep 27, 2024

プルリクエストのタイトル

概要

  • このプルリクエストの目的と主な変更点を簡潔に説明してください。

issueの番号

変更内容

  • 具体的な変更点をリスト形式で明記してください。

Go言語に関するチェックリスト

  • コードは gofmt でフォーマットされている
  • go vet を実行して潜在的な問題がないことを確認
  • ユニットテストが追加/更新されている
  • パフォーマンスに影響する変更はベンチマークを通して評価されている
  • 依存関係の更新は適切に管理されている
  • エラーハンドリングが適切に行われている
  • Goのコーディング規約に準拠している
  • バグが修正されていること

影響範囲とリスク

  • この変更が及ぼす影響と潜在的なリスクについて説明してください。

テスト戦略

  • どのようにしてこれらの変更が正しいことをテストしたか説明してください。

追加情報 (任意)

  • レビュワーに伝えたいその他の情報や、関連するIssueなどがあればこちらに記載してください。

@kynmh69 kynmh69 self-assigned this Sep 27, 2024
@kynmh69 kynmh69 linked an issue Sep 27, 2024 that may be closed by this pull request
Copy link

coderabbitai bot commented Sep 27, 2024

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.21%. Comparing base (d9b1271) to head (dc94634).
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   60.36%   62.21%   +1.84%     
==========================================
  Files          11       11              
  Lines         217      217              
==========================================
+ Hits          131      135       +4     
+ Misses         66       64       -2     
+ Partials       20       18       -2     
Flag Coverage Δ
smart-tests 62.21% <100.00%> (+1.84%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

github-actions bot commented Sep 27, 2024

Qodana for Go

6 new problems were found

Inspection name Severity Problems
Unused exported function 🔶 Warning 3
Unhandled error 🔶 Warning 1
Duplicated code fragment ◽️ Notice 1
Type assertion on errors fails on wrapped errors ◽️ Notice 1

☁️ View the detailed Qodana report

Detected 75 dependencies

Third-party software list

This page lists the third-party software dependencies used in project

Dependency Version Licenses
github.com/DATA-DOG/go-sqlmock v1.5.0 BSD-3-Clause
github.com/bytedance/sonic/loader v0.1.1 Apache-2.0
github.com/bytedance/sonic v1.11.6 Apache-2.0
github.com/cloudwego/base64x v0.1.4 Apache-2.0
github.com/cloudwego/iasm v0.2.0 Apache-2.0
github.com/creack/pty v1.1.9 MIT
github.com/davecgh/go-spew v1.1.1 ISC
github.com/denisenkom/go-mssqldb v0.10.0 BSD-3-Clause
github.com/doug-martin/goqu/v9 v9.19.0 MIT
github.com/gabriel-vasile/mimetype v1.4.3 MIT
github.com/gin-contrib/sse v0.1.0 MIT
github.com/gin-gonic/gin v1.10.0 MIT
github.com/go-playground/assert/v2 v2.2.0 MIT
github.com/go-playground/locales v0.14.1 MIT
github.com/go-playground/universal-translator v0.18.1 MIT
github.com/go-playground/validator/v10 v10.20.0 MIT
github.com/go-sql-driver/mysql v1.6.0 MPL-2.0
github.com/goccy/go-json v0.10.2 MIT
github.com/golang-jwt/jwt v3.2.2+incompatible MIT
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe Apache-2.0
github.com/golang/protobuf v1.5.0 BSD-3-Clause
github.com/google/go-cmp v0.5.9 BSD-3-Clause
github.com/google/gofuzz v1.0.0 Apache-2.0
github.com/google/uuid v1.6.0 BSD-3-Clause
github.com/jackc/pgpassfile v1.0.0 MIT
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 MIT
github.com/jackc/pgx/v5 v5.7.1 MIT
github.com/jackc/puddle/v2 v2.2.2 MIT
github.com/jinzhu/inflection v1.0.0 MIT
github.com/jinzhu/now v1.1.5 MIT
github.com/json-iterator/go v1.1.12 MIT
github.com/klauspost/cpuid/v2 v2.2.7 MIT
github.com/knz/go-libedit v1.10.1 Apache-2.0
github.com/kr/pretty v0.3.1 MIT
github.com/kr/text v0.2.0 MIT
github.com/labstack/echo/v4 v4.11.4 MIT
github.com/labstack/gommon v0.4.2 MIT
github.com/leodido/go-urn v1.4.0 MIT
github.com/lib/pq v1.10.1 MIT
github.com/mattn/go-colorable v0.1.13 MIT
github.com/mattn/go-isatty v0.0.20 MIT
github.com/mattn/go-sqlite3 v1.14.7 MIT
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd Apache-2.0
github.com/modern-go/reflect2 v1.0.2 Apache-2.0
github.com/pelletier/go-toml/v2 v2.2.2 MIT
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e BSD-3-Clause
github.com/pmezard/go-difflib v1.0.0 BSD-3-Clause
github.com/rogpeppe/go-internal v1.13.1 BSD-3-Clause
github.com/stretchr/objx v0.5.2 MIT
github.com/stretchr/testify v1.9.0 MIT
github.com/twitchyliquid64/golang-asm v0.15.1 BSD-3-Clause
github.com/ugorji/go/codec v1.2.12 MIT
github.com/valyala/bytebufferpool v1.0.0 MIT
github.com/valyala/fasttemplate v1.2.2 MIT
go.uber.org/goleak v1.3.0 MIT
go.uber.org/multierr v1.10.0 MIT
go.uber.org/zap v1.27.0 MIT
golang.org/x/arch v0.8.0 BSD-3-Clause
golang.org/x/crypto v0.27.0 BSD-3-Clause
golang.org/x/mod v0.18.0 BSD-3-Clause
golang.org/x/net v0.25.0 BSD-3-Clause
golang.org/x/sync v0.8.0 BSD-3-Clause
golang.org/x/sys v0.25.0 BSD-3-Clause
golang.org/x/term v0.24.0 BSD-3-Clause
golang.org/x/text v0.18.0 BSD-3-Clause
golang.org/x/time v0.5.0 BSD-3-Clause
golang.org/x/tools v0.22.0 BSD-3-Clause
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 BSD-3-Clause
google.golang.org/protobuf v1.34.1 BSD-3-Clause
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c BSD-2-Clause
gopkg.in/yaml.v3 v3.0.1 Apache-2.0
MIT
gorm.io/driver/postgres v1.5.9 MIT
gorm.io/gorm v1.25.12 MIT
nullprogram.com/x/optparse v1.0.0 Unlicense
rsc.io/pdf v0.1.1 BSD-3-Clause
Contact Qodana team

Contact us at [email protected]

src/model/api_key.go Fixed Show fixed Hide fixed
@kynmh69 kynmh69 marked this pull request as ready for review October 13, 2024 03:41
@kynmh69 kynmh69 merged commit 59934b6 into main Oct 13, 2024
17 checks passed
@kynmh69 kynmh69 deleted the 35-feature-add-key-auth branch October 13, 2024 03:46
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.

feature add key auth
1 participant