Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

cleanup and addition of global pretty print flag#84

Merged
tangiel merged 3 commits intomasterfrom
pretty-print
Mar 1, 2018
Merged

cleanup and addition of global pretty print flag#84
tangiel merged 3 commits intomasterfrom
pretty-print

Conversation

@tangiel
Copy link
Contributor

@tangiel tangiel commented Apr 7, 2017

No description provided.

@codecov-io
Copy link

codecov-io commented Apr 7, 2017

Codecov Report

Merging #84 into master will decrease coverage by <.01%.
The diff coverage is 92.98%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #84      +/-   ##
============================================
- Coverage     79.95%   79.94%   -0.01%     
+ Complexity     1671     1669       -2     
============================================
  Files           156      156              
  Lines          5588     5571      -17     
  Branches        722      723       +1     
============================================
- Hits           4468     4454      -14     
+ Misses          842      841       -1     
+ Partials        278      276       -2
Impacted Files Coverage Δ Complexity Δ
...ver/spi/request/RestServletRequestParamReader.java 93.44% <100%> (+0.1%) 23 <3> (ø) ⬇️
...pi/server/spi/config/model/StandardParameters.java 87.5% <100%> (+7.5%) 4 <2> (-1) ⬇️
...e/api/server/spi/dispatcher/DispatcherContext.java 90% <100%> (+1.11%) 4 <1> (ø) ⬇️
...pi/server/spi/handlers/EndpointsMethodHandler.java 100% <100%> (ø) 10 <1> (ø) ⬇️
...va/com/google/api/server/spi/EndpointsServlet.java 89.65% <100%> (ø) 17 <0> (ø) ⬇️
...va/com/google/api/server/spi/EndpointsContext.java 100% <100%> (ø) 4 <1> (+1) ⬆️
.../server/spi/request/ServletRequestParamReader.java 84% <71.42%> (ø) 24 <2> (ø) ⬇️
...pi/server/spi/ServletInitializationParameters.java 95.74% <94.73%> (+1.37%) 17 <16> (-3) ⬇️
.../server/spi/discovery/CommonPathPrefixBuilder.java 100% <0%> (+5.55%) 9% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 651e664...d4d8337. Read the comment docs.

@tangiel tangiel requested review from inklesspen and removed request for bradfriedman February 28, 2018 21:21
tangiel added 3 commits March 1, 2018 13:58
This change cleans up ServletInitializationParameters to use AutoValue,
since this is a pretty standard value class with a builder. API
compatibility is retained except for setIllegalArgumentIsBackendError
being renamed to setIllegalArgumentBackendError. The "restricted"
parameter is now also marked as deprecated, as it no longer serves any
purpose.
This new parameter is a boolean value that controls whether or not
prettyPrint is enabled by default. Requests can still enable pretty
printing by adding a query parameter if necessary. This value is set to
true by default.

This value is propagated for each request via EndpointsContext, which
requires some amount of refactoring to plumb the value to
StandardParameters.shouldPrettyPrint.
@tangiel tangiel merged commit 6d2c60d into master Mar 1, 2018
@tangiel tangiel deleted the pretty-print branch March 1, 2018 22:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants