Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port back direct comparison enum and fix API key #688

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Conversation

vkresch
Copy link
Contributor

@vkresch vkresch commented Nov 6, 2023

Resolves #687 and API key naming fix.

Work effort: 0.5h

@vkresch vkresch requested a review from jdsika November 6, 2023 10:35
@@ -351,7 +351,7 @@ def validate_rewards_type(self, conf_obj):
"Defaults to 'actual' rewards payout type.".format(REWARDS_TYPE)
)

if conf_obj[REWARDS_TYPE].isEstimated():
if conf_obj[REWARDS_TYPE] == RewardsType.ESTIMATED:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is strange that conf_obj[REWARDS_TYPE] can be a string which needs further investigations why this is happening. For now I just port back as a quick hotfix.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you test for a string and make a case handling here? Maybe there is no proper cast in die config loader?

@jdsika
Copy link
Contributor

jdsika commented Nov 6, 2023

@vkresch can you please check for a consistent use of the variable name? tzpro_api_key or tz_pro_api_key

I think it should be this: tzpro_api_key

@ericlavoie
Copy link
Contributor

@vkresch can you please check for a consistent use of the variable name? tzpro_api_key or tz_pro_api_key

I think it should be this: tzpro_api_key

I agree, it matches the domain and the brand.

@vkresch
Copy link
Contributor Author

vkresch commented Nov 6, 2023

sure I will update it

@jdsika jdsika merged commit 100902e into master Nov 6, 2023
4 of 8 checks passed
@jdsika jdsika deleted the hotfix/isEstimated branch November 6, 2023 19:36
@jdsika jdsika added the bug Something isn't working label Feb 7, 2024
@jdsika jdsika added this to the v12.0 (Nairobi) milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

payment error. Cycle 669
3 participants