Support nested map messages in valdi_protobuf/web/test/NamespaceGenerator.spec.ts

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

Start with the skipped xit spec in src/valdi_modules/src/valdi/valdi_protobuf/web/test/NamespaceGenerator.spec.ts, then read the web namespace generator in the sibling web/ directory to see how scalar fields are built. Add map field support, including message values, and run bazel test //src/valdi_modules/src/valdi/valdi_protobuf:valdi_protobuf_web_test. Done when the spec is it and passes.

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

説明

The spec supports nested map messages in monkey patched js namespace in src/valdi_modules/src/valdi/valdi_protobuf/web/test/NamespaceGenerator.spec.ts is skipped with xit and the comment "Does not yet work".

It creates a test.MapMessage through getTypedMessageNamespace with two map fields:

  • stringToDouble (Map<string, number>)
  • stringToMessage (Map<string, message>)

It expects both fields to come back as Map instances, and the nested value to be a ValdiMessage with its fields set. Map fields, and message values inside maps, aren't supported yet in the web namespace generator.

What to do: add map field support (including message values) to the web protobuf namespace generator in src/valdi_modules/src/valdi/valdi_protobuf/web/, then change xit back to it.

How to run

bazel test //src/valdi_modules/src/valdi/valdi_protobuf:valdi_protobuf_web_test

Done when: the spec runs as it and passes.

See CONTRIBUTING.md before opening a pull request.

主要言語
C++
スター
16.4k
フォーク
538
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

Snapchat/Valdi のほかの issue

Snapchat/Valdi の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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