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

#41 Add default value in the ConfigProperty #99

Merged
merged 2 commits into from
Mar 16, 2017
Merged

Conversation

Emily-Jiang
Copy link
Member

Signed-off-by: Emily Jiang [email protected]

@Emily-Jiang Emily-Jiang changed the title #41 Prototype dynamic config changes #41 Add default value in the ConfigProperty Mar 16, 2017
Signed-off-by: Emily Jiang <[email protected]>
@Emily-Jiang
Copy link
Member Author

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.

@struberg
Copy link
Contributor

+1 for the default value in ConfigProperty
-1 for the getRefreshDuration. As explained in the PR (open review question) it is not clear what use case it does solve.

@struberg
Copy link
Contributor

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.

@Emily-Jiang
Copy link
Member Author

That is what I explained in the above comment to discuss this afternoon. I'll detail the use cases in the hangout.

@OndroMih
Copy link
Contributor

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.

@OndroMih
Copy link
Contributor

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...

@Emily-Jiang
Copy link
Member Author

@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.

@struberg
Copy link
Contributor

Yes, the current method makes not much sense to me for now.

  • There is no described use case
  • It's nowhere referenced in any test
  • It's nowhere implemented

Hard to tell what the intent is actually.

Emily-Jiang added a commit that referenced this pull request Mar 17, 2017
Emily-Jiang added a commit that referenced this pull request Mar 17, 2017
#99 remove the dynamic changes in this ticket as no consensus was reached
Emily-Jiang added a commit that referenced this pull request Mar 17, 2017
struberg added a commit that referenced this pull request Mar 17, 2017
@radcortez radcortez mentioned this pull request Mar 29, 2021
4 tasks
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