Skip to content

mainマージ用#1060

Merged
Wakai111 merged 234 commits intomainfrom
develop
Mar 29, 2026
Merged

mainマージ用#1060
Wakai111 merged 234 commits intomainfrom
develop

Conversation

@hikahana
Copy link
Copy Markdown
Collaborator

@hikahana hikahana commented Mar 3, 2026

対応Issue

resolve #0

概要

画面スクリーンショット等

  • URL
    スクリーンショット

テスト項目

備考


Open with Devin

Wakai111 and others added 2 commits March 25, 2026 18:44
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 2 new potential issues.

View 18 additional findings in Devin Review.

Open in Devin Review

accessToken := params.AccessToken
isSignIn, err := h.mailAuthUseCase.IsSignIn(c.Request().Context(), *accessToken)
if err != nil {
return nil
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 Error swallowed in GetMailAuthIsSignin — returns nil instead of the error

When h.mailAuthUseCase.IsSignIn() returns an error, the handler returns nil (line 17), which makes Echo send a 200 OK with an empty body to the client. The client receives a success response even though the sign-in check failed. This silently hides authentication errors and can cause incorrect UI behavior (e.g., showing a user as signed-in when the check failed).

Suggested change
return nil
return err
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread api/main.go
Comment on lines +19 to +23
if err := serverComponents.Echo.Start(":1323"); err != nil {
panic(err)
}

defer client.CloseDB()
defer serverComponents.Client.CloseDB()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 defer CloseDB() placed after blocking Echo.Start() — DB connection never closed

defer serverComponents.Client.CloseDB() on line 23 is placed after the serverComponents.Echo.Start() call on line 19 which blocks until the server shuts down. If Echo.Start() returns an error, panic(err) is called before the defer is registered, so CloseDB() never executes. Even during graceful shutdown, the defer statement is reached after the blocking call returns, but in the panic case the defer hasn't been registered. The defer should be placed immediately after InitializeServer() returns successfully.

Suggested change
if err := serverComponents.Echo.Start(":1323"); err != nil {
panic(err)
}
defer client.CloseDB()
defer serverComponents.Client.CloseDB()
defer serverComponents.Client.CloseDB()
if err := serverComponents.Echo.Start(":1323"); err != nil {
panic(err)
}
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

TkymHrt and others added 24 commits March 25, 2026 19:42
- 協賛スタイル未選択時のバリデーションを撤廃\n- 活動ステータスを協賛不可にした際、協賛可否が未着手なら自動で否を設定

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ities

[フロント] 協賛活動一覧ページの改修
…tamesu

Fix/hikahana/unify format rules tamesu
@nakatashingo nakatashingo self-requested a review March 29, 2026 05:16
Copy link
Copy Markdown
Collaborator

@nakatashingo nakatashingo left a comment

Choose a reason for hiding this comment

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

いいと思います

@Wakai111 Wakai111 merged commit 6fab835 into main Mar 29, 2026
6 checks passed
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.

6 participants