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

Allow prefix/suffix for generated version properties #102

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

dylanShark
Copy link
Contributor

No description provided.

@dylanShark dylanShark requested a review from simontoens March 29, 2021 18:48
Convenience method that returns a tuple of prefix and suffix to use for generated version properties.
"""
return (self.version_property_prefix, self.version_property_suffix)

Copy link
Contributor

@simontoens simontoens Mar 30, 2021

Choose a reason for hiding this comment

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

This is fine, but I would just have 2 properties.... that's just less weird. 2 minutes later: ok I see why you did this. We probably need a better way to pass config through. Fine for now. I guess I would still say keep them separate here (2 @Property annotated methods), then pass them through the rest of the code base as a tuple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do! Yeah, I was kind of hesitated between keeping less parameters passed around and making the property type clear

@dylanShark dylanShark force-pushed the allow_prefix_suffix branch from a65e418 to d448bf5 Compare March 30, 2021 04:04
@dylanShark dylanShark merged commit 7c6e838 into salesforce:master Mar 30, 2021
@dylanShark dylanShark deleted the allow_prefix_suffix branch March 30, 2021 04:06
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.

2 participants