Merge branch 'stable-2.15'
* stable-2.15: Add missing documentation of 'all' option on list projects REST API RefAdvertisementIT: Test hiding meta refs Evict database idle connections Change-Id: Id4a8f55403324773483880704f62d0c83e64f807
This commit is contained in:
		@@ -324,6 +324,33 @@ GET /projects/?type=PERMISSIONS HTTP/1.0
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
----
 | 
					----
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					All::
 | 
				
			||||||
 | 
					Get all projects, including those whose state is "HIDDEN".
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					.Request
 | 
				
			||||||
 | 
					----
 | 
				
			||||||
 | 
					GET /projects/?all HTTP/1.0
 | 
				
			||||||
 | 
					----
 | 
				
			||||||
 | 
					+
 | 
				
			||||||
 | 
					.Response
 | 
				
			||||||
 | 
					----
 | 
				
			||||||
 | 
					  HTTP/1.1 200 OK
 | 
				
			||||||
 | 
					  Content-Disposition: attachment
 | 
				
			||||||
 | 
					  Content-Type: application/json; charset=UTF-8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  )]}'
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    "All-Projects" {
 | 
				
			||||||
 | 
					      "id": "All-Projects",
 | 
				
			||||||
 | 
					      "state": "ACTIVE"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    "some-other-project": {
 | 
				
			||||||
 | 
					      "id": "some-other-project",
 | 
				
			||||||
 | 
					      "state": "HIDDEN"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					----
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[query-projects]]
 | 
					[[query-projects]]
 | 
				
			||||||
=== Query Projects
 | 
					=== Query Projects
 | 
				
			||||||
--
 | 
					--
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -138,6 +138,9 @@ public class DataSourceProvider implements Provider<DataSource>, LifecycleListen
 | 
				
			|||||||
              MILLISECONDS.convert(30, SECONDS),
 | 
					              MILLISECONDS.convert(30, SECONDS),
 | 
				
			||||||
              MILLISECONDS));
 | 
					              MILLISECONDS));
 | 
				
			||||||
      ds.setInitialSize(ds.getMinIdle());
 | 
					      ds.setInitialSize(ds.getMinIdle());
 | 
				
			||||||
 | 
					      long evictIdleTimeMs = 1000L * 60;
 | 
				
			||||||
 | 
					      ds.setMinEvictableIdleTimeMillis(evictIdleTimeMs);
 | 
				
			||||||
 | 
					      ds.setTimeBetweenEvictionRunsMillis(evictIdleTimeMs / 2);
 | 
				
			||||||
      ds.setValidationQuery(dst.getValidationQuery());
 | 
					      ds.setValidationQuery(dst.getValidationQuery());
 | 
				
			||||||
      ds.setValidationQueryTimeout(5);
 | 
					      ds.setValidationQueryTimeout(5);
 | 
				
			||||||
      exportPoolMetrics(ds);
 | 
					      exportPoolMetrics(ds);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user