-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Adds support for property origin tracking in config server/client. #870
Conversation
Codecov Report
@@ Coverage Diff @@
## master #870 +/- ##
============================================
- Coverage 78.37% 77.38% -0.99%
- Complexity 1030 1042 +12
============================================
Files 126 129 +3
Lines 3699 3776 +77
Branches 523 535 +12
============================================
+ Hits 2899 2922 +23
- Misses 615 669 +54
Partials 185 185
Continue to review full report at Codecov.
|
It seems like we need this feature, and this looks like a good start, and we clearly have all the data we need. I don't like the format of the JSON though, and it seems like we could maybe even make a more incremental change that didn't require a new media type (or maybe not, but it's worth thinking about). Repeating the file location/name in every property value seems wasteful, and we could use integer fields for the line and column values, to make them more machine readable, and then convert to canonical "Boot" style format in the client. |
I agree we could probably not repeat the location, but I don't think we can go straight to integers. Ints would work for the file based env repos, like git, but wouldn't work for jdbc or vault. Also, git blame info could go on each origin for git. |
adaf96f
to
de2ee54
Compare
@dsyer @ryanjbaxter @OlgaMaciaszek @marcingrzejszczak @TYsewyn I'm reviving this again. Two options I can see for the format:
or repeated
|
Once we get the paired down one (I think I prefer it), we could provide different fields for origin, line and column for origins that support it and an opaque string for others. |
+1 to the paired down version |
I agree on the paired down version, only question that I have now is whether or not we still need to have that |
|
Here's a sample client error message
|
Adds a new format if requested using v2 Accept header, otherwise the format is backwards compatible so older clients will work with new servers. fixes gh-866
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # Fixed URLs ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to: https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200). * [ ] http://www.apache.org/licenses/LICENSE-2.0 with 137 occurrences migrated to: https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
fde17e1
to
881df30
Compare
Adds a new format if requested using v2 Accept header, otherwise the
format is backwards compatible so older clients will work with new
servers.
fixes gh-866
/cc @twicksell
requires spring-cloud/spring-cloud-commons#583