optimizely / optimizely/java-sdk
Pick Serializer using properties
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 44
- フォーク
- 32
- 平均マージ
- 8時間 39分
- マージ済み PR(30日)
- 1
説明
Hello Optimizely team:
We have encountered issues while working with Optimizely. The SDK allows to use two different serialisers in an uncontrolled way, by letting you pick one using optimizely.properties (in out experience, it is used while retrieving your organisation experiments file, I don't know for what else it is used):
DefaultConfigParser
But in this one where the events are raised, since it is an if/else structure, you have no control over it, and in our case it does not work because we use a Jackson version previous to 2.7, throwing an exception while trying to create it with the SNAKE_CASE property (one exception that we will avoid if GSON could be chosen):
DefaultJsonSerializer
I feel like this is an inconsistency and since it is already implemented for one scenario, it should be paired for the event ones.
We also know that this is our fault for not using that Jackson version, but it is done in a service where that specific library is almost impossible to update... We have discarded the idea of integrating Optimizely in that specific service, but we thought that it was important to let you know this weird behaviour where you can have GSON (or any other one) + Jackson (or any other one) working simultaneously.
Thanks for reading, let us know if you change anything about this!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず core-api/src/main/java/com/optimizely/ab/config/parser/DefaultConfigParser.java と core-api/src/main/java/com/optimizely/ab/event/internal/serializer/DefaultJsonSerializer.java を比較し、optimizely.properties が serializer をどのように選択するかに注目してください。イベントのシリアライズが同じ選択に従えることを確認し、GSON と Jackson の両方の設定が一貫して動作することを検証してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100