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

Added a /properties endpoint, with the ability to configure which pro… #1471

Merged
merged 8 commits into from
Oct 31, 2017

Conversation

james010101101
Copy link
Contributor

…perties are visible

@codecov-io
Copy link

codecov-io commented Oct 27, 2017

Codecov Report

Merging #1471 into develop will decrease coverage by 0.01%.
The diff coverage is 81.25%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1471      +/-   ##
=============================================
- Coverage      66.68%   66.66%   -0.02%     
  Complexity      1744     1744              
=============================================
  Files            723      724       +1     
  Lines          23669    23685      +16     
  Branches        2993     2997       +4     
=============================================
+ Hits           15783    15790       +7     
- Misses          6676     6681       +5     
- Partials        1210     1214       +4
Impacted Files Coverage Δ Complexity Δ
...java/uk/gov/gchq/gaffer/rest/ServiceConstants.java 60% <ø> (ø) 0 <0> (ø) ⬇️
...q/gaffer/rest/application/ApplicationConfigV2.java 95% <100%> (+0.26%) 0 <0> (ø) ⬇️
...hq/gaffer/rest/service/v2/PropertiesServiceV2.java 80% <80%> (ø) 0 <0> (?)
.../gov/gchq/gaffer/store/schema/SchemaOptimiser.java 75.26% <0%> (-6.46%) 0% <0%> (ø)

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 269f4cc...1ed0d85. Read the comment docs.

@@ -32,6 +32,7 @@

public static final String CLASS_NOT_FOUND = "Class not found";
public static final String FUNCTION_NOT_FOUND = "Function not found";
public static final String PROPERTY_NOT_FOUND = "Property not found";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a duplicated line?

Copy link
Member

Choose a reason for hiding this comment

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

They look like different lines to me - one is used when a Function isn't found and one is used when a Property is not found.

* An implementation of {@link IPropertiesServiceV2} that gets the configured system properties
*/
public class PropertiesServiceV2 implements IPropertiesServiceV2 {
private static final Map<String, String> PROPERTIES = new HashMap<>();
Copy link
Member

Choose a reason for hiding this comment

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

I think it might be better to not cache the properties in case any of the properties change over time. In the future, if we find it is really slow then we could consider adding a daily cache or something similar.

@p013570 p013570 merged commit 05851f5 into develop Oct 31, 2017
@p013570 p013570 deleted the gh-1420-Add-a-/properties-endpoint-to-the-REST-API branch October 31, 2017 15:49
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.

5 participants