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

Common interface for all statistic classes

オープン
#284 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
api, backend

調査の方向性

まず ApiController、ApiControllerTest、既存のカスタム統計クラス、およびアプリケーションの初期化処理を確認します。現在の統計プロバイダーがどのように提供され、コンパイルされるかを追跡し、共有インターフェースとサービスを定義してから、登録とインジェクションを更新し、コントローラーテストで新しいプロバイダーの反復処理がカバーされていることを確認します。

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

説明

technical debt
  • Write IStatisticsProvider interface
    • getName() to retrieve the name of the key to publish the statistics under
    • getGroup() to retrieve the name of the group key to publish the statistics under
    • getStatistics() returns the stats to retrieve
  • Write StatisticsService
    • registerStatisticsProvider(IStatisticsProvider)
    • IStatisticsProvider[] getStatisticsProviders()
  • adjust ApiController
    • receive StatisticsProvider injected instead of all the custom classes
    • query StatisticsProvider->getStatisticsProviders() and iterate and compile the stats
  • cleanup ApiControllerTest
  • rewrite the custom classes to implement IStatisticsProvider
  • register the custom classes in the application initialization

This cleantup and enhancement would also open the door to allowing third party apps to register their own statistics providers in the future.

主要言語
JavaScript
スター
133
フォーク
67
平均マージ
22時間 55分
マージ済み PR(30日)
53

環境構築

はじめの一歩

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

nextcloud/serverinfo のほかの issue

nextcloud/serverinfo の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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