Someone at a city's gate is asked to accept new rules if they use a house link

クローズ
#32 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

関連するプルリクエストがすでにマージされています。

  • #87 @CakeRepository による — マージ済み

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, rust
領域
backend

調査の方向性

Start at src/city.rs:561, then compare the city-gate and house-link paths for the POST /api/house-invites/{code}/join endpoint. Trace the accept_rules handling in web/app.js:786 and check the behavior described in docs/accounts-and-trust.md:194 and docs/city.md:387. Done means an already-waiting person is not asked to accept new rules when joining through a house link, with the implementation and documentation agreeing.

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

説明

bug
What happened

T14 says "someone already at the gate when they change isn't asked again" (docs/accounts-and-trust.md:194). On the city's link that holds. On a house link it doesn't: src/city.rs:561 only asks whether they're in the city, not whether they were already waiting.

docs/city.md:387 agrees with the code, so the two docs disagree. The page sends accept_rules for you (web/app.js:786), so this shows through the API.

I expected the same answer from either link.

Where

POST /api/house-invites/{code}/join

How to see it again
  1. Someone is waiting at a city's gate.
  2. The keeper adds rules_text.
  3. A resident gives them a house link, and they post {} to the join route.

It's refused until they send accept_rules.

Found by reading the code at commit 2369ff5. Cargo wasn't available, so this hasn't been run.

主要言語
Rust
スター
2
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

CakeRepository/agentshangout のほかの issue

CakeRepository/agentshangout の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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