[actionNameAttribute] prop doesn't accept value with curly braces
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react-native, typescript
- 領域
- mobile
調査の方向性
Start by reading the mobile React Native Babel plugin configuration and its handling of the configured actionNameAttribute. Compare how it processes a plain string prop with a value supplied in curly braces, then find the relevant plugin tests or add a focused regression case if the existing tests cover this behavior. Done means the expression value is used as the action name, with the regression case passing.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Hey 👋🏻
I use actionNameAttribute = "testID" in @datadog/mobile-react-native config. And I'm using also @datadog/mobile-react-native-babel-plugin with following config:
{
actionNameAttribute: "testID",
components: {
useContent: true,
useNamePrefix: true,
tracked: [
{
name: "Button",
handlers: [{ event: "onPress", action: "TAP" }],
},
{
name: "TextButton",
handlers: [{ event: "onPress", action: "TAP" }],
},
{ name: "FAB", handlers: [{ event: "onPress", action: "TAP" }] },
{
name: "Checkbox",
handlers: [{ event: "onPress", action: "TAP" }],
},
{
name: "ListItem",
handlers: [{ event: "onPress", action: "TAP" }],
},
Then if testID is added to element with curly braces testID={"some_test_id"} I get aria-label, button content or something like that as action name instead of object property.
If I use plain string as testID it works, for example testID="some_test_id".
Problem is that I would like to have element ids not as plain string but reference to object key value: testID={TestIDs.someTestId} and keep them in one place instead of adding them inline.
Reproduction steps
- Add mentioned setup
- Add testID to some RN element, remember that test id should be added with curly braces
- Tap element to test what's logged as event name
SDK logs
No response
Expected behavior
Event names added with curly braces are sent properly to DD.
Affected SDK versions
3.9.0, 3.10.0
Latest working SDK version
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
Yarn
React Native Version
0.79.5
Package.json Contents
"@datadog/mobile-react-native": "3.9.0",
"@datadog/mobile-react-native-babel-plugin": "3.9.0",
"@datadog/mobile-react-native-session-replay": "3.9.0",
"@datadog/mobile-react-navigation": "3.9.0",
"expo": "^53.0.0",
iOS Setup
No response
Android Setup
No response
Device Information
No response
Other relevant information
No response
- 主要言語
- TypeScript
- スター
- 145
- フォーク
- 65
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 20
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataDog/dd-sdk-reactnative のほかの issue
-
Expose Android app startup Activity filtering in the React Native SDK対応中かも @sbarrio が 6 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DataDog/dd-sdk-reactnative#1485 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
GraphQL variables with non-ASCII contents will make Apollo Client request throw error対応中かも @cdn34dd が 8 日前に担当しました。 オープンawaiting response bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
DataDog/dd-sdk-reactnative#1482 · コメント 2 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Interaction tracking records nothing: the babel plugin's injected import makes Metro bundle a second copy of the SDK, so DdBabelInteractionTracking.config is set on a different class than instrumented handlers call対応中かも @cdn34dd が 6 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
DataDog/dd-sdk-reactnative#1377 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Babel plugin emits untransformed JSX when a tracked component has .map() children, breaking the Hermes build対応中かも @cdn34dd が 6 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
DataDog/dd-sdk-reactnative#1353 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
iOS: network error events from JS-tracked requests bypass the drop_resource deduplication and cannot be filtered — expose a native error mapper?対応中かも @marco-saia-datadog が 6 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
DataDog/dd-sdk-reactnative#1338 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
DataDog/dd-sdk-reactnative の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
xdjs/MusicNerdWeb#1532 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sebastian-software/ardo#352 ·
メンテナーはふだん 1 日以内に返信
-
@react95/core good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 3 日以内に返信
-
@shikijs/stream: `ShikiStreamTokenizer.clone()` shares its `tokensStable` array with the original対応中かも @xyrolle が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信