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

Consolidate app/queries/ and app/queriers/ into a single query-objects folder

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

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

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

評価

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

調査の方向性

まず Admin::WorkshopConcerns とエントリポイントである Admin::WorkshopsController#show を読み、次に app/queriers/ 配下の AdminWorkshopAttendeeFlags を見つけます。呼び出し元を変更せずに app/queries/ へ移動し、Admin::WorkshopsController#show と dashboard の spec を実行します。app/queriers/ がなくなり、クラスが app/queries/ から解決され、指定した両方のテスト領域がパスすれば完了です。

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

説明

good first issue refactoring tech debt

Problem

The repo has two folders for the same concept, with three different class shapes between them:

Folder Class Shape Used by
app/queries/ DashboardQuery class-level methods (upcoming_events, total_upcoming_events_count) DashboardController
app/queries/ SponsorsSearch ActiveModel::Model object with attr_accessor :name, :chapter Admin::SponsorsController
app/queriers/ AdminWorkshopAttendeeFlags self.for_members(member_ids) → instance #to_h Admin::WorkshopConcerns

queriers is not a name Rails developers recognise as an autoload convention (app/queries is), and the split isn't semantic — AdminWorkshopAttendeeFlags is the same kind of code as DashboardQuery: batched aggregate queries for controllers.

Proposed change

  • Move AdminWorkshopAttendeeFlags from app/queriers/ to app/queries/ and delete app/queriers/.
  • Leave the three existing call shapes alone for now — normalising DashboardQuery/SponsorsSearch interfaces is out of scope and needs its own discussion.

Acceptance

  • app/queriers/ no longer exists; AdminWorkshopAttendeeFlags resolves from app/queries/.
  • Callers unchanged (Admin::WorkshopConcerns references the same class name).
  • Admin::WorkshopsController#show and the dashboard specs pass.
主要言語
Ruby
スター
104
フォーク
205
平均マージ
1日 2時間
マージ済み PR(30日)
81

環境構築

はじめの一歩

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

codebar/planner のほかの issue

codebar/planner の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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