Skip to content

Conversation

Knerio
Copy link
Member

@Knerio Knerio commented May 30, 2025

No description provided.

@Knerio Knerio self-assigned this May 30, 2025
@raphael-goetz
Copy link
Member

In what scenario is the strategy undefined?

@Knerio
Copy link
Member Author

Knerio commented May 31, 2025

In what scenario is the strategy undefined?

In no scenario, i can just be an empty array

@raphael-goetz
Copy link
Member

If it has no case what is the purpose of having it?

@Knerio
Copy link
Member Author

Knerio commented May 31, 2025

Oh, you mean UNKNOWN. Thats if the grpc client uses an outdated version, it always sends 0 (UNKNOWN). In sagittarius for example we just throw an error if thats the case

@raphael-goetz
Copy link
Member

How can this be 'unkown' ??? Just reject if it doesn't match expected behavior. How should it be handled then?

@Knerio
Copy link
Member Author

Knerio commented May 31, 2025

The problem is the default value is 0, so we need to put something as 0 to handle these cases. The same applies to DataType variants

@raphael-goetz
Copy link
Member

But why set a default. The datatypes you will receive never has an unknown.

If its unknown the value that's send to you would be wrong and shouldn't be even saved

@Knerio
Copy link
Member Author

Knerio commented May 31, 2025

Yeah and the same logic applies to the strategies. If sagittarius has a newer version with one strategy more. then you will receive unknown

@Taucher2003 Taucher2003 merged commit 0986ea7 into main May 31, 2025
2 checks passed
@Taucher2003 Taucher2003 deleted the fix/generic-mapper branch May 31, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants