-
Notifications
You must be signed in to change notification settings - Fork 0
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
docs/openapi/v2.yamlにbotを弾くクエリパラメータの記述を追加 #1103
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okです。task generate
を実行するとコード生成が実行されるので、それをやってからこのブランチで開発を進めてください
users.goにクエリパラメータの取得部分を書きました。 |
v1/service/src/user.goにbotを弾くフィルタリングを実装しました |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます。処理は問題ないと思います。1か所だけ抜けてそうなとこがあったので、そこは修正お願いします。
コンパイルエラーの部分はいろんな関数やinterfaceが書き換わった影響だと思うので、頑張って地道に直してください。interfaceを書き換えてるので、テストで使ってるモックを生成しなおすために task generate
をするといいと思います。
} | ||
filteredUsers = append(filteredUsers, user) | ||
} | ||
users = filteredUsers | ||
return users, nil | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この下の userAuth.GetAllActiveUsers の結果も、botかどうかのフィルターをかけて返すようにしてください。キャッシュにセットする値はbotも含めていいと思います。
User description
タイトルの通りです。
他の部分を参考に見よう見まねで書きました。
PR Type
Documentation
Description
v2.yaml
に新しいクエリパラメータbot
を追加。bot
パラメータでボットを除外するオプションを提供。パラメータのデフォルト動作を明記。
Changes walkthrough 📝
v2.yaml
ボット除外用クエリパラメータを追加
docs/openapi/v2.yaml
bot
を追加。bot
パラメータの説明とスキーマを記述。