Adopt shared mapper test data from engine-test-data

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
testing-qa

Research direction

Start with EngineMappers.java around line 444 and compare its identity override virtual segment key generation with the PHP and .NET references. Review engine-test-data pull request 46 and run the mapper_test_cases. Done means the shared cases pass and key generation matches the JSON plus SHA256 portable standard.

Written by the indexing model from the issue text.

Description

Mapper tests use inline expected context data rather than shared test cases from engine-test-data repository.

Acceptance criteria

  • mapper_test_cases pass (see Flagsmith/engine-test-data#46)
  • Identity override virtual segment key generation matches cross-SDK portable standard (JSON + SHA256)

Technical context

Current implementation uses non-portable hash:
https://github.com/Flagsmith/flagsmith-java-client/blob/b9097558fa83824068382457d944b721c206d01e/src/main/java/com/flagsmith/mappers/EngineMappers.java#L444

Portable standard (JSON + SHA256):

Shared test data: https://github.com/Flagsmith/engine-test-data/pull/46

Related issues:

  • Flagsmith/flagsmith-python-client#181
  • Flagsmith/flagsmith-ruby-client#93
  • Flagsmith/flagsmith-nodejs-client#228
  • Flagsmith/flagsmith-go-client#196
  • Flagsmith/flagsmith-rust-flag-engine#26
  • Flagsmith/flagsmith-dotnet-client#180
Dominant language
Java
Stars
28
Forks
22
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Flagsmith/flagsmith-java-client

All issues in Flagsmith/flagsmith-java-client

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.