Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Creating a destination with an existing ID returns 400

オープン 初心者向け
#1,116 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api

調査の方向性

POST /api/v1/tenants/:tenant_id/destinations のハンドラーから始めて、既存の destination id および tenant destination limit に対して 400 を書き込んでいる箇所を見つけ、競合する event id に対して既に 409 を返している POST /publish ハンドラーと比較する。両方のステータスコードを更新し、ハンドラーのテストを 409 を assert するように調整し、400 にマッチしているクライアント向けにこの breaking change を明記するリリースノートを追加する。

索引モデルが issue の本文から書いたものです。

説明

POST /api/v1/tenants/:tenant_id/destinations with an id that a live destination already has returns:

{"status":400,"message":"destination already exists"}

409 Conflict is the usual status for this: the request is well-formed, and it conflicts with the current state. The API already uses 409 on POST /publish for a conflicting event id.

The same handler returns 400 when the tenant has reached its destination limit, which is also a state conflict more than a bad request.

Changing either status breaks clients that match on 400, so it needs a release note. For reference, PUT /tenants/:tenant_id has no such case: it is an upsert and returns 200 for an existing tenant, 201 for a new one.

主要言語
Go
スター
1.1k
フォーク
70
平均マージ
1日 18時間
マージ済み PR(30日)
56

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hookdeck/outpost のほかの issue

hookdeck/outpost の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。