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

Fix address for DMark USSD if asked #1069

Merged
merged 1 commit into from
Mar 31, 2017

Conversation

smn
Copy link
Member

@smn smn commented Mar 31, 2017

No description provided.

@@ -19,6 +19,10 @@ class DmarkUssdTransportConfig(HttpRpcTransport.CONFIG_CLASS):
" expires.",
default=600, static=True)

fix_to_addr = ConfigBool(
"Whether or not to ensure that the to_addr is always starting with a "
"* and ending with a #", default=False, static=True)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this needs to be static. IIRC, non-static options can be configured statically or dynamically.

Copy link
Member Author

Choose a reason for hiding this comment

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

it doesn't change per message received, it's a config thing on their side so I would think it is static? That way I can use the get_static_config() helper and it's still cheap to do so.

Copy link
Member

Choose a reason for hiding this comment

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

Static configs are only required for things that are used in transport setup or whatever. Dynamic configs are looked up dynamically in places where dynamic overrides are available (such as vumi-go channel definitions) but fall back to a static lookup otherwise. The per-message overhead is negligible.

Copy link
Member Author

Choose a reason for hiding this comment

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

Inclined to keep as is as all the config vars in there are currently marked as static and I'm using the get_static_config() convenience helper.

Copy link
Member

@jerith jerith left a comment

Choose a reason for hiding this comment

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

👍

The static vs dynamic config isn't really that big a deal.

@smn smn merged commit 5d1ffe3 into develop Mar 31, 2017
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.

None yet

2 participants