micro-analytics / micro-analytics/micro-analytics-cli

wildcard search in ?all

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

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

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

説明

So, trying to mimic some really expressive behavior that grafana uses. They allow you to track metrics with keys like: `a.b.c.d.e` and you can do analytics/querying based on searches of `a.b.*.d.e`. Note, using dots instead of slashes wouldn't change how this is implemented.

A real world scenario around this:

`myapp.*.logins`

where the convention used is `myapp.version.logins`.

That query (`services.com/myapp.*.logins?all=true`) allows you to get all login event metrics across all versions/deploys and can compare. A/B testing and a lot of things would be enabled by this.

I'd imagine we would just pass the raw string to the db adaptor and let them figure out how to parse/support it. For the file-db adaptor, should be a simple change of the filter to use a regex. Something along the lines of `key.match(new RegExp('^' + options.pathname.replace('*','.*')))`

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

?all クエリの処理と file-db アダプターを追跡し、pathname のフィルタリングがどこで適用されているかを確認します。アダプターが生のキー パターンをどのように受け取るかを確認し、myapp.*.logins のようなクエリが既存の完全一致キーの動作を維持しながら、バージョンをまたいでキーに一致することを検証します。

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

評価

技術スタック
javascript, nodejs
領域
api, backend, database
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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