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
apolloconfig__apollo__4468
apolloconfig/apollo
4,468
defect
afad056ec7f81dc00eb33fa8094c45ca1915fe8a
50c5ed0682d1f5aee284144f1a3c3a414d55245c
feature(openapi): Add a new API to load items with pagination
## What's the purpose of this PR Add a new API to load items with pagination. ## Which issue(s) this PR fixes: Fixes #4320 Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide](https://github.com/ctripcorp/apollo/blob/master/CONTRIBUTING.md) ...
diff --git a/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ItemController.java b/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ItemController.java index 5988a66224a..eaebac3de53 100644 --- a/apollo-adminservice/src/main/java/com/ctrip/framewo...
6
6
3
[{"id": "G0", "claim": "The new GET mapping path \"/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/items/page\" conflicts with the existing ItemController#get mapping, so the PR should use a different path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
apolloconfig__apollo__4473
apolloconfig/apollo
4,473
defect
afad056ec7f81dc00eb33fa8094c45ca1915fe8a
e3eccdb490d727696d43e86562b58233b3981603
Optimize performance of '/apps/{appId}/envs/{env}/clusters/{clusterName}/namespaces' interface queries
## What's the purpose of this PR - As shown in the figure below, launching a 'findNamespaces' query will process each 'Namespace' in turn in the loop body, and when the 'Namespace ' is very large, e.g. up to 40, the total time taken is exaggerated to 7-8 seconds because of single-threaded serial execution. - Cha...
diff --git a/CHANGES.md b/CHANGES.md index 36552da5bf0..fef6c7aaf75 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,5 +17,6 @@ Apollo 2.1.0 * [Allow users to associate multiple public namespaces at a time](https://github.com/apolloconfig/apollo/pull/4437) * [Move apollo-demo, scripts/docker-quick-start and scripts/ap...
3
2
1
[{"id": "G0", "claim": "The new latch.await() waits indefinitely, so the reviewer asks whether it is better to use the timed overload CountDownLatch.await(long timeout, TimeUnit unit).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With the executor-based ...
null
apolloconfig__apollo__4568
apolloconfig/apollo
4,568
defect
0b2b05a5d94361c55874a57e86a8fdcdbbad5cf4
f07a3f369d5e820a0576770075aa606ad659f2b1
fix create namespace with single dot 500 error
## What's the purpose of this PR fix create namespace with single dot 500 error ## Which issue(s) this PR fixes: Fixes #4565 ## Brief changelog fix create namespace with single dot 500 error Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributi...
diff --git a/CHANGES.md b/CHANGES.md index 6fca4529e24..ca51e347a2b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -31,6 +31,7 @@ Apollo 2.1.0 * [add an option to custom oidc userDisplayName](https://github.com/apolloconfig/apollo/pull/4507) * [fix openapi item with url illegalKey 400 error](https://github.com/apollocon...
1
1
1
[{"id": "G0", "claim": "The pull request should add unit tests in InputValidatorTest covering the changed namespace validation behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apolloconfig__apollo__4596
apolloconfig/apollo
4,596
defect
301d66dcc28b2d698eefed3ecc9aa3273afb9ddf
96e7d94c700f6ed4798d0d62d8cb238646bea734
fix get the openapi interface that contains namespace information for deleted items
## What's the purpose of this PR fix get the openapi interface that contains namespace information for deleted items. ## Which issue(s) this PR fixes: Fixes #4593 ## Brief changelog fix get the openapi interface that contains namespace information for deleted items Follow this checklist to help us incorpo...
diff --git a/CHANGES.md b/CHANGES.md index c724a90626a..5d536ab5fb9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -31,6 +31,7 @@ Apollo 2.1.0 * [fix create namespace with single dot 500 error](https://github.com/apolloconfig/apollo/pull/4568) * [Add nodejs client sdk and fix doc](https://github.com/apolloconfig/apollo/...
5
5
2
[{"id": "G0", "claim": "Rather than filtering deleted items at every consumer, transformNamespace2BO should take an includeDeletedItems flag so callers decide whether deleted items are included.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The exported na...
null
apolloconfig__apollo__4811
apolloconfig/apollo
4,811
defect
a441b6bf4030aed23079c16c4a2d6ca923ccf2ab
9cb7426e528319478260340c474f0265c24fe557
Refactor the createCommit method
## What's the purpose of this PR Refactor the createCommit method
diff --git a/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ItemController.java b/apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ItemController.java index a2b07c4048d..d4eb8a54557 100644 --- a/apollo-adminservice/src/main/java/com/ctrip/framewo...
6
5
0
[{"id": "G0", "claim": "The @Transactional annotation on createCommit in CommitService is unnecessary because a failure already leaves the database unchanged (JPA save rolls back by itself).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "createCommit t...
null
apolloconfig__apollo__4813
apolloconfig/apollo
4,813
defect
e11854f9a465a6b3081f0ccd640c4c97421bad64
84decc0b81f686cb82ccca71c9dd858f86d9d726
Add release history cleaning function
## What's the purpose of this PR - Add release history cleaning function - You can use the `apollo.release-history.retention.size` configuration to set the global retention time for release history, or use the `apollo.release-history.retention.size.override` configuration to finely control the number of release his...
diff --git a/CHANGES.md b/CHANGES.md index 62f10a6f6a4..8f522f5b34e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,7 @@ Apollo 2.2.0 * [Misc dependency updates](https://github.com/apolloconfig/apollo/pull/4784) * [Fix the problem that the deletion failure of the system rights management page does not prompt](h...
17
16
2
[{"id": "G0", "claim": "The repeated TypeToken type should be extracted into a private static final field.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "releaseHistoryRetentionSizeOverride() should use the extracted static type field instead of...
null
apolloconfig__apollo__4820
apolloconfig/apollo
4,820
defect
83447884e6ec48f7fdf7d811ff2d21c1c1e9e9b5
3e894740db93e70e2c654246e33985eb2f45f4c0
Fix the issue of case sensitivity when matching keys with cache enabled
## What's the purpose of this PR Fix the issue of case sensitivity when matching keys with cache enabled - Add a configuration` config-service.cache.key.ignore-case` to control whether the cache key is case-sensitive. ## Which issue(s) this PR fixes: Fixes #3529
diff --git a/CHANGES.md b/CHANGES.md index 4d97eead265..d6f1df67765 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,6 +22,7 @@ Apollo 2.2.0 * [Fix the issue of the system permission management page retrieving non-existent users](https://github.com/apolloconfig/apollo/pull/4802) * [Add release history cleaning functio...
5
4
0
[{"id": "G0", "claim": "In the test setUp, lowerCaseSomeKey should be derived with normalSomeKey.toLowerCase() instead of recomputing and chaining .toLowerCase() on a second generator call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "findLate...
null
apolloconfig__apollo__4822
apolloconfig/apollo
4,822
defect
83447884e6ec48f7fdf7d811ff2d21c1c1e9e9b5
e1da5acf26b37040473c80d2d2fcc9d79f8b9b23
Refactor the code related to ReleaseMessage
## What's the purpose of this PR Refactor the code related to ReleaseMessage. ### motivation - Unify the generation method of ReleaseMessage and watchedKey. - Abstract the parsing method of ReleaseMessage and unify the invocation.
diff --git a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolder.java b/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolder.java index b05a54725b9..5a852ffeace 100644 --- a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/grayR...
1
1
1
[{"id": "G0", "claim": "The integration tests should keep an independent assembleKey key-building logic instead of calling the production ReleaseMessageKeyGenerator.generate(), so that an accidental alteration of generate() would not go unnoticed.", "category": "testing", "verdict": "supported", "priority": "P1", "scop...
null
apolloconfig__apollo__4826
apolloconfig/apollo
4,826
defect
4acee4217af72c69594843d51eaf853a1b6c1ac8
c1c19a923b6c6d6166f7bbb0c87edade83fcec3d
refactor(apollo-biz): Use constructor injection instead of field injection
## What's the purpose of this PR - refactor(apollo-biz): Use constructor injection instead of field injection ### motivation - This PR is a continuation of #1839, the motivation for which is stated as follows in the quote below. > This patch uses Constructor Injection to avoid [the drawbacks of Field Injectio...
diff --git a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolder.java b/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolder.java index b05a54725b9..1e196d84c22 100644 --- a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/grayR...
1
1
0
[{"id": "G0", "claim": "The @Autowired PortalDBPropertySource constructor declaration should drop the stray space after the opening parenthesis, reading PortalDBPropertySource(final ServerConfigRepository serverConfigRepository).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "intro...
null
apolloconfig__apollo__4851
apolloconfig/apollo
4,851
defect
a4df1a32d9696e74b708005f7c8245f3477c7e34
7f24ac54e4bb2581fbc48020de6b7e7f90e37644
[Multi-Database Support][h2] Support run on h2
## What's the purpose of this PR Added support for h2 init sql to ApolloConfig. Verified the following functionalities: adding/disabling/enabling users, adding/deleting namespaces, publishing configurations, and adding applications. ## Brief changelog Add h2 init sql, only effective when h2 ## How to use it #...
diff --git a/CHANGES.md b/CHANGES.md index d4038478ad1..e0d83c9f574 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -26,6 +26,7 @@ Apollo 2.2.0 * [Add a configuration config-service.cache.key.ignore-case to control whether the cache key is case-sensitive](https://github.com/apolloconfig/apollo/pull/4820) * [feat: check p...
2
2
0
[{"id": "G0", "claim": "The h2-profile check in BizDBPropertySource.runSqlScript should use env.acceptsProfiles(Profiles.of(\"h2\")) instead of Arrays.asList(env.getActiveProfiles()).contains(\"h2\").", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
apolloconfig__apollo__4954
apolloconfig/apollo
4,954
defect
99b76dccb0d5700202807d8d75a058006896eee9
06b26433b70cd069a02bdfa4aceb394a628561ae
feat(openapi): allow user create app via openapi
## What's the purpose of this PR Allow user create app via openapi ## Which issue(s) this PR fixes: https://github.com/apolloconfig/apollo/issues/4234 Dependency on https://github.com/apolloconfig/apollo-java/pull/32 ## Brief changelog Bind consumer to a role which can create app. Just a poc code, ...
diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/auth/ConsumerPermissionValidator.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/auth/ConsumerPermissionValidator.java index 9c43cdda960..d9c8bb3664f 100644 --- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/open...
11
9
2
[{"id": "G0", "claim": "Consider using a different permission TargetId (e.g. OpenapiRole) instead of reusing SystemRole for the create-application role, since SystemRole is used in another scenario which may be dangerous for openapi.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}...
null
apolloconfig__apollo__5008
apolloconfig/apollo
5,008
defect
bc55ba65451ab5aabf8a050a0c0e4287b84954f2
7f9ebbf7f8a3e4c8ac01c5eee15ce65bbdc4ec47
Apply audit log functions to portal using audit-log module
## What's the purpose of this PR Apply audit log functions to portal using audit-log module's annotations ## Which issue(s) this PR fixes: Fixes #https://github.com/apolloconfig/apollo/issues/3505 ## Brief changelog add audit-log annotations to Portal for applying audit log functions. Follow this checkl...
diff --git a/apollo-audit/apollo-audit-impl/src/main/java/com/ctrip/framework/apollo/audit/aop/ApolloAuditSpanAspect.java b/apollo-audit/apollo-audit-impl/src/main/java/com/ctrip/framework/apollo/audit/aop/ApolloAuditSpanAspect.java index 535a07dfda6..04ecc223bfe 100644 --- a/apollo-audit/apollo-audit-impl/src/main/jav...
4
3
1
[{"id": "G0", "claim": "Add tests for the collection-handling logic the pull request added to ApolloAuditSpanAspect.around.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Creating a namespace or cluster fails: the audit-log insert runs with DataChange_C...
null
apolloconfig__apollo__5030
apolloconfig/apollo
5,030
defect
6812a1a670fb0a3afa15f535d5dcade8ff4f818a
82079d7519cfb634878f5484c7a3ee4e38e39f30
Fix method reflection bug
## What's the purpose of this PR Fix bug when aop finding method with same name by reflect. ## Which issue(s) this PR fixes: Fixes https://github.com/apolloconfig/apollo/issues/5029 ## Brief changelog enhance ApolloAuditSpanAspect::findMethod and its unit test method. Follow this checklist to help us in...
diff --git a/apollo-audit/apollo-audit-impl/src/main/java/com/ctrip/framework/apollo/audit/aop/ApolloAuditSpanAspect.java b/apollo-audit/apollo-audit-impl/src/main/java/com/ctrip/framework/apollo/audit/aop/ApolloAuditSpanAspect.java index 054d637139b..163ffb46249 100644 --- a/apollo-audit/apollo-audit-impl/src/main/jav...
1
1
1
[{"id": "G0", "claim": "The caller (auditDataInfluenceArg) should handle the scenario where findMethod returns null instead of unconditionally dereferencing the method.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apolloconfig__apollo__5232
apolloconfig/apollo
5,232
defect
31e6486791de3ad60f059f34957b343839aa5ebb
1c7dcf8e177b6119fe0542e03e33d9aa1463fe35
solve the problem of duplicate comments and blank lines
1. solve the problem of duplicate comments and blank lines 2. reduce the data growth of the item table 3. in the same case, the size of ItemChangeSets can be reduced 4. when revoke configuration, if there is only one comment or blank line, it will not be deleted. ## What's the purpose of this PR XXXXX ## Wh...
diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/component/txtresolver/PropertyResolver.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/component/txtresolver/PropertyResolver.java index 44080d7520d..39772c34763 100644 --- a/apollo-portal/src/main/java/com/ctrip/framework/a...
10
7
1
[{"id": "G0", "claim": "Revoking a configuration also deletes comments and blank lines that should be retained (e.g. the comment on the third line), because oldKeyMapItem in ItemService#revokeItem contains comment/blank items that are later added to the change sets as deletions.", "category": "correctness", "verdict": ...
null
apolloconfig__apollo__5247
apolloconfig/apollo
5,247
defect
94c28af31bb1d9ce7025a0c1e3034c2e0646c468
f0908315a4f3d48c9363c45e6190fda403e12f67
feat: ConfigService cache record stats
## What's the purpose of this PR ConfigService cache record stats When the service is just started, we visit `curl 127.0.0.1:8080/prometheus | grep -E 'config_cache|config_id_cache'` ![image](https://github.com/user-attachments/assets/84d860ab-7203-40f3-8941-4a1f10d2a7ad) After some pull configuration r...
diff --git a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/config/BizConfig.java b/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/config/BizConfig.java index fe26e81bc45..7feaf099c9b 100644 --- a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/config/BizConfig.java +++ b/apollo-biz/src/main/j...
10
3
0
[{"id": "G0", "claim": "Extract the common cache-building, stats-recording and metrics-monitoring logic shared by buildConfigCache() and buildConfigIdCache() into a generic helper method to reduce duplication.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
apolloconfig__apollo__5249
apolloconfig/apollo
5,249
defect
94c28af31bb1d9ce7025a0c1e3034c2e0646c468
71f9fa01262a1f716ea1b5692645ed90b6be4e72
feat: openapi query namespace support not fill item
## What's the purpose of this PR openapi query namespace support not fill item ## Which issue(s) this PR fixes: Fixes #5243 ## Brief changelog XXXXX Follow this checklist to help us incorporate your contribution quickly and easily: - [ ] Read the [Contributing Guide](https://github.com/apolloconfig/...
diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerNamespaceOpenApiService.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/openapi/server/service/ServerNamespaceOpenApiService.java index cc2cf13f829..5ae1ebbdf6f 100644 --- a/apollo-portal/src/main/java/com/ctr...
8
2
1
[{"id": "G0", "claim": "The export/import test should cover both fillItemDetail values: split testNamespaceExportImport into parameterised true/false scenarios and name the test to reflect the new parameter.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim":...
null
apolloconfig__apollo__5293
apolloconfig/apollo
5,293
defect
28d2898f02b8421aeef03e97c4fba08a3911a223
c7ec8a137df2185113000c26f6116e7bc5263ab6
Code style-Optimize some code structures to improve readability
## What's the purpose of this PR 1. Add `@Override` to the method in the implementation class 2. Modify the equals compare method 3. Use an empty collection instead of null return value ## Which issue(s) this PR fixes: Fixes # ## Brief changelog Follow this checklist to help us incorporate your contrib...
diff --git a/apollo-audit/apollo-audit-impl/src/main/java/com/ctrip/framework/apollo/audit/component/ApolloAuditLogApiJpaImpl.java b/apollo-audit/apollo-audit-impl/src/main/java/com/ctrip/framework/apollo/audit/component/ApolloAuditLogApiJpaImpl.java index d8489c3b2bd..0ff85c3e300 100644 --- a/apollo-audit/apollo-audit...
14
1
0
[{"id": "G0", "claim": "The toString() of apollo-biz ServerConfig omits the 'cluster' field, and including it would give a more complete representation of the entity for debugging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "assembleDefault...
null
apolloconfig__apollo__5336
apolloconfig/apollo
5,336
defect
30d19853cf9c2ed1b78274e97fa53d7a0b92fd7d
d0dd22e75d05e1750d438d4c7ab8da32c7b2aef6
Provide a new configfiles API to return the raw content of configuration files directly
## What's the purpose of this PR In some application scenarios, if Apollo can provide an API to directly return the raw content of configuration files, users can reference a ConfigService URL directly without the need for an additional proxy URL. See details at https://github.com/apolloconfig/apollo/issues/5327 #...
diff --git a/apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/controller/ConfigFileController.java b/apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/controller/ConfigFileController.java index 180e73442bf..ab00929a2df 100644 --- a/apollo-configservice/src/main/java/...
8
2
1
[{"id": "G0", "claim": "Add a null check for the 'content' field in getRawConfigContent, because for non-properties formats the method assumes 'content' exists in the configurations and may throw a NullPointerException.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id"...
null
apolloconfig__apollo__5361
apolloconfig/apollo
5,361
defect
09e02fb4e5420610c63d51c6db210a14f5efb7b9
bf7fefe6566e83f0e5548d2bbf9eace388cc4613
feat(configservice): Enhanced instance configuration auditing and caching
## What's the purpose of this PR After starting the service and making some requests to pull configurations, access `curl 127.0.0.1:8080/prometheus | grep -E 'instance_cache|instance_config_cache'` and you can see the following monitoring indicator data ![image](https://github.com/user-attachments/assets/0b668ad4-2...
diff --git a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/config/BizConfig.java b/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/config/BizConfig.java index 437b9223046..623f7b2adb3 100644 --- a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/config/BizConfig.java +++ b/apollo-biz/src/main/j...
7
7
1
[{"id": "G0", "claim": "Cache instances should be initialized in the constructor rather than via a @PostConstruct method, since there is no need to wait for dependent beans to be initialized.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The raw CacheBu...
null
apolloconfig__apollo__5395
apolloconfig/apollo
5,395
defect
56ec1446a6212244263cd75d03f979ab8d2e152c
593e7eba6a23209f48f658f45ae1b181b921cb99
bugfix: auto delete roles relate to cluster
## What's the purpose of this PR fix bug ## Which issue(s) this PR fixes: Fixes #https://github.com/apolloconfig/apollo/issues/5392 ## Brief changelog fix sql conditions for quick fix Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Read the [Contributing Guide...
diff --git a/CHANGES.md b/CHANGES.md index 04fa00d569b..e32d887dc64 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,7 @@ Apollo 2.5.0 * [Refactor: Exception handler adds root cause information](https://github.com/apolloconfig/apollo/pull/5367) * [Feature: Enhanced parameter verification for edit item](https://g...
6
3
0
[{"id": "G0", "claim": "The extra trailing space after the 'ManageAppMaster' condition in the findRoleIdsByAppId query may be unintended and should be removed for consistency.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new cluster-specif...
null
apolloconfig__apollo__5490
apolloconfig/apollo
5,490
defect
3086b574881298a03a4faade8ab11b01ca863ef1
20b0493aa3182e95d2596d4e1c9e93d3f02c2607
在1s内多次操作accesskey问题 #5483
## What's the purpose of this PR 解决在1s内有多个accesskey发生变更,或者在同一秒创建并操作accesskey,会因为数据库精度只到秒导致缓存中的值不更新的问题 ## Which issue(s) this PR fixes: Fixes #5483 ## Brief changelog 1. 对于缓存更新中accesskey的dataChangeLastModifiedTime的判断由大于改为了大于等于 2. 对于是否删除缓存中的accesskey的判断由新加入的accesskey的dataChangeLastModifiedTime是否大于当前的dataChan...
diff --git a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/repository/AccessKeyRepository.java b/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/repository/AccessKeyRepository.java index a40329ff6d3..8df5e033edc 100644 --- a/apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/repository/AccessKeyR...
5
3
1
[{"id": "G0", "claim": "The isEmpty/break guard in loadNewAndUpdatedAccessKeys is redundant given the hasMore logic below, so it can be removed while lastTimeScanned still gets updated to currentTime.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "clai...
null
apolloconfig__apollo__5511
apolloconfig/apollo
5,511
defect
55fdcbb576eccfacb536b7ca5892d583ce2665e4
e2dec01fb9f1cbe6b2aff58943a3fdd083bc65d4
Feature: Support ordinary users to modify personal information
## What's the purpose of this PR Support ordinary users to modify personal information ## Brief changelog Support ordinary users to modify personal information Follow this checklist to help us incorporate your contribution quickly and easily: - [√] Read the [Contributing Guide](https://github.com/apolloc...
diff --git a/CHANGES.md b/CHANGES.md index 4bcbc9b589f..e895cb8ea9f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,5 +23,6 @@ Apollo 2.5.0 * [CI: Add code and header formatter by spotless plugin](https://github.com/apolloconfig/apollo/pull/5485) * [Fix: Operate the AccessKey multiple times within one second](https:/...
6
2
1
[{"id": "G0", "claim": "Non-admin users can see and interact with the Enabled/Disabled radio buttons when editing their profile in user-manage.html, so the Enabled field should be hidden from non-admin users in the edit form (e.g. with ng-show=\"isRootUser\").", "category": "design", "verdict": "supported", "priority":...
null
apolloconfig__apollo__5517
apolloconfig/apollo
5,517
defect
00503d0a27305815b4112a0b89e2f271336d2071
0666c3464f103cd97c5c5d2d3828c81b3caa51ae
Feature: Support application-level export configuration
## What's the purpose of this PR Feature: Support exporting and importing configurations for specified applications and clusters ## Brief changelog Requires administrator privileges for the application. Follow this checklist to help us incorporate your contribution quickly and easily: - [√] Read the [Con...
diff --git a/CHANGES.md b/CHANGES.md index 16376d8cad6..8a2ebbeae77 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -24,5 +24,6 @@ Apollo 2.5.0 * [Fix: Operate the AccessKey multiple times within one second](https://github.com/apolloconfig/apollo/pull/5490) * [Bugfix: Prevent accidental cache deletion when recreating App...
22
3
2
[{"id": "G0", "claim": "The import endpoints (/configs/import and /apps/{appId}/envs/{env}/clusters/{clusterName}/import) parse env names with Env.valueOf without handling IllegalArgumentException, so an invalid env name would surface as an HTTP 500 instead of a 400 BadRequestException.", "category": "correctness", "ve...
null
apolloconfig__apollo__5532
apolloconfig/apollo
5,532
defect
55e09fed96370ac42f12bda3d77a598e2e3e47e8
ffda71c039cba6416963955427ddb55cf8a13984
Replace synchronized multimap with concurrent hash map in NotificationControllerV2 for better performance
## What's the purpose of this PR Replace synchronized multimap with concurrent hash map in NotificationControllerV2 for better performance ## Which issue(s) this PR fixes: Fixes #5450 ## Brief changelog * Replace synchronized multimap usage in NotificationControllerV2 with a concurrent, case-insensitive mu...
diff --git a/CHANGES.md b/CHANGES.md index bd236472c33..fa31b77e969 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -27,5 +27,6 @@ Apollo 2.5.0 * [Feature: Support exporting and importing configurations for specified applications and clusters](https://github.com/apolloconfig/apollo/pull/5517) * [doc: Add rust apollo clie...
1
1
1
[{"id": "G0", "claim": "The testCustomSetSupplier assertion `set instanceof HashSet` will fail because get() returns a Collections.unmodifiableSet wrapper, so the custom supplier should be verified by checking behavior instead.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
apolloconfig__apollo__5536
apolloconfig/apollo
5,536
defect
55e09fed96370ac42f12bda3d77a598e2e3e47e8
deeaefac049fa44d606a13a0d92dcdd0473e28a8
Enable graceful shutdown for apollo-adminservice, apollo-configservice, and apollo-assembly
## Graceful Shutdown Implementation - [x] Enable graceful shutdown in application.yml for apollo-adminservice, apollo-configservice, and apollo-assembly - [x] Configure reasonable timeout (10s default) with environment variable support - [x] Add tests to verify graceful shutdown configuration from application.yml (not...
diff --git a/CHANGES.md b/CHANGES.md index bd236472c33..94e3ddbc9cf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ Release Notes. Apollo 2.5.0 ------------------ +* [Feature: Enable graceful shutdown for apollo-adminservice](#TODO) * [Refactor: align permission validator api between openapi and portal](h...
9
8
2
[{"id": "G0", "claim": "The CHANGES.md entry added by this PR uses a `#TODO` placeholder and must be fixed to link the actual PR (https://github.com/apolloconfig/apollo/pull/5536).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new GracefulShu...
null
apolloconfig__apollo__5542
apolloconfig/apollo
5,542
defect
1e16e54b95cb525ef66fa33577db2bac35f7542c
c3b477ff890bc40f17f8dfe9c78553640f62cfe2
fix: normalize env name in PermissionController to prevent permission bypass
## 修复内容 本次提交修复了 issue #5442 中描述的完整漏洞链,不仅包括 PermissionController 的环境名规范化,还扩展到了配置可见性判断链路。主要包含两部分: ### 1. 可见性判断链路的环境名归一化 根据您指出的阻塞项,修复了以下三个组件: - **UserPermissionValidator.shouldHideConfigToCurrentUser()**:在接收 env 参数后立即进行规范化,确保传入 PortalConfig 前已统一 - **PortalConfig.isConfigViewMemberOnly()**:改用 `Env.transformEnv()` 进行规范化比较...
diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PermissionController.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PermissionController.java index 1431874e18b..36aefac198c 100644 --- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/c...
5
4
2
[{"id": "G0", "claim": "The new tests only cover the cluster-role assign/query flow; regression cases are needed for the /apps/{appId}/envs/{env}/namespaces/{namespaceName}/permissions/{permissionType} and /apps/{appId}/envs/{env}/clusters/{clusterName}/ns_permissions/{permissionType} endpoints, verifying that prod/PRO...
null
apollographql__apollo-client__12004
apollographql/apollo-client
12,004
defect
2af746f5cfad30213d215292236e9a61c3944bf6
755827fbfe47455c17e72ce8f09395c60b56de96
[Data masking] Warn when passing object to `useFragment`/`watchFragment` `from` that is not identifiable
Closes #11675 Adds a warning when passing an object to the `from` property that is not identifiable from the cache (i.e. `cache.identify` returns `undefined`). This also adds some tests to check that objects returned from masked queries can be read from `watchFragment` and `useFragment`.
diff --git a/src/__tests__/dataMasking.ts b/src/__tests__/dataMasking.ts index 94351af36e4..97198491915 100644 --- a/src/__tests__/dataMasking.ts +++ b/src/__tests__/dataMasking.ts @@ -1076,6 +1076,232 @@ test("warns when accessing a unmasked field while using @unmask with mode: 'migr } }); +test("reads fragment ...
3
2
1
[{"id": "G0", "claim": "The new warning should also include the fragment name (and possibly distinguish `watchFragment` from `useFragment`) so it is easier to find what triggered it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This warning sh...
null
apollographql__apollo-client__12049
apollographql/apollo-client
12,049
defect
36d2caece4bcca7cf855ff8e82a9769df0ef405e
b24fb5ee80bf297b4d236485dc952c873884a2f7
useFragment: keep current result on a memoized mutable object
Fixes #12048 - thank you for the report @maciesielka
diff --git a/.changeset/fuzzy-shrimps-call.md b/.changeset/fuzzy-shrimps-call.md new file mode 100644 index 00000000000..ad484ae08ba --- /dev/null +++ b/.changeset/fuzzy-shrimps-call.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fix a bug where `useFragment` did not re-render as expected diff --git a/.size-l...
1
1
0
[{"id": "G0", "claim": "The comment saying the watchFragment result \"should be equal to `currentDiff`\" is stale after the PR renamed the variable, and should be updated to \"`diff.result`\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apollographql__apollo-client__12052
apollographql/apollo-client
12,052
defect
40d21f17e300c4498b22642803f3907bbd55064f
74674ecc1364d9a72ac17586b5f06d7776a6593c
Fix obscure warning in `useFragment` when `cache.identify` returns `undefined`
Fixes #12051 #12020 did some refactoring to `useFragment` to be more compatible with [Rules of React](https://react.dev/reference/rules) (specifically not writing to `ref` in render). In the process, `useFragment` now calls `cache.identify` directly to ensure that whole data objects passed to `from` don't trigger re...
diff --git a/.changeset/forty-news-turn.md b/.changeset/forty-news-turn.md new file mode 100644 index 00000000000..0754e5621d9 --- /dev/null +++ b/.changeset/forty-news-turn.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fixes a regression from where passing an invalid identifier to `from` in `useFragment` wo...
1
1
0
[{"id": "G0", "claim": "Handle the `undefined` case in `cache.watchFragment` by passing it through instead of defaulting `id` to the empty string in `useFragment` — or, if the workaround stays, revert to `id!` with an explanatory comment — since the `\"\"` special handling looks accidental and could break in weird ways...
null
apollographql__apollo-client__12116
apollographql/apollo-client
12,116
defect
1d4ce0034395147445165022f7d23f42ff638d8a
5a1f521a9d5047f6c14dcdc22ed40fa26156e409
[Data masking] Fix aggressive warnings when using objects marked with `@unmask(mode: "migrate")` with `cache.identify`
Closes #12043 When passing an unmasked object in migration mode to `cache.identify`, we'd get field accessor warnings even though the end user wasn't accessing them at all. This was due to the fact that `cache.identify` does a spread operation of the result which shallow-copies all the fields, triggering the getters...
diff --git a/src/__tests__/dataMasking.ts b/src/__tests__/dataMasking.ts index f8bcd12ceb0..dfe2988c0f3 100644 --- a/src/__tests__/dataMasking.ts +++ b/src/__tests__/dataMasking.ts @@ -1143,6 +1143,73 @@ describe("client.watchQuery", () => { } }); + // https://github.com/apollographql/apollo-client/issues/12...
2
2
1
[{"id": "G0", "claim": "The masked result could gain keys that were not present on the original `data` object; the author changed the PR to skip adding properties with warning when their value is undefined so masked objects keep the original shape, and asks phryneas to confirm this change makes sense.", "category": "co...
null
apollographql__apollo-client__12236
apollographql/apollo-client
12,236
defect
2fb7d7a3362b7d7296a5ebac8081cf0bfc1865eb
71f46520048d42af81ba96edd6cfe3dcf563957d
Compare `DocumentNode` used in `refetchQueries` as strings
<!-- Thanks for filing a pull request on Apollo Client! A few automated bots may chime in on your PR. They are here to help with reviewing and ensuring Apollo Client is production ready after each pull request merge. - apollo-cla will respond asking you to sign the CLA if this is your first PR. ...
diff --git a/.changeset/gorgeous-sheep-knock.md b/.changeset/gorgeous-sheep-knock.md new file mode 100644 index 00000000000..cc4396ea792 --- /dev/null +++ b/.changeset/gorgeous-sheep-knock.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": minor +--- + +Fix an issue with `refetchQueries` where comparing `DocumentNode`s interna...
5
5
1
[{"id": "G0", "claim": "The warning for an unrecognized DocumentNode passed to refetchQueries should print only the operation name (falling back to a readable name like \"anonymous\" for unnamed queries) instead of the full query string, and a test case for an anonymous query document hitting this warning should be add...
null
apollographql__apollo-client__12281
apollographql/apollo-client
12,281
defect
6ffb5a34a39657568db7f4e42ed60d8679cb817f
034dd47afab5408536255c08d18ada0149123fed
Make protocol errors available in the error link
Fixes #12258 Makes protocol errors from multipart subscriptions available in the error link. Access it with the `protocolErrors` property: ```js const errorLink = onError(({ protocolErrors }) => { if (protocolErrors) { console.log(protocolErrors); } }); ```
diff --git a/.changeset/giant-peas-lie.md b/.changeset/giant-peas-lie.md new file mode 100644 index 00000000000..9caaab73e33 --- /dev/null +++ b/.changeset/giant-peas-lie.md @@ -0,0 +1,13 @@ +--- +"@apollo/client": patch +--- + +Make `protocolErrors` from multipart subscriptions available to the error link with the `pr...
6
3
0
[{"id": "G0", "claim": "The new `protocolErrors` field (and the neighboring fields of `ErrorResponse`) is confusing without explanation, so documentation comments should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field should be ...
null
apollographql__apollo-client__12285
apollographql/apollo-client
12,285
defect
820f6e656377fbc4f7d870976fe3563d32ec1ec1
ce35f1cb513dd9615d102f23f4725d2dcf8971d3
keep `ObservableQuery` initiated from `useQuery` inactive before first subscription
Triggered by [this Discord discussion](https://discordapp.com/channels/1022972389463687228/1328667056534589490/1328667056534589490) Generally, creating a `ObservableQuery` via `watchQuery` is already a side effect and adds the query to `QueryManager.queries` - and it will only be removed if it is subscribed and then...
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index 017e6932435..1b8055f49cc 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -1944,6 +1944,8 @@ class QueryManager<TStore> { getLocalState(): LocalState<TStore>; // (undocumen...
3
3
2
[{"id": "G0", "claim": "If registration is delayed and `getQuery` gets called before the subscription started (e.g. by a `refetch` call), a new `QueryInfo` that doesn't match the `QueryInfo` from the `ObservableQuery` gets injected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd...
null
apollographql__apollo-client__12531
apollographql/apollo-client
12,531
defect
4d1ab3aa343820a2bfe6668bfa31fbb5630b8711
7109b839f7634e973204d0505e5ccdf4f1bb5cd0
Combine `variables` and `variablesMatcher` in `MockLink`
Combine `variables` and `variableMatcher` by updating `variables` to accept a callback function. This reduces the need to validate that either one or the other option is passed but not both.
diff --git a/.api-reports/api-report-testing_core.api.md b/.api-reports/api-report-testing_core.api.md index 29f83e0b69b..d7996d0a9b8 100644 --- a/.api-reports/api-report-testing_core.api.md +++ b/.api-reports/api-report-testing_core.api.md @@ -8,7 +8,6 @@ import { ApolloClient } from '@apollo/client/core'; import { A...
1
1
0
[{"id": "G0", "claim": "When an unmatched mock uses a function for variables, log the function's name (if it has one) instead of the generic \"<function>\" placeholder.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apollographql__apollo-client__12532
apollographql/apollo-client
12,532
defect
4d1ab3aa343820a2bfe6668bfa31fbb5630b8711
ddafece097590b25f8cc66dd36b5fc965be8371a
Add support for callback on `delay` and default to random delay
Closes #12524 Adds support for a callback function on the `delay` property passed to a mocked response. This makes it possible to return dynamic values based on the request. A new `realisticDelay` function has been created for use with the new `delay` option which will generate a random number between the thresho...
diff --git a/.api-reports/api-report-testing.api.md b/.api-reports/api-report-testing.api.md index 2ec1ea3535c..4ee88cbef9f 100644 --- a/.api-reports/api-report-testing.api.md +++ b/.api-reports/api-report-testing.api.md @@ -11,6 +11,7 @@ import { MockLinkOptions } from '@apollo/client/testing/core'; import { mockObse...
2
2
1
[{"id": "G0", "claim": "Fix the typo in the changeset example: \"This is th default\" should read \"This is the default\" (per the applied suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a static `MockLink.defaultOptions` tak...
null
apollographql__apollo-client__12561
apollographql/apollo-client
12,561
defect
9b15b9b9c6d4afbe325801ea4c2be52d7a2765d9
fff8c3271606a99f504041b286f12f09fbe160a2
Add a new helper that detects network errors from the link chain
This would help with https://github.com/apollographql/apollo-client/issues/12555 This PR adds the ability to detect if an error was emitted by the link chain. This can be useful if your application uses custom errors in other areas of the codebase that would otherwise get difficult to differentiate. Use `NetworkErro...
diff --git a/.api-reports/api-report-errors.api.md b/.api-reports/api-report-errors.api.md index 7c833c23506..da586dd268d 100644 --- a/.api-reports/api-report-errors.api.md +++ b/.api-reports/api-report-errors.api.md @@ -4,7 +4,7 @@ ```ts -import type { ErrorLike } from '@apollo/client/core'; +import type { ErrorL...
3
2
0
[{"id": "G0", "claim": "The new export path should at minimum be plural: `@apollo/client/link/network-errors`.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "ErrorResponse's networkError property should be changed to a single `error` property.", "categor...
null
apollographql__apollo-client__12562
apollographql/apollo-client
12,562
defect
a40ebdf92667ad0ad97f11ae565f4d4d4c4e6f46
5b1e7181dc5caf6ea6bb281a1c11833b5282eaf3
Remove unsupported `client.query` options
`pollInterval` and `returnPartialData` were options supported by the `QueryOptions` type used by `client.query` even though these options threw at runtime. These have been removed in the `QueryOptions` type in this PR. `notifyOnNetworkStatusChange` was also an option that was supported, though its effects were not o...
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index e219b9e223d..da379b005e6 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -713,7 +713,7 @@ export interface FetchMoreQueryOptions<TVariables, TData = unknown> { } // @public -exp...
1
1
0
[{"id": "G0", "claim": "Consider wrapping all of the invariants in client.query in __DEV__ so the checks are stripped in production.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
apollographql__apollo-client__12566
apollographql/apollo-client
12,566
defect
28e857f6b0effa935cc554ff8e04e1d8002c66de
194929c5b777a4b0bf893912dfe748afc23a8a00
Don't call `broadcastQueries` when a query is stopped
Closes #10291 Don't `broadcastQueries` when a query is torn down. This should save a bit on performance by avoiding potentially lots of notifications to other queries purely because a query was removed.
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index e219b9e223d..715e438473f 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -1606,8 +1606,6 @@ class QueryManager { startGraphQLSubscription<TData = unknown>(options: Subscription...
1
1
1
[{"id": "G0", "claim": "The Next.js integration still calls the removed QueryManager.stopQuery, so it has to be switched to removeQuery in apollo-client-integrations and released in a coordinated PR before this PR can merge.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__apollo-client__12588
apollographql/apollo-client
12,588
defect
6a37dc53fb7e0a153ea9ac21c7c8803d3a05cdc1
1170a80f7d87ce71c813ab8c4328bd6dfec64fb0
Remove `TContext` generic argument
Closes #12582 With https://github.com/apollographql/apollo-client/pull/12576 in place, we prefer to use the `DefaultContext` type as the type used for `context` options throughout the client. `context` is global and shared with the link chain, so the existing `TContext` arg can be a detriment to the DX, especially i...
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index eb16bca27c5..55631208221 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -143,7 +143,7 @@ export class ApolloClient implements DataProxy { getResolvers(): Resolvers; // (u...
1
1
0
[{"id": "G0", "claim": "The PR could apply the same module-augmentation pattern used for TContext to TCache, deriving the default cache type from a DefaultCacheImplementation interface so TCache no longer needs to be a generic parameter on MutationOptions.", "category": "design", "verdict": "supported", "priority": "P2...
null
apollographql__apollo-client__12631
apollographql/apollo-client
12,631
defect
0a99d9ca766d4fc985cbeea41a711c6687bb35de
42b24461734fb7555a5e03800bf49dda58502c2b
drop `fetchPolicy: "standby"` pre-subscription loading state
Fixes #12122 Fixes https://github.com/apollographql/apollo-client/issues/8309
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index c45b4c11570..3cbeacd1a54 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -67,11 +67,13 @@ import { MergeInfo } from '@apollo/client/cache'; import { MergeTree } from '@apollo/clien...
2
2
0
[{"id": "G0", "claim": "The PR lacks an individual test covering the changed `skip` behaviour and needs another test plus another changeset.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change referenced in the linked PR 12597 comment should be mo...
null
apollographql__apollo-client__12670
apollographql/apollo-client
12,670
defect
9bfb51fdbca69560da71f9012c74ee172b6c2b69
d2317666cf7896780d5e44aeda901bc5d6adebf9
Provide a mechanism to override the `DataMasking` types.
We can follow this up with a `StreamingData` type for the new `streaming` `DataState` introduced in #12649
diff --git a/.changeset/curvy-lamps-sing.md b/.changeset/curvy-lamps-sing.md new file mode 100644 index 00000000000..125a0253fe1 --- /dev/null +++ b/.changeset/curvy-lamps-sing.md @@ -0,0 +1,43 @@ +--- +"@apollo/client": minor +--- + +Provide a mechanism to override the DataMasking types. + +Up until now, our types `Ma...
2
2
0
[{"id": "G0", "claim": "Each exported type in src/utilities/internal/types/HKT.ts should be moved into its own file, keeping the per-file convention for utility types established in #12600 instead of an 'everything but HKT has its own file' situation.", "category": "maintainability", "verdict": "supported", "priority":...
null
apollographql__apollo-client__12686
apollographql/apollo-client
12,686
defect
0cb1601a160ca3e30bea0148ccffeee19ee384c1
3e37099f17c29855bcfff1a68820905d3a51ecb5
`loading` is now `true `when a response is still streaming. Adds `NetworkStatus.streaming`
Fixes #12653 Adds `NetworkStatus.streaming` and sets `loading` to `true` when a `@defer` response is waiting for more chunks.
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index a2d30afdcc4..b01123e4ba3 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -537,7 +537,8 @@ export enum NetworkStatus { poll = 6, ready = 7, refetch = 4, - setVariab...
1
1
0
[{"id": "G0", "claim": "isNetworkRequestInFlight should use `networkStatus !== 7 && networkStatus !== 8` or, preferably, `return !isNetworkRequestSettled(networkStatus)` instead of the hard-coded `networkStatus < 7 || networkStatus === 9` check.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
apollographql__apollo-client__12690
apollographql/apollo-client
12,690
defect
e52915b81bbba94d1e1479bfbbba6a6fc214debb
83ed34b9403969041be4153855ff0394e77e4e55
Forbid aliasing fields to `__typename` or `__ac_*`
Closes #12627
diff --git a/.changeset/empty-rats-cough.md b/.changeset/empty-rats-cough.md new file mode 100644 index 00000000000..d5cfe9eb457 --- /dev/null +++ b/.changeset/empty-rats-cough.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": major +--- + +Aliasing any other field to `__typename` is now forbidden. diff --git a/src/core/Query...
5
4
0
[{"id": "G0", "claim": "The forbidden-alias check would also make sense in `checkDocument`, though there it is not memoized and could potentially be repeated a lot.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`fetchMore` does not call `fetchDocument` ...
null
apollographql__apollo-client__12698
apollographql/apollo-client
12,698
defect
71875402851be42244f1c018b3dabc8a14f892ab
21810baaf55eff1c7011d76421025f9ea1d13dd0
Add `accept` option to `HttpOptions`
<!-- Thanks for filing a pull request on Apollo Client! A few automated bots may chime in on your PR. They are here to help with reviewing and ensuring Apollo Client is production ready after each pull request merge. - apollo-cla will respond asking you to sign the CLA if this is your first PR. ...
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index b01123e4ba3..ad6558f23ae 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -10,6 +10,7 @@ import { ApolloPayloadResult } from '@apollo/client/link'; import { ApolloReducerConfig } fr...
3
3
0
[{"id": "G0", "claim": "The JSDoc example for the new `accept` option should use a valid `q` value (q=1.0) instead of q=1.5.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test can use the `Response.json` shortcut (which stringifies and sets c...
null
apollographql__apollo-client__12712
apollographql/apollo-client
12,712
defect
a60f411e58cc67730d0dc4513e4045f004027ded
d9f8246c25ffef02e733dfd348d8d24bdd70ed8d
Don't allow `fetchMore` or updates to polling for `cache-only` queries and exclude from `client.refetchQueries`
Fixes #11997 Throws an error when `fetchMore` is called on a `cache-only` query. Additionally a warning will be emitted when setting a poll interval on a `cache-only` query and polling will be cancelled. `cache-only` queries are now excluded from `refetchQueries` when using `include: 'all' | 'active'` and when li...
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index 032cd9ab2bc..afc748576cd 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -1092,8 +1092,8 @@ export type WatchQueryOptions<TVariables extends OperationVariables = OperationV // Wa...
9
8
4
[{"id": "G0", "claim": "Using `updateCache` still causes a `refetch` call on the `ObservableQuery` instance; `cache-only` queries should be filtered out unless explicitly defined with `include`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A `cach...
null
apollographql__apollo-client__12714
apollographql/apollo-client
12,714
defect
ce35ea2b3a87d6dd6757e9be50ecc42837bebe56
db847ec19cf243f51d721732c1e646bdd088b1e4
rework options & option handling for `ObservableQuery.fetchMore`
Closes #12297
diff --git a/.changeset/mighty-carrots-bathe.md b/.changeset/mighty-carrots-bathe.md new file mode 100644 index 00000000000..8fb9e1e13b6 --- /dev/null +++ b/.changeset/mighty-carrots-bathe.md @@ -0,0 +1,7 @@ +--- +"@apollo/client": minor +--- + +Allow passing `errorPolicy` option to `fetchMore` and change default value...
4
4
0
[{"id": "G0", "claim": "Merge `FetchMoreOptions` together with `FetchMoreQueryOptions` into a single type (keeping the `FetchMoreOptions` name) instead of copying the `& updateQuery` union wherever `FetchMoreQueryOptions` is used.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
apollographql__apollo-client__12808
apollographql/apollo-client
12,808
defect
b2126a928b9a1d4b2bcf5f08cf1813695428af3b
1468e5e20d0a816c6771be18dcdfb87b27fdeae9
handle final boundaries in HTTP multipart requests
<!-- Thanks for filing a pull request on Apollo Client! A few automated bots may chime in on your PR. They are here to help with reviewing and ensuring Apollo Client is production ready after each pull request merge. - apollo-cla will respond asking you to sign the CLA if this is your first PR. ...
diff --git a/.changeset/four-toes-serve.md b/.changeset/four-toes-serve.md new file mode 100644 index 00000000000..b5952482011 --- /dev/null +++ b/.changeset/four-toes-serve.md @@ -0,0 +1,6 @@ +--- +"@apollo/client": major +--- + +HTTP Multipart handling will now throw an error if the connection closed before the final...
2
2
0
[{"id": "G0", "claim": "The end-of-multipart error message should be \"premature end of multipart body\", consistent with Apollo Kotlin and other multipart clients, instead of \"Unexpected end of multipart data\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
apollographql__apollo-client__12833
apollographql/apollo-client
12,833
defect
2a32ac6d38de2be0be6891a969ee4f5e3bbca629
0cd9c5fab049f701b11ea25ded9486637dd9c677
Misc get started tweaks and more robust `useLazyQuery` documentation
Most of the work in this PR makes the documentation for `useLazyQuery` much more robust. Previously the section included a paragraph and a single example for using it. I've instead framed the hook as a way to execute queries in response to user interaction. I've also added more subsections that describe the capabilitie...
diff --git a/docs/source/data/queries.mdx b/docs/source/data/queries.mdx index d518aa2cbd3..b96c0e6f02f 100644 --- a/docs/source/data/queries.mdx +++ b/docs/source/data/queries.mdx @@ -250,38 +250,308 @@ If you set `errorPolicy` to `all`, `useQuery` does _not_ discard query response For more information, see [Handli...
5
5
1
[{"id": "G0", "claim": "The sentence \"Applications that use Apollo Client require two top-level dependencies:\" should not hard-code a count that the pull request itself just made wrong (the list now has three dependencies).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existin...
null
apollographql__apollo-client__12846
apollographql/apollo-client
12,846
defect
0ead2ccddab0797025170e7ad842f0d9ef5b297b
9fae3763b6828db76331c268127c37d2f24f1a0d
Add a new `legacyEntryPoints` codemod transformation step.
<!-- Thanks for filing a pull request on Apollo Client! A few automated bots may chime in on your PR. They are here to help with reviewing and ensuring Apollo Client is production ready after each pull request merge. - apollo-cla will respond asking you to sign the CLA if this is your first PR. ...
diff --git a/.changeset/brave-pandas-battle.md b/.changeset/brave-pandas-battle.md new file mode 100644 index 00000000000..a106913a2d7 --- /dev/null +++ b/.changeset/brave-pandas-battle.md @@ -0,0 +1,5 @@ +--- +"@apollo/client-codemod-migrate-3-to-4": patch +--- + +Add a new `legacyEntryPoints` transformation step that...
1
1
0
[{"id": "G0", "claim": "The console.log statement added in mergeIntoExistingOrRenameImport prints debug output to the end user's console and should be removed (or kept only with a comment explaining it is intentional).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apollographql__apollo-client__12884
apollographql/apollo-client
12,884
defect
9b426d6741dc56f2750a3b54e2f950d03e9be789
af5f58f3247842e154edf25df37191384eaeaa08
Ensure that `PreloadedQueryRef` instances are unsubscribed when garbage collected
Triggered by https://community.apollographql.com/t/how-to-evict-all-related-queries-from-cache-that-reference-ids-of-deleted-entities/9408/3 and this thread: https://x.com/jerelmiller/status/1960375395649257814
diff --git a/.api-reports/api-report-utilities_internal_ponyfills.api.md b/.api-reports/api-report-utilities_internal_ponyfills.api.md new file mode 100644 index 00000000000..acbeb7f69a3 --- /dev/null +++ b/.api-reports/api-report-utilities_internal_ponyfills.api.md @@ -0,0 +1,12 @@ +## API Report File for "@apollo/cli...
12
4
2
[{"id": "G0", "claim": "The `unregister` method deletes a potentially undefined entry from `this.references` when the unregister token is absent, which could lead to unexpected behavior; consider checking that the token exists before deleting.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope"...
null
apollographql__apollo-client__12950
apollographql/apollo-client
12,950
defect
e93fbf6ddf0054a7401a83894b5f1e18358ab737
f70756ee9fdf7dc849426c608e89b96478d9ef41
Filter `operationType` in payload of `GraphQLWsLink`
Fixes #12946 Removes the `operationType` key in the payload sent by `GraphQLWsLink` which was causing issues with HotChocolate.
diff --git a/.changeset/healthy-jokes-sing.md b/.changeset/healthy-jokes-sing.md new file mode 100644 index 00000000000..3b48e7780e9 --- /dev/null +++ b/.changeset/healthy-jokes-sing.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Don't send `operationType` in the payload sent by `GraphQLWsLink`. diff --git a/...
1
1
0
[{"id": "G0", "claim": "Instead of rest-spreading the operation to drop `operationType`, GraphQLWsLink should destructure and forward only the known properties (query, variables, operationName, extensions).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apollographql__apollo-client__12980
apollographql/apollo-client
12,980
defect
ca42b1f10832a36696500be2824cdd935627e72f
ed1cceb6af1d02a892b78ca12359571570f1d90b
batch array `watchFragment` notifications
This is the only way I could come up with that would still make it synchronous.
diff --git a/src/cache/core/cache.ts b/src/cache/core/cache.ts index 6cac1e724de..d9509706930 100644 --- a/src/cache/core/cache.ts +++ b/src/cache/core/cache.ts @@ -369,7 +369,10 @@ export abstract class ApolloCache { }); } - private fragmentWatches = new Trie<{ observable?: Observable<any> }>(true); + priv...
4
2
0
[{"id": "G0", "claim": "The identifier `onAfterBrodcast` is misspelled and should be corrected to `onAfterBroadcast` (in both src/cache/core/cache.ts and src/cache/inmemory/inMemoryCache.ts).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `d...
null
apollographql__apollo-client__13004
apollographql/apollo-client
13,004
defect
00e90544b54a202cd4b3979f6f3f25436be59da2
f58c1c1ab2b9419cf88ec42daf6dab1a9cfd6903
Update React Compiler to 1.0.0
<!-- Thanks for filing a pull request on Apollo Client! A few automated bots may chime in on your PR. They are here to help with reviewing and ensuring Apollo Client is production ready after each pull request merge. - apollo-cla will respond asking you to sign the CLA if this is your first PR. ...
diff --git a/eslint.config.mjs b/eslint.config.mjs index d2ed43cccaa..75ef3241162 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -15,15 +15,15 @@ if (!process.features.typescript) { import path from "node:path"; import { fileURLToPath } from "node:url"; -import { fixupConfigRules, fixupPluginRules } from...
3
2
0
[{"id": "G0", "claim": "The reviewer asks why `setObservable` (a setState function that should be stable) was added to the useEffect dependency array.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The redundant `rules` key in the new eslint react-hooks co...
null
apollographql__apollo-client__13043
apollographql/apollo-client
13,043
defect
db71fb4ebb7dd16d3828a1b4bb695045dd5a8560
4b9fcce91493d9e560c4eb9c78074412c683b33c
Add `headers` transport option for enhanced client awareness
Closes #12998 Adds the `headers` transport option for enhanced client awareness
diff --git a/.api-reports/api-report-link_client-awareness.api.md b/.api-reports/api-report-link_client-awareness.api.md index 1df767023f0..cadef38157b 100644 --- a/.api-reports/api-report-link_client-awareness.api.md +++ b/.api-reports/api-report-link_client-awareness.api.md @@ -11,7 +11,7 @@ export namespace ClientAw...
1
1
1
[{"id": "G0", "claim": "The `extensions` transport option should not be supported for Client Awareness (client name/version) because it would break traces and there is no clear need that those values must be supported that way.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__apollo-client__13071
apollographql/apollo-client
13,071
defect
ff268b4a12425edcc4179d7bf1ed52fab56835c8
479321cff3b90ef42a074c2d7c93daba84c6827b
`prerenderStatic`: Expose return value of `renderFunction` to userland, fix `aborted` property.
`prerenderStatic`: Expose return value of `renderFunction` to userland, fix `aborted` property. This enables usage of `resumeAndPrerender` with React 19.2.
diff --git a/.api-reports/api-report-react_ssr.api.md b/.api-reports/api-report-react_ssr.api.md index 24e1eda15a5..6da099f3d08 100644 --- a/.api-reports/api-report-react_ssr.api.md +++ b/.api-reports/api-report-react_ssr.api.md @@ -27,7 +27,7 @@ type GetMarkupFromTreeOptions = { }; // @public -export function prer...
4
4
2
[{"id": "G0", "claim": "In the resume test, the second resumed render passes `client1` as the context client where the pattern established by the previous resume steps calls for the newly created `client3`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
apollographql__apollo-client__13086
apollographql/apollo-client
13,086
defect
f94047a6f06078e4e9d08591c44f01a4425aac38
9f4ca6f5e5f12538014bfadfffc36b13fb3ed9ac
fix situations where a query skips/non-includes all fields
Fixes #13085
diff --git a/.changeset/dirty-badgers-push.md b/.changeset/dirty-badgers-push.md new file mode 100644 index 00000000000..ad10de9f853 --- /dev/null +++ b/.changeset/dirty-badgers-push.md @@ -0,0 +1,7 @@ +--- +"@apollo/client": patch +--- + +Change the returned value from `null` to `{}` when all fields in a query were sk...
3
3
0
[{"id": "G0", "claim": "The new test's name \"should be able to query with skip directive true\" duplicates the earlier test's name although it tests the include directive, so it should be renamed to accurately reflect what it tests, e.g. \"should be able to query with include directive false\".", "category": "maintain...
null
apollographql__apollo-client__13105
apollographql/apollo-client
13,105
defect
1140026ddb59ad8b5be8456ffdbf52fe18423703
6fa5e25100a85e9dbada10b0dfc3f6fcf0f02ddd
`prioritizeCacheValues` and `prerenderStatic`-related fixes
Fixes #13102 and a few other findings I had along the way. It also adds a bunch of tests for these and related scenarios.
diff --git a/.changeset/angry-trees-sniff.md b/.changeset/angry-trees-sniff.md new file mode 100644 index 00000000000..707297ef897 --- /dev/null +++ b/.changeset/angry-trees-sniff.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +`ssrMode`, `ssrForceFetchDelay` or `prioritizeCacheValues` should not override `fet...
1
1
0
[{"id": "G0", "claim": "The parameterized test variable `expectedResult` should be renamed to `expectedInitialCurrentResult` to clarify that it holds the value checked as the initial current result, not the final result after all emits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
apollographql__apollo-client__13124
apollographql/apollo-client
13,124
defect
fbd439c8267f236f9174e3abfd45ceb2ce470ff1
46505846a427c19c63ca86ed175b9ebe548a00e1
fix(persisted-queries): preserve existing http and fetchOptions context
## Summary Fix `PersistedQueryLink` overwriting existing `http` and `fetchOptions` context when calling `setContext()`. ## Problem `setContext()` was called with an object literal, which completely replaced the existing context. This caused issue...
diff --git a/.changeset/silent-books-train.md b/.changeset/silent-books-train.md new file mode 100644 index 00000000000..dbfe51d98cd --- /dev/null +++ b/.changeset/silent-books-train.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fix PersistedQueryLink to preserve existing http and fetchOptions context instea...
4
4
1
[{"id": "G0", "claim": "The changeset should say that PersistedQueryLink merges http and fetchOptions context values instead of overwriting them, rather than framing the @defer breakage as the issue.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
apollographql__apollo-client__13130
apollographql/apollo-client
13,130
defect
6f114e1a70bbac6f8aa5f473bf3a984df4fbcd5b
d8192cee9959ef53b715afff22acc837501efe17
Improve the return type of `client.query`
Fixes #13123 Improves the return type of `client.query` to be smarter about the applied `errorPolicy`. The `data` and `error` properties now better reflect the expected runtime value for a given `errorPolicy`. This allow the removal of `undefined` checks or optional chaining for most uses of `client.query`. >...
diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index 8039a73069f..ab020ee1b80 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -270,10 +270,19 @@ export namespace ApolloClient { fetchPolicy?: FetchPolicy; } & VariablesOpt...
1
1
0
[{"id": "G0", "claim": "The overloads added for `client.query` should carry the TSDoc comment `{@inheritDoc @apollo/client!ApolloClient#query:member(1)}` so they are not left undocumented, as suggested in the review's suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
apollographql__apollo-client__13135
apollographql/apollo-client
13,135
defect
1afb5c1f2bb5b60c0f2b2c64b699908eb740d72e
6361d9d481a581fd011d5097aa718883f5bf814b
Fix `client.query` using `defaultOptions.watchQuery`
Fixes #13136
diff --git a/.changeset/fair-hairs-move.md b/.changeset/fair-hairs-move.md new file mode 100644 index 00000000000..c04f58e6d3e --- /dev/null +++ b/.changeset/fair-hairs-move.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fix issue where `client.query` would apply options from `defaultOptions.watchQuery`. diff...
1
1
1
[{"id": "G0", "claim": "Digging deeper is needed to determine how removing the watchQuery defaults in fetchObservableWithInfo affects client.refetchQueries when objects are provided; it may change those use cases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__apollo-client__13155
apollographql/apollo-client
13,155
defect
8a6e12c7f3069b0879318fb9d82366d610073245
e4aa12f0a5735c059a79ef63f0da6778e1e5403e
Fix issue with `useQuery` polling when `skip` was initialized with `true`
Fixes #13154 Polling was properly skipped when changing from `skip: false` to `skip: true`, but when `skip` was initialized to `true`, polling kicked in. This was due to calling [`updatePolling`](https://github.com/apollographql/apollo-client/blob/8a6e12c7f3069b0879318fb9d82366d610073245/src/core/ObservableQuery....
diff --git a/.changeset/chilly-games-punch.md b/.changeset/chilly-games-punch.md new file mode 100644 index 00000000000..27fd70e5775 --- /dev/null +++ b/.changeset/chilly-games-punch.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Fix an issue where `useQuery` would poll with `pollInterval` when `skip` was ini...
2
1
0
[{"id": "G0", "claim": "The new test title should not use the contraction and be written as \"does not poll when initially skipped\".", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A similar standby check should be added inside of `maybeFetch` as ...
null
apollographql__apollo-rs__1017
apollographql/apollo-rs
1,017
defect
076a45774ff483e54ed3f25dca4d11dfc08fee9c
04b96227c20c56637afb4ef56c5c022531be20df
feat(compiler): Introduce `ExecutableDocumentBuilder` for operations with multiple sources
> [!NOTE] > This PR was almost entirely written by Claude. I've reviewed this extensively myself and included the prompt and implementation plan for posterity. <details> # Prompt @crates/apollo-compiler/src/executable/from_ast.rs @crates/apollo-compiler/src/schema/from_ast.rs Create a plan and write to local...
diff --git a/.gitignore b/.gitignore index 89f39f8df..375e0ef19 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,7 @@ Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk -# ignore IDEA fileas +# ignore IDEA files .idea + +.claude \ No newline at end of file diff --git a/crates/apollo-compiler/sr...
8
8
6
[{"id": "G0", "claim": "The builder should hold the schema as `Option<&Schema>` instead of cloning it, since callers already pass a reference and cloning is costly for very large schemas.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comments l...
null
apollographql__apollo-rs__698
apollographql/apollo-rs
698
defect
4d8657a4311177bf0d7524227cf488ece089c7a4
9d32fb0a4cafbf3b368c5b1b3ea21e3c6968f1f0
feat(compiler): add get_line_column for Diagnostic
This brings back line/column numbers and serialisability to diagnostics. It essentially fits in the work @goto-bus-stop already did into the new version of the compiler. The PR includes: - [x] (re-) introduction of `MappedSource` where we store bite indices for source information - [x] line/column numbers for each...
diff --git a/crates/apollo-compiler/Cargo.toml b/crates/apollo-compiler/Cargo.toml index 20d28acdf..c3bceb4ba 100644 --- a/crates/apollo-compiler/Cargo.toml +++ b/crates/apollo-compiler/Cargo.toml @@ -23,6 +23,7 @@ ariadne = { version = "0.3.0", features = ["auto-color"] } indexmap = "2.0.0" rowan = "0.15.5" salsa =...
8
8
3
[{"id": "G0", "claim": "Type definitions should be grouped at the start of the module rather than hunting for them in the middle of impl blocks.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "MappedSource and the SourceFile::ariadne accessor sho...
null
apollographql__apollo-rs__718
apollographql/apollo-rs
718
defect
26c2ad6b219d4c2c30d73bab21316d20c69ac0b9
d3513d990378ce332a441600e938f8c8e9a2b393
feat(parser, compiler): add parsing a type reference from a string
To parse standalone source text like `[Type]!`, for example for the federation directive [`@fields(type:)`](https://specs.apollo.dev/join/v0.3/#@field). closes #715
diff --git a/crates/apollo-compiler/src/ast/from_cst.rs b/crates/apollo-compiler/src/ast/from_cst.rs index 1d16edc90..1584ef437 100644 --- a/crates/apollo-compiler/src/ast/from_cst.rs +++ b/crates/apollo-compiler/src/ast/from_cst.rs @@ -27,7 +27,7 @@ impl Document { } /// Similar to `TryFrom`, but with an `Option` ...
5
5
2
[{"id": "G0", "claim": "Parsing should go straight into `ast::Type` instead of introducing a `FieldType` wrapper struct, since a type reference does not have to appear in a field.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The parse should return Err...
null
apollographql__apollo-rs__757
apollographql/apollo-rs
757
defect
fb5571365203c80142ec90d471d9e20d83f890ec
d0dbacd234c544534ae4117af9ebe70458275e8e
feat(compiler): add schema coordinates
Implements parsing and printing for the [Schema Coordinates RFC](https://github.com/graphql/graphql-wg/blob/main/rfcs/SchemaCoordinates.md). Here, `SchemaCoordinate` is an enum of all the different kinds of coordinates. Each kind of coordinate is also its own type. ```rust use apollo_compiler::name; use apollo_...
diff --git a/crates/apollo-compiler/src/coordinate.rs b/crates/apollo-compiler/src/coordinate.rs new file mode 100644 index 000000000..458ffbc27 --- /dev/null +++ b/crates/apollo-compiler/src/coordinate.rs @@ -0,0 +1,286 @@ +use crate::ast::InvalidNameError; +use crate::schema::Name; +use std::fmt; +use std::str::FromS...
4
4
0
[{"id": "G0", "claim": "The coordinate structs should use named fields instead of positional tuple fields, especially where two or more fields have the same type, and stay consistent with each other.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc...
null
apollographql__apollo-rs__760
apollographql/apollo-rs
760
defect
48e296aac69e25a47f05286805f153531588fde6
052892f0658400544ef124de006050dbce5d0428
Implement serde for basic AST types
Extracted from https://github.com/apollographql/apollo-rs/pull/758 Fixes https://github.com/apollographql/apollo-rs/issues/735
diff --git a/crates/apollo-compiler/CHANGELOG.md b/crates/apollo-compiler/CHANGELOG.md index 15e03e5ae..3775bd3fd 100644 --- a/crates/apollo-compiler/CHANGELOG.md +++ b/crates/apollo-compiler/CHANGELOG.md @@ -104,11 +104,23 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Featur...
3
3
0
[{"id": "G0", "claim": "The new CHANGELOG entry line for the `ast::Definition::as_*()` methods should drop the trailing `:` from the pull link, matching the formatting of the other entries.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reword...
null
apollographql__apollo-rs__777
apollographql/apollo-rs
777
defect
580d77b3d85cfb6387fb731cb3b23e40485e298d
056c48ffda235a6df4d81457553a0d57c9a6f9e9
fix(parser): emit syntax errors for variables in const values
https://github.com/apollographql/apollo-rs/issues/538 tracks making such invalid values impossible to represent in Rust data structures, so that users matching on the enum values don’t need to handle impossible cases. But that isn’t needed to make the parser emit syntax errors.
diff --git a/crates/apollo-compiler/CHANGELOG.md b/crates/apollo-compiler/CHANGELOG.md index 2af77a71a..bb3909baf 100644 --- a/crates/apollo-compiler/CHANGELOG.md +++ b/crates/apollo-compiler/CHANGELOG.md @@ -21,14 +21,18 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Features...
3
3
1
[{"id": "G0", "claim": "The new test-data file name says `cont` instead of `const` (0052_cont_value.graphql).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Directives on an enum type definition should be parsed as const: directive::directives(p, Constn...
null
apollographql__apollo-rs__907
apollographql/apollo-rs
907
defect
e27ac26c29928a4c0c7d0398f6c449d381bc6fcf
18a0153706b5257be5b58d5b127e296fbfcc6835
fix: `adopt_orphan_extensions` + schema extensions + implicit root operation interaction
Building a schema with the `adopt_orphan_extensions` option enabled yields an error in the following simple case: ```graphql extend schema { query: Query } type Query { x: Int } ``` ``` Error: duplicate definitions for the `query` root operation type ╭─[schema.graphql:2:25] │ 2 │ extend sche...
diff --git a/crates/apollo-compiler/src/schema/from_ast.rs b/crates/apollo-compiler/src/schema/from_ast.rs index a226e3f32..30c64eb11 100644 --- a/crates/apollo-compiler/src/schema/from_ast.rs +++ b/crates/apollo-compiler/src/schema/from_ast.rs @@ -274,12 +274,28 @@ impl SchemaBuilder { // This a macro...
1
1
1
[{"id": "G0", "claim": "There should be a validation error when `adopt_orphan_extensions` is used and an orphan schema extension provides a root operation type that is also defined by the schema definition, and this should be verified with a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
apollographql__apollo-rs__909
apollographql/apollo-rs
909
defect
f3cb052615a9d5e98312aeecc81995d407297117
e8d9d62ffff4cb4027153bbf69eb6187e2b528ed
An adopted schema extension disables implicit root operations + Prep releases
`adopt_orphan_extensions` is a non-standard mode so we don’t have a spec to precisely define its behavior, but I think this behavior is more consistent. See new test for an example. Also prepare releases for: * apollo-parser@0.8.2 * apollo-compiler@1.0.0-beta.22 * apollo-smitch@0.12.0 (only needed to update the p...
diff --git a/crates/apollo-compiler/CHANGELOG.md b/crates/apollo-compiler/CHANGELOG.md index bc84d780f..a79bb5527 100644 --- a/crates/apollo-compiler/CHANGELOG.md +++ b/crates/apollo-compiler/CHANGELOG.md @@ -17,7 +17,17 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Maintenance...
1
1
0
[{"id": "G0", "claim": "The new apollo-parser 0.8.2 changelog entry could be more clear: it should say that an object type with no fields is syntactically valid when the {} curly braces are omitted, and that it remains valid during validation only as long as an extension for the type also exists which includes field de...
null
apollographql__apollo-rs__984
apollographql/apollo-rs
984
defect
e679b6cd64c45d193657ce12b882af8e08c9bfe5
60767fce99fd98508a50993c0f3da37b8bbd51d7
fix: `Node<SchemaDefinition>::to_ast` method to handle orphan extensions
This PR updated the method not to generate an unnecessary empty `schema {}` definition, if there is an `extend schema` definition. ### Problem An example schema with schema extensions: ```graphql extend schema { query: Query } type Query { x: Int } ``` It can be parsed & validated with orphan...
diff --git a/crates/apollo-compiler/src/schema/serialize.rs b/crates/apollo-compiler/src/schema/serialize.rs index c63cb79dd..6f06de5d4 100644 --- a/crates/apollo-compiler/src/schema/serialize.rs +++ b/crates/apollo-compiler/src/schema/serialize.rs @@ -44,7 +44,19 @@ impl Node<SchemaDefinition> { subscript...
3
2
2
[{"id": "G0", "claim": "There should be a test like this but without `.adopt_orphan_extensions()` if one does not already exist.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The serialised schema with this change may also be invalid per the spec schem...
null
apollographql__apollo-rs__990
apollographql/apollo-rs
990
defect
b1e42c397871d397274b68adf9c058ae5b1b915d
e1346d3393130e77de2b61efd8f0888a5c0dc0bd
feat(compiler): allow SDL to contain built-in scalar definitions
Adds new `ignore_builtin_redefinitions` option on the `SchemaBuilder` to allow SDL to contain built-in scalar re-definitions. Re-definitions are going to be effectively ignored and compiler will continue to use built-in GraphQL spec definitions. While [GraphQL spec](https://spec.graphql.org/October2021/#sec-Scalars) ex...
diff --git a/crates/apollo-compiler/src/schema/from_ast.rs b/crates/apollo-compiler/src/schema/from_ast.rs index 4633df66f..9202fb68e 100644 --- a/crates/apollo-compiler/src/schema/from_ast.rs +++ b/crates/apollo-compiler/src/schema/from_ast.rs @@ -7,6 +7,7 @@ use std::sync::Arc; #[derive(Clone)] pub struct SchemaBui...
1
1
1
[{"id": "G1", "claim": "Skipping a built-in scalar redefinition makes its custom description and directives inaccessible, which the reviewer finds surprising; he proposes replacing the built-in type with the custom definition, or alternatively renaming the option to `ignore_builtin_redefinitions` to solve the confusion...
null
apollographql__apollo-rs__993
apollographql/apollo-rs
993
defect
bfd277224d6ce8cc7dd92262c4de6a71b635c6da
5dd1cd12cf7128bf835ef087dc9b13ac64d9659f
fix(compiler): fix handling of orphan root type extensions
When using `SchemaBuilder#adopt_orphan_extensions` option, we allow users to define type extensions without regular type (this was a common pattern in Apollo Federation v1). In situations where users would define root type extensions only, e.g. ```graphql extend type Query { foo: String } extend type Mutatio...
diff --git a/crates/apollo-compiler/CHANGELOG.md b/crates/apollo-compiler/CHANGELOG.md index 3e0812687..dd2a695a3 100644 --- a/crates/apollo-compiler/CHANGELOG.md +++ b/crates/apollo-compiler/CHANGELOG.md @@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## Fixes +-...
1
1
0
[{"id": "G0", "claim": "Add a comment where orphan type extensions are processed, explaining that they are handled first so they can be reflected on the implicit schema definition below.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apollographql__apollo-server__127
apollographql/apollo-server
127
defect
2c23b111f5edff5a1d11334710a1b02e5e7dda59
8e983b45f3ca01edda69e48850853a801bf3aad9
HAPI Integration Refactor
This is a significant refactor of the HAPI integration to make the plugins more flexible and idiomatic. This should resolve the outstanding issues related to the HAPI integration. Specifically ( #97 and #123 ) WARNING: This refactor does result in breaking changes to the API. TODO: - [x] Update CHANGELOG.md with yo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index bd5ff583edd..a90ae785493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### v0.3.0 +* Refactor HAPI integration to improve the API and make the plugins more idiomatic. ([@nnance](https://github.com/nnance)) in +[PR #127](https://github.com/a...
4
2
1
[{"id": "G0", "claim": "The pull request's new handling of JSON parse errors in variables has no test, which the author says caused the code-coverage drop; he asks whether to add his prepared test (and fixes in the other integrations) in this PR or a separate one.", "category": "testing", "verdict": "uncertain", "prior...
null
apollographql__apollo-server__164
apollographql/apollo-server
164
defect
10dd9097cc2d80da4e5a45bc6a85df89236a0e96
fcee833aaba5c9eeddb6d5b9bf51d5bf9e939250
Monorepo (WIP)
TODO: - [x] fix node 4 on travis (@DxCx) - [X] test versus private repository (@DxCx) - [X] Renaming apollo-server to graphql-server. (#163) - [x] Need to Create GitHub labels and modify lerna.json according it. (@helfer) - [ ] Add Different README.md for each package (@helfer) - [x] General Polish (@helfer) - [ ] Revi...
diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 1bf5f567772..00000000000 --- a/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -src -test -coverage -resources diff --git a/.travis.yml b/.travis.yml index 56c29d611ed..ff5661d6ea4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,9 @@ node_js: - "6" ...
6
1
0
[{"id": "G0", "claim": "The reviewer could not get the project to install and asks what the process for initializing the project is.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using a beta version of lerna may not be the best option.", "category...
null
apollographql__apollo-server__174
apollographql/apollo-server
174
defect
4663252a372e2cdd578a033d67048700c1b2102d
eae2a0ac7e30fc34a28364c14bf8a73082e89fa5
Catch formatError
<!-- Thanks for filing a pull request on Apollo Client! Please look at the following checklist to ensure that your PR can be accepted quickly: --> When formatError throws an error, the request nevers responds. In this PR I add try/catch to formatError and use the default one if the provided fails. This fixes #...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c273f5a0e23..110b565aaba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Pass `ctx` instead of `ctx.request` to options function in Koa integration ([@HriBB](https://github.com/HriBB)) in [PR #154](https://github.com/apollostack/apollo-server/pull/154) * M...
1
1
1
[{"id": "G0", "claim": "When a user-supplied formatError throws, falling back to the default formatter may leak the original error's message to the client, so the catch branch should return a generic 'Internal server error' message instead.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "i...
null
apollographql__apollo-server__180
apollographql/apollo-server
180
defect
36ae6d472bf3d3ad69b91bd69aa2ccddaf69f136
956540a6fa9545f07d2ee87489290a26d185978b
feat: support for GET method for existing servers
TODO: - [X] Support for Express/Connect - [x] Support for HAPI - [x] Support for KOA - [x] Fix Coverage (waiting implementation approval) - [x] More tests? (need ideas :)) - [ ] Documentation updates? (@helfer?) - [x] Update CHANGELOG.md with your change (include reference to issue & this PR) - [x] Make sure al...
diff --git a/README.md b/README.md index fffa1d31bf6..fb36f2e7eb6 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Apollo Server is super-easy to set up. Just npm-install apollo-server, write a G Just run `npm install --save apollo-server` and you're good to go! -### Express +### Express ( POST ) ```js ...
10
6
4
[{"id": "G0", "claim": "The README should not gain separate GET and POST instruction sections; keep the existing examples and just explain (or annotate in code) that body-parser is not needed for GET.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apollographql__apollo-server__255
apollographql/apollo-server
255
defect
bfb7b3b5436fe1021ac038759fd35553c076fa42
dc8791ce05a4ceda4fd34819e19945d07e16050f
Use graphiql option variables if query variables are not supplied
<!-- Thanks for filing a pull request on GraphQL Server! Please look at the following checklist to ensure that your PR can be accepted quickly: --> TODO: - [x] Update CHANGELOG.md with your change (include reference to issue & this PR) - [x] Make sure all of the significant new logic is covered by te...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cf939e0020..7ad8fe27ac2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ### VNEXT * Update GraphiQL to version 0.8.0 ([@DxCx](https://github.com/DxCx)) on [#192](https://github.com/apollostack/graphql-server/pull/192) * Upgrade to GraphQL-js 0.8.1. +* Fix ...
1
1
0
[{"id": "G0", "claim": "The typings on the test helper's createOptions parameter should not have been removed (why were they removed?).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apollographql__apollo-server__59
apollographql/apollo-server
59
defect
50a3341284a35b1c6e7692ae25dbf56ee0204a80
978270f9fae82e4b16d38ba298802b09e5139562
Apollo koa integration
[KoaJS](https://github.com/koajs) apollo-server integration. All tests pass, but I still need to test it in a real-life application. TODO: - [x] Update CHANGELOG.md with your change (include reference to issue & this PR) - [ ] Make sure all of the significant new logic is covered by tests - [ ] Rebase your changes on ...
diff --git a/package.json b/package.json index 4aa3e241dc1..890a7eb8565 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "graphql": "^0.6.1", "hapi": "^13.5.0", "http-errors": "^1.5.0", + "koa": "^2.0.0-alpha.4", "source-map-support": "^0.4.2" }, "devDependencies": { @@ -52,6 ...
7
6
0
[{"id": "G0", "claim": "The OperationStore import in koaApollo.test.ts is unused and should be removed (reported as a lint error).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The koaBody import in koaApollo.ts is unused according to tslint an...
null
apollographql__apollo-server__7433
apollographql/apollo-server
7,433
defect
a96aee9c1d4d1d59927558b6dfbf78263b866de5
81d3d91254e2d7ba9f2e0e6756af7e67e34bc997
fix: updated documentstore to use schema hash
If you have multiple servers running with the same schema, you may wish to share the documentStore cache among them using something such as Redis, rather than inMemory. Using the schema hash this should allow for sharing of the data whilst still creating a new prefix for whenever the schema changes. Fixes #7471
diff --git a/.changeset/wet-berries-report.md b/.changeset/wet-berries-report.md new file mode 100644 index 00000000000..08dddf8edcb --- /dev/null +++ b/.changeset/wet-berries-report.md @@ -0,0 +1,5 @@ +--- +'@apollo/server': patch +--- + +Updated documentStore to use a schema hash rather than a random UUID for custom ...
3
2
0
[{"id": "G0", "claim": "Moving the parsed AST out of memory by using a distributed documentStore such as Redis incurs a deserialization cost on every request that fetches from it.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update the code commen...
null
apollographql__apollo-server__7504
apollographql/apollo-server
7,504
defect
8101896b0d7264fd5b624da415eaeec7ae9ca4fd
959b3adddebdb292a977f3c094ac5367117da7b8
📈 pass through runTelemetry option from landing page configs to embeds
Hi! We had a [user request the ability to turn off telemetry](https://github.com/apollographql/apollo-server/issues/7494), lets allow that. We support this in the embed in[ this merged PR](https://github.com/apollographql/embeddable-explorer/pull/236) and in [studio in this merged PR](https://github.com/mdg-private...
diff --git a/.changeset/honest-donuts-sparkle.md b/.changeset/honest-donuts-sparkle.md new file mode 100644 index 00000000000..550008ae17a --- /dev/null +++ b/.changeset/honest-donuts-sparkle.md @@ -0,0 +1,5 @@ +--- +'@apollo/server': minor +--- + +Add runTelemetry boolean option to embedded landing pages diff --git a/...
4
4
2
[{"id": "G0", "claim": "The Sandbox embed's runTelemetry doc comment should read 'Set to false to disable running telemetry in Apollo Studio from the landing pages.' instead of 'Set the false'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Ex...
null
apollographql__apollo-server__7539
apollographql/apollo-server
7,539
defect
8101896b0d7264fd5b624da415eaeec7ae9ca4fd
5d3c45be9d871ac1ccc2e5cce70fcd60591f39a4
🔓 🐛 safelist cdn scripts in meta tag in landing page
[Slack context](https://apollograph.slack.com/archives/CR62ZA5E0/p1682974036307769) Pierre found that in Safari the AS embedded Sandbo str8 up doesn't work ?! How long has this been going on without us knowing? Shocked. Anyways, we needed to add a [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/C...
diff --git a/.changeset/sweet-planets-hang.md b/.changeset/sweet-planets-hang.md new file mode 100644 index 00000000000..cd03b8f4dbf --- /dev/null +++ b/.changeset/sweet-planets-hang.md @@ -0,0 +1,5 @@ +--- +'@apollo/server': patch +--- + +🐛 Bug Fix for Apollo Server Landing Pages on Safari. A Content Security Policy ...
2
2
1
[{"id": "G0", "claim": "The ${version} interpolated into the Content-Security-Policy meta tag's apollo-server-landing-page CDN URL should be URL-encoded like the other version interpolations in that tag.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
apollographql__apollo-server__7741
apollographql/apollo-server
7,741
defect
64bb9b093a9cd39bd79f83027c4dde7027b262d7
07585fe39751a5d4009664293b6e413078a9b827
Landing Pages: switch from `_latest` to `v*` cdn buckets to pin major versions of landing pages
I published these buckets once already. Circle CI changes [here](https://github.com/apollographql/embeddable-explorer/pull/280) in AS5 we want to pin embeddable code versions. Question - should we pin up to patch decimal, not just major? Just in case?
diff --git a/.changeset/cool-dancers-tickle.md b/.changeset/cool-dancers-tickle.md new file mode 100644 index 00000000000..e073bcee4ba --- /dev/null +++ b/.changeset/cool-dancers-tickle.md @@ -0,0 +1,5 @@ +--- +'@apollo/server': patch +--- + +Pin major releases of embeddable Explorer & Sandbox code. diff --git a/packag...
2
2
1
[{"id": "G0", "claim": "Export the default version constants from the landing page plugin and import them in the tests so that test updates are tied to the constants updating.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The integration test a...
null
apollographql__apollo-server__7803
apollographql/apollo-server
7,803
defect
22728418684980ec8170cc900caf285600521590
c96d03b294c7d52fb6548b762a9705e70501eabd
feat: allow `stringifyResult` to return a `Promise<string>`
Previously `stringifyResult` had to be synchronous, despite only ever being called from the async context of `runHttpQuery`. This is an issue when the custom stringification function provided by the user through the constructor has to be async, for example when working with very large POJOs one could use [json-stream-s...
diff --git a/.changeset/thirty-hairs-change.md b/.changeset/thirty-hairs-change.md new file mode 100644 index 00000000000..901422aacc1 --- /dev/null +++ b/.changeset/thirty-hairs-change.md @@ -0,0 +1,5 @@ +--- +"@apollo/server": minor +--- + +allow `stringifyResult` to return a `Promise<string>` diff --git a/packages/s...
3
3
2
[{"id": "G0", "claim": "The changeset should mention the behavior change of `errorResponse` (who is affected and what the expected behavior change is).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added to exercise the new `stri...
null
apollographql__apollo-server__7871
apollographql/apollo-server
7,871
defect
7e6490281e10dc6c33f37613f42179ba96e6bdae
845912241b97ae8381716683b2018b48947e2b9b
Eagerly start subscription heartbeats
# Overview Eagerly start subscription heartbeats in case the subscription has long-running setup steps before returning its async generator. When a subscription is configured, `subscribe` can return either an `AsyncGenerator` or a `Promise<AsyncGenerator>`. If an `AsyncGenerator` is returned, the previous code works...
diff --git a/.changeset/angry-carrots-allow.md b/.changeset/angry-carrots-allow.md new file mode 100644 index 00000000000..dddaf64d617 --- /dev/null +++ b/.changeset/angry-carrots-allow.md @@ -0,0 +1,5 @@ +--- +"@apollo/server": patch +--- + +Subscription heartbeats are initialized prior to awaiting subscribe(). This a...
1
1
0
[{"id": "G0", "claim": "The comment block in packages/server/src/plugin/subscriptionCallback/index.ts (saying a real subscription lets the plugin kick off the heartbeat interval) needs updating now that the heartbeat is started earlier.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "...
null
apollographql__apollo-server__7916
apollographql/apollo-server
7,916
defect
d8e6da5bd7372f9248952e27483846770afc2ee1
b11adcef88a2f1519691d219564ee3217d59baf4
Hide "did you mean" suggestions via internal plugin to avoid leaking schema information
It was previously discussed (see: https://github.com/apollographql/apollo-server/issues/3919) to wait for https://github.com/graphql/graphql-js/issues/2247 to close, however, that issue has not moved in years and in the mean time libraries and frameworks seem to have opted for implementing their own solutions (E.g. htt...
diff --git a/.changeset/pretty-buckets-develop.md b/.changeset/pretty-buckets-develop.md new file mode 100644 index 00000000000..10112fb50dc --- /dev/null +++ b/.changeset/pretty-buckets-develop.md @@ -0,0 +1,5 @@ +--- +'@apollo/server': minor +--- + +Add `hideSchemaDetailsFromClientErrors` option to ApolloServer to al...
3
2
0
[{"id": "G0", "claim": "The tests use the made-up field name `helloo`, which forces several cspell exception comments, and changing the example to `help` would remove the need for them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changese...
null
apollographql__apollo-server__8062
apollographql/apollo-server
8,062
defect
c9738e2ea052cde5bfff3a85491e4992ae68ee9d
2d56a4c8a055b185d8bf5c6f0b1c56be9dd74bd1
feat: Allow configuration of graphql execution options(maxCoercionErrors)
Closes https://github.com/apollographql/apollo-server/issues/8061 This PR introduces de ability to configure the graphql execution option `maxCoercionErrors` to control how many errors we want to allow in coercion phase. Currently, it defaults to 50 on graphql.
diff --git a/.changeset/curly-friends-argue.md b/.changeset/curly-friends-argue.md new file mode 100644 index 00000000000..92d38e02cac --- /dev/null +++ b/.changeset/curly-friends-argue.md @@ -0,0 +1,15 @@ +--- +'@apollo/server': minor +--- + +Allow configuration of graphql execution options (maxCoercionErrors) + +```j...
2
2
2
[{"id": "G0", "claim": "It needs docs before the change can be merged.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sentence referencing status400ForVariableCoercionErrors should be removed from the executionOptions documentation since that ...
null
apollographql__apollo-server__92
apollographql/apollo-server
92
defect
d0aea972af3d09418badac3666cc8c27449f25c1
8cca853d1632a679eb4ccf210c678c6150fe81ca
Execute queries in Fibers to support yielding APIs.
This change makes the global `Promise` constructor run all its `.then` callbacks using `Fiber`s drawn from a pool of recyclable `Fiber` objects. In other words, any code that runs during query evaluation can now call any `Fiber`-based Meteor API. I removed the `"no-var-requires": true,` lint rule because `import Fiber...
diff --git a/package.json b/package.json index 8dd4952ec56..4e638d5f94b 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,9 @@ }, "homepage": "https://github.com/apollostack/apollo-proxy#readme", "dependencies": { + "fibers": "^1.0.13", "http-errors": "^1.5.0", + "meteor-promise": "^0.7.3", ...
1
1
1
[{"id": "G0", "claim": "It should be possible to move the four Promise/Fiber-compatibility lines either to the meteor-integration package or to Meteor itself.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__apollo-tooling__1130
apollographql/apollo-tooling
1,130
defect
e878c9cc1398c5ca8c3ac99b1eb73ef92e256d10
479f2139bf5886eed7ff6926e0e62263bfe52afa
Feat/file extension
TODO: - [ ] Update CHANGELOG.md\* with your change (include reference to issue & this PR) - [ ] Make sure all of the significant new logic is covered by tests - [ ] Rebase your changes on master so that they can be merged easily - [ ] Make sure all tests and linter rules pass @JakeDawkins Hey, I have done the ...
diff --git a/packages/apollo-codegen-core/src/compiler/index.ts b/packages/apollo-codegen-core/src/compiler/index.ts index 0a23f7b8a1..1625b377b0 100644 --- a/packages/apollo-codegen-core/src/compiler/index.ts +++ b/packages/apollo-codegen-core/src/compiler/index.ts @@ -42,6 +42,7 @@ export interface CompilerOptions { ...
9
9
8
[{"id": "G0", "claim": "The fileExtension flag is not registered on the Generate CLI command class, so the codegen command cannot accept it; it needs to be added there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new flag needs tests, followi...
null
apollographql__apollo-tooling__1142
apollographql/apollo-tooling
1,142
defect
cb4d19d36cbf9d15ad05e43d95cf39c5762174bb
f7255ce023c380057b2fb8a530776f061dce1e9d
UI-307: Add `--markdown` option to `schema:check`
TODO: - [x] Update CHANGELOG.md\* with your change (include reference to issue & this PR) - [x] Make sure all of the significant new logic is covered by tests - [x] Rebase your changes on master so that they can be merged easily - [x] Make sure all tests and linter rules pass
diff --git a/packages/apollo-language-server/src/engine/operations/checkSchema.ts b/packages/apollo-language-server/src/engine/operations/checkSchema.ts index 6074e730f2..8f82e57b46 100644 --- a/packages/apollo-language-server/src/engine/operations/checkSchema.ts +++ b/packages/apollo-language-server/src/engine/operati...
3
3
0
[{"id": "G0", "claim": "The negative-days computation in formatMarkdown is hard to read; use Math.abs() instead of negating the moment diff.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "runTasks should include a null check for this.ctx that th...
null
apollographql__apollo-tooling__1241
apollographql/apollo-tooling
1,241
defect
0c2b07f67ceb03627f0658f2c2b2fadd008586e2
c452eec29c368d39f49ffc4bbf9e036f19db60f1
Skip redundant modifiers
Resolves #1177. The goal is to prevent compiler warnings for redundant access-level modifiers when using `--namespace`. It covers queries and fragments, according to basic testing at least, resolving the initial issue. Are there more types affected by this? @martijnwalraven - [x] Update CHANGELOG.md\* with your ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bf44534db..9da970ea99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ - `apollo-codegen-scala` - <First `apollo-codegen-scala` related entry goes here> - `apollo-codegen-swift` - - <First `apollo-codegen-swift` related entry goes here> + - Prevent co...
2
1
0
[{"id": "G0", "claim": "Use the shorthand property `modifiers` since the variable name matches the key, making the second `modifiers` in `modifiers: modifiers` redundant.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Skipping the redundant modi...
null
apollographql__apollo-tooling__1345
apollographql/apollo-tooling
1,345
defect
5da98d6c066553d111654825c30bab597769f158
df3c7c1355dbeb62eaacc22d2cfcbe2616c6bcd8
Add support for custom enum resolvers and scalar types
As described in #1343 and #1344, it is better to use `addResolveFunctionsToSchema` from graphql-tools to add the resolvers to the new schema, as it is how the resolvers are added normally in apolo-server, so that both scalars and enums are handled properly. As a TODO, it might be sensible to use more functionality from...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fa03d3fbf..c426ce96a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ - `apollo-env` - <First `apollo-env` related entry goes here> - `apollo-graphql` - - <First `apollo-graphql` related entry goes here> + - buildSchemaFromSDL - Add support for mergi...
4
4
2
[{"id": "G0", "claim": "Do not add graphql-tools as a dependency to this package; duplicate the missing enum/abstract-type logic into buildSchemaFromSDL for now.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The enum-renaming solution (overriding type.getV...
null
apollographql__apollo-tooling__1358
apollographql/apollo-tooling
1,358
defect
5da98d6c066553d111654825c30bab597769f158
ffa985b06c49cea5bffdfa6f83287749f96dd852
service:list in CLI
This PR adds `service:list` to the Apollo CLI tool, printing out the lists in a federated services like so: ![image](https://user-images.githubusercontent.com/14367451/59806627-df00a300-92a9-11e9-8158-0f7f843d98b8.png) Open questions: - ~is copy / pasting the functions `uncaptureApplicationOutput` and `captureAppl...
diff --git a/packages/apollo-language-server/src/engine/index.ts b/packages/apollo-language-server/src/engine/index.ts index 4f3eca2547..c17a3ce865 100644 --- a/packages/apollo-language-server/src/engine/index.ts +++ b/packages/apollo-language-server/src/engine/index.ts @@ -8,7 +8,10 @@ import { SCHEMA_TAGS_AND_FIELD_S...
18
10
1
[{"id": "G0", "claim": "The console-capture helpers copied from check.test.ts should be shared across CLI tests (e.g. via a custom logger), or at minimum be commented in both files as duplicated by necessity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
apollographql__apollo-tooling__1404
apollographql/apollo-tooling
1,404
defect
1907dc399f689ee6b942e5d16dc8193f4f1bd6e4
9f7322b3163dab80a8d570dee8c3fef06a6c7572
Shorten client:check and service:check output in CI
TODO: - [x] Update CHANGELOG.md\* with your change (include reference to issue & this PR) - [x] Make sure all of the significant new logic is covered by tests - [x] Rebase your changes on master so that they can be merged easily - [x] Make sure all tests and linter rules pass \*Make sure changelog entries note...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 65ac399830..b163ae4955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Upcoming - `apollo` - - <First `apollo` related entry goes here> + - Add `--compactOutput` flag to `service:check` [#1404](https://github.com/apollographql/apollo-tooling/pull/1404...
4
2
1
[{"id": "G0", "claim": "Compact output should be enabled automatically in CI environments via env-ci's isCI flag rather than only behind a manual --compactOutput flag, and the reviewer asks whether that lands in this PR or a separate one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro...
null
apollographql__apollo-tooling__1429
apollographql/apollo-tooling
1,429
defect
bb51ec7560510206991ca61a4f7b49af7253a408
376ae1b1a70ae6bc2e35d631f1735a256fb5846e
Standardize language server errors
This PR is the result of investigating how other implementations of the language server protocol handle errors. This PR proposes a new method of handling errors across the language server and its clients (CLI and VS Code). The intention is to produce a more friendly, consistent means by which to log and handle errors, ...
diff --git a/packages/apollo-language-server/src/config/__tests__/loadConfig.ts b/packages/apollo-language-server/src/config/__tests__/loadConfig.ts index a7169c4f38..c4d41e87a0 100644 --- a/packages/apollo-language-server/src/config/__tests__/loadConfig.ts +++ b/packages/apollo-language-server/src/config/__tests__/loa...
4
3
0
[{"id": "G0", "claim": "The `connection` static property on the language server's Debug class should be private instead of public.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The null-config check with error and exit in ProjectCommand.run is redundant...
null
apollographql__apollo-tooling__1441
apollographql/apollo-tooling
1,441
defect
bab981598b82006fa2eef4acc1590656fd76d095
077f4dcb344b48123ef0793463111b9e6a59d41d
Swift Codegen Upgrades
In this PR: - Added `CaseIterable` conformance to `enum` types so all known cases can be easily iterated. - Added comments with the original fragment or query definition to `operationDefinition` and `fragmentDefinition` - Trimmed out excess whitespace from the final strings sent to the server for `operationDefiniti...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 92714fdf29..295c945cb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,9 @@ - `apollo-codegen-scala` - <First `apollo-codegen-scala` related entry goes here> - `apollo-codegen-swift` - - <First `apollo-codegen-swift` related entry goes here> + - Added `Cas...
4
3
1
[{"id": "G0", "claim": "lilyball prefers stripping irrelevant whitespace from the generated query, leaving a single-line string, rather than emitting the operation as a multiline string, because the raw query is not what the generated Swift source is read for.", "category": "design", "verdict": "supported", "priority":...
null
apollographql__apollo-tooling__1451
apollographql/apollo-tooling
1,451
defect
851ea49a297aaf5e08a4a4c94299b69d336bea58
697e93f4fa2904dd6bb119e3beb4f4f706b1a34a
Swift: Fix regression for individual files.
#1449 Pointed out that #1241 introduced a regression when files are being output individually. This PR updates our logic to make sure that information is shared and then fix the issue.
diff --git a/CHANGELOG.md b/CHANGELOG.md index c34dc76f08..5d7da3aca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - <First `apollo-codegen-scala` related entry goes here> - `apollo-codegen-swift` - Fix issue where type names were not being properly escaped [iOS 193](https://github.com/apollogr...
2
2
1
[{"id": "G0", "claim": "The `isRedundant` conditions should test `outputIndividualFiles` rather than `!outputIndividualFiles`, since `public` is redundant only when the codegen writes extensions (i.e. when outputting individual files).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
apollographql__apollo-tooling__1537
apollographql/apollo-tooling
1,537
defect
0d9333e330afe05266efd7c44b36231d5b7c0baa
2ec9fb44235eb7bf0b15d400c970699b5a0f299c
[swift] Use multi-line string literals for queries
In this PR there are a few changes to the Swift codegen: - Defaulted to printing queries as multi-line string literals to make sure the queries match the SHA256 hash being generated in `operationIdentifier` - Added `--suppressSwiftMultilineStringLiterals` flag which defaults to false if you'd rather strip out all ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index da538ab5c4..06dfe3f675 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ - `apollo-codegen-scala` - <First `apollo-codegen-scala` related entry goes here> - `apollo-codegen-swift` - - <First `apollo-codegen-swift` related entry goes here> + - Switch ope...
7
4
1
[{"id": "G0", "claim": "The verbose var/if-else defaulting of suppressSwiftMultilineStringLiterals in packages/apollo/src/generate.ts should be simplified (e.g. Boolean(options.suppressSwiftMultilineStringLiterals) or || false) and the var replaced with const.", "category": "maintainability", "verdict": "supported", "p...
null
apollographql__apollo-tooling__1539
apollographql/apollo-tooling
1,539
defect
0d9333e330afe05266efd7c44b36231d5b7c0baa
6877a0ee18c14644d62c7427ffcc41c341d67375
Modify service:check command to use combined mutation
Several months ago, we implemented a mutation called `checkPartialSchema`, which was designed to encapsulate both checking for ability to compose and validating schema changes against operations. This new mutation has several added benefits, like displaying a new webpage with better information for federation u...
diff --git a/packages/apollo-language-server/src/engine/index.ts b/packages/apollo-language-server/src/engine/index.ts index 284e8e03b2..41d90aa64c 100644 --- a/packages/apollo-language-server/src/engine/index.ts +++ b/packages/apollo-language-server/src/engine/index.ts @@ -26,7 +26,8 @@ import { CheckPartialSchema,...
1
1
1
[{"id": "G0", "claim": "Attach the checkSchemaResult to taskOutput in the federated branch so formatHumanReadable below has access to the data it expects.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__apollo-tooling__1595
apollographql/apollo-tooling
1,595
defect
028a414dea8efe110ae8de82d9abad652179deeb
1bd08520be2173bae4025fd544a100c2f2b5156b
Swift: Add flag to omit deprecated enum cases
Implement feature request described in https://github.com/apollographql/apollo-ios/issues/840 TODO: - [x] Update CHANGELOG.md\* with your change (include reference to issue & this PR) - [x] Make sure all of the significant new logic is covered by tests - [x] Rebase your changes on master so that they can be mer...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 61597b9ce5..fa84aee65e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - <First `apollo-codegen-scala` related entry goes here> - `apollo-codegen-swift` - Fix code generation for empty input objects / arrays [#1589](https://github.com/apollographql/ap...
1
1
1
[{"id": "G0", "claim": "The pull request adds no tests for the new omitDeprecatedEnumCases behavior; tests for it should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__apollo-tooling__1610
apollographql/apollo-tooling
1,610
defect
e14dbe22c4d1dc45e49c035891f3ec81bc846115
b361b1656ea602b9382b8fa3cc33ca62953b52e0
Remove Azure Pipelines CI work
This PR intends to do the following: - Remove all Azure checks - This will unify our CI processes and shared work for releases and generally make life easier when running manual rebuilds, debugging, etc. - Move extension building/testing step to circleci - Automatically publish the extension after release has b...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 26de0f7464..c40dcf41ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,8 @@ orbs: # `oss` is a local reference to the package. The source for Apollo Orbs can # be found at http://github.com/apollographql/CircleCI-Orbs. oss:...
4
3
0
[{"id": "G0", "claim": "The duplicated node_modules prepare and cleanup command fragments in package-extension and publish-extension should be factored into a shared _internal:prepare-extension script to DRY them up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null