instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
spotify__luigi__3220
spotify/luigi
3,220
defect
cf3be332fa7cffd689070f809a03f8294efe8f9b
e7b2d91577b9992701d2616790fa88ebff7986a1
Fix schema validation and add custom validators
<!--- This template is optional. Please use it as a starting point to help guide PRs --> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes --> Fixes #3217 that breaks when `jsonschema` is not installed (sorry about that :facepalm: ). Also add the ...
diff --git a/luigi/parameter.py b/luigi/parameter.py index 0ec0dcee0c..fe2e5ac2dd 100644 --- a/luigi/parameter.py +++ b/luigi/parameter.py @@ -1092,6 +1092,26 @@ def run(self): $ luigi --module my_tasks MyTask --tags '{"role": "UNKNOWN_VALUE", "env": "staging"}' + Finally, the provided schema can be a c...
2
1
0
[{"id": "G0", "claim": "The reviewer questions why normalize re-freezes the value after validation instead of returning the frozen value computed at the start, i.e. why the method freezes, unfreezes and freezes again.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
spotify__luigi__3238
spotify/luigi
3,238
defect
164c7628b632bef4d69f83de1e8a43167eaee3ee
9624475b95e0be2e416e1fcf7c492c761adf3af6
Fix bigquery retry
<!--- This template is optional. Please use it as a starting point to help guide PRs --> <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes --> When bigquery api returns 5xx errors the retry fails with ``` AttributeError: 'BigQueryClient' obj...
diff --git a/luigi/contrib/bigquery.py b/luigi/contrib/bigquery.py index 9da6d883ed..f8a896ade6 100644 --- a/luigi/contrib/bigquery.py +++ b/luigi/contrib/bigquery.py @@ -51,7 +51,7 @@ def is_error_5xx(err): wait=wait_exponential(multiplier=1, min=1, max=10), stop=stop_after_attempt(...
5
5
2
[{"id": "G0", "claim": "The public initialise_client wrapper added around __initialise_client is unnecessary and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retry test should use a plain integer counter instead of a single-eleme...
null
spotify__luigi__3259
spotify/luigi
3,259
defect
d86b97ee4cec3906eafe37b202c79199c7192ba7
ee7f92fd80130e48a34e00bd86c44980aa957c0b
Update dropbox.py for compatibility with Dropbox SDK v11.X.X
`dropbox.dropbox` has been renamed to `dropbox.dropbox_client` https://github.com/dropbox/dropbox-sdk-python/blob/main/UPGRADING.md
diff --git a/luigi/contrib/dropbox.py b/luigi/contrib/dropbox.py index 52a6b9ae16..76760b8688 100644 --- a/luigi/contrib/dropbox.py +++ b/luigi/contrib/dropbox.py @@ -30,7 +30,7 @@ logger = logging.getLogger('luigi-interface') try: - import dropbox.dropbox + import dropbox.dropbox_client import dropbox.e...
1
1
1
[{"id": "G0", "claim": "The dropbox dependency pin in tox.ini line 62 should be updated to cover SDK v11.x.x, matching the SDK version this pull request targets.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spotify__luigi__3290
spotify/luigi
3,290
defect
3cafd155bbc35918cfce442f9cef445eaa97f13c
1e4be4f02a7acf98d0e5508201ae0b1fd8f63e5c
Updated luigi.contrib.azureblob to 12.x.y series of azure.storage.blob
## Description Updated `luigi.contrib.azureblob` to adhere to API changes in the Azure Storage Blobs client library for Python. Related changes: - Updated the CI script to start an Azurite service via Docker. Uses the official image `mcr.microsoft.com/azure-storage/azurite` - Updated the related environment varia...
diff --git a/luigi/contrib/azureblob.py b/luigi/contrib/azureblob.py index 20de24224a..38c96b6973 100644 --- a/luigi/contrib/azureblob.py +++ b/luigi/contrib/azureblob.py @@ -20,7 +20,7 @@ import logging import datetime -from azure.storage.blob import blockblobservice +from azure.storage.blob import BlobServiceClie...
1
1
0
[{"id": "G0", "claim": "If the AZURITE_ACCOUNT_KEY value is fake, use a shorter string that is more clearly a dumb value (e.g. 'azuritesecretkey') instead of the long Azurite well-known key.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spotify__luigi__3305
spotify/luigi
3,305
defect
c9a0d2074be5bc03008485aeeef90678f1567231
46961b3b24bf2f31467dac7ae9fe67262223cc05
add ChoiceListParameter
<!--- This template is optional. Please use it as a starting point to help guide PRs --> <!--- Provide a general summary of your changes in the Title above --> ## Description A parameter type complementary to ChoiceParameter that allows for an arbitrarily sized list (0 to n). ## Motivation and Context <!--...
diff --git a/luigi/__init__.py b/luigi/__init__.py index 874014211a..f0fe6d468a 100644 --- a/luigi/__init__.py +++ b/luigi/__init__.py @@ -40,9 +40,9 @@ DateIntervalParameter, TimeDeltaParameter, IntParameter, FloatParameter, BoolParameter, PathParameter, TaskParameter, EnumParameter, DictParameter, List...
2
2
1
[{"id": "G0", "claim": "The ChoiceListParameter tests should be placed in test/parameter_test.py instead of a separate test/choice_list_parameter_test.py file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If ChoiceListParameter is intended as ...
null
spotify__luigi__3309
spotify/luigi
3,309
defect
c9a0d2074be5bc03008485aeeef90678f1567231
3e6d5fe3a50661d31f4b6acfb239a48787d25fc4
Fix arbitrary file write during tarfile extraction in luigi/contrib/lsf_runner.py and luigi/contrib/sge_runner.py
Fixes #3302 and #3301 This pull request introduces a new `SafeExtractor` class to securely handle tar file extraction and replaces the existing tar extraction logic in `lsf_runner.py` and `sge_runner.py` with this new class. Additionally, it includes tests to validate the functionality of `SafeExtractor`. ### Int...
diff --git a/luigi/contrib/lsf_runner.py b/luigi/contrib/lsf_runner.py old mode 100755 new mode 100644 index 5a6c8b5699..f483e7bf45 --- a/luigi/contrib/lsf_runner.py +++ b/luigi/contrib/lsf_runner.py @@ -28,7 +28,7 @@ except ImportError: import pickle import logging -import tarfile +from luigi.safe_extractor imp...
3
3
0
[{"id": "G0", "claim": "Unit tests specific to SafeExtract belong in a dedicated test/safe_extractor_test.py file, not in the contrib lsf_test.py of a module that merely uses SafeExtract.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test d...
null
spotify__luigi__3315
spotify/luigi
3,315
defect
b5d1b965ead7d9f777a3216369b5baf23ec08999
9d1f72ec1e8d25dae7cc47006f806df34189fca9
Implement mypy plugin for `luigi.Task`
<!--- This template is optional. Please use it as a starting point to help guide PRs --> <!--- Provide a general summary of your changes in the Title above --> * Add Mypy Plugin to type-check arguments of `luigi.Task` ## Description <!--- Describe your changes --> * Implement a plugin for mypy inspired by ...
diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index 2f8e12f63b..a32810c2f1 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -205,9 +205,9 @@ jobs: tox-env: py312-azureblob - - python-version: 3.9 + - python-...
2
2
1
[{"id": "G0", "claim": "Luigi still advertises Python 3.6 compatibility, and this PR's code assumes Python 3.7+ dict ordering semantics, so 3.6 support should be removed (readme reference, tox reference, github actions test execution, etc.).", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
spotify__luigi__3333
spotify/luigi
3,333
defect
b2b3b58b0b23745b15b032494cb95eb8b07c0f02
e385b5ced3f39a7b974c2d5d92f908251f08ad75
Allow more control over Prometheus metrics collection
## Description I have added possibility to define prometheus metrics labels based on task parameters. ## Motivation and Context I wanted to have more grouping options for prometheus monitoring. We use one scheduler for many graphs which share tasks and we wanted to have possibility to discern different graphs. ...
diff --git a/doc/configuration.rst b/doc/configuration.rst index 909a4fe81d..9c7d1de95c 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -1045,6 +1045,18 @@ metric_namespace Optional prefix to add to the beginning of every metric sent to Datadog. Default value is "luigi". +[prometheus] +-------...
5
5
3
[{"id": "G0", "claim": "Place the [prometheus] section in its alphabetic location within the Configurable options top-level section of doc/configuration.rst.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The underline of the added [prometheus] se...
null
spotify__luigi__3335
spotify/luigi
3,335
defect
6d12bd1bd36a03758261ed20420187ef08d8cf9e
1c8cf31fd1ffd13fb629820c6fcbaa4dff7670a6
Fixes #3334: Add support for custom parameter classes in mypy plugin
## Description Fix for custom parameter classes in mypy plugin. ## Motivation and Context I'm using custom parameter classes in my code, and I'd like to benefit from the new mypy plugin. The change is not the prettiest one but the smallest I've found. ## Have you tested this? If so, how? I've updated unittests...
diff --git a/luigi/mypy.py b/luigi/mypy.py index 8de6d5a37e..00de17e364 100644 --- a/luigi/mypy.py +++ b/luigi/mypy.py @@ -6,7 +6,6 @@ from __future__ import annotations -import re import sys from typing import Callable, Dict, Final, Iterator, List, Literal, Optional @@ -61,10 +60,6 @@ METADATA_TAG: Final[s...
1
1
1
[{"id": "G0", "claim": "Remove the leftover `print(ctx.context)` debug statement from `_task_parameter_field_callback` in luigi/mypy.py before merging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spotify__luigi__3343
spotify/luigi
3,343
defect
e354f61d3195f40711954a9f6cd89148dea51123
55e835c9ff5a6061dededd7ac6fa78d7e32bf88d
Make reporting more metrics for tasks possible
I would like to collect and monitor more metrics from luigi graphs runs. ## Description I added method for passing tasks' run statistics from TaskContext into scheduler and metrics collector. ## Motivation and Context Example and motivation is in Issue https://github.com/spotify/luigi/issues/3342. ## Have y...
diff --git a/luigi/metrics.py b/luigi/metrics.py index cd3364e251..30d45164f4 100644 --- a/luigi/metrics.py +++ b/luigi/metrics.py @@ -66,6 +66,9 @@ def handle_task_disabled(self, task, config): def handle_task_done(self, task): pass + def handle_task_statistics(self, task, statistics): + pass...
1
1
0
[{"id": "G0", "claim": "The optionally-implemented handle_task_statistics method needs, at a minimum, appropriately informative and discoverable documentation of its intended use (and the reviewer asks whether a common implementation can be introduced in the Datadog and/or Prometheus collectors).", "category": "documen...
null
spotify__luigi__3385
spotify/luigi
3,385
defect
eda8d654b782391e4cc7e8b664cdbcae7a72e904
eb1e8fdc932e7f029e209ec670d41b259776d4eb
fix: update codecov
<!--- This template is optional. Please use it as a starting point to help guide PRs --> <!--- Provide a general summary of your changes in the Title above --> Replaces https://github.com/spotify/luigi/pull/3379 ## Description <!--- Describe your changes --> This patch loosens the restrictions on our codecov...
diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index d32e3f52c5..1c593a1071 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -19,6 +19,40 @@ jobs: - tox-env: py311-core - tox-env: py312-core + steps: + - uses: a...
1
1
1
[{"id": "G0", "claim": "Make the codecov 'changes' status informational so the codecov check passes while the check behaviour is being investigated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spotify__luigi__3387
spotify/luigi
3,387
defect
8e8964e0e6a3af36fd47fe60fee0374d65034604
06417d193d121fb847f8983f9e2a24b2feea21fb
Use `__set__` / `__get__` descriptors for type checking (replaces `__new__` approach)
fix #3386 <!--- This template is optional. Please use it as a starting point to help guide PRs --> <!--- Provide a general summary of your changes in the Title above --> ## Description This PR addresses #3386 by implementing the descriptor protocol ( `__set__` and `__get__` ) in `luigi.Parameter`. This rep...
diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index 1c593a1071..0db288f644 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -209,7 +209,6 @@ jobs: include: - tox-env: flake8 - tox-env: docs - - tox-env:...
2
2
0
[{"id": "G0", "claim": "The nested ChoiceList/EnumList and Choice/Enum branches should be split into separate conditional branches with the shared logic extracted into a dedicated function that each can call, so the condition is easier to follow.", "category": "maintainability", "verdict": "supported", "priority": "P2"...
null
spotify__luigi__3416
spotify/luigi
3,416
defect
5f4322cd479a120e4237a341770468637bad4986
8e6a7a3fb81f08add8d9aac615e039b2b737c5e6
Fix BoolParameter to consider global parsing default.
## Description As part of the latest changes for the 3.8.0 release, some type hints were added that break changing the parsing option of BoolParameters. This PR contains a small 2-line fix to consider the default as before. ## Motivation and Context The docstring of BoolParameter states that the `parsing` defa...
diff --git a/luigi/parameter.py b/luigi/parameter.py index 99b2d36956..befb18e60d 100644 --- a/luigi/parameter.py +++ b/luigi/parameter.py @@ -870,10 +870,10 @@ class MyTask(luigi.Task): def __init__( self, default: Union[bool, _NoValueType] = _no_value, - parsing: str = IMPLICIT_PARSING, ...
1
1
1
[{"id": "G0", "claim": "Add tests covering the BoolParameter global parsing default so this behaviour cannot be broken again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spotify__luigi__559
spotify/luigi
559
defect
92ebf72f89951f286b220834ba1373be7ab03792
4b15c2aafcc8c86dd54eb068904a4fc62de57e97
Add all dependencies to install_requires.
Fixes #558.
diff --git a/.travis.yml b/.travis.yml index 3d5ffe823a..12e95c33f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,15 +7,20 @@ python: jdk: oraclejdk7 env: - - TOX_ENV=cdh - - TOX_ENV=hdp + global: + - PIP_DOWNLOAD_CACHE=$HOME/.pip-cache + matrix: + - TOX_ENV=cdh + - TOX_ENV=hdp sudo: false +cac...
6
5
4
[{"id": "G0", "claim": "The Travis build is failing, possibly because the pull request deleted files that the build still needs to keep.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The build should drop the slow `python setup.py test` step, and tox....
null
spring-ai-alibaba__DataAgent__100
spring-ai-alibaba/DataAgent
100
defect
6a28476d420d875da79bcd9efd610c8602a0b28a
1b60d27b6ff0a5b130eb6e828971d0bb2975344d
feat: add es hybrid retrieval support (#98)
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/pom.xml b/pom.xml index 3f6550c3e..149cfb216 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,7 @@ <jsonschema.version>4.37.0</jsonschema.version> <h2.version>2.3.232</h2.version> <testcontainers.version>1.19.3</testcontainers.version> + <elasticsearch-client.version>8.18.0...
6
6
3
[{"id": "G0", "claim": "The filter expression uses gte for AGENT_ID instead of eq, so the vector search matches all agents with IDs greater than or equal to the requested agent ID rather than only the specific agent; change it to b.eq(Constant.AGENT_ID, request.getAgentId()).", "category": "correctness", "verdict": "su...
null
spring-ai-alibaba__DataAgent__314
spring-ai-alibaba/DataAgent
314
defect
09a4dec54bd8135423ca2f828ad7d9919cd22b5c
4541f9120f68244b202cfe8f560e0617eaa2bebc
refactor: unify the angentId's type to Long
### Describe what this PR does / why we need it 1. unify the angentId's type to Long 2. remove the ResponseEntity wrap in the AgentController's return. ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Desc...
diff --git a/.gitignore b/.gitignore index c32e7fbb8..0f339b1c3 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ modified_mcp_config.json .idea/LocalCodeIndex/ uploads/* +.java-version diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 000...
1
1
0
[{"id": "G0", "claim": "The maven-script modifications (CI/linter/license/.licenserc.yaml, .mvn/wrapper, mvnw, mvnw.cmd and pom.xml) are unnecessary and should be reverted from this PR, or moved to a separate PR if they are deemed necessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
spring-ai-alibaba__DataAgent__72
spring-ai-alibaba/DataAgent
72
defect
497341d72f5e92af6e50a6b663c778993b3f4f05
33cdf9f1600b418af454e94968009fea5935bf0c
refactor: remove AgentVectorService
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-ai-alibaba-data-agent-chat/src/main/java/com/alibaba/cloud/ai/service/datasource/DatasourceService.java b/spring-ai-alibaba-data-agent-chat/src/main/java/com/alibaba/cloud/ai/service/datasource/DatasourceService.java index be9e04131..553fba45d 100644 --- a/spring-ai-alibaba-data-agent-chat/src/main/...
7
4
1
[{"id": "G0", "claim": "getActiveAgentDatasourcesWithDetails should return a typed DTO instead of List<Map<String, Object>> (VLSMB suggests the natural element type is List<Datasource>).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In DatasourceService...
null
spring-ai-alibaba__DataAgent__86
spring-ai-alibaba/DataAgent
86
defect
e94944a599811a274059502a389a4dc3e42dd4c6
65a875826e3b6e566cd64b08f9e2077d62897b96
feat: enhance schema init processing logic (#85)
### Describe what this PR does / why we need it ### Does this pull request fix one issue? fix #85 ### Describe how you did it 1、表的元数据填充改为批量并行获取填充 2、向量库插入采用并行流 3、去掉每次操作执行连接存活的测试。用户可以在前端界面进行一次测试连接存活性即可。 4、druid的数据库连接池配置参数调整 ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-ai-alibaba-data-agent-chat/src/main/java/com/alibaba/cloud/ai/service/TableMetadataService.java b/spring-ai-alibaba-data-agent-chat/src/main/java/com/alibaba/cloud/ai/service/TableMetadataService.java new file mode 100644 index 000000000..d2fe303ea --- /dev/null +++ b/spring-ai-alibaba-data-agent-ch...
5
2
2
[{"id": "G0", "claim": "The `return null` after the retry loop in getConnection is unreachable dead code since the exception is thrown when maxRetries is reached, and the return statement should be removed.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
spring-ai-community__mcp-security__22
spring-ai-community/mcp-security
22
defect
46c28bb7bfbf532c525f9fbae8aa699b1d56223e
f7ba2a3cf7223b23cefaeb04b6cb2b6743158f36
mcp-server: resource_metadata header enhancement
added servlet context path to resource_metadata header
diff --git a/mcp-server-security/src/main/java/org/springaicommunity/mcp/security/server/oauth2/authentication/BearerResourceMetadataTokenAuthenticationEntryPoint.java b/mcp-server-security/src/main/java/org/springaicommunity/mcp/security/server/oauth2/authentication/BearerResourceMetadataTokenAuthenticationEntryPoint....
3
3
0
[{"id": "G0", "claim": "Initialize the test fields in their declarations and make them final, use MockHttpServletRequest/MockHttpServletResponse instead of Mockito mocks, and construct `new ResourceIdentifier(\"/mcp\")` instead of mocking it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "...
null
spring-cloud__spring-cloud-bus__143
spring-cloud/spring-cloud-bus
143
defect
7a06f0207a68240049d60a4436236380a0177e3c
b9308601b9ff3dc689e9a0127ba2a0baaf6c2ef3
Respect spring.cloud.config.name value in ServiceMatcher
To get notified about changes in properties/yml files that are not named after the service name but still get pulled from the config server, the value of spring.cloud.config.name is now honored in addition to the service id when matching destination service ids of incoming RemoteRefreshEvents. Fixes GH-132
diff --git a/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java b/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java index ea4cd9db..e5b99617 100644 --- a/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java +++ b/...
1
1
1
[{"id": "G0", "claim": "Use `Environment` rather than `@Value` to read the config names in the serviceMatcher bean, otherwise relaxed binding won't work.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-bus__221
spring-cloud/spring-cloud-bus
221
defect
da87ba6721a76a70da380eb879cf9212aec75981
eb18c5b2272e701c1e661c22ffa59a6545a18c85
Refresh Context Only If Event Targets App
Only refresh the context if the event received is for the given application. Fixes #68
diff --git a/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java b/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java index 14d30300..3a65868e 100644 --- a/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java +++ b/...
1
1
1
[{"id": "G0", "claim": "If serviceMatcher is null, the listener should preserve the existing behavior and perform the refresh (perhaps still logging the warning) instead of returning without refreshing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-bus__49
spring-cloud/spring-cloud-bus
49
defect
1c531cf892c261db26249e0d1bf69b8e679fc6f3
fa160fd31e9fe5608c30bebf1701f00365c4b9dd
UnknownRemoteApplicationEvent if deserialization fails
Fixes #48. If the Jackson deserializer cannot deserialize the event payload received, it emits an UnknownRemoteApplicationEvent that wraps the type information expected and the raw payload. Client applications can register on events of type UnknownRemoteApplicationEvent and handle these cases appropriately.
diff --git a/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/event/UnknownRemoteApplicationEvent.java b/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/event/UnknownRemoteApplicationEvent.java new file mode 100644 index 00000000..98c2a0a6 --- /dev/null +++ b/spring-cloud-bus/src/main/java/org/...
2
2
0
[{"id": "G0", "claim": "UnknownRemoteApplicationEvent.java should use tabs instead of spaces for indentation.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "BusJacksonAutoConfiguration.java should use tabs instead of spaces for indentation (e.g. the 'try ...
null
spring-cloud__spring-cloud-commons__1064
spring-cloud/spring-cloud-commons
1,064
defect
b041b0a55d7f92cb9f123df47b6b721306b11143
a93a62d518a01488af78812b5a2e4413de9b7b60
Consider spring.profiles.active when resolving service ID.
New constant IdUtils.DEFAULT_SERVICE_ID_WITH_ACTIVE_PROFILES_STRING refers to profiles in second position. IdUtils.getResolvedServiceId chooses new constant as template only if profiles are active, and thus remains backwards-compatible. Add unit tests for new behaviour. Fixes gh-930.
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/commons/util/IdUtils.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/commons/util/IdUtils.java index 37e8c56a14..33998446ad 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/commons/util/IdUtils.java ++...
3
2
2
[{"id": "G0", "claim": "The pre-existing DEFAULT_SERVICE_ID_STRING/getUnresolvedServiceId machinery that this PR supersedes should be marked @Deprecated (and commented as slated for removal) so it can be removed in the future.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_exis...
null
spring-cloud__spring-cloud-commons__1163
spring-cloud/spring-cloud-commons
1,163
defect
86c44de8553f2f655068e6591336e295167656be
f33de4a52f0ad3791207f8c218360c32a3cc4c31
feat: support autoconfigure WeightedServiceInstanceListSupplier
Enable configuring `WeightedServiceInstanceListSupplier` via `spring.cloud.loadbalancer.configurations`
diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index 870ef5110..7d2a1a655 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -935,7 +935,7 @@ By default, we try to read and parse the we...
1
1
0
[{"id": "G0", "claim": "Reword \"bean -- for example:\" to \"bean, for example:\" in the weighted configuration docs section.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-cloud__spring-cloud-commons__1165
spring-cloud/spring-cloud-commons
1,165
defect
fa53e6cb1cb86758202307e789138d26f91ed2df
e66f50f6710c6163f4adba334b1d6ef554d1f817
Lazy fills service instances to reduce max latency
When we have a lot of upstream services, and their total weight is large, then if we expand all instances in one request, our processing time will be very long. To solve this problem, use a lazily computed list to expand all elements to an unexpanded position only when the unexpanded position is visited. There is an...
diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/LazyWeightedServiceInstanceList.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/LazyWeightedServiceInstanceList.java new file mode 100644 index 000000000..e71cba5e1 --- /dev/null +...
7
7
0
[{"id": "G0", "claim": "Reword the class Javadoc to \"A {@link List} implementation that lazily fills weighted {@link ServiceInstance} objects.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the local variable `gcd` to `greatestCommonDivi...
null
spring-cloud__spring-cloud-commons__1184
spring-cloud/spring-cloud-commons
1,184
defect
b6e4fb00d4857b31106f9cbbad61f9ee9ddbb641
9317d27dcc292815fa85b4abc53af85e0d04f5e8
Optimizing selectors to ensure that selection is always `O(1)` time
In the original implementation, the selector uses a gradually increasing lower bound `currentWeight` to select instances with ownership weights greater than `currentWeight` to ensure that all nodes are selected with the same probability with weight as smooth as possible. However, because the process of selecting ins...
diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/LazyWeightedServiceInstanceList.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/LazyWeightedServiceInstanceList.java index 394b88aa3..644fbb4eb 100644 --- a/spring-cloud-loadbalanc...
3
2
0
[{"id": "G0", "claim": "Initializing the gcd from 1 makes more sense than from 0 (or, per the later variant, taking max(1, gcd) after the loop so it can never end up 0), which would also open the door to allowing weights of value zero — though that part was explicitly raised as out of scope for this PR.", "category": "...
null
spring-cloud__spring-cloud-commons__1286
spring-cloud/spring-cloud-commons
1,286
defect
464a9820fd46d5023054682cd66bcfedc116218d
02f21f71c4f10b1e5ee6e42a9593c346f810bd31
Fix #1285 Spring Cloud activates unexpected profiles when some conditions met
https://github.com/spring-cloud/spring-cloud-commons/issues/1285
diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java index cc3e94344..0aaaf736e 100644 --- a/spring-cloud-context/src/...
2
1
0
[{"id": "G0", "claim": "After upgrading to version 3.1.4, profiles are retrieved from different PropertySources in a way previous versions did not exhibit, and the commenter asks whether that is a bug.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim":...
null
spring-cloud__spring-cloud-commons__1289
spring-cloud/spring-cloud-commons
1,289
defect
56f16d116e9470cdd8531c7a6073f3d9192f9a35
48bbf986a5353ed67b1f12cfe457ed7199af8ef0
feat(lb): deterministic subsetting algorithm
[gh-1288](https://github.com/spring-cloud/spring-cloud-commons/issues/1288)
diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/SubsetServiceInstanceListSupplier.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/SubsetServiceInstanceListSupplier.java new file mode 100644 index 000000000..aefcc3054 --- /dev/nu...
8
8
3
[{"id": "G0", "claim": "The `instanceId` field should be renamed to `clientId` (with any necessary transformations where its value is set), since the PR uses the name for the client's id rather than the id of an instance in the registry.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
spring-cloud__spring-cloud-commons__137
spring-cloud/spring-cloud-commons
137
defect
329c67fa3634a667bde346590bb8916af618ad37
526f82907094c5ec7ce150563497433c6142b990
Retry implementation for LoadBalanced RestTemplates
Helps address spring-cloud/spring-cloud-netflix#1290
diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index beb51e12a1..1571e09c1f 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -345,6 +345,20 @@ The Ribbon client is used to create a fu...
4
3
2
[{"id": "G0", "claim": "There is no way to specify retry-on-404 (per-status-code) behaviour, and errors the underlying client does not throw for may never trigger the retry behaviour.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added sp...
null
spring-cloud__spring-cloud-commons__149
spring-cloud/spring-cloud-commons
149
defect
8d3d07bde696c1f0b02c9abcc8d4965afda70001
72efeef9c711c31a4c448453ecd2dab3933fe699
Added classes for async load balancer interceptor
Fixes #36
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/AsyncLoadBalancerAutoConfiguration.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/AsyncLoadBalancerAutoConfiguration.java new file mode 100644 index 000000000..217dfd45f --- /dev/null +...
4
3
0
[{"id": "G0", "claim": "The new AsyncLoadBalancerAutoConfiguration entry in spring.factories should be listed in alphabetical order.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new code uses spaces for indentation, but the project convent...
null
spring-cloud__spring-cloud-commons__164
spring-cloud/spring-cloud-commons
164
defect
04f7164d75b96590c48be08d7efd64f17807f557
10b7f2a1a531bfb569638f543086e1a7736807af
Customize load balanced requests according to the chosen ServiceInstance
Applications can define their own LoadBalancerRequestTransformer beans which can modify the HttpRequest to be executed. These beans can be @Ordered in case of multiple transformers. Fixes #162
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerAutoConfiguration.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerAutoConfiguration.java index a0d51d93d6..113f76d693 100644 --- a/spring-cloud-commons/src/main/j...
2
2
2
[{"id": "G0", "claim": "The pull request changes public signatures (the LoadBalancerInterceptor and RetryLoadBalancerInterceptor constructors now require a LoadBalancerRequestFactory, and ServiceRequestWrapper is renamed to UriReconstructingRequestWrapper); since this should go into Camden it should be additive and not...
null
spring-cloud__spring-cloud-commons__1680
spring-cloud/spring-cloud-commons
1,680
defect
56d773085ec61224c76ab39e0cca023b406420fb
b4c685ca2f2a22e38e3aa9ca268eb05c52abf2bb
Reset bean to defaults before rebinding values
## Problem I noticed that when a property is removed from the `Environment` with a property refresh resulting in a specific property going from having a configured value to having no value, the `ConfigurationPropertiesRebinder` effectively only calls the lifecycle methods on the bean, but doesn't reset the values. T...
diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java b/spring-cloud-context/src/main/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinder.java index 59488a1d38..d73b361301 100644 --- a/spring-cloud-context/src/main...
7
6
6
[{"id": "G0", "claim": "BeanUtils.instantiateClass(bean.getClass()) uses the runtime class, which can be a proxy type that is non-instantiable or does not represent the user-class defaults, so the reset can be skipped and stale values left in place; resolve the user/target class before instantiating (e.g. AopUtils.getT...
null
spring-cloud__spring-cloud-commons__198
spring-cloud/spring-cloud-commons
198
defect
9675df02f6a2c01766711f7dee3c4d2818b7d716
dfbc23392be49cdcb5eb5c262c1f90cf447d2f13
GH-140: Support for Composite Discovery client
#140 - Added support for a composite Discovery Client
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/DiscoveryClient.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/DiscoveryClient.java index c2d553d9b5..69a8ed369f 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/clie...
3
2
2
[{"id": "G0", "claim": "DiscoveryClientAutoConfigurationDefaultTests should still work as is instead of being rewritten by this pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Apps need to just be able to inject DiscoveryClient without any ...
null
spring-cloud__spring-cloud-commons__208
spring-cloud/spring-cloud-commons
208
defect
15aad9ca5f74d366dc0b1d9a0e4054585e6d9a31
e7878372aa0e6538171802fd6509a3c9135af7dd
Disables endpoint creation
Fixes #117
diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/LifecycleMvcEndpointAutoConfiguration.java b/spring-cloud-context/src/main/java/org/springframework/cloud/autoconfigure/LifecycleMvcEndpointAutoConfiguration.java index 39af35d45..da4bf7986 100644 --- a/spring-cloud-context/src/main...
5
3
2
[{"id": "G0", "claim": "The pull request's builds are failing on CI and the reviewer asks whether the author has looked into the failures.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The restart endpoint configuration should use `@ConditionalOnEnabledEn...
null
spring-cloud__spring-cloud-commons__222
spring-cloud/spring-cloud-commons
222
defect
111bd1ccb2596f56e62a09eeaf35799be3a54fb7
787bea18e915f98a664dc451c196d1a15a0c5596
Implementation of factories to provide Apache HTTP Clients
Adds factory beans for downstream projects to consistently create Apache HTTP Clients
diff --git a/spring-cloud-commons/pom.xml b/spring-cloud-commons/pom.xml index 7b120d36c..bd23e04d8 100644 --- a/spring-cloud-commons/pom.xml +++ b/spring-cloud-commons/pom.xml @@ -35,6 +35,11 @@ </plugin> </plugins> </build> + + <properties> + <okhttp3.version>3.6.0</okhttp3.version> + <apachehttpclient.ver...
1
1
1
[{"id": "G0", "claim": "The long list of parameters on OkHttpClientFactory.create(...) is worrying and a builder customizer might make more sense.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-commons__298
spring-cloud/spring-cloud-commons
298
defect
fb76beb3f27ef8e39ea1fb4864f51c3363fc5f4b
27a041e9d7a54e6d1606880c5e1538c9935d73f5
Supplement spring-retry listener features
Hi @ryanjbaxter Thank you very much for your patience guidance, and I have re-submitted PR as you suggested (PR #293 has been closed before). Allow me to explain this PR content - Add spring-retry listener features - Added test code for this feature I hope you can help me check, any of your reply is a great...
diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index 6653a8e66..eb01aaf79 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -428,6 +428,42 @@ public class MyConfiguration { NOTE: `cli...
3
3
1
[{"id": "G0", "claim": "The spacing of the new retryListeners lines added in intercept() is wrong.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a new constructor taking the retry listener factory instead of changing the existing constructo...
null
spring-cloud__spring-cloud-commons__331
spring-cloud/spring-cloud-commons
331
defect
e63a3d42321175e2869c4847d8476e1eb39c1971
2dcdc4968d52754a8ddc5080a53c72269a74549b
Refactor spring retry
Simplify the number of interfaces involved in configuring retry to one interface. Removing some deprecated constructors.
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancedBackOffPolicyFactory.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancedBackOffPolicyFactory.java deleted file mode 100644 index 9e83cfaba..000000000 --- a/spring-cl...
4
3
0
[{"id": "G0", "claim": "LoadBalancedRetryFactory could use default methods rather than a static DefaultRetryFactory class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RetryLoadBalancerInterceptor response-creation lambda looks like it could be pus...
null
spring-cloud__spring-cloud-commons__447
spring-cloud/spring-cloud-commons
447
defect
a2ba7a57e3b1bcad83edd1e95d0848a39577702b
cfba831c84119156dbd7801afecce2db8917aa8e
Spring Cloud CompatibilityVerifier
Due to the fact that some users have problem with setting up Spring Cloud application, we've decided to add a compatibility verification mechanism. It will break if your current setup is not compatible with Spring Cloud requirements, together with a report, showing what exactly went wrong. At the moment we verify ...
diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index 77edc0541..a986ce689 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -576,4 +576,17 @@ HTTP client and `OkHttpClientConnectionPoo...
7
7
2
[{"id": "G0", "claim": "Use a @ConfigurationProperties class instead of @Value for the compatible-boot-versions setting, to keep relaxed binding and give the setting a more prominent place.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the spring...
null
spring-cloud__spring-cloud-commons__468
spring-cloud/spring-cloud-commons
468
defect
493a324d037351db87ab43b793318ca87e9d07dd
c49e984a4aa2980022bb699972dc19989b7d8147
Introduce property spring.cloud.bootstrap.additional-location according to spring.config.additional-location (#466)
fixes #466
diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java index 73406c3041..20f9940a67 100644 --- a/spring-cloud-context/src/main/java/org/springframewor...
1
1
1
[{"id": "G0", "claim": "Documentation should be added for the new spring.cloud.bootstrap.additional-location property, describing how it differs from the existing spring.cloud.bootstrap.location property.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-commons__473
spring-cloud/spring-cloud-commons
473
defect
b761f276e7496631dd5447b45566564b02256a8f
b54034d436d80fef518c2cc65d91e19e5fbe2be5
Fix override behaviour when using CompositePropertySource.
The issue #471 is actually related to https://github.com/spring-cloud/spring-cloud-commons/pull/358 (which just activated an hidden issue). The propertySources from CompositePropertySource should be walked in reversed order for the overrides to behave properly. Fixes gh-471
diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/encrypt/EnvironmentDecryptApplicationInitializer.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/encrypt/EnvironmentDecryptApplicationInitializer.java index 3933abfdb..5fbdad5ab 100644 --- a/spring-cloud-co...
3
1
0
[{"id": "G0", "claim": "The pull request should not use wildcard imports; `import java.util.*;` must be replaced with explicit single-type imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "With the patch applied, encrypted properties fetch...
null
spring-cloud__spring-cloud-commons__683
spring-cloud/spring-cloud-commons
683
defect
744ad89177d779112a626f2c8bd0d564184aee0b
4eda8f96c7523458980bed8813bd7ab90f8ddebd
Adds healhtcheck-based loadBalancing
Add healhtcheck-based loadBalancing. Fixes gh-629.
diff --git a/docs/src/main/asciidoc/_configprops.adoc b/docs/src/main/asciidoc/_configprops.adoc index 1d313be67..9c3d46bb0 100644 --- a/docs/src/main/asciidoc/_configprops.adoc +++ b/docs/src/main/asciidoc/_configprops.adoc @@ -28,10 +28,13 @@ |spring.cloud.inetutils.timeout-seconds | 1 | Timeout, in seconds, for cal...
8
8
5
[{"id": "G0", "claim": "isAlive() should be declared protected so users can override it (one small visibility change).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "isAlive() uses WebClient exchange() without consuming the ClientResponse body, which per...
null
spring-cloud__spring-cloud-commons__685
spring-cloud/spring-cloud-commons
685
defect
070e0a8518fdea11dc508ee592d0843fa516b259
c1d1675d3e9404bab9a448986fe5feec67d5e4a8
Fixes issues in HealthCheckServiceInstanceListSupplier
- WebClient response leaks - potential Scheduled task leak - rework polling to plain reactor operators - remove non atomic operations on ServiceInstance lists original issue gh-683 related to gh-629
diff --git a/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/HealthCheckServiceInstanceListSupplier.java b/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/HealthCheckServiceInstanceListSupplier.java index 0374a00d8..552f96fd3 100644 --- a/spring-cl...
6
3
1
[{"id": "G0", "claim": "The contract of ServiceInstanceListSupplier#get() - whether the returned Flux is finite (a single emit) or potentially infinite - is not documented and is not clear from the return type, and it should be documented.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope"...
null
spring-cloud__spring-cloud-commons__803
spring-cloud/spring-cloud-commons
803
defect
63ce0d965c9bccbd084b75d016e8ab162f94970b
7f5d076ad3fd628611aaab70215b1c9615affa21
add common classes for TLS properties
Add common classes for TLS tests for spring-cloud-config and spring-cloud-netflix
diff --git a/spring-cloud-commons-dependencies/pom.xml b/spring-cloud-commons-dependencies/pom.xml index a703aae1d..ac66edef3 100644 --- a/spring-cloud-commons-dependencies/pom.xml +++ b/spring-cloud-commons-dependencies/pom.xml @@ -16,6 +16,7 @@ <description>Spring Cloud Commons Dependencies</description> <propert...
1
1
1
[{"id": "G0", "claim": "The common test code should not be placed in spring-cloud-commons; instead the similar TLS properties from the config and netflix PRs should be placed in commons.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-commons__835
spring-cloud/spring-cloud-commons
835
defect
8748ef400f79aa039fa37329d59c70c49dca6153
151551b0864ecb1fc0202387607b53cd162e4079
Deprecates SimpleServiceInstance in favor of DefaultServiceInstance
Please review the code changes for the Issue 824 (https://github.com/spring-cloud/spring-cloud-commons/issues/824) Unit Tests passed locally via mvn install -P spring
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/DefaultServiceInstance.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/DefaultServiceInstance.java index 7f92c17e1..c2f995427 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/Defau...
4
4
0
[{"id": "G0", "claim": "The PR should use the newly added DefaultServiceInstance default constructor instead of calling the all-arguments constructor with nulls in the two load-balancer test setups and in SimpleReactiveDiscoveryProperties' local field.", "category": "design", "verdict": "supported", "priority": "P2", "...
null
spring-cloud__spring-cloud-commons__888
spring-cloud/spring-cloud-commons
888
defect
eb32ea8f21103f59778c27cee48b3930dd2728af
88aeb0bfdeb2ebbae19190571ce830499099f777
Moves CloudFlux to spring cloud package.
FluxFirstNonEmptyEmitting and Tests used package private classes/interfaces from reactor. These were replaced with the public interfaces they were extending and any default methods copied to the implementation. LambdaSubscriber was copied to the test where it was used and had similar treatment for its package protec...
diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/composite/reactive/ReactiveCompositeDiscoveryClient.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/composite/reactive/ReactiveCompositeDiscoveryClient.java index 142ee477d..6f0549164 100644 -...
3
3
2
[{"id": "G0", "claim": "The generic stepName implementation copied into FirstNonEmptyEmittingSubscriber is bug-prone and should be replaced by an override returning a constant such as \"CloudFlux.firstNonEmpty\".", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
spring-cloud__spring-cloud-connectors__120
spring-cloud/spring-cloud-connectors
120
defect
2b0bdf5768b4361842a46e00cd80b28670bca378
14c5ffc2e9300254f6579fb7cd8880a963c6a1e0
support for Spring Cloud properties with DB2 services i.e. cloud.services.{service-name}.connection.{property}
Use-case : Pushing a Play framework generated .zip file to IBM Bluemix (CloudFoundry based) with the [java-buildpack](https://github.com/cloudfoundry/java-buildpack). The application has a bound DB2 service instance. The [app.conf](https://github.com/cloudfoundry-samples/zentasks-scala-cloudfoundry/blob/master/conf/ap...
diff --git a/spring-cloud-cloudfoundry-connector/src/main/java/org/springframework/cloud/cloudfoundry/DB2ServiceInfoCreator.java b/spring-cloud-cloudfoundry-connector/src/main/java/org/springframework/cloud/cloudfoundry/DB2ServiceInfoCreator.java new file mode 100644 index 00000000..3b0a9f15 --- /dev/null +++ b/spring-...
3
3
2
[{"id": "G0", "claim": "The JDBC URL built by DB2ServiceInfo.getJdbcUrl() should include the username and password from the service credentials, in the DB2-supported form jdbc:db2://.../dbname;user=...;password=...;, since they are needed for authenticated database connections.", "category": "correctness", "verdict": "...
null
spring-cloud__spring-cloud-consul__238
spring-cloud/spring-cloud-consul
238
defect
e767c4e64fa38e883749799017fb79544a2cd7c2
24705d2904959a06afe4eb3c072663d3e2ec9181
Enables failFast setting for consul service registration
This PR enables utilization of the `failFast` configuration property while registering a consul service. Refer #175 for more information. I've signed the CLA. Please review and pull. Thanks, Venil
diff --git a/spring-cloud-consul-discovery/pom.xml b/spring-cloud-consul-discovery/pom.xml index 3b52ad4eb..26d3682d2 100644 --- a/spring-cloud-consul-discovery/pom.xml +++ b/spring-cloud-consul-discovery/pom.xml @@ -21,6 +21,10 @@ <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-consul-cor...
4
3
3
[{"id": "G0", "claim": "Remove the spring-cloud-consul-config dependency from the discovery module's pom and the ConsulConfigProperties wiring from the consulLifecycle bean, and instead add a failFast property (default false) to ConsulDiscoveryProperties.", "category": "design", "verdict": "supported", "priority": "P1"...
null
spring-cloud__spring-cloud-consul__252
spring-cloud/spring-cloud-consul
252
defect
c259293933b08c0de9a63b2ce73588c1b217c7e4
e6d0644b02f77f0af4f68e86b573a2f8059276b9
ConsulServer support server group
issue: https://github.com/spring-cloud/spring-cloud-consul/issues/248
diff --git a/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/discovery/ConsulServer.java b/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/discovery/ConsulServer.java index 69f3bd5c1..8c4ded7fa 100644 --- a/spring-cloud-consul-discovery/src/main/java/org/springf...
1
1
0
[{"id": "G0", "claim": "The pull request should add a test for its change (the server-group support added in ConsulServer).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-cloud__spring-cloud-consul__355
spring-cloud/spring-cloud-consul
355
defect
98f9214ca63743589f5230512cad1b0fb5c633db
835a12881ba6a9cb4a9081007b5335e61cf8c301
Remove optional @EnableDiscoveryClient
Fixes #353.
diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index 531148e7e..0e8441fa8 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -42,7 +42,6 @@ Example Consul client: [source,java,indent=0] -...
1
1
1
[{"id": "G0", "claim": "The documentation line that replaced @EnableDiscoveryClient should also mention the property that disables the discovery client, not just auto-registration.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-consul__471
spring-cloud/spring-cloud-consul
471
defect
e8d5b575861ff39d4ea8a7fdf0eeaff6ea8dd3b8
ebcb63089c02daff3296f0bc7ce3104f8e6b57f2
Service check TTL
Closes #470
diff --git a/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/serviceregistry/ConsulServiceRegistry.java b/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/serviceregistry/ConsulServiceRegistry.java index 215bcb8cb..c842d34fd 100644 --- a/spring-cloud-consul-disco...
2
2
1
[{"id": "G0", "claim": "Provide a test covering the TTL check behaviour this pull request adds.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use tabs, not spaces, for the indentation of the new test file.", "category": "maintainability", "verdict": "s...
null
spring-cloud__spring-cloud-consul__574
spring-cloud/spring-cloud-consul
574
defect
b1ab6cdfc2c41e36e13922463a335de3c86a4a44
5a889e4ce39e833bd45d44bc68424965caffb926
Extracted heartbeat and catalog watch auto-configuration.
Needed in order to have those beans running in the correct application context when SC Config discovery is enabled. Relates to spring-cloud/spring-cloud-config#1229
diff --git a/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/ConsulHeartbeatAutoConfiguration.java b/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/ConsulHeartbeatAutoConfiguration.java new file mode 100644 index 000000000..07f170390 --- /dev/null +++ b/spring-...
1
1
0
[{"id": "G0", "claim": "The new ConsulHeartbeatAutoConfiguration should not sit in the root org.springframework.cloud.consul package but be moved to a separate sub-package (a `support` package).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-cloud__spring-cloud-consul__684
spring-cloud/spring-cloud-consul
684
defect
47065733d2a8e342adb2325e16c6240c4d11635f
74bddce320076b63d5ca309a60c3d379d25ada34
Adds support for multiple default query tags
### Summary Adds support for multiple default query tags and deprecates other unused related properties. Workaround for gh-682 ### Details This code proposal is based on [option #2](https://github.com/spring-cloud/spring-cloud-consul/issues/682#issue-739940435) from the related issue: > 2. Set the spring.cloud...
diff --git a/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/discovery/ConsulDiscoveryClient.java b/spring-cloud-consul-discovery/src/main/java/org/springframework/cloud/consul/discovery/ConsulDiscoveryClient.java index 9f1c5e8f3..f88d300ca 100644 --- a/spring-cloud-consul-discovery/src/mai...
4
3
1
[{"id": "G0", "claim": "The deprecated `serverListQueryTags`/`defaultQueryTag` properties and accessor are not marked as deprecated the way Spring Cloud expects (no `@deprecated` javadoc tag or link to the new property), and the author asks what the proper way to deprecate config props here is.", "category": "documenta...
null
spring-cloud__spring-cloud-consul__690
spring-cloud/spring-cloud-consul
690
defect
66ce205a7f561749c9e36e8b76aa8e8ed66c8cf4
2e449a07ad1fd3b960333e36ca785e29f068de7b
TTL check uses actuator for application status
#### Summary Adds support for the TTL check to take into account the current application health status. #### How does it get the app status? If the consuming application is a Spring Boot Actuator application with its health endpoint enabled/available then the TTL check will use that to determine system health. Oth...
diff --git a/docs/src/main/asciidoc/_configprops.adoc b/docs/src/main/asciidoc/_configprops.adoc index 75a732dfa..ddb6657ed 100644 --- a/docs/src/main/asciidoc/_configprops.adoc +++ b/docs/src/main/asciidoc/_configprops.adoc @@ -31,9 +31,11 @@ |spring.cloud.consul.discovery.health-check-timeout | | Timeout for health...
2
2
1
[{"id": "G0", "claim": "In the actuator-health-group docs row, backticks should be put around `null` to render it in code font and \"via\" should be changed to \"through the\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the use-actuator-hea...
null
spring-cloud__spring-cloud-consul__691
spring-cloud/spring-cloud-consul
691
defect
66ce205a7f561749c9e36e8b76aa8e8ed66c8cf4
8f4f90c44f2b611dac7d0ced3896530713207117
Add option for re-registration when ephemeral Consul is restarted
Fixes gh-197 . I haven't updated the doc as TTL is not yet documented.
diff --git a/docs/src/main/asciidoc/_configprops.adoc b/docs/src/main/asciidoc/_configprops.adoc index 75a732dfa..096d72d6a 100644 --- a/docs/src/main/asciidoc/_configprops.adoc +++ b/docs/src/main/asciidoc/_configprops.adoc @@ -33,7 +33,8 @@ |spring.cloud.consul.discovery.health-check-url | | Custom health check url...
5
5
2
[{"id": "G0", "claim": "Rename the new configuration property (field and getter) and its documented key to use 'reregister' rather than 'reRegister'/'re-register'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the new ReRegistrationPredica...
null
spring-cloud__spring-cloud-consul__744
spring-cloud/spring-cloud-consul
744
defect
24fa6e5274ed3b631800dec5d64471770d734241
b1bc620f4e47941d1776123a241b35cd4b11ae15
Remove extra / character at the beginning of the context
Fixes #730
diff --git a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulPropertySource.java b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulPropertySource.java index 983c931b5..b1737f797 100644 --- a/spring-cloud-consul-config/src/main/java/org/spring...
1
1
1
[{"id": "G0", "claim": "A unit test should be provided for the added context-slash-stripping behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-contract__1446
spring-cloud/spring-cloud-contract
1,446
defect
13c7d477fbbc856b319600874a11aabcef283df7
a545cc17a5e04e0cee5668e856ea384e6d4c6fd7
bug: handle xml with namespaces for validations #1427
This PR updates all places where xpath is used to be able to handle xml with name spaces.
diff --git a/spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/builder/XmlBodyVerificationBuilder.java b/spring-cloud-contract-verifier/src/main/groovy/org/springframework/cloud/contract/verifier/builder/XmlBodyVerificationBuilder.java index 692726487e..f8d41dfed1 100644 --- a/s...
4
3
0
[{"id": "G0", "claim": "The new ContractVerifierUtilTest should use AssertJ assertions instead of JUnit assertions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new XmlBodyVerificationBuilderTest should use AssertJ instead of JUnit assertions.", "...
null
spring-cloud__spring-cloud-contract__1558
spring-cloud/spring-cloud-contract
1,558
defect
6b3b228fc22724e309ecfc6c8a8b4c49b1fb909f
fcfbfebf8a9194e246447f5867512690c189d98d
Attempt to keep Kotlin totally off the classpath
This addresses the broken Kotlin support by keeping all things sc-contract in a totally isolated classloader (via process forking). This is the same pattern employed by the Kotlin plugin when attempting to perform Kotlin compilation (albeit much easier in our case).
diff --git a/spring-cloud-contract-tools/spring-cloud-contract-converters/src/main/java/org/springframework/cloud/contract/verifier/converter/RecursiveFilesConverterApplication.java b/spring-cloud-contract-tools/spring-cloud-contract-converters/src/main/java/org/springframework/cloud/contract/verifier/converter/Recursi...
9
5
3
[{"id": "G0", "claim": "The proper Apache license header needs to be added to each new file, starting with VersionExtractor.java.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding the sc-contract-converters dependency to a configuration in the...
null
spring-cloud__spring-cloud-contract__1611
spring-cloud/spring-cloud-contract
1,611
defect
d00880cd22570328a7e76edad9e8cebac4003439
2c8f723158fec36af8d5efbb3df739da16e435f6
Searches enclosing class for @AutoConfigureWiremock
Allows @Nested tests to use Wiremock by searching enclosing class for @AutoConfigureWiremock Fixes gh-1610
diff --git a/spring-cloud-contract-wiremock/src/main/java/org/springframework/cloud/contract/wiremock/WireMockTestExecutionListener.java b/spring-cloud-contract-wiremock/src/main/java/org/springframework/cloud/contract/wiremock/WireMockTestExecutionListener.java index 4f69dcd628..912a6eb8d3 100644 --- a/spring-cloud-co...
1
1
1
[{"id": "G0", "claim": "Use the supported TestContextAnnotationUtils API (which honors @NestedTestConfiguration semantics) instead of MergedAnnotations.SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES, which is effectively broken and unsupported.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
spring-cloud__spring-cloud-contract__218
spring-cloud/spring-cloud-contract
218
defect
5db234dc0f40c7d1128dc6872f4c7ac329cec826
16b2f4d0455218a20bfbf5ac2883fdc0e18d7c0b
Fixed unnecessary slash
without this change the pattern for stubs contains an unnecessary / which corrupts the location search (e.g. /_files is converted to //_files and there is no such path) with this change we're removing that value fixes #216
diff --git a/spring-cloud-contract-wiremock/src/main/java/org/springframework/cloud/contract/wiremock/WireMockConfiguration.java b/spring-cloud-contract-wiremock/src/main/java/org/springframework/cloud/contract/wiremock/WireMockConfiguration.java index 00619480d5..0bc31fc3be 100644 --- a/spring-cloud-contract-wiremock/...
1
1
1
[{"id": "G0", "claim": "In registerStubs, where '**/*.json' is appended, the '/' should be (probably OK to be) added, because removing the slash-adding leaves stubs locations specified without a trailing slash or without '*.json' unable to pick up their mapping .json files.", "category": "correctness", "verdict": "supp...
null
spring-cloud__spring-cloud-contract__238
spring-cloud/spring-cloud-contract
238
defect
7340f2893d936f696eec558b848e88fb92f53194
b51da9430abd4e5d20e1aae2a84e04e0c7ea671f
Referencing request from response
The best situation is to provide fixed values but sometimes you need to reference a request in your response. In order to do this you can profit from the `fromRequest()` method that allows you to reference a bunch of elements from the HTTP request. You can use the following options: - `fromRequest().url()` - return ...
diff --git a/README.adoc b/README.adoc index 94d6ca3ec1..a88022179c 100644 --- a/README.adoc +++ b/README.adoc @@ -256,7 +256,7 @@ public class ApplicationTests { public void contextLoads() throws Exception { mockMvc.perform(post("/resource") .content("{\"id\":\"123456\",\"message\":\"Hello World\...
3
2
0
[{"id": "G0", "claim": "It would be nice if the response body in the generated WireMock stub had nicer formatting instead of being a single escaped string.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc for the nth-value header accessors (Contr...
null
spring-cloud__spring-cloud-contract__607
spring-cloud/spring-cloud-contract
607
defect
7652bcff4852ea71ecb807f19cbee1e35b576f31
c740f8b3dd97807f4e182035a43f40fa5fab72b2
Cookie Support on Contract DSL
Hello, This is the PR for #603 The PR is opened because I need help, particularly on the stub-runner part. Any pointer to where can I start working on verifier would be greatly appreciated. This is an incomplete PR, and I will keep updating it while working and fixing required changes. Thank you very much....
diff --git a/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/ContractTemplate.groovy b/spring-cloud-contract-spec/src/main/groovy/org/springframework/cloud/contract/spec/ContractTemplate.groovy index 86a6ab914b..47aa1c269c 100644 --- a/spring-cloud-contract-spec/src/main/groovy/org/sp...
5
4
2
[{"id": "G0", "claim": "The @since version in the new Cookie and Cookies class Javadoc should say 1.2.5 instead of 1.3.8.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new cookie tests should run SyntaxChecker.tryToCompile on the generated co...
null
spring-cloud__spring-cloud-gateway__1095
spring-cloud/spring-cloud-gateway
1,095
defect
6b13f8c1b3f0ab1a0a30d419b8b1691314180f1b
3044183cd0d313f5ebbec6613c73976b2cc67f42
Adds ability to cache body without converting to bytes
Creates new Cache filter that is activated with retry filter is used. Other filters can opt into caching if needed. Fixes gh-982 Fixes gh-1064 /cc @smaldini @dave-fl
diff --git a/pom.xml b/pom.xml index 72b8c51fc..be6e4b30b 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ <parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-build</artifactId> - <version>2.1.4.BUILD-SNAPSHOT</version> + <version>2.1.6.BUILD-SNAPSHOT</version> <relativePath/...
3
1
0
[{"id": "G0", "claim": "The always-on `httpClient.wiretap(true)` call added to the auto-configured HttpClient is unexplained debug-only code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ModifyRequestBodyGatewayFilter...
null
spring-cloud__spring-cloud-gateway__1396
spring-cloud/spring-cloud-gateway
1,396
defect
65b10e62a9221e79f727edd9430852c752eeab6b
6359c45ab57d05a39bfc26040b270b2ac46450e7
Add A Filter The Uses Spring Cloud CircuitBreaker
Fixes #1045
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index e238f4348..609f35211 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -465,6 +465,11 @@ The DedupeResponseHeader filter also accep...
3
2
0
[{"id": "G0", "claim": "Asks whether the pull request will also add Spring Cloud CircuitBreaker support for Sentinel alongside Hystrix and Resilience4J.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Requests camel-casing the paths in the circuit breaker...
null
spring-cloud__spring-cloud-gateway__1423
spring-cloud/spring-cloud-gateway
1,423
defect
4bea4149a962a0127d44deea4bf6f7040d8b6d0d
88d6f8b0f2d0e7c9d4b66e0b191b184e6751215f
Added BlockHound integration
/cc @bsideup Fixes https://github.com/spring-cloud/spring-cloud-gateway/issues/850
diff --git a/pom.xml b/pom.xml index 232cdee55..2632ae4e8 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,7 @@ <spring-cloud-netflix.version>2.2.0.BUILD-SNAPSHOT</spring-cloud-netflix.version> <spring-cloud-circuitbreaker.version>1.0.0.BUILD-SNAPSHOT</spring-cloud-circuitbreaker.version> <embedded-redis.versio...
4
4
3
[{"id": "G0", "claim": "The PR should add a dummy test that verifies the integration works and expects an exception to be thrown, otherwise a dependency update may silently break the blocking detection while the code looks 100% blocking-free.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "...
null
spring-cloud__spring-cloud-gateway__1468
spring-cloud/spring-cloud-gateway
1,468
defect
c8df400f01514f9e23a6c6115add576025ec56fe
34ea963f774fb0d6b7962466fb1764a54ef1abbe
Fixed Duplicate Host Header Issue
This change fixes the issue where a duplicate *Host* header is added when **PreserveHostHeader** is used See also: https://github.com/spring-cloud/spring-cloud-gateway/pull/1464
diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/NettyRoutingFilter.java index 72c885d4c..e9c285a65 100644 --- a/spring-cloud-gateway-core/src/main/java/org/springframe...
1
1
0
[{"id": "G0", "claim": "Changing the test's URI from /headers to /multivalueheaders may break someone else's application because the endpoints behave differently, so the author should verify that both endpoints work in this test method.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introd...
null
spring-cloud__spring-cloud-gateway__1489
spring-cloud/spring-cloud-gateway
1,489
defect
259d4bd8add36bc5a8e5f3891d5e0492fcfb1270
0732b51d104fe8a25ed6873ee2e434a1f52b5864
Remove routed attribute when executing fallbacks in circuit breakers
Fixes #1421
diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/HystrixGatewayFilterFactory.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/HystrixGatewayFilterFactory.java index 4fff80f27..9a25cb62b 100644 --- a/spring-cloud-gateway-...
1
1
0
[{"id": "G0", "claim": "The already-routed attribute removal added for Hystrix (and circuit breaker) fallbacks duplicates what the Retry filter does, and the duplicated logic should at some point be consolidated into a shared utility method, though the reviewer notes this is not needed for this PR.", "category": "maint...
null
spring-cloud__spring-cloud-gateway__1602
spring-cloud/spring-cloud-gateway
1,602
defect
98287d530a8dd48690af67f86ed37e3d1020f3dc
486e3f02c0ce5f33130dc7a2f48d78ab0b1f9d26
Cache the success routes until next successful refresh.
Fixes #600
diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/event/RefreshRoutesResultEvent.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/event/RefreshRoutesResultEvent.java new file mode 100644 index 000000000..bdb5cf6b9 --- /dev/null +++ b/spring-cloud-gate...
2
2
1
[{"id": "G0", "claim": "The RefreshRoutesResult enum and result field are unnecessary; a boolean isSuccess() that checks the throwable is not null would suffice.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Wrap the log.error() call in handleRefreshErr...
null
spring-cloud__spring-cloud-gateway__180
spring-cloud/spring-cloud-gateway
180
defect
1d4b95fcefeed4790bd9bad52933118863ba6419
560cb809493b14b5f71c4127dd5d166b893d862f
Strip Prefix Filter Implementation
Fixes #122
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index 4e01889c3..d6a3ef4e1 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -614,7 +614,25 @@ spring: - SetStatus=401 ---- -...
3
3
3
[{"id": "G0", "claim": "The pull request accidentally removed the documentation sentence 'In either case, the HTTP status of the response will be set to 401.' from the SetStatus section of spring-cloud-gateway.adoc.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
spring-cloud__spring-cloud-gateway__2742
spring-cloud/spring-cloud-gateway
2,742
defect
8bd257710ad965f2dc03702cd67809c106a98cab
737e04981c6541aee332049b309fb5508eb86a6d
Add remove json attributes filter
This new filter takes a collection of attribute names to search for to remove from a JSON response, an optional last parameter from the list can be a boolean to remove the attributes just at root level (`false`, default value) or recursively (`true`). This was driven by customer feature for SCG-K8s, so we're open to...
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index df1652837..6af0d5b54 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -1071,6 +1071,51 @@ spring: This will send a status 302 w...
3
2
2
[{"id": "G0", "claim": "The filter should not create a new `ObjectMapper` on every request.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Java DSL method should take the recursive flag as a boolean parameter in an overload instead of relying on...
null
spring-cloud__spring-cloud-gateway__3147
spring-cloud/spring-cloud-gateway
3,147
defect
cba61f7b94bb9ea0e9c1bb3b929a4be8fd1327bc
f782783f3c4e5555973509249fe08a5c590f3093
(4.0.x) Enhance "/actuator/gateway" endpoint
Solves: https://github.com/spring-cloud/spring-cloud-gateway/issues/3128
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index f7ce13cc6..d0ef4e5df 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -2787,6 +2787,50 @@ management.endpoints.web.exposure.includ...
3
3
1
[{"id": "G0", "claim": "Don't instantiate a new SimpleMetadataReaderFactory on every call of getAvailableEndpointsForClass; reuse one instance.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ENDPOINT_PREFIX hardcodes \"/actuator\" as the actuator ba...
null
spring-cloud__spring-cloud-gateway__3163
spring-cloud/spring-cloud-gateway
3,163
defect
cba61f7b94bb9ea0e9c1bb3b929a4be8fd1327bc
84c351a864822182090c9f0455531e7b57cd034a
(4.0.x) Enhance "/actuator/gateway" endpoint
To replace #3147, since I do not have access to Marta's repo Solves: https://github.com/spring-cloud/spring-cloud-gateway/issues/3128
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index f7ce13cc6..d0ef4e5df 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -2787,6 +2787,50 @@ management.endpoints.web.exposure.includ...
1
1
1
[{"id": "G0", "claim": "Deprecate the old AbstractGatewayControllerEndpoint constructor and create a new one taking WebEndpointProperties, so the pull request does not introduce breaking changes to the constructor signature.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-gateway__350
spring-cloud/spring-cloud-gateway
350
defect
75d13a58fcf4b8975d0b1272c038d735174ce5f6
9add9f01dbe4eb5e8ec1883531fd97304b52a053
Adds support for non-blocking route predicates.
It does so by using a new AsyncPredicate<T> interface, which extends java.util.function.Function<T, Publisher<Boolean>> which is the signature required by the reactor filterWhen() method. Simple filters can still code to the java.util.function.Predicate interface, a default method will delegate. fixes gh-349 /...
diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/handler/AsyncPredicate.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/handler/AsyncPredicate.java new file mode 100644 index 000000000..669e60dc3 --- /dev/null +++ b/spring-cloud-gateway-core/src/mai...
2
2
0
[{"id": "G0", "claim": "The `and()` implementation should use `.map(tuple -> tuple.getT1() && tuple.getT2())` instead of `.flatMap(tuple -> Mono.just(...))`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `or()` implementation should likewise use `.m...
null
spring-cloud__spring-cloud-gateway__3751
spring-cloud/spring-cloud-gateway
3,751
defect
03dcf23e55214fce07d951abcfc33a999e0cfc34
441e920b6e2e62d0ec967d431ed6e1b682dc5f9f
Support token relay clientRegistrationId on properties
Support token relay clientRegistrationId on properties The current code supports clientRegistrationId via Java filter. Just added Shorcut annotation and update docs. Thank you
diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway-server-webmvc/filters/tokenrelay.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway-server-webmvc/filters/tokenrelay.adoc index 086bd3eb0..ae9756626 100644 --- a/docs/modules/ROOT/pages/spring-cloud-gateway-server-webmvc/filters/tokenrelay.adoc +++ b/docs/modul...
4
4
1
[{"id": "G0", "claim": "The PR should add a test confirming that the token relay filter now works when configured with a clientRegistrationId through properties.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The jetbrains (org.jetbrains.annotations) No...
null
spring-cloud__spring-cloud-gateway__3761
spring-cloud/spring-cloud-gateway
3,761
defect
ec07cb85798a0bb48a9a6164bd3c024add865c50
c6ed8455579fd64ec15b9f56da6ec38f029531cb
Support dynamic paths in route URI using SetRequestUri filter
## Background Spring Cloud Gateway does not support dynamic path segments directly in the uri field of a route. This limitation makes it challenging to forward requests to upstream services whose hostnames or paths depend on request parameters (e.g. a path variable like {appId}). ## What’s Changed This PR introduc...
diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/seturi-factory.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/seturi-factory.adoc new file mode 100644 index 000000000..2251d13b0 --- /dev/null +++ b/docs/modules/ROOT/pages/sprin...
1
1
0
[{"id": "G0", "claim": "In determineRequestUri, throwing IllegalArgumentException for a non-absolute URI and immediately catching it in the same method only to log and return an empty Optional is unnecessary; the reviewer asks to log the info and return directly instead.", "category": "maintainability", "verdict": "sup...
null
spring-cloud__spring-cloud-gateway__3763
spring-cloud/spring-cloud-gateway
3,763
defect
ec07cb85798a0bb48a9a6164bd3c024add865c50
a3155ecc8b20a2a62f7fc2f17ebdf4ae47eedff4
Allow bean registration of server-webmcv components
This replaces the `spring.factories` mechanism. - [X] HandlerFunctions - [X] Predicates - [X] Filters - [X] Add documentation - [X] Fix AOT Fixes gh-3250
diff --git a/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/GatewayServerMvcAutoConfiguration.java b/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/GatewayServerMvcAutoConfiguration.java index dabf7d2df..dfdbd1bcd 100644 --- a/sprin...
1
1
1
[{"id": "G0", "claim": "LoadBalancerHandlerSupplier.class is commented out in the AOT FUNCTION_PROVIDERS set, and the reviewer asks why it was excluded.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
spring-cloud__spring-cloud-gateway__3930
spring-cloud/spring-cloud-gateway
3,930
defect
b95985f4eaa8ec24824eea8e1d6b23ef137bb6ca
cd4f6ce0b7fe500f3f6a3915014b6b612ff35ce0
Fix incorrect handling of url-encoded parameters in FormFilter
Fix #3929
diff --git a/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MvcUtils.java b/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MvcUtils.java index 9a45c79ef..0577059fb 100644 --- a/spring-cloud-gateway-server-mvc/src/main/...
3
3
0
[{"id": "G0", "claim": "Instead of introducing a separate MvcUtils.decodeQueryParams() method, the decoding should be performed directly on the query string (e.g. UriUtils.decode(request.getQueryString())) without adding a new utility method.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "i...
null
spring-cloud__spring-cloud-gateway__4005
spring-cloud/spring-cloud-gateway
4,005
defect
87693401fecce4c2f93ad60212667c53350c9109
e3b817292ba882a99defd09e54514331c1bdf30a
Support epoch millisecond values for datetime predicates in WebMVC
## Motivation WebMVC predicates previously accepted only ISO-8601 timestamps, limiting usability for configurations that rely on epoch values (common in distributed systems and machine-generated configs). This PR enhances the developer experience and aligns WebMVC predicate behavior with the more flexible usa...
diff --git a/spring-cloud-gateway-server-webmvc/src/main/java/org/springframework/cloud/gateway/server/mvc/config/RouterFunctionHolderFactory.java b/spring-cloud-gateway-server-webmvc/src/main/java/org/springframework/cloud/gateway/server/mvc/config/RouterFunctionHolderFactory.java index e788f363b..a7fee0981 100644 ---...
2
2
1
[{"id": "G0", "claim": "The pull request must not remove the public no-argument constructor of ConversionServiceParameterValueMapper, since a public constructor cannot be removed in a patch/minor release.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do...
null
spring-cloud__spring-cloud-gateway__401
spring-cloud/spring-cloud-gateway
401
defect
e9ea2b6297f04e8320e4de1bcd123eb1df6162c0
9d26aba7133d5045d9055f269723fc776f903e16
Support CORS configuration
Provides CORS support for https://github.com/spring-cloud/spring-cloud-gateway/issues/229 This is the global support. We should also add support per API route.
diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/config/GatewayAutoConfiguration.java index 1317550a7..e61b79f7d 100644 --- a/spring-cloud-gateway-core/src/main/java/org...
3
2
1
[{"id": "G0", "claim": "Some of the new code uses spaces where the project style uses tabs (spaces vs. tabs formatting).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request is missing documentation for the new global CORS configurati...
null
spring-cloud__spring-cloud-gateway__4020
spring-cloud/spring-cloud-gateway
4,020
defect
9689187b34ac392d438040351ddb90fdbe823d82
8add9df817e01cf4b9b1ad130b7730fcf67b0052
Prevent loadbalancer filter to wrap exception into RuntimeException
## Current behavior - In order to allow loadbalancer lifecycle processors to handle failed requests, the `lb` filter catches any `Exception` thrown from subsequent filters. After processing, the exception is rethrown but wrapped into a `RuntimeException` - This wrap is (I suppose) originally due to usage of lambda, w...
diff --git a/spring-cloud-gateway-server-webmvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/LoadBalancerFilterFunctions.java b/spring-cloud-gateway-server-webmvc/src/main/java/org/springframework/cloud/gateway/server/mvc/filter/LoadBalancerFilterFunctions.java index 30cf1fcb1..fd6317f12 100644 ---...
2
2
0
[{"id": "G0", "claim": "The test's throwingExceptionFilter should be expressed as a lambda instead of an anonymous HandlerFilterFunction, since filter(...) may throw Exception anyway, to match the style used throughout the test class and keep the bean definition shorter.", "category": "maintainability", "verdict": "sup...
null
spring-cloud__spring-cloud-gateway__4072
spring-cloud/spring-cloud-gateway
4,072
defect
8cadb3bb78affc360d366e650b11930d049f03f9
f385ed21cb6de5fe213876e5795bb57ebffbfc7f
Add Exception on Limit Exceed Switch to RequestRateLimiterGatewayFilterFactory
### Description: This PR introduces a new optional switch to `RequestRateLimiterGatewayFilterFactory` that allows throwing an exception when the configured rate limit is exceeded. When the switch is enabled, the filter will propagate an exception instead of handling the response internally. This gives users full co...
diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/requestratelimiter-factory.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/requestratelimiter-factory.adoc index 9f7126880..00fddfbb3 100644 --- a/docs/modules/ROOT/pages/spring-cl...
8
7
3
[{"id": "G0", "claim": "The pull request adds the new throwOnLimit configuration option without any tests, and tests should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds the new throwOnLimit configuration option without ...
null
spring-cloud__spring-cloud-gateway__426
spring-cloud/spring-cloud-gateway
426
defect
c343b0ceec13e8df605c69b01364b56cd891c85f
930e55ab4a3c68c3c35f1a805959320684f4f01a
RequestSizeFilter added
This Pull request is the review comment integrated of following pull request: https://github.com/spring-cloud/spring-cloud-gateway/pull/376/
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index 2d02210bf..14eb1eaa1 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -775,6 +775,30 @@ spring: NOTE: At this time a URI using ...
4
4
1
[{"id": "G0", "claim": "Documentation should be added for the new RequestSize filter, which the pull request ships without any.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A space is missing after the period in the request-size error message te...
null
spring-cloud__spring-cloud-gateway__441
spring-cloud/spring-cloud-gateway
441
defect
28166054c4e6c16d8eb24874315b72ef5b50d85f
23800cbd5c01818f0f4692836792ccf92cc8800c
ForwardedHeadersFilter causes a broken http header (fixes #440)
Fixes a small bug in the ForwardedHeadersFilter which causes a broken http header, if a Forwarded header has already been set.
diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index 73a145cbc..0621df6e8 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -990,7 +990,7 @@ public class PostGatewayFilterFactory exten...
1
1
0
[{"id": "G0", "claim": "The test file's imports are not ordered per the project convention because static imports should be last, and the IDE settings files listed in the contributing guidelines should be used to apply the correct formatting.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "in...
null
spring-cloud__spring-cloud-kubernetes__1081
spring-cloud/spring-cloud-kubernetes
1,081
defect
3f0058f14005631d23331d5ca28bf23da74b1ad4
77c87fb9323bcb0d72b94a163e59d1fb2e3b92a5
Add possibility to disable configmap creation
As configmaps are sometimes managed by different parties (in our case it is a Helmchart that takes care of creating and destroying configmaps), it would be helpful to have a possibility to disable leader configmap creation on the library's side.
diff --git a/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/leader/LeaderProperties.java b/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/leader/LeaderProperties.java index e66ebe53fb..f135246154 100644 --- a/spring-cloud-kubernetes...
2
2
1
[{"id": "G0", "claim": "The pull request should include a test covering the new configmap-creation disable behavior.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Some documentation about the new create-config-map property should be added.", "category"...
null
spring-cloud__spring-cloud-kubernetes__1151
spring-cloud/spring-cloud-kubernetes
1,151
defect
fa013d31803537b094e226f17e139d2d98c56907
61d72130ee40a41fdda14032d4e1d6dfa4e19a25
added support for secured k8s service annotations and labels (v. 2.1.x)
This change allow to read "secured" annotation/label from k8s service definition in order to accomplish https communication between pods. (v 2.1.X) See https://github.com/spring-cloud/spring-cloud-kubernetes/issues/1141
diff --git a/spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesInformerDiscoveryClient.java b/spring-cloud-kubernetes-client-discovery/src/main/java/org/springframework/cloud/kubernetes/client/discovery/KubernetesInformerDiscoveryClient.java index 9f1...
1
1
1
[{"id": "G0", "claim": "The secured flag is read from svcMetadata, which is only populated when the user enables the addLabels/addAnnotations metadata properties, so the code should check the service's labels and annotations directly instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
spring-cloud__spring-cloud-kubernetes__1291
spring-cloud/spring-cloud-kubernetes
1,291
defect
8686dc0f8b84a18df9ea51944a564dcafeb9d1f8
4599cbc4fcde1a4c8972020ae2fe4b4779ea508f
Fix properties retrieval order from configmaps
The properties defined by the configmap "application" should be the last in the environment list, so you can always override the properties values by profile and by application
diff --git a/spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/src/main/java/org/springframework/cloud/kubernetes/configserver/KubernetesEnvironmentRepository.java b/spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/src/main/java/org/springframework/cloud/kubernetes/configs...
2
2
1
[{"id": "G0", "claim": "Some tests would be nice to have for this change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test should explicitly assert the order of property sources (application configmap last), not only presence.", "category": "...
null
spring-cloud__spring-cloud-kubernetes__142
spring-cloud/spring-cloud-kubernetes
142
defect
98d4b88fa7f30894e12b72cc48288dde976a868f
5ec147cc4b1e5832efa61e0c3b1bbc9c02cd4504
Allow ConfigMaps to be parsed from mounted volume paths, like Secrets
Allows making ConfigMaps available as spring properties from Kubernetes volumes, just like is currently possible with Secrets. This allows using ConfigMaps without resorting to environment variables or enabling extra permissions for service accounts. Seems this would offer a workaround/solution for #141, probably #138,...
diff --git a/README.md b/README.md index 8eab589182..b916dde9a1 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,9 @@ spec: | spring.cloud.kubernetes.config.enabled | Boolean | true | Enable Secrets PropertySource | spring.cloud.kubernetes.config.name | String | ${spring.application...
1
1
0
[{"id": "G0", "claim": "Remove the apache commons-io reference from the test and use FileSystemUtils from Spring instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-cloud__spring-cloud-kubernetes__154
spring-cloud/spring-cloud-kubernetes
154
defect
7507e75b438a435700e7d29774e8bc3e5e8f7528
34e8e7d0f09b94c1990f62cda8bc43056e989825
KubernetesCatalogWatch
#150 and [https://github.com/codecentric/spring-boot-admin/issues/643](https://github.com/codecentric/spring-boot-admin/issues/643) Publish HeartbeatEvent if services list changed. Inspired by ConsulCatalogWatch.java
diff --git a/spring-cloud-kubernetes-discovery/pom.xml b/spring-cloud-kubernetes-discovery/pom.xml index c2f2dd12d4..aaea904a5b 100644 --- a/spring-cloud-kubernetes-discovery/pom.xml +++ b/spring-cloud-kubernetes-discovery/pom.xml @@ -52,6 +52,13 @@ <optional>true</optional> </dependency> + <dependency> + <...
2
1
0
[{"id": "G0", "claim": "Lombok is not useful here since this pull request uses it in only one place, so it should be removed from KubernetesCatalogWatch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's branch has a failing test that ioc...
null
spring-cloud__spring-cloud-kubernetes__1600
spring-cloud/spring-cloud-kubernetes
1,600
defect
19fa6ab6d660cee6a9d2c06f532b0d741ec35bf3
bfc76c1e4bb845b3ba3863fd7b0dded28f949396
Config Server Controller Should Return All PropertySources
Some more details for some context... Assume we have this config map ``` apiVersion: v1 data: application-k8s.yml: |- spring: config: activate: on-profile: k8s account: message: "Welcome to EazyBank account related kubernetes APIs " contactDetails: ...
diff --git a/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/ConfigUtils.java b/spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/ConfigUtils.java index 60197c3964..b513130d63 100644 --- a/spring-cloud-kubernetes-commons/s...
2
2
0
[{"id": "G0", "claim": "In the config server the secrets property source supplier does not include profile-specific sources while the config map supplier does, so profile-specific secret configuration is not returned.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id"...
null
spring-cloud__spring-cloud-kubernetes__176
spring-cloud/spring-cloud-kubernetes
176
defect
867f2319270b60937d3a12f5204c1079ef8d1665
f920b8a285ab7db07961a1b33c49fbac7ac3529f
Allow the use of multiple configmaps as sources
This is sort of a generalization of what has been done in #162. It basically allows users to specify any number of ConfigMaps as property sources while following some sensible defaults It doesn't introduce any specific profile support, but I am confident that it can be added without much hassle based on the infrast...
diff --git a/README.md b/README.md index 2ccdfc2060..5d2d7c4bce 100644 --- a/README.md +++ b/README.md @@ -78,11 +78,45 @@ The [Spring Cloud Kubernetes Config](./spring-cloud-kubernetes-config) project m during application bootstrapping and triggers hot reloading of beans or Spring context when changes are detected on...
1
1
1
[{"id": "G0", "claim": "The overrideNameIfEmpty/overrideNamespaceIfMissing flags are misleading (sources inherit rather than override) and should be removed altogether, so that a source with no name or namespace just uses whatever spring.cloud.kubernetes.config name/namespace is configured.", "category": "design", "ver...
null
spring-cloud__spring-cloud-kubernetes__1873
spring-cloud/spring-cloud-kubernetes
1,873
defect
b5c8a61f7d93f592eba01debb38be0a39cfa311e
31a4fc1dcaec6ade73b7b0391b6a5d0dd7d13972
Kubernetes as a Composite config source
Enables Kubernets as a type in composite config source
diff --git a/pom.xml b/pom.xml index b9a9c852fc..851ba562aa 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0....
6
5
3
[{"id": "G0", "claim": "Revert the unnecessary pom.xml whitespace change so the pull request touches one less file, and sign off the commits (git commit -s) so the build passes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the redundant @...
null
spring-cloud__spring-cloud-kubernetes__2086
spring-cloud/spring-cloud-kubernetes
2,086
defect
720487d8fa76938e5fb8b93b5060723424d3c779
81743a4fcb8450a8ce6decbb0f0369d3d0875dcf
Add the ability to disable leader info contributor
Fixes #2085
diff --git a/docs/modules/ROOT/pages/leader-election.adoc b/docs/modules/ROOT/pages/leader-election.adoc index bc0d920a77..c343d3180c 100644 --- a/docs/modules/ROOT/pages/leader-election.adoc +++ b/docs/modules/ROOT/pages/leader-election.adoc @@ -25,3 +25,29 @@ To specify the name of the configmap used for leader elect...
2
1
0
[{"id": "G0", "claim": "The value of @ConditionalOnEnabledInfoContributor should be `leader` rather than `leaderelection`, since the new implementation will be called \"leader.election\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "It would make sense...
null
spring-cloud__spring-cloud-kubernetes__2224
spring-cloud/spring-cloud-kubernetes
2,224
defect
7157d699a523186fd15f41fae01a2277d1ee5673
b72e8c52314da63f54680136c1ea5be2ace13929
fixes label selector generation for Kubernetes client requests
This PR fixes label selector generation for Kubernetes client requests by centralizing labelSelector logic in KubernetesClientUtils and updating discovery/config code and tests accordingly.
diff --git a/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientUtils.java b/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientUtils.java index 3aa48e03d9..65b1261545 100644 --- a/spring-cl...
5
2
1
[{"id": "G0", "claim": "Discovery main code should not depend on the autoconfig module's KubernetesClientUtils (importing labelSelector), because that can create undesirable module layering/coupling and potential circular deps; labelSelector should be relocated to a shared lower-level module.", "category": "design", "v...
null
spring-cloud__spring-cloud-kubernetes__270
spring-cloud/spring-cloud-kubernetes
270
defect
0b8e1c9810c5dda991520d65ceab46b9ce0ebe1b
c89d864a67b6e5c9e3dcd58f72ab04c20324575a
Make the source of Service Metadata configurable
Make service metadata configurable, so that users can tune it however they see fit. Specifically we add: * Add flag to enable/disable addition of labels to metadata (default: true) * Add optional prefix to label keys (default none) * Add flag to enable/disable addition of annotation to metadata (default: true) ...
diff --git a/spring-cloud-kubernetes-discovery/src/main/java/org/springframework/cloud/kubernetes/discovery/KubernetesDiscoveryClient.java b/spring-cloud-kubernetes-discovery/src/main/java/org/springframework/cloud/kubernetes/discovery/KubernetesDiscoveryClient.java index 589a460f00..25410deede 100644 --- a/spring-clou...
4
3
2
[{"id": "G0", "claim": "The labelKeysPrefix and annotationKeysPrefix properties should default to null rather than the empty string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The empty-prefix guard in getMapWithPrefixedKeys should use StringUtils.ha...
null
spring-cloud__spring-cloud-kubernetes__286
spring-cloud/spring-cloud-kubernetes
286
defect
0483187eac4285a20c3ab7577eba60bb5b9332d7
db6ae30516f282755ff37b41ccb142e0b41cdfe6
#233 Initial Istio Awareness implementation
fixes #233 initial implementation This provides the Istio profile addition to your application that can be used to configure different components to behave differently when Istio is present.
diff --git a/docs/src/main/asciidoc/kubernetes-awareness.adoc b/docs/src/main/asciidoc/kubernetes-awareness.adoc index 27c3a075e5..c723cef099 100644 --- a/docs/src/main/asciidoc/kubernetes-awareness.adoc +++ b/docs/src/main/asciidoc/kubernetes-awareness.adoc @@ -1,11 +1,11 @@ -== Kubernetes Awareness +== Kubernetes Eco...
9
6
4
[{"id": "G0", "claim": "The Envoy port and stats path hardcoded in the istio check should be configurable, since some Istio installations will not use these defaults (localhost itself should stay fixed).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
spring-cloud__spring-cloud-kubernetes__295
spring-cloud/spring-cloud-kubernetes
295
defect
ad155a60d2ffd69ee2be0c44b83bd810394fdb05
fff0d79b3f88cb623ac0040d1d1dd22b471dfb23
Add InfoContributor reporting pod details
Resolves #128. This initial implementation is a clone of the Health indicator details. Happy to make changes or augment with anything else that might be useful.
diff --git a/spring-cloud-kubernetes-core/src/main/java/org/springframework/cloud/kubernetes/KubernetesAutoConfiguration.java b/spring-cloud-kubernetes-core/src/main/java/org/springframework/cloud/kubernetes/KubernetesAutoConfiguration.java index a067987759..10c63bf7d6 100644 --- a/spring-cloud-kubernetes-core/src/main...
1
1
0
[{"id": "G0", "claim": "The new InfoContributorTest.java file is missing the standard Apache copyright header.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
spring-cloud__spring-cloud-kubernetes__434
spring-cloud/spring-cloud-kubernetes
434
defect
3ad864127b8acb6ca2793cb8e037e83bc091dc30
44ea1f12ae2d4fd255e783d4f9e9b6c496f299d4
Extracted catalog watch auto-configuration.
Needed in order to have that bean running in the correct application context when SC Config discovery is enabled. Also fixes a bug where Kubernetes discovery was enabled when discovery was disabled with `spring.cloud.kubernetes.enabled=false`. Relates to spring-cloud/spring-cloud-config#1229
diff --git a/docs/src/main/asciidoc/discovery-client.adoc b/docs/src/main/asciidoc/discovery-client.adoc index 2d0bead0c2..39331d5bcd 100644 --- a/docs/src/main/asciidoc/discovery-client.adoc +++ b/docs/src/main/asciidoc/discovery-client.adoc @@ -55,7 +55,3 @@ spring.cloud.kubernetes.discovery.enabled=false Some Spr...
3
3
2
[{"id": "G0", "claim": "The documentation telling users to add @EnableScheduling to enable the catalog watch should be kept, not silently removed.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new auto-configuration should not add @EnableSche...
null
spring-cloud__spring-cloud-kubernetes__468
spring-cloud/spring-cloud-kubernetes
468
defect
3504cb7ba88985ef358514e16e44e61b30107102
2c91618f65fa78a783463a548b941e423886e010
merge 1.0.x and fix tests
@ryanjbaxter appreciate it if you can review versions in the poms that are all in order after merging conflicts on them were resolved.
diff --git a/spring-cloud-kubernetes-discovery/src/main/java/org/springframework/cloud/kubernetes/discovery/EndpointSubsetNS.java b/spring-cloud-kubernetes-discovery/src/main/java/org/springframework/cloud/kubernetes/discovery/EndpointSubsetNS.java new file mode 100644 index 0000000000..e9799622b8 --- /dev/null +++ b/s...
1
1
1
[{"id": "G0", "claim": "The merge conflict markers left in the name-service pom.xml (and in the istio pom.xml below) should be resolved, keeping the 1.1.0.BUILD-SNAPSHOT version.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
spring-cloud__spring-cloud-kubernetes__561
spring-cloud/spring-cloud-kubernetes
561
defect
5b9723accd8b7e7f65654ebac2a4dfd005fb08eb
4c754f8d9a78af0030afdcf8d2ee7b16ca436ae3
upgrade to junit 5
In the newest version some tests based on JUnit4 does not work. I fixed it by adding JUnit5 support for spring-cloud-kubernetes-leader module, and by adding junit-vintage-engine to spring-cloud-kubernetes-examples module since Arquillian Cube does not support JUnit5
diff --git a/spring-cloud-kubernetes-examples/kubernetes-leader-election-example/pom.xml b/spring-cloud-kubernetes-examples/kubernetes-leader-election-example/pom.xml index 9e05eb536a..bfc041c008 100644 --- a/spring-cloud-kubernetes-examples/kubernetes-leader-election-example/pom.xml +++ b/spring-cloud-kubernetes-examp...
3
1
1
[{"id": "G0", "claim": "The maven-surefire-plugin (and failsafe) version pin added in the kubernetes-leader-election-example pom should be done in spring-cloud-build rather than hardcoded in the example pom.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
spring-cloud__spring-cloud-kubernetes__599
spring-cloud/spring-cloud-kubernetes
599
defect
06f4b217b189ed06537658ec0c813c7a5be578fa
6f9190164d046fbc0441965834e7cffba6b6483b
toggling k8s configuration with a relevant property fixes gh-585
To enable or disable only the k8s configuration feature it's expected to use the relevant property `spring.cloud.kubernetes.config.enabled=true/false`, without a need to disable Kubernetes itself using property 'spring.cloud.kubernetes.enabled`. With this modification, it's possible to disable only the configuration fe...
diff --git a/.gitignore b/.gitignore index 6ac078faf6..d621e19f71 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ hs_err_pid* # IntelliJ /out/ +.DS_Store # mpeltonen/sbt-idea plugin .idea_modules/ diff --git a/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/re...
2
2
2
[{"id": "G0", "claim": "The class-level @ConditionalOnProperty should check both spring.cloud.kubernetes.enabled and spring.cloud.kubernetes.config.enabled, so the configuration is off when either the whole kubernetes integration or config is disabled.", "category": "correctness", "verdict": "supported", "priority": "P...
null
spring-cloud__spring-cloud-kubernetes__639
spring-cloud/spring-cloud-kubernetes
639
defect
ca8b89bf38a2207dc0543c04c5589c7318ce56ff
1df20c63b688831cffbc22237728d35619a9264c
Issue #635 - Decouples configMap and secret property source locators by making the…
…m optional dependencies for reload auto config as they could be enabled/disabled through config independent of each other. Fixes #635 **Describe the bug** Attempting to configure spring-cloud-kubernetes-config to just add support for kubernetes configMaps. (and disable secrets and discovery client) However woul...
diff --git a/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/reload/ConfigReloadAutoConfiguration.java b/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/reload/ConfigReloadAutoConfiguration.java index 8b0d33e652..174157da79 100644 --- a/s...
4
4
1
[{"id": "G0", "claim": "The new kubernetesReloadEnabled test does not pass, although things appear to work in local testing, and the author asks for suggestions.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The @Autowired annotations on the propertyCh...
null