-
Notifications
You must be signed in to change notification settings - Fork 116
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
#41 Add default value in the ConfigProperty #99
Conversation
Signed-off-by: Emily Jiang <[email protected]>
Signed-off-by: Emily Jiang <[email protected]>
I'm going to merge this in and discuss one extra API I added getRefreshDuration this afternoon. The PR contains default value capability on the injection model. |
+1 for the default value in ConfigProperty |
Sorry Emily, Both @OndrejM and I expressed a strong -1 against getRefreshDuration during our yesterdays meeting. And there was also an open Review comment asking for the use case from 15h ago. Let's discuss this in our hangout today. |
That is what I explained in the above comment to discuss this afternoon. I'll detail the use cases in the hangout. |
I don't like doing more than 2 different things in a PR. While I agree with kavadoc changes, the refresh duration discussion has not been closed yet. |
While having a new default method shouldn't hurt, this one is very confusing. The javadoc explains the case of static source, but what should be returned in case of a dynamic one? It's not possible to guess how long a refresh would take. Wouldn't be enough to return just true/false for static/dynamic source? I don't see any point in guessing how fast would the source refresh... |
@OndrejM I think the compromise would be isDynamic to at least state it is dynamic or not. Anyway, I am trying to draft out a note and ask for a wide discussion. |
Yes, the current method makes not much sense to me for now.
Hard to tell what the intent is actually. |
Signed-off-by: Emily Jiang <[email protected]>
#99 remove the dynamic changes in this ticket as no consensus was reached
Signed-off-by: Emily Jiang <[email protected]>
Signed-off-by: Mark Struberg <[email protected]>
Signed-off-by: Emily Jiang [email protected]