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
wso2__transport-http__282
wso2/transport-http
282
defect
9ed420669f499c27373e1e6b1db1a1a3042e6ec6
e631e90a138c4b67e50d193e4b7e4a5ecaadc53d
Support setting mutual ssl as 'optional'
## Purpose Fix the issue: https://github.com/ballerina-platform/ballerina-lang/issues/12801
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/Constants.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/Constants.java index c738bf076..165ce0b21 100644 --- a/components/org.wso2.transport.http.netty/src/ma...
2
2
0
[{"id": "G0", "claim": "Add an else branch with a log message for unrecognized verifyClient values in SslConfiguration.setVerifyClient.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an else branch with a log message for the unmatched needCl...
null
wso2__transport-http__291
wso2/transport-http
291
defect
5ea469225c5996ce2d845a200a54cef3a515a641
e560c50381b04ef55b111b774ce189b22af15653
Facilitate the use of shared connection manager among HTTP clients
## Purpose > Existing implementation doesn't allow the sharing of connection manager among clients. This PR adds that missing feature. ## Approach > Introduce the new API for client creation which takes the connection manager as an argument ## Certification > Type “Sent” when you have provided new/updated cert...
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/HttpWsConnectorFactory.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/HttpWsConnectorFactory.java index a42157747..e0816ad0c 100644 --- a/components/org.wso2.t...
3
2
0
[{"id": "G0", "claim": "getClientPool can be optimised by checking for key existence outside the synchronized block and re-checking inside it (double-checked locking), so that threads hitting an existing pool do not always block on the lock.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": ...
null
wso2__transport-http__297
wso2/transport-http
297
defect
f26e32f8e766f957fcf3c2d62b78443eaaca5b38
2e63080afcd16fe660b25aaf9fc9db20f8ca5542
Set default forwarded configurations to disabled
Transport shouldn't modify Forwarded/X-Forwarded header by default if the user doesn't specifically configure to do so. ## Automation tests - Unit tests > Yes ## Security checks - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes - Ran FindSec...
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/config/SenderConfiguration.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/config/SenderConfiguration.java index 729e67469..db93f0f81 100644 --- a/components/or...
2
1
0
[{"id": "G0", "claim": "The new ForwardedTestUtils class should have class javadoc added.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ForwardedDefaultTestCase class javadoc should say more to highlight the default (disabled) Forwarded behav...
null
wso2__transport-http__303
wso2/transport-http
303
defect
9fa00d8058bb5f4d7018b52ef189f027b467a138
5b77ecb323609daf40e29212f8d7d508cf8726f2
Support setting ssl handshake/session time out
## Purpose Currently, there is no way of changing the default values of SSL session time out and SSL handshake time out. This PR is to introduce the capability to set SSL handshake and session time outs as a user prefers. Fixed issues: https://github.com/ballerina-platform/ballerina-lang/issues/13847 https://githu...
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/config/SslConfiguration.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/config/SslConfiguration.java index a78f2f9b0..4bff32b24 100644 --- a/components/org.wso2...
2
2
0
[{"id": "G0", "claim": "Use a test constant for the ssl session/handshake timeout values instead of hardcoded literals, as they are used in all classes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Refactor setSslHandshakeTimeOut to store sslC...
null
wso2__transport-http__310
wso2/transport-http
310
defect
bb68199d9c21b842ad814cd5ca3e193c0c693fb3
bad5e93db8338ac19745f449204183f6693ba945
Remove HTTP/2 client connection from the pool when the stream ids are exhausted
$subject. Fixes https://github.com/ballerina-platform/ballerina-lang/issues/14380
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/sender/http2/Http2ClientChannel.java index b23562ed2..89d5081a6 100644 -...
1
1
0
[{"id": "G0", "claim": "The LOG.warn call misuses SLF4J's exception-only overload by passing a message with no placeholder and ex.getMessage() as the first parameter, so it should use the {} placeholder form.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wso2__transport-http__330
wso2/transport-http
330
defect
8f512fe4f22d8917c7faeedad4a28ccbca8cb70d
b5d8f01de7b0f8f41c05514de667d520e828e0b3
Provide first class support for essential request and response properties
## Purpose Provide first class support for essential request and response properties in carbon message ## Goals Fix the issue : https://github.com/ballerina-platform/ballerina-lang/issues/14953
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/Constants.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/Constants.java index 2c1ad4219..29b49c9f5 100644 --- a/components/org.wso2.transport.http.netty/src/ma...
2
2
0
[{"id": "G0", "claim": "Write the HTTP/2 version comparisons constant-first (Constants.HTTP_2_0.equals(version)) in DefaultHttpClientConnector, StateUtil and HttpClientChannelInitializer instead of calling equals on the version string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
wso2__transport-http__340
wso2/transport-http
340
defect
28b8f147b25cb605b2037cd111c40d12b32c3f71
a8f66111f00a4090f80b4cd8151f2978e0c7ca87
Provide an option to disable SSL certificate validation
## Purpose Fix the issue: https://github.com/ballerina-platform/ballerina-lang/issues/15147
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/config/SslConfiguration.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contract/config/SslConfiguration.java index 4bff32b24..d10198ed1 100644 --- a/components/org.wso2...
4
4
1
[{"id": "G0", "claim": "The setDisableSsl parameter appears unnecessary because the boolean is always true, so the setter could drop the parameter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "getSSLConfigForSender should check the inverse condition (i...
null
wso2__transport-http__354
wso2/transport-http
354
defect
c81d1745e2b17dc413fd2128817b18aecff61a04
19419636374e43b52067718b58388c638d862613
Support forwarded header for http2
## Purpose Fix the issue: https://github.com/ballerina-platform/ballerina-lang/issues/17281
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/DefaultHttpClientConnector.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/DefaultHttpClientConnector.java index 95256a261..b17da367b 100644 --- a/compo...
3
3
1
[{"id": "G0", "claim": "Use the connector's own forwardedExtensionConfig field instead of senderConfiguration.getForwardedExtensionConfig() when setting the forwarded extension.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Group the forwarded-...
null
wso2__transport-http__398
wso2/transport-http
398
defect
672ec4aa3cd29bf2100196a4037ea7f7a81b1154
b893c53ba157727923f498e1410a695d548236c7
Refactor HTTP2 Trailer header logic and add test cases
## Purpose > Add API to hold trailing headers in the carbon message. > Implement user provided trailing header handling process. > Fix payload hanging issue due to trailing header set > Add Trailer header internally after http2-to-http header conversion ## Goals > Provide API to process trailing headers(https:/...
diff --git a/components/org.wso2.transport.http.netty.statistics/pom.xml b/components/org.wso2.transport.http.netty.statistics/pom.xml index dc5c1d9de..a2b1ad530 100644 --- a/components/org.wso2.transport.http.netty.statistics/pom.xml +++ b/components/org.wso2.transport.http.netty.statistics/pom.xml @@ -21,7 +21,7 @@ ...
4
4
0
[{"id": "G0", "claim": "In the REQUEST case of onMessage, the do-while loop's closing brace and `while (true);` should be joined onto one line as `} while (true);`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the RESPONSE case of onMessage...
null
wso2__transport-http__400
wso2/transport-http
400
defect
1f0915a920bb90c6f6cee7f9deb520d85ac9291a
e2dd6595eb6f3f54078a34bdf8c9b82d0a62b59a
Add HTTP/1.1 Trailer support
## Purpose > Add trailer header read/write for HTTP when response is chunked > Remove request trailer handling logic > Auto generate trailer header > Refactor test cases ## Goals > Achieve https://tools.ietf.org/html/rfc7230#section-4.1.2 ## Automation tests - Unit tests > Added - Integration tests ...
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/states/StateUtil.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/common/states/StateUtil.java index a5087c4e7..e0d6712c6 100644 --- a/components/...
1
1
1
[{"id": "G0", "claim": "The EMPTY_LAST_CONTENT early-return in writeTrailerHeaders is unnecessary; trailer headers can still be written even when the last content is empty, so the check should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wso2__transport-http__412
wso2/transport-http
412
defect
88f6655d05bb9dc3e5fe818875c7f9e266927f52
fc2cfc976d34567b5243f6dea142ebef43004870
Fix the issue with HTTP2 content-encoding
## Purpose Fix the https://github.com/ballerina-platform/ballerina-lang/issues/24977 ## Goals Fix the issue of HTTP2 server not encoding when the request is sent with multiple values in `accept-encoding` header. ## Approach In HTTP1.1, this is done in [HttpContentCompressor](https://github.com/netty/netty/blob...
diff --git a/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/Http2OutboundRespListener.java b/components/org.wso2.transport.http.netty/src/main/java/org/wso2/transport/http/netty/contractimpl/Http2OutboundRespListener.java index d043e758f..e5baff038 100644 --- a/compone...
3
3
2
[{"id": "G0", "claim": "Add an else branch so every branch of the encoding loop is completed and log a message for unsupported/custom compression schemes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add more test scenarios, including a test case ...
null
wso2__wso2-commons-vfs__47
wso2/wso2-commons-vfs
47
defect
b7d32fa2fc49df39098745c533178e4e34832b6a
5718cf62d8262cf551f18cd3b767fb080d1841ad
Fix issues related to vfs commons version upgrade
## Purpose https://wso2.org/jira/browse/ESBJAVA-3980 and Obfuscating the vfs passwords in FileNotFoundException stacktrace and adding unit test for that. ## Security checks - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes - Confirmed that this PR d...
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOriginatingFileProvider.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOriginatingFileProvider.java index 5a946b38f..af2e9ab9f 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractOri...
1
1
0
[{"id": "G0", "claim": "The pull request adds an extra blank line after the CONNECT_TIMEOUT field in AbstractOriginatingFileProvider that should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
wtfutil__wtf__1037
wtfutil/wtf
1,037
defect
fd794707cda6f94941d49fc0f600862380848842
354d72c9a6cb907160b4c3ea9b759a4b20f203ce
[modules] Add new covid tracker module
This is a covid tracker module using this API: https://coronavirus-tracker-api.herokuapp.com/#/v2/. the config would look like: ```yaml covid: enabled: true countries: - "FR" - "US" - "DE" - ... refreshInterval: 120 position: ... ``` And the result would look like:...
diff --git a/app/widget_maker.go b/app/widget_maker.go index 784111ece..02d373af6 100644 --- a/app/widget_maker.go +++ b/app/widget_maker.go @@ -13,6 +13,7 @@ import ( "github.com/wtfutil/wtf/modules/circleci" "github.com/wtfutil/wtf/modules/clocks" "github.com/wtfutil/wtf/modules/cmdrunner" + "github.com/wtfutil...
4
4
1
[{"id": "G0", "claim": "The global stats heading misspells \"Global\" as \"Gobal\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The global Deaths line prints cases.Latest.Confirmed, so Confirmed and Deaths show the same value.", "category": "co...
null
wtfutil__wtf__1107
wtfutil/wtf
1,107
defect
cf1d3aec4af9ca2aa506465807756ffbbdc24705
23911fe31566c8fb154cae59f92c9d16eef291dd
Tags and filter system
![2021-09-12-180517_701x347_scrot](https://user-images.githubusercontent.com/33228844/132994719-cd299bf3-6659-4e97-9814-e79faacba46c.png) - add tags to todos simply by typing `#tag` anywhere inside the text prompt when adding/editing an item - filter items by tag by pressing `#` and entering a full tag or tag prefi...
diff --git a/checklist/checklist.go b/checklist/checklist.go index 3d47f7b91..b608a4a93 100644 --- a/checklist/checklist.go +++ b/checklist/checklist.go @@ -28,10 +28,11 @@ func NewChecklist(checkedIcon, uncheckedIcon string) Checklist { // Add creates a new checklist item and adds it to the list // The new one is ...
1
1
1
[{"id": "G0", "claim": "Reverting the help key from '/' to '?' changes a fundamental keyboard binding and will break users' expectations and muscle memory, so the PR should keep helpKeyChar as '/'.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wtfutil__wtf__1120
wtfutil/wtf
1,120
defect
3538d1aa0fd3e8ef6f1556396da44434432b3d25
89f00ee407128f255b065c2963899217f918a338
Implement refreshIntervals < 1 seconds by adding refreshUnit field
Solves #1103 Adds a `refreshUnit` field to common config (as proposed by @noxer) Adds a (slow running) test as a sanity check.
diff --git a/app/scheduler.go b/app/scheduler.go index e4b95f9f0..7311b6537 100644 --- a/app/scheduler.go +++ b/app/scheduler.go @@ -11,7 +11,7 @@ import ( func Schedule(widget wtf.Wtfable) { widget.Refresh() - interval := time.Duration(widget.RefreshInterval()) * time.Second + interval := time.Duration(widget.Ref...
1
1
0
[{"id": "G0", "claim": "Replace the two-setting RefreshInterval x RefreshUnit multiply with a single RefreshInterval value parsed as a duration that defaults to seconds, and show valid use cases for sub-second refresh before keeping the feature.", "category": "design", "verdict": "supported", "priority": "P2", "scope":...
null
wtfutil__wtf__996
wtfutil/wtf
996
defect
6593827a997edd9f4b820e16179996165ceda6e9
aa7cf4aab44a7f9224211d28d02242169a5d617f
Add an app exit banner message
When the app exits, it now displays a text banner message highlighting sponsorship support for WTF. <img width="659" alt="exit_message" src="https://user-images.githubusercontent.com/6413/95684026-8bebe700-0ba3-11eb-9d8f-34f768f836b3.png"> Users who are code contributors or sponsors can opt out of exit message by...
diff --git a/app/exit_message.go b/app/exit_message.go new file mode 100644 index 0000000000..4a26c0022f --- /dev/null +++ b/app/exit_message.go @@ -0,0 +1,110 @@ +package app + +import ( + "fmt" + "os" + "strings" + + "github.com/logrusorgru/aurora" + "github.com/olebedev/config" + "github.com/wtfutil/wtf/support" +) ...
1
1
0
[{"id": "G0", "claim": "The custom HTTP_OK constant duplicates what net/http already provides, so the code should use the standard library's http.StatusOK instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wuhan005__NekoBox__72
wuhan005/NekoBox
72
defect
6a3343fbcce201b9a5aaa5f49f47234a7e6df372
9a9c540f9b125c640fca076507bc576bd4d02bfb
test: e2e test
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added a full Playwright end-to-end test suite covering authentication, question posting/answering, image uploads, email notifications, and CI-friendly reporting. * Added E2E test config, helpers, and...
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 00000000..d934c336 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,150 @@ +name: E2E Tests + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + e2e: + name: Run E2E Tests + ...
7
1
0
[{"id": "G0", "claim": "The e2e workflow does not limit the permissions of the GITHUB_TOKEN, and CodeQL asks to set an explicit permissions block, using contents: read as a minimal starting point.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The fron...
null
wulkano__Kap__1021
wulkano/Kap
1,021
defect
45a7a522f1cdd547b8123b685ae7948a769cfb49
35a63a08d6b1ae0d519ede0dfb62d3e7c07642fd
Add support for HEVC, use ffmpeg-static
Closes https://github.com/wulkano/kap/issues/629. Changes: - Adds support for libx265 / HEVC - Switches out `@ffmpeg-installer/ffmpeg` for `ffmpeg-static` - The ffmpeg versions included by the current package are 3 years out of date. There's talk of [merging it with `ffmpeg-static`](https://github.com/kribblo/no...
diff --git a/main/common/constants.ts b/main/common/constants.ts index 876d2ac7..6f4a1032 100644 --- a/main/common/constants.ts +++ b/main/common/constants.ts @@ -3,12 +3,12 @@ import {Format} from './types'; export const supportedVideoExtensions = ['mp4', 'mov', 'm4v']; const formatExtensions = new Map([ - ['av1'...
1
1
1
[{"id": "G0", "claim": "The hevc entry should be added after webm in the export-usage-history defaults (instead of right after gif) to avoid similar issues as previously seen with AV1.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wunderfrucht__gouqi__113
wunderfrucht/gouqi
113
defect
4259a2c5f50476ca004a2417ab8bf1bd299c3251
f9413b3ae4efa2f34d9742b6a0dc59cad6f1a8bb
fix: resolve async stream V3 pagination infinite loop (issue #112)
## Summary Fixes issue #112 where AsyncIssueStream was causing infinite loops when using V3 API pagination. ## Problem - AsyncIssueStream was hardcoded to use V2 pagination for all APIs - V3 API uses opaque for pagination, not numeric - When async stream sent to V3 API, it got ignored and returned the same first p...
diff --git a/src/search.rs b/src/search.rs index 945ecb0..3cac882 100644 --- a/src/search.rs +++ b/src/search.rs @@ -434,22 +434,37 @@ impl Stream for AsyncIssueStream<'_> { } // Check if we need to fetch the next page - let more_pages = Self::more_pages( - self.current_results.iss...
2
2
0
[{"id": "G0", "claim": "The `iter` variable in test_v3_sync_pagination_with_next_page_token (tests/v3_pagination_test.rs) does not need to be mutable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `iter` variable in test_v2_still_uses_start...
null
wundergraph__graphql-go-tools__1001
wundergraph/graphql-go-tools
1,001
defect
a02320df585da092bfd476765abb4f892a3641c2
9e850a78f06450a10c51acf4c795f0e0b6ec5324
feat: add http datasource onfinished hook
As part of our efforts in https://github.com/wundergraph/cosmo/pull/1401, we need to have access to the request and response from the calls to subgraphs. As a result, we're exposing a new hook which is specialized for a HTTP datasource ``` OnHttpFinished(ctx context.Context, ds DataSourceInfo, err error, request *htt...
diff --git a/v2/pkg/apollocompatibility/flags.go b/v2/pkg/apollocompatibility/flags.go index 8adc3332f0..06c6f3b506 100644 --- a/v2/pkg/apollocompatibility/flags.go +++ b/v2/pkg/apollocompatibility/flags.go @@ -1,6 +1,7 @@ package apollocompatibility type Flags struct { - ReplaceInvalidVarError bool + Replace...
7
7
4
[{"id": "G0", "claim": "Solve all use cases with a single hook implementation instead of the separate hook interface the PR adds, which would also allow unifying telemetry instrumentation in the router.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Avoi...
null
wundergraph__graphql-go-tools__102
wundergraph/graphql-go-tools
102
defect
60c5af42e080df4934ee26e95ad90bf8934c474e
86dadeb9e649368ca1904ce0ebcb96686ca41463
ObjectType extension and extension removal
This PR will implement the ast_normalization functionality to extend object types by ObjectTypeExtensions and the extension removal function which is responsible for removing merged extensions. Note that removeMergedTypeExtensions' test will be expanded as new types of extension merging are implemented.
diff --git a/pkg/ast/ast.go b/pkg/ast/ast.go index 0345517b23..f6a97c37ff 100644 --- a/pkg/ast/ast.go +++ b/pkg/ast/ast.go @@ -456,6 +456,35 @@ func (d *Document) FieldDefinitionTypeNode(ref int) Node { return d.Index.Nodes[xxhash.Sum64(typeName)] } +func (d *Document) ExtendObjectTypeDefinitionByObjectTypeExtensi...
1
1
1
[{"id": "G0", "claim": "The new Index field MergedTypeExtensions must be emptied when Index.Reset() is called.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__1048
wundergraph/graphql-go-tools
1,048
defect
efeebf2ee829928a7c246216b8337e4c48067675
150888d6e7be2a721c4a47499700ac7254fda58a
fix: wait for updates in flight to be delivered before shutting down the trigger
After the last refactor we weren't waiting anymore for the in flight requests to be delivered, so I restored the previous behavior.
diff --git a/v2/pkg/engine/resolve/resolve.go b/v2/pkg/engine/resolve/resolve.go index b05b0af26c..7ffc23b784 100644 --- a/v2/pkg/engine/resolve/resolve.go +++ b/v2/pkg/engine/resolve/resolve.go @@ -528,6 +528,7 @@ func (r *Resolver) handleAddSubscription(triggerID uint64, add *addSubscription) id: trigge...
1
1
1
[{"id": "G0", "claim": "Add a test covering the new behaviour of waiting for in-flight updates to be delivered before the trigger shuts down, or confirm it is already covered by the router test suite.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__1076
wundergraph/graphql-go-tools
1,076
defect
ffae4bae26e718c5485d1ac1952b1f8f3532709f
8daf5f5502d8851c2bf15287f49040e137458b5a
feat(engine): mutex free subscription handling
This PR removes all mutexes needed and uses channels to synchronize access in subscription handling. Every subscription spawns a single goroutine where the fetch and resolve process is run (connection write). Passing a task to a subscription is done on a buffered channel and on the event loop (single threaded). In that...
diff --git a/v2/pkg/engine/resolve/resolve.go b/v2/pkg/engine/resolve/resolve.go index 83a5a06d9c..7ea05f043f 100644 --- a/v2/pkg/engine/resolve/resolve.go +++ b/v2/pkg/engine/resolve/resolve.go @@ -7,11 +7,8 @@ import ( "context" "fmt" "io" - "sync" "time" - "golang.org/x/sync/semaphore" - "github.com/buge...
4
3
0
[{"id": "G0", "claim": "startWorker should check s.heartbeat once at the beginning and skip the heartbeat ticker entirely for subscriptions that don't need one, instead of creating the ticker for every subscription and re-checking s.heartbeat on every tick.", "category": "performance", "verdict": "supported", "priority...
null
wundergraph__graphql-go-tools__108
wundergraph/graphql-go-tools
108
defect
faa1185a78c85eb93a24d4e7b276f676c748e57d
78fb9edba4ddf28f45661788f351e9f897fd99e0
normalization of type extensions
This PR will implement the normalization of the remaining type extensions. It also contains a [commit](https://github.com/jensneuse/graphql-go-tools/commit/78fb9edba4ddf28f45661788f351e9f897fd99e0) which fixed some naming inconsistencies.
diff --git a/pkg/ast/ast.go b/pkg/ast/ast.go index 4d4b735be6..33d7fc6b46 100644 --- a/pkg/ast/ast.go +++ b/pkg/ast/ast.go @@ -456,6 +456,20 @@ func (d *Document) FieldDefinitionTypeNode(ref int) Node { return d.Index.Nodes[xxhash.Sum64(typeName)] } +func (d *Document) ExtendInterfaceTypeDefinitionByInterfaceTypeE...
1
1
0
[{"id": "G0", "claim": "Please add one testcase which starts with a union containing union members which then gets extended.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__1122
wundergraph/graphql-go-tools
1,122
defect
9a9b6685420c5aa9d1c623b5e76a0fce04bc089a
bc0b458767e7b9a93e7497a0b6a2b1120027923a
fix(websocket): handle ping/pong correctly
This PR adds proper Ping/Pong support for upstream subgraphs. It ensures that the subgraph doesn't mark the connection as dead. For instance, the `graphql-ws` library supports lazy close timeouts. If the router doesn't signal that it is alive, the connection will be aborted, along with all subscriptions.
diff --git a/v2/pkg/engine/datasource/graphql_datasource/graphql_datasource.go b/v2/pkg/engine/datasource/graphql_datasource/graphql_datasource.go index 21d81bfecc..0a3ce5b7f8 100644 --- a/v2/pkg/engine/datasource/graphql_datasource/graphql_datasource.go +++ b/v2/pkg/engine/datasource/graphql_datasource/graphql_datasou...
5
2
0
[{"id": "G0", "claim": "Extract the pong-timeout check inside Ping into a function whose name explains what it does, e.g. hasReceivedPongBeforeTimeout.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Calling ServerClose() from within Ping may not...
null
wundergraph__graphql-go-tools__1141
wundergraph/graphql-go-tools
1,141
defect
191fc2764db3fae670bcffaea462162dae89ec90
7bd1abcb50ed3caffb33d685602eb52824bc1bbb
fix: update pubsub datasource to use JSON variable renderer
This PR solves an issue with mutations that had a variable with a value not valid in plain JSON in a document. So something like this worked: ```graphql updateEmployeeMyNats(id: 123, update:{ id:"realComplexId" }) { success } ``` because the message published was like this: ```json {"id": 123, "up...
diff --git a/v2/pkg/engine/datasource/pubsub_datasource/pubsub_datasource.go b/v2/pkg/engine/datasource/pubsub_datasource/pubsub_datasource.go index 03a4204af2..60faa27883 100644 --- a/v2/pkg/engine/datasource/pubsub_datasource/pubsub_datasource.go +++ b/v2/pkg/engine/datasource/pubsub_datasource/pubsub_datasource.go @...
2
1
1
[{"id": "G0", "claim": "Add tests that verify the switch to the JSON variable renderer, since no test checks its output format (the reviewer assumes there is no test coverage for this change because no test fixtures had to be updated, and the test expectations still reflect plain-text values).", "category": "testing", ...
null
wundergraph__graphql-go-tools__1158
wundergraph/graphql-go-tools
1,158
defect
4f2fe65ffcf51346b7907626767e5472f56c1b11
375cfdf98392d90041d12eefe08a18a574d012d0
feat: differentiate between complete and close event types
Adds differentiation between Complete/Done and Close/Shutdown events, so that downstream subgraph closure may be communicated more effectively to the upstream client.
diff --git a/execution/graphql/result_writer.go b/execution/graphql/result_writer.go index 8b74ed9878..5d49951c2f 100644 --- a/execution/graphql/result_writer.go +++ b/execution/graphql/result_writer.go @@ -32,6 +32,10 @@ func (e *EngineResultWriter) Complete() { } +func (e *EngineResultWriter) Close() { + +} + f...
5
3
0
[{"id": "G0", "claim": "The formatter rule that updates line endings in multiline string literals is rather aggressive.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The close() subscription method should carry a clarifying comment stating when i...
null
wundergraph__graphql-go-tools__1161
wundergraph/graphql-go-tools
1,161
defect
a9be0ae1020842a7a97525e7c728c993ddae5e5d
64311aea277e2922ee3d1807063c7dda3a4b6e03
feat: use new negation regex matching for matching connections
In the router we use negation in regex expression matching via a negation flag, since we also use this logic when creating connections, and we need to assign connections correctly, we apply this logic in the engine. **Tests** Add unit tests for checking the hash. There used to be tests that tests if a connection is...
diff --git a/v2/pkg/engine/datasource/graphql_datasource/configuration.go b/v2/pkg/engine/datasource/graphql_datasource/configuration.go index f876776b06..1aa4e34646 100644 --- a/v2/pkg/engine/datasource/graphql_datasource/configuration.go +++ b/v2/pkg/engine/datasource/graphql_datasource/configuration.go @@ -3,15 +3,1...
1
1
0
[{"id": "G0", "claim": "Order the imports in configuration.go that this pull request added.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__1200
wundergraph/graphql-go-tools
1,200
defect
7216c0f331fe9b6d367eba481ad61f5a6d9f482e
70d3519a622216af4bcbfa311aa593fc2862020e
fix: fix collecting representation for fetches scoped to concrete types
<!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and ensure you've met all the requirements. Squash...
diff --git a/execution/engine/execution_engine_test.go b/execution/engine/execution_engine_test.go index f6722fd69f..97dd2ae59e 100644 --- a/execution/engine/execution_engine_test.go +++ b/execution/engine/execution_engine_test.go @@ -4224,6 +4224,214 @@ func TestExecutionEngine_Execute(t *testing.T) { )) }) }...
3
1
0
[{"id": "G0", "claim": "The empty-slice guards in mergeTypeNames are wrong: if either input is empty the merge returns an empty result, defeating the purpose of merging type names, so the guards should return the other side or be removed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "...
null
wundergraph__graphql-go-tools__1209
wundergraph/graphql-go-tools
1,209
defect
e9b9f193b749089eda7fa9126e93407c2a4dbd7f
2848e93f84dc1bb69ebcbc0d7b49d91c1111b44a
feat: add support for aliases
<!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and ensure you've met all the requirements. Squashed co...
diff --git a/v2/pkg/engine/datasource/grpc_datasource/compiler.go b/v2/pkg/engine/datasource/grpc_datasource/compiler.go index 1b519b7e31..6192c2ea0c 100644 --- a/v2/pkg/engine/datasource/grpc_datasource/compiler.go +++ b/v2/pkg/engine/datasource/grpc_datasource/compiler.go @@ -323,7 +323,14 @@ func (p *RPCCompiler) Co...
2
1
0
[{"id": "G0", "claim": "The new test's gRPC server setup duplicates logic from the existing setupTestGRPCServer helper and should be extracted to reuse that helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test_DataSource_Load_WithAliases ...
null
wundergraph__graphql-go-tools__1211
wundergraph/graphql-go-tools
1,211
defect
9223351ca9530e3738bfac794de108bbbac134c0
7045db9f8a4b3680caf5a19026c50a81f52bc189
fix: do not trim whitespaces around non-block strings
Keep the whitespace padded values of non-block strings are they are. For a BlockString that ends abruptly on EOF, set the Token End position. That prevents panics on cases like ``` `union """` ``` in the lexer. fixes ENG-5916 fixes ENG-7491 fixes #937 fixes #1019 <!-- This is an auto-generated commen...
diff --git a/pkg/astprinter/testdata/starwars.schema.graphql b/pkg/astprinter/testdata/starwars.schema.graphql index 2661f079a8..5ada721e15 100644 --- a/pkg/astprinter/testdata/starwars.schema.graphql +++ b/pkg/astprinter/testdata/starwars.schema.graphql @@ -204,7 +204,7 @@ scalar Boolean scalar ID "Directs the execu...
3
2
0
[{"id": "G0", "claim": "The @include directive description in v2/pkg/astprinter/testdata/starwars.schema.graphql reads \"Included whentrue.\" and should read \"Included when true.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The same \"Incl...
null
wundergraph__graphql-go-tools__1223
wundergraph/graphql-go-tools
1,223
defect
0083b7880bbcb20da4f26ca509e45cb48eedaaf1
8023a30c6e975e252c60f050eab4929e43f88d44
fix: use NodeFragmentIsAllowedOnNode to check fragmentSpread
This fixes following false positive error in the "interfaces" benchmark: fragment spread: fragment catFrag must be spread on type Cat and not type CatOrDog Previously rule fragment check was trying to verify that the catFrag fragment (of a Cat type) matches completely the name of EnclosingType (CatOrDog). Ins...
diff --git a/v2/pkg/astvalidation/operation_rule_fragments.go b/v2/pkg/astvalidation/operation_rule_fragments.go index fcddd948e0..8f73e2a729 100644 --- a/v2/pkg/astvalidation/operation_rule_fragments.go +++ b/v2/pkg/astvalidation/operation_rule_fragments.go @@ -37,11 +37,20 @@ func (f *fragmentsVisitor) EnterFragmentS...
2
2
2
[{"id": "G0", "claim": "EnterFragmentSpread indexes f.operation.InlineFragments[ref].TypeCondition.Type even though it handles fragment spreads, which will cause runtime errors or incorrect behavior; the position should be taken from the fragment definition's type condition.", "category": "correctness", "verdict": "sup...
null
wundergraph__graphql-go-tools__1230
wundergraph/graphql-go-tools
1,230
defect
2b96f7eb318b6ffed59a3a7ec82f79691f5255d8
7eeecc3531726f124e134fa06ac7a5074e89ac02
fix: planner fixes for parent entity jumps and unique nodes selections
fixes ENG-7397 fixes ENG-7355 fixes ENG-7228 <!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and...
diff --git a/v2/pkg/astvalidation/operation_rule_validate_empty_selection_set.go b/v2/pkg/astvalidation/operation_rule_validate_empty_selection_set.go new file mode 100644 index 0000000000..97ec304b63 --- /dev/null +++ b/v2/pkg/astvalidation/operation_rule_validate_empty_selection_set.go @@ -0,0 +1,36 @@ +package astva...
2
1
0
[{"id": "G0", "claim": "Remove the constant ReasonStage1SameSourceChildWithPossibleSelections, which is defined but never used in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In selectUniqNodeParentsUpToRootNode the loop breaks e...
null
wundergraph__graphql-go-tools__1232
wundergraph/graphql-go-tools
1,232
defect
f86bd56a5e1fb69b2ef995983ea4f8fcd30e38d8
e0ddcbf596896cfd4d2c19330c5aaf884a2cc649
fix: fix merging fetches and add dependencies update
<!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and ensure you've met all the requirements. Squash...
diff --git a/v2/pkg/engine/postprocess/deduplicate_single_fetches.go b/v2/pkg/engine/postprocess/deduplicate_single_fetches.go index 9fb8c1c3df..1beb5eca0f 100644 --- a/v2/pkg/engine/postprocess/deduplicate_single_fetches.go +++ b/v2/pkg/engine/postprocess/deduplicate_single_fetches.go @@ -19,13 +19,49 @@ func (d *dedu...
4
1
0
[{"id": "G0", "claim": "Extract the inline dependency-merge code at the commented line and line 51 into functions with reasonable names to make the logic understandable.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "replaceDependsOnFetchId only...
null
wundergraph__graphql-go-tools__1235
wundergraph/graphql-go-tools
1,235
defect
4e09496b5abd72c11852c50ddc7cd321e4bc3246
38cb089a85cd7455f2be5f82c31d82dfe09c8298
fix: check that object claims to implement interface
Fragment valdidation layer calls the "NodeFragmentIsAllowedOnInterfaceTypeDefinition" function to validate that fragment node is allowed in the interface. But it was not checking that the node actually claimed to implement the interface, only that the node contained all the fields from interface. I have added this ...
diff --git a/v2/pkg/ast/ast_node.go b/v2/pkg/ast/ast_node.go index 50ca587af9..a575ecdbbd 100644 --- a/v2/pkg/ast/ast_node.go +++ b/v2/pkg/ast/ast_node.go @@ -373,7 +373,7 @@ func (d *Document) InputValueDefinitionIsLast(inputValue int, ancestor Node) boo // Node misc -// NodeImplementsInterfaceFields - checks tha...
4
3
1
[{"id": "G0", "claim": "Line 525 retrieves fragmentName with interfaceTypeNode.Ref instead of fragmentNode.Ref, so fragmentName and interfaceName hold the same value and the name-equality check always passes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
wundergraph__graphql-go-tools__1238
wundergraph/graphql-go-tools
1,238
defect
5afbc6821a858fac7ce2d3d62559aed196477bb3
fb05ea87e55b2e95dc60a6ac34d19e3e2e0dba43
fix: test v2 benchmarks on ci
Include benchmarks into quick tests of v2. In addition, I have attempted to simplify Makefile rules for testing. Instead of aliasing let's use "test" and "test-quick" rules directly from github workflows. Specifically changes in Makefile rules: test-no-race was removed as duplicate of test-quick , ci and ci-f...
diff --git a/.github/workflows/execution.yml b/.github/workflows/execution.yml index 82ff833327..74cab207c3 100644 --- a/.github/workflows/execution.yml +++ b/.github/workflows/execution.yml @@ -36,7 +36,7 @@ jobs: id: go - name: CI working-directory: execution - run: make ci + ru...
5
3
1
[{"id": "G0", "claim": "Consider making the PrintQueryPlans debug switch runtime-configurable (e.g. an environment variable defaulting to false) instead of hard-coding it to false in the federation test.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
wundergraph__graphql-go-tools__1261
wundergraph/graphql-go-tools
1,261
defect
f6157d6ddf2fafa80315289682195b436e385293
604a6f9d9589c24f1ace2af37d8ff54b27994e0e
fix: add an option to ignore skip/include directives
During normalization this option enforces directiveIncludeSkipVisitor to keep nodes and delete directives instead. <!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you fo...
diff --git a/v2/pkg/astnormalization/astnormalization.go b/v2/pkg/astnormalization/astnormalization.go index 45717e05e0..900f1e89f6 100644 --- a/v2/pkg/astnormalization/astnormalization.go +++ b/v2/pkg/astnormalization/astnormalization.go @@ -150,6 +150,7 @@ type options struct { removeUnusedVariables ...
2
1
0
[{"id": "G0", "claim": "Maybe just add the !d.keepNodes check inside handleRemoveNode instead of at the skip/include call sites.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reuse a single register function with a bool parameter (directiveIncludeSkipKeep...
null
wundergraph__graphql-go-tools__1268
wundergraph/graphql-go-tools
1,268
defect
e473aa7180c115cd187920107be35eba780753be
831b1d3bf03a56a0bfd91d64094343c4c1cebfbc
feat: rewrite abstract fragments for grpc
I have used DataSourcePlanningBehavior for the flag that enforces rewriting of fragments. I had to refactor the code so that structure is being specified in the Factory's method instead of Planner. Access to this data happens via DataSource.PlanningBehavior() BEGIN_COMMIT_OVERRIDE feat: always rewrite abstract ...
diff --git a/v2/pkg/engine/datasource/graphql_datasource/graphql_datasource.go b/v2/pkg/engine/datasource/graphql_datasource/graphql_datasource.go index 316e2fcdad..064611675f 100644 --- a/v2/pkg/engine/datasource/graphql_datasource/graphql_datasource.go +++ b/v2/pkg/engine/datasource/graphql_datasource/graphql_datasou...
34
19
4
[{"id": "G0", "claim": "Factory.PlanningBehavior sets OperationEnforceRewritingFragmentSelections only when grpcClient is set, so a factory built via NewFactoryGRPCClientProvider (grpcClientProvider set, grpcClient nil) never activates enforcement; set the flag when either is configured.", "category": "correctness", "v...
null
wundergraph__graphql-go-tools__1269
wundergraph/graphql-go-tools
1,269
defect
e473aa7180c115cd187920107be35eba780753be
3c64a873332f8f888c3e51abed87dedd4026c7cc
feat: improved subscription heartbeats
<!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and ensure you've met all the requirements. Squash...
diff --git a/execution/graphql/result_writer.go b/execution/graphql/result_writer.go index dc1ce288dc..f97cbf721b 100644 --- a/execution/graphql/result_writer.go +++ b/execution/graphql/result_writer.go @@ -35,6 +35,10 @@ func (e *EngineResultWriter) Complete() { } +func (e *EngineResultWriter) Heartbeat() error {...
12
2
0
[{"id": "G0", "claim": "Document the Heartbeat() contract on SubscriptionResponseWriter precisely - that it sends a transport-level keepalive only, that unsupported writers return nil, that disconnects surface as context.Canceled or io.EOF-like errors, and that it must be called from the writer goroutine.", "category":...
null
wundergraph__graphql-go-tools__1272
wundergraph/graphql-go-tools
1,272
defect
086793c4694cfc9c7ebb99e0ae89883c36106b9c
dd00c2306743da9b5e5449652cdbe7a693af54bc
chore: use tagged switches to simplify the code (QF1003)
https://staticcheck.dev/docs/checks/#QF1003 As a bonus, I have removed panic from gqlSSEConnectionHandler.subscribe. Added covering tests. <!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary w...
diff --git a/v2/pkg/astparser/parser.go b/v2/pkg/astparser/parser.go index 3aac3d7a47..cf10f6560a 100644 --- a/v2/pkg/astparser/parser.go +++ b/v2/pkg/astparser/parser.go @@ -885,17 +885,16 @@ func (p *Parser) ParseType() (ref int) { first := p.peek() - if first == keyword.IDENT { + switch first { + case keyword....
4
1
1
[{"id": "G0", "claim": "If the test server receives more than one ping before the complete message, the ping case closes the already-closed pingReceived channel and panics; guard the close with the receivedPing flag.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id":...
null
wundergraph__graphql-go-tools__1273
wundergraph/graphql-go-tools
1,273
defect
086793c4694cfc9c7ebb99e0ae89883c36106b9c
f63bcfd36565e2866681e0461ba75e950a507bcb
chore: simplify printing (qf1012)
https://staticcheck.dev/docs/checks/#QF1012 <!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and en...
diff --git a/v2/pkg/astnormalization/uploads/path.go b/v2/pkg/astnormalization/uploads/path.go index c5b72b7673..d2d7c65357 100644 --- a/v2/pkg/astnormalization/uploads/path.go +++ b/v2/pkg/astnormalization/uploads/path.go @@ -21,7 +21,7 @@ func (v *Path) render() string { } out.Write(item.name) if item.kind =...
7
2
0
[{"id": "G0", "claim": "The gzip/deflate decompressor returned by respBodyReader should be closed (via io.ReadCloser) in addition to response.Body, to avoid resource leaks.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "DoMultipartForm appends to ...
null
wundergraph__graphql-go-tools__1286
wundergraph/graphql-go-tools
1,286
defect
946556312c491d2edbbc50c0bd54f0417b7b4638
2912798a5e1d06a9dacd762865accf4c48b98679
fix: add sorting before creating the hash
<!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and ensure you've met all the requirements. Squash...
diff --git a/v2/pkg/engine/datasource/graphql_datasource/graphql_subscription_client.go b/v2/pkg/engine/datasource/graphql_datasource/graphql_subscription_client.go index 34936e1eb5..b2f081d81e 100644 --- a/v2/pkg/engine/datasource/graphql_datasource/graphql_subscription_client.go +++ b/v2/pkg/engine/datasource/graphql...
3
3
0
[{"id": "G0", "claim": "Replace the manual header-key collection and sort.Strings with slices.Sorted(maps.Keys(ctx.Request.Header)) for the sorted header names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sort the header names once before the...
null
wundergraph__graphql-go-tools__1288
wundergraph/graphql-go-tools
1,288
defect
df86fc79d1b4ab8e2823fdd196fab5f50ca64799
797fe0b3b2c86debc46910f72e6aaf6385286120
chore: fix the BenchmarkExecutionEngine
Also fix the corresponding test for static datasource. <!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description b...
diff --git a/execution/Makefile b/execution/Makefile index 9f500dfb7e..bb04d12025 100644 --- a/execution/Makefile +++ b/execution/Makefile @@ -6,6 +6,7 @@ test: .PHONY: test-quick test-quick: go test -count=1 ./... + go test -run=xxxx -bench=. -benchtime=1x ./... # updateTestFixtures will update all! golden fixt...
3
2
0
[{"id": "G0", "claim": "The `-run=xxxx` flag added to the test-quick target in execution/Makefile could accidentally match a test name; use `-run=^$` so no tests run while benchmarks do.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The benchmark h...
null
wundergraph__graphql-go-tools__1293
wundergraph/graphql-go-tools
1,293
defect
df86fc79d1b4ab8e2823fdd196fab5f50ca64799
3c894e2eefdd198f9c543b3b5223bbf1eed68949
fix: refactor CoordinateDependencies, FetchReasons
Move them into the "FetchInfo" struct. That struct is ideal for storing derived data for a Fetch and passing it to the later stages of the engine. Add the BuildFetchReasons option to the planner, that allows other parts to enable building the FetchReason list. <!-- Important: Before developing new features, ple...
diff --git a/execution/engine/execution_engine_test.go b/execution/engine/execution_engine_test.go index 31b67f7b57..1097c592e1 100644 --- a/execution/engine/execution_engine_test.go +++ b/execution/engine/execution_engine_test.go @@ -215,6 +215,7 @@ type _executionTestOptions struct { resolvableOptions resolve.Resol...
13
10
2
[{"id": "G0", "claim": "The nested ifs gating Info, coordinate dependencies and fetch reasons in configureFetch should be replaced with early returns down the whole line of nesting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The remaining `i...
null
wundergraph__graphql-go-tools__1306
wundergraph/graphql-go-tools
1,306
defect
15429609e3b9bb30215aa41a5f7052c093a39313
7d8034f18a07f0488d4f6f21b333cd160e833e50
fix: remove index after _entities in the path
This index does not mean anything most likely to the user, so we better remove it. <!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please pro...
diff --git a/v2/pkg/engine/resolve/loader.go b/v2/pkg/engine/resolve/loader.go index 1ba9460ae0..8487c649ed 100644 --- a/v2/pkg/engine/resolve/loader.go +++ b/v2/pkg/engine/resolve/loader.go @@ -749,7 +749,9 @@ func (l *Loader) appendSubgraphError(res *result, fetchItem *FetchItem, value *a func (l *Loader) mergeError...
10
4
0
[{"id": "G0", "claim": "The rewriteErrorPaths doc comment should call out that all subsequent numeric segments are stringified (e.g., 1 -> \"1\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The per-error json.Marshal + astjson.ParseBytesWithou...
null
wundergraph__graphql-go-tools__1312
wundergraph/graphql-go-tools
1,312
defect
0d60605c813afa2671e5cd98f60532c4d183ceff
4689e8377641b7df08452b1828f7b1c03339623c
fix: propagate fetch reasons for interface-related fields
Interfaces were not handled before at all. Now, if interface field is marked with special directive, then fields on implementing type are considered as marked too. You can find more details in the comments. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Bug...
diff --git a/execution/engine/execution_engine_test.go b/execution/engine/execution_engine_test.go index a96f934d27..ef99785b6c 100644 --- a/execution/engine/execution_engine_test.go +++ b/execution/engine/execution_engine_test.go @@ -843,7 +843,7 @@ func TestExecutionEngine_Execute(t *testing.T) { }, )) - t.Run...
4
3
2
[{"id": "G0", "claim": "After merging, the BySubgraphs slices in getPropagatedReasons are not sorted and compacted (unlike buildFetchReasons), so the propagated fetch reasons may contain duplicate subgraph names and non-deterministic ordering in extensions.fetch_reasons.", "category": "correctness", "verdict": "support...
null
wundergraph__graphql-go-tools__1332
wundergraph/graphql-go-tools
1,332
defect
88ac8b8e9bc73238e806c93ef0f0589399fd6a1d
c989b226d8bc49ea531b77a29622158654bbf5c8
fix: omit introspection queries from complexity limits
This is disabled by default and should stay like that for now. There is a constant that can enable it again, but it is not intended to be tweaked by the clients. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Operation complexity now correct...
diff --git a/go.work.sum b/go.work.sum index f13214003b..d66f874bf0 100644 --- a/go.work.sum +++ b/go.work.sum @@ -305,6 +305,7 @@ golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0/go...
3
2
0
[{"id": "G0", "claim": "The new constants dashSchema and dashType should be renamed to something like doubleUnderscoreSchema/doubleUnderscoreType or, simpler, __schemaLiteral/__typeLiteral.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The pack...
null
wundergraph__graphql-go-tools__1355
wundergraph/graphql-go-tools
1,355
defect
33b847e456cd96d008f4ab7b576705e0a341acea
d6416ca97a459c3ce02403db10429004b6b02b15
chore: improve debug formatting in path builder
This produces format that is easier to read: ``` CreatePlanningPaths =================== [pathBuilderVisitor]: EnterSelectionSet ref: 2 [pathBuilderVisitor]: EnterField ref: 2 fieldName: accounts typeName: Query [pathBuilderVisitor]: saveAddedPath {"ds":11987355753863978781,"path":"query","shouldWalkFields...
diff --git a/execution/engine/execution_engine.go b/execution/engine/execution_engine.go index 51b2742824..53b4f2c5e8 100644 --- a/execution/engine/execution_engine.go +++ b/execution/engine/execution_engine.go @@ -260,9 +260,9 @@ func (e *ExecutionEngine) getCachedPlan(ctx *internalExecutionContext, operation retur...
5
4
0
[{"id": "G0", "claim": "The post-cleanup call passes `i+1` to printPlanningPaths, so the final path dump is labelled one run higher than the last run actually executed (e.g. \"Run #3\" after only two runs); use the last real run number or otherwise make clear it is not a new run.", "category": "correctness", "verdict":...
null
wundergraph__graphql-go-tools__1357
wundergraph/graphql-go-tools
1,357
defect
2faaad338e60420637266dd18b7d423fe493ba9e
4405d325e6c7bc88c47a28b6729e163d803c5096
fix: skip invalid locations
<!-- Important: Before developing new features, please open an issue to discuss your ideas with the maintainers. This ensures project alignment and helps avoid unnecessary work for you. Thank you for your contribution! Please provide a detailed description below and ensure you've met all the requirements. Squash...
diff --git a/v2/pkg/engine/resolve/errors.go b/v2/pkg/engine/resolve/errors.go index 93b43f8c01..81edd05e47 100644 --- a/v2/pkg/engine/resolve/errors.go +++ b/v2/pkg/engine/resolve/errors.go @@ -19,6 +19,13 @@ type Location struct { Column uint32 `json:"column"` } +// ValidationLocation We define a separate type f...
9
9
2
[{"id": "G0", "claim": "Parsing the locations values again via MarshalTo plus json.Unmarshal on the hot path is questionable; the astjson values should be accessed and validated directly and invalid entries omitted.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
wundergraph__graphql-go-tools__1378
wundergraph/graphql-go-tools
1,378
defect
96bc286c1e4bb9a28f076c4ca486e679fc5d318e
8b0cf8d3a37f631bf061943e425417b281d29f09
feat: add flag for relaxed nullability checks on same shape
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Optional relaxation of nullability validation for field-selection merging, controllable by configuration and validator options; factories/planners can opt in. * Per-instance pooling for planne...
diff --git a/execution/engine/execution_engine.go b/execution/engine/execution_engine.go index 8b57b9c11d..e920e5e00f 100644 --- a/execution/engine/execution_engine.go +++ b/execution/engine/execution_engine.go @@ -17,6 +17,7 @@ import ( "github.com/wundergraph/graphql-go-tools/v2/pkg/ast" "github.com/wundergraph/g...
8
6
2
[{"id": "G0", "claim": "The per-schema validation cache in Request.ValidateForSchema keys only by schema hash, so when the same request is validated with different options it can return a relaxed result for a strict call (or vice-versa); the cache should be bypassed when options are provided (or the key should include ...
null
wundergraph__graphql-go-tools__1382
wundergraph/graphql-go-tools
1,382
defect
1dcbd3bdd200b3959d1654d50a491156cb98ea0b
e1baebf747cb0f5a1bec1065d88984cc63e11326
feat: forward headers to grpc services
This is part of a Cosmo Connect related feature. It allows to send HTTP headers from user requests down to gRPC sources. Technically it converts headers to [gRPC metadata](https://grpc.io/docs/guides/metadata/) on `datasource.Load`. A header `X-My-Custom-Header` will be sent as a grpc metadata field `x-my-custom-hea...
diff --git a/v2/pkg/engine/datasource/grpc_datasource/grpc_datasource.go b/v2/pkg/engine/datasource/grpc_datasource/grpc_datasource.go index a9cb854e96..5f4f6a3663 100644 --- a/v2/pkg/engine/datasource/grpc_datasource/grpc_datasource.go +++ b/v2/pkg/engine/datasource/grpc_datasource/grpc_datasource.go @@ -11,11 +11,13 ...
2
2
2
[{"id": "G0", "claim": "metadata.NewOutgoingContext replaces any existing outgoing metadata on the context instead of merging with it, so auth, tracing or other metadata set upstream before calling Load would be lost.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
wundergraph__graphql-go-tools__1385
wundergraph/graphql-go-tools
1,385
defect
c7e8de295ed88200ba53ffde23ad980aadfcfb1b
5241aefdba329a128550cbb1292909404807d148
fix: enable parallel execution for federation integration tests
Move mutable global state into per-Resolver instances so each FederationSetup gets isolated data. This eliminates the global mutex that serialized all tests and fixes the data race in subscription resolvers by copying products before mutation. <!-- Important: Before developing new features, please open an issue to ...
diff --git a/execution/engine/federation_integration_static_test.go b/execution/engine/federation_integration_static_test.go index 98d6e0669b..65574463fd 100644 --- a/execution/engine/federation_integration_static_test.go +++ b/execution/engine/federation_integration_static_test.go @@ -1,5 +1,3 @@ -//go:build !race - ...
3
2
2
[{"id": "G0", "claim": "TopProducts unconditionally slices r.products[:len(r.products)-1], which panics on an empty products slice, and it ignores the first parameter; add an empty guard and handle the bound.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl...
null
wundergraph__graphql-go-tools__1394
wundergraph/graphql-go-tools
1,394
defect
8459b349eb80b75ae3d90f0df5dfe45bc0e1cea8
2429889cea4be40354dab3419d15dc9b6ba09de6
fix(resolve): guard OnFinished against nil loaderHookContext on skipped fetches
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added integration tests validating correct federation behavior when parent data is null, ensuring child fetches are properly skipped. * Expanded test coverage for loader hook lifecycle across serial an...
diff --git a/execution/federationtesting/skipped_fetch_test.go b/execution/federationtesting/skipped_fetch_test.go new file mode 100644 index 0000000000..f76143ed81 --- /dev/null +++ b/execution/federationtesting/skipped_fetch_test.go @@ -0,0 +1,71 @@ +package federationtesting + +import ( + "context" + "io" + "net/htt...
1
1
0
[{"id": "G0", "claim": "The new test in execution/federationtesting/skipped_fetch_test.go should use t.Context() instead of context.Background() for its context.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__1407
wundergraph/graphql-go-tools
1,407
defect
d82a593821d1084591ccddfd46e67105d75905c6
a48f46499951d80055a6f2f1ce441b69da2e5621
fix: keep order of error extension fields after sanitization
When sanitizing the fields in the error extensions, we did not keep the order. This made the response rather non-deterministic. This PR makes sure that the order of fields are retained. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Improve...
diff --git a/v2/pkg/engine/resolve/errors.go b/v2/pkg/engine/resolve/errors.go index 93b43f8c01..0ac969f1d0 100644 --- a/v2/pkg/engine/resolve/errors.go +++ b/v2/pkg/engine/resolve/errors.go @@ -2,8 +2,11 @@ package resolve import ( "bytes" + "encoding/json" "fmt" "slices" + + "github.com/wundergraph/astjson" ...
4
4
3
[{"id": "G0", "claim": "UnmarshalJSON should not panic on malformed extensions (use error-returning ParseBytes instead of MustParseBytes) and should treat a JSON null extensions value as absent so a non-nil TypeNull Value does not replace the old nil-map behaviour.", "category": "correctness", "verdict": "supported", "...
null
wundergraph__graphql-go-tools__1415
wundergraph/graphql-go-tools
1,415
defect
20bf2d4457d86397db3108436d0417958a79c613
76b325f2d97a031707011e63fd492393b71f2ed3
test(federation): add e2e test for L1 cache with non-entity root fields
## Summary Adds `TestL1CacheRootFieldNonEntityWithNestedEntities` to validate L1 entity caching when a root field returns a non-entity type (Review) containing nested entities (User). This complements the existing `TestL1CacheRootFieldEntityListPopulation` test by proving L1 entity caching works correctly regardless o...
diff --git a/execution/engine/federation_caching_test.go b/execution/engine/federation_caching_test.go index e4a38f4278..bd0b38e918 100644 --- a/execution/engine/federation_caching_test.go +++ b/execution/engine/federation_caching_test.go @@ -4654,6 +4654,130 @@ func TestL1CacheRootFieldEntityListPopulation(t *testing....
2
2
1
[{"id": "G0", "claim": "The import block of v2/pkg/engine/resolve/loader_arena_gc_test.go must be regrouped per gci (stdlib, external, internal) so the failing golangci-lint CI check passes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The repeate...
null
wundergraph__graphql-go-tools__1416
wundergraph/graphql-go-tools
1,416
defect
20bf2d4457d86397db3108436d0417958a79c613
cf0a9a45924d2fabec6b111d1a694aa034811f77
fix(caching): update test expectations for cache analytics
## Summary Updates test framework and test expectations to handle cache analytics fields that are now populated during planning. **Key Changes:** - Add `clearCacheAnalytics()` mechanism to datasourcetesting framework to strip `CacheAnalytics` from response nodes by default (tests using `WithEntityCaching()` opt-in) ...
diff --git a/execution/engine/federation_caching_test.go b/execution/engine/federation_caching_test.go index e4a38f4278..a0a93574bd 100644 --- a/execution/engine/federation_caching_test.go +++ b/execution/engine/federation_caching_test.go @@ -5569,6 +5569,213 @@ func TestCacheAnalyticsE2E(t *testing.T) { }) asser...
2
1
1
[{"id": "G0", "claim": "The pipeline reports a gci formatting failure at line 1800 of graphql_datasource_federation_test.go, so the repo's formatting autofix should be run before merge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The Account Cach...
null
wundergraph__graphql-go-tools__1419
wundergraph/graphql-go-tools
1,419
defect
20bf2d4457d86397db3108436d0417958a79c613
9584a564f674d0754ee5dade89c42892a16705c2
feat: add per-mutation-field control over L2 cache population
## Summary Add configurable control over whether mutation root fields populate the L2 cache. Mutations now skip L2 writes by default, with opt-in per-field configuration via `MutationFieldCacheConfiguration`. Subgraph owners explicitly enable L2 population for specific mutation fields. ## Changes - **New type**: `Mu...
diff --git a/execution/engine/config_factory_federation.go b/execution/engine/config_factory_federation.go index d3dda53aaa..ad4d30fc0e 100644 --- a/execution/engine/config_factory_federation.go +++ b/execution/engine/config_factory_federation.go @@ -35,6 +35,7 @@ type SubgraphCachingConfig struct { SubgraphName ...
4
2
0
[{"id": "G0", "claim": "The mutation L2-write skip guard depends on the optional l.info, so when the planner is configured with DisableIncludeInfo=true the Info field is not populated, l.info is nil, and L2 cache writes can proceed even when enableMutationL2CachePopulation is false, violating the stated intent.", "cate...
null
wundergraph__graphql-go-tools__1420
wundergraph/graphql-go-tools
1,420
defect
de5f68b4f4689e8775bfe63bb385973dfa11ee21
c42477f1bb799a8f63d812313e1f90cd599a72c6
feat(cache): add mutation-triggered L2 cache invalidation
## Summary Add per-field configuration to invalidate (delete) L2 cache entries when mutations return cached entities. Mutations configured with cache invalidation will immediately delete stale cache entries instead of waiting for TTL expiration. ## Changes - **MutationCacheInvalidationConfiguration**: New config typ...
diff --git a/execution/engine/config_factory_federation.go b/execution/engine/config_factory_federation.go index d3dda53aaa..8b7f5ac206 100644 --- a/execution/engine/config_factory_federation.go +++ b/execution/engine/config_factory_federation.go @@ -36,6 +36,7 @@ type SubgraphCachingConfig struct { EntityCaching ...
3
1
0
[{"id": "G0", "claim": "Fix the import/struct-field formatting in execution/engine/config_factory_federation.go so the gci check passes; CI is currently failing on this file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In TestMutationCacheInv...
null
wundergraph__graphql-go-tools__1432
wundergraph/graphql-go-tools
1,432
defect
ef82a19fa206352aee5d7951be0aa3569c3b3f42
f2db55b05bd5cca1d5ebd377abe8738ffc480a5f
feat(cache): add header impact analytics for unnecessary header forwarding detection
## Summary Add analytics events to detect when header forwarding rules don't affect subgraph responses. `HeaderImpactEvent` tracks `(BaseKey, HeaderHash, ResponseHash)` tuples, enabling cross-request analysis to identify unnecessary header prefixes in L2 cache keys. ## Changes - **New event type**: `HeaderImpactEven...
diff --git a/execution/engine/CLAUDE.md b/execution/engine/CLAUDE.md index 2ea12f2432..8d15f0b4ce 100644 --- a/execution/engine/CLAUDE.md +++ b/execution/engine/CLAUDE.md @@ -1,25 +1,103 @@ -# Caching Test Rules +# E2E Test Conventions for `execution/engine` + +## Inline everything + +No `const` blocks, no named variab...
4
2
2
[{"id": "G0", "claim": "The linters report execution/engine/federation_caching_analytics_test.go is not gci-formatted at line 1854, and the repo's import formatter should be run on it before merge so CI passes.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
wundergraph__graphql-go-tools__1447
wundergraph/graphql-go-tools
1,447
defect
310c26a4c20f8c0834817144850787682e510039
c0459372b0a2c7a31971193a46cdda0520cf6ac4
fix: preserve nullable nested input presence in gRPC compiler
## Summary - treat omitted and null nested input messages as absent during protobuf compilation - preserve explicit empty objects instead of conflating them with null - add a regression test covering omitted, null, empty-object and explicit-value cases ## Testing - go test ./v2/pkg/engine/datasource/grpc_datasource R...
diff --git a/v2/pkg/engine/datasource/grpc_datasource/compiler.go b/v2/pkg/engine/datasource/grpc_datasource/compiler.go index 6988ff8fba..b3ba8b1eae 100644 --- a/v2/pkg/engine/datasource/grpc_datasource/compiler.go +++ b/v2/pkg/engine/datasource/grpc_datasource/compiler.go @@ -1021,6 +1021,7 @@ func (p *RPCCompiler) b...
4
3
0
[{"id": "G0", "claim": "The comment saying the skip provides a 'null message' is inaccurate: `continue` leaves the field unset (absent), and the wording should be fixed to say the field is left unset.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
wundergraph__graphql-go-tools__1456
wundergraph/graphql-go-tools
1,456
defect
18b292e5da46eb8179caa8f04432b53e7d521e58
ecb21d4f3e23d5ce89657eb70032626da4b90ae4
feat: check slicing Arguments passed when requireOneSlicingArgument
For an operation, the engine validates if slicing arguments of the field satisfy the configured listSize:requireOneSlicingArgument option. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Cost estimation now validates list-slicing arguments...
diff --git a/execution/engine/execution_engine.go b/execution/engine/execution_engine.go index 27c7a46df1..c70c779299 100644 --- a/execution/engine/execution_engine.go +++ b/execution/engine/execution_engine.go @@ -215,6 +215,11 @@ func (e *ExecutionEngine) Execute(ctx context.Context, operation *graphql.Reques if re...
4
1
0
[{"id": "G0", "claim": "Abstract-field validation depends on the order of implementingTypeNames because requiringOneArgImplementingField returns the first concrete FieldListSize with RequireOneSlicingArgument=true, which can reject operations valid for other concrete types; enforce a consistent @listSize policy across ...
null
wundergraph__graphql-go-tools__166
wundergraph/graphql-go-tools
166
defect
2cb19fec47c7dabf2cbdcffe97e0ec155e330143
08c7ca45f63834054124e96454331f383ac9777f
feature/use http hanle funcs
This PR is a small modification of the work of @spetrunin Thanks for the contribution. Merging should close #165 @spetrunin please Review and give me feedback if you're ok with the modifications.
diff --git a/pkg/playground/fixtures/handlers.golden b/pkg/playground/fixtures/handlers.golden new file mode 100644 index 0000000000..a9c3b6835d --- /dev/null +++ b/pkg/playground/fixtures/handlers.golden @@ -0,0 +1,22 @@ +(playground.Handlers) (len=5 cap=8) { + (playground.HandlerConfig) { + URL: (string) (len=11) "/...
4
4
1
[{"id": "G0", "claim": "Config fields PlaygroundURL and GraphqlEndpointURL are paths rather than URLs and should be renamed accordingly (e.g. PlaygroundPath).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ConfigureHandlers should not take a *Ha...
null
wundergraph__graphql-go-tools__449
wundergraph/graphql-go-tools
449
defect
f4785fbf9774614779d5ffb20c0dfd2db638554c
9df2701f3352f15fa61b58ee9931a52080df9fad
Add Support for Post Requests in SSE Subscriptions
Hi @jensneuse! This PR adds support for sending POST requests in subscriptions using SSE Made everything default to sending a GET request unless POST is explicitly defined in the field fixes #429
diff --git a/pkg/engine/datasource/graphql_datasource/graphql_datasource.go b/pkg/engine/datasource/graphql_datasource/graphql_datasource.go index 355b593ded..f41337471f 100644 --- a/pkg/engine/datasource/graphql_datasource/graphql_datasource.go +++ b/pkg/engine/datasource/graphql_datasource/graphql_datasource.go @@ -2...
2
1
1
[{"id": "G0", "claim": "The SSEMethod field should be a boolean named SSEMethodPOST (defaulting to GET when false) instead of a string, because with only GET and POST supported a string field allows values like PUT that are silently ignored and fall back to GET.", "category": "design", "verdict": "supported", "priority...
null
wundergraph__graphql-go-tools__472
wundergraph/graphql-go-tools
472
defect
f8b58d2811b6da3295f8ca9026c2cebd42216d89
56a0617c5d5df0250999b9b794537bfaf793301d
feat: add removeNullVariables directive
- feat: add removeNullVariables directive - fix: ignore null in variable names when we unnull variables
diff --git a/pkg/engine/datasource/graphql_datasource/graphql_datasource.go b/pkg/engine/datasource/graphql_datasource/graphql_datasource.go index c53b6564f4..9227ff8158 100644 --- a/pkg/engine/datasource/graphql_datasource/graphql_datasource.go +++ b/pkg/engine/datasource/graphql_datasource/graphql_datasource.go @@ -1...
1
1
1
[{"id": "G0", "claim": "The check `bytes.Index(input, []byte(\"null\"))` plus `input[i-1] == ':'` in unNullVariables is still error-prone and should be made more explicit.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__555
wundergraph/graphql-go-tools
555
defect
7c894f2a9d3a58c71f1a93f2aa95634d0152e7ed
b105ea70ae5be3163bc765c9193be0bffe8fd38f
feat: custom resolve map
This PR allows users to register a map which allows to parse/validate/resolve custom types. This should allow to pass through any custom scalar to the federated gql apis. Related issues: - https://github.com/wundergraph/graphql-go-tools/issues/179 - https://github.com/wundergraph/graphql-go-tools/issues/530 - ht...
diff --git a/pkg/engine/plan/plan.go b/pkg/engine/plan/plan.go index d1f8b89333..c74ec8e904 100644 --- a/pkg/engine/plan/plan.go +++ b/pkg/engine/plan/plan.go @@ -36,6 +36,7 @@ type Configuration struct { // This setting removes position information from all fields // In production, this should be set to false so t...
1
1
1
[{"id": "G0", "claim": "In the new 'query with custom scalar' test, the error returned by UnmarshalRequest is discarded; it should be handled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wundergraph__graphql-go-tools__758
wundergraph/graphql-go-tools
758
defect
cef727a8bfafd74ec02a20db1c57c006fc240ee8
f8ca831cfc50e8b01cb3026c7dfbefccd50d76b9
feat: support file upload in router
This PR makes possible to support a file upload according to spec: https://github.com/jaydenseric/graphql-multipart-request-spec With this PR merged to main and released we can discuss and work on PR to support the feature in cosmo router: https://github.com/wundergraph/cosmo/pull/652 Basically, this PR mak...
diff --git a/v2/go.sum b/v2/go.sum index 6b8dea5d0e..43444c7f48 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -1,4 +1,5 @@ github.com/99designs/gqlgen v0.17.45 h1:bH0AH67vIJo8JKNKPJP+pOPpQhZeuVRQLf53dKIpDik= +github.com/99designs/gqlgen v0.17.45/go.mod h1:Bas0XQ+Jiu/Xm5E33jC8sES3G+iC2esHBMXcq0fUPs0= github.com/BurntSushi...
4
3
1
[{"id": "G0", "claim": "Do and DoMultipartForm look like they have a lot in common and should share more code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Introduce a separate LoadWithFiles method (implemented only by the datasources that sup...
null
wundergraph__graphql-go-tools__762
wundergraph/graphql-go-tools
762
defect
95ebc94f0714ff8fba1f50d7357e94eca9d10753
b08582f7f2a0d77d4affcb1d9ae8a9a883bf033e
feat: loader hooks
This is an implementation of loader hooks that are executed before every call to the downstream service and after the final response has been merged. This allows us to instrument the fetch call, including all errors in the Cosmo Router. Rate limit or authorization errors won't trigger the hooks because no request is...
diff --git a/v2/pkg/engine/resolve/context.go b/v2/pkg/engine/resolve/context.go index 37f6c67548..736e4f4fdf 100644 --- a/v2/pkg/engine/resolve/context.go +++ b/v2/pkg/engine/resolve/context.go @@ -3,11 +3,11 @@ package resolve import ( "context" "encoding/json" + "errors" "io" "net/http" "time" - "github...
6
6
2
[{"id": "G0", "claim": "The new subgraph fetch error messages should match the wording of the existing errors (as in the linked cosmo router test).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Error() method should use fmt.Fprintf instead ...
null
wvanbergen__oily_png__11
wvanbergen/oily_png
11
defect
aba959fc8b49eb3446027f99e48cd12964740dfb
844345e1d687daaf3a1da282fbfa478ba76ccadc
Add euclidean_distance_rgba
This method was recently added to ChunkyPNG[1](https://github.com/wvanbergen/chunky_png/commit/6e350b2f4a56fb3d07cf2960da51c49a389de1dc). From that commit message: This method simply takes the Euclidean distance between the RGBA channels of 2 colors, which gives us a measure of how different the two colors are. ...
diff --git a/ext/oily_png/color.c b/ext/oily_png/color.c index 66ff319..d331c57 100644 --- a/ext/oily_png/color.c +++ b/ext/oily_png/color.c @@ -1,4 +1,5 @@ #include "oily_png_ext.h" +#include <math.h> PIXEL oily_png_compose_color(PIXEL fg, PIXEL bg) { BYTE a_com, new_r, new_g, new_b, new_a; @@ -37,6 +38,14 @@ V...
3
3
3
[{"id": "G0", "claim": "Add an example to the '#euclidean_distance_rgba' spec where the two colors are different, because the 'when both colors are the same' context does not exercise that case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update the ...
null
wvanbergen__oily_png__3
wvanbergen/oily_png
3
defect
dd9f7650c18060b041535664f024ca42a5d2e09d
b78da86c671f6d27fe2578523f49bc9ed32a4051
Resampling
This is the companion pull request to my commit to chunky_png request. It adds native extension to do nearest neighbor interpolation. Bilinear will come soon. This is my first time writing C extensions for Ruby, so let me know if anything is out of place.
diff --git a/ext/oily_png/color.c b/ext/oily_png/color.c index c5cac59..b0f071d 100644 --- a/ext/oily_png/color.c +++ b/ext/oily_png/color.c @@ -19,3 +19,23 @@ PIXEL oily_png_compose_color(PIXEL fg, PIXEL bg) { VALUE oily_png_color_compose_quick(VALUE self, VALUE fg_color, VALUE bg_color) { return UINT2NUM(oily_png...
4
3
0
[{"id": "G0", "claim": "The C helper methods (steps / steps_residues) should not be exposed publicly on the module since they will only be used by OilyPNG internally.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change replacing `extend self` with ...
null
wwebjs__whatsapp-web.js__784
wwebjs/whatsapp-web.js
784
defect
9c2592e164963fef20b57321b55cc809e97a43ec
74088ed37cd42041d056390f6ee2228217e52c9c
add more tests
Adds more testing around the client and Chat model.
diff --git a/tests/client.js b/tests/client.js index 6055c18bf58..d36130c28f3 100644 --- a/tests/client.js +++ b/tests/client.js @@ -136,6 +136,9 @@ describe('Client', function() { this.timeout(35000); client = helper.createClient({withSession: true}); await client.initialize(); +...
2
2
2
[{"id": "G0", "claim": "The status test should reset the user's status to what it was before the test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The second status test should also reset the status to what it was before the test, as raised for the f...
null
wwt__guac__8
wwt/guac
8
defect
702c9f2a6b1c86c926cef1df9e8e61c1cc1ae591
64c4fe9ce081d4330583dbb37fd1ad3358f17470
fix: add support for UTF-8 and Unicode in guac.Parse
This commit adds support for UTF-8 and Unicode in the guac.Parse func. We also check for lengths before accessing the data buffer array. In this commit we also add some tests to cover these edge cases.
diff --git a/errors.go b/errors.go index f7724f6..8bb8a39 100644 --- a/errors.go +++ b/errors.go @@ -5,6 +5,9 @@ import ( "strings" ) +// Ensure ErrGuac implements error +var _ error = (*ErrGuac)(nil) + type ErrGuac struct { error Status Status diff --git a/instruction.go b/instruction.go index c15500c..cf04a...
3
3
0
[{"id": "G0", "claim": "The added compile-time assertion that ErrGuac implements error is redundant because NewError already returns ErrGuac as an error, and it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parse should remai...
null
wxWidgets__wxWidgets__24374
wxWidgets/wxWidgets
24,374
defect
2464c900f5508eb5f317668300990a24037f3487
988194f221579026f4d1ddb77e6c7b076cbf2293
Implement loading cursor from macOS resources
I finally gave in and fixed #23558 TODO: add it to resources in .app created by CMake
diff --git a/.github/workflows/ci_mac.yml b/.github/workflows/ci_mac.yml index 280bbb4b9dd9..9308f76ccd36 100644 --- a/.github/workflows/ci_mac.yml +++ b/.github/workflows/ci_mac.yml @@ -233,7 +233,7 @@ jobs: export ASAN_OPTIONS='fast_unwind_on_malloc=0 detect_container_overflow=0' # Exclude tests tha...
8
7
1
[{"id": "G0", "claim": "The new code uses wxImage without a wxUSE_IMAGE guard, unlike the existing code below it, so builds with wxUSE_IMAGE disabled would no longer compile.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new code writes `if(` w...
null
wxWidgets__wxWidgets__24837
wxWidgets/wxWidgets
24,837
defect
597499316370a1d1b08e2e50bfc6ca0e85b84fc2
b2c106591fbb26d9ac5e069366cecea68ba0af5e
Some wxQt fixes
This is a preparation for upcoming commits that allow running CI tests under `Appveyor` for `wxQt`.
diff --git a/include/wx/qt/button.h b/include/wx/qt/button.h index 604f5e90466b..22f29060fa77 100644 --- a/include/wx/qt/button.h +++ b/include/wx/qt/button.h @@ -35,6 +35,13 @@ class WXDLLIMPEXP_CORE wxButton : public wxButtonBase // implementation only virtual int QtGetEventType() const override { return wx...
5
5
1
[{"id": "G0", "claim": "Max length should also be implemented for multiline text controls under wxQt; oneeyeman1 asks whether the author plans to do that.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Use unique_ptr<> instead of the explicit delete of...
null
wxWidgets__wxWidgets__24881
wxWidgets/wxWidgets
24,881
defect
fcf4883653a9d76cf21361130923254239ea48a1
8395e5733d130a105df96f89bc66db415808b9a9
Support multiple HTTP headers with same name
This is a draft. It is currently missing the implementation for macOS resp. URLSession. Closes #24878.
diff --git a/include/wx/msw/private/webrequest_winhttp.h b/include/wx/msw/private/webrequest_winhttp.h index 498473b77fb2..af65e643904e 100644 --- a/include/wx/msw/private/webrequest_winhttp.h +++ b/include/wx/msw/private/webrequest_winhttp.h @@ -30,6 +30,8 @@ class wxWebResponseWinHTTP : public wxWebResponseImpl ...
5
3
0
[{"id": "G0", "claim": "The new wxWinHTTPQueryAllHeaderStrings() could be refactored to reuse the existing wxWinHTTPQueryHeaderString() (e.g. by adding an optional DWORD* nextIndex parameter to it) instead of duplicating its non-trivial buffer-handling code.", "category": "maintainability", "verdict": "supported", "pri...
null
wxWidgets__wxWidgets__24906
wxWidgets/wxWidgets
24,906
defect
c301af42f923a9997e99bf8d3b8f00df667f88f9
8d14be4e1404b4f96b340ccc12986c20508e36b1
Miscellaneous end session fixes
This is mostly for wxMSW (see #23940, which this still doesn't fix, but which motivated these changes), but also touches wxGTK because I wanted to have a way to get the number of currently open modal dialogs in common code and this rendered wxGTK-specific code doing the same thing unnecessary. @vslavik I thought you...
diff --git a/include/wx/gtk/private/dialogcount.h b/include/wx/gtk/private/dialogcount.h deleted file mode 100644 index b282e99ca5ed..000000000000 --- a/include/wx/gtk/private/dialogcount.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// Name: w...
3
2
1
[{"id": "G0", "claim": "wxEVT_END_SESSION might be generated (and thus handled) more than once if the OS sends WM_ENDSESSION more than once, so a recursion guard should be used instead of the flawed main-window test; the comment's claim that the default WM_QUERYENDSESSION handler closes all windows also looks wrong sin...
null
wxWidgets__wxWidgets__25272
wxWidgets/wxWidgets
25,272
defect
5d8d577d74632e71075575de4b1ca38f9200783a
11f60d519ad39ec177013761e55928d8247cb985
wxMSW: Try to fix wxTextCtrl::AppendText() for plain EDIT controls
See #25164 For RICHEDIT controls the maxlimit is updated after each `AppendText()` calls and don't know how to fix it? maybe we should just document this limitation and live with it as is ?
diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index cf409f3da6a4..21ecada8b122 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -1301,7 +1301,7 @@ void wxTextCtrl::DoWriteText(const wxString& value, int flags) const int lenActuallyInserted = gs_lenOfInsertedText.top(); gs_lenOfInsert...
8
7
2
[{"id": "G0", "claim": "Renaming EM_LIMITTEXT to EM_SETLIMITTEXT in wxTextEntry::SetMaxLength() is useless because the two constants are exactly the same thing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MakeLinePattern() implemented with st...
null
wxWidgets__wxWidgets__25723
wxWidgets/wxWidgets
25,723
defect
426f745c6b069e9cd71a47a2272f5d6e07a9c6df
5dcf4b8d6998ca89fc24f813ae047da7c80eaf72
wxSVGFileDC improvements
Multiple fixes and improvements to `wxSVGFileDC`. Some I mentioned back in https://github.com/wxWidgets/wxWidgets/pull/22390#issuecomment-1116722724 1) Avoid using the style attribute in wxSVGFileDC because sometimes browsers will not parse this when there is not Content Security Policy, see example in the linked co...
diff --git a/include/wx/dcsvg.h b/include/wx/dcsvg.h index f3cb71fb6f47..f6ffb3bc3949 100644 --- a/include/wx/dcsvg.h +++ b/include/wx/dcsvg.h @@ -20,7 +20,9 @@ #include <memory> +#if WXWIN_COMPATIBILITY_3_2 #define wxSVGVersion wxT("v0101") +#endif enum wxSVGShapeRenderingMode { @@ -93,7 +95,7 @@ class WXDLL...
7
3
0
[{"id": "G0", "claim": "The m_OK flag logic (returning m_OK || m_filename.empty()) is confusing and should be reworked, ideally as a m_writeError flag set only when writing fails, or at least explained in a comment.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
wxWidgets__wxWidgets__25822
wxWidgets/wxWidgets
25,822
defect
ace3d4d936115f4b34a0d8c240a29f5cd7c23743
fd7c422260ccb56362ebbcb20544a1a3005f4e39
wxQt RTL fixes
### Some screenshots of the result of this PR: **Widgets demo:** <img width="1366" height="741" alt="widgets_rtl" src="https://github.com/user-attachments/assets/8f803fb0-6f15-4dfa-ae06-a16e6035cd05" /> **Grid demo:** <img width="800" height="705" alt="griddemo_rtl" src="https://github.com/user-attachments/asse...
diff --git a/include/wx/qt/dc.h b/include/wx/qt/dc.h index c3d284cfaa77..faab40000bb9 100644 --- a/include/wx/qt/dc.h +++ b/include/wx/qt/dc.h @@ -38,6 +38,11 @@ class WXDLLIMPEXP_CORE wxQtDCImpl : public wxDCImpl virtual void SetPalette(const wxPalette& palette) override; #endif // wxUSE_PALETTE + virtual w...
6
3
0
[{"id": "G0", "claim": "The new comment in include/wx/qt/dc.h misspells LTR as \"LRT\" and should read \"// LTR/RTL related functions\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The RTL mirroring workaround in wxAuiManager::CalculateHintRect...
null
wxWidgets__wxWidgets__25965
wxWidgets/wxWidgets
25,965
defect
3f0f90aaa3f9b624807982b87eee628243e93216
ce274d3687909f5c14324b0a18aed07e5ea31fc5
Restore ANSI win32 API functions
wxWidgets is always build in `UNICODE` using the `WIDE` win32 API functions. But applications using it might be built without `UNICODE`, using the `ANSI` win32 functions. Right now wxWidgets `#undef`s some of the win32 API functions and defines them as inline functions using the `WIDE` win32 API. Making these unavai...
diff --git a/include/wx/image.h b/include/wx/image.h index 9ae353a65d53..c7b95b387e38 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -24,10 +24,6 @@ # include "wx/stream.h" #endif -// on some systems (Unixware 7.x) index is defined as a macro in the headers -// which breaks the compilation below -#und...
7
5
1
[{"id": "G0", "claim": "The hand-written #if/#else blocks choosing the W or A function in each winundef.h wrapper could be replaced by defining one wxFUNC_AW() macro once, based on wxUSE_UNICODE_WINDOWS_H, so each wrapper is just e.g. 'return wxFUNC_AW(CreateDialog)(...);'.", "category": "maintainability", "verdict": "...
null
wxWidgets__wxWidgets__26116
wxWidgets/wxWidgets
26,116
defect
8245e1073ae66fd246d2ec180160d2e20acf3644
2dbc8923ce48a3d0824781db3b64b83716007449
Refactor wxBitmapBundleImplSVG
Reduce code duplication by adding `wxBitmapBundleLunaSVG` and `wxBitmapBundleNanoSVG` that implement `DoRasterize()`. Allow to use SVG size in `wxBitmapBundle::FromSVG()`. If no default size is provided, get the size from the SVG.
diff --git a/.gitmodules b/.gitmodules index 705d89c69173..03d773713a4e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -45,3 +45,4 @@ [submodule "3rdparty/lunasvg"] path = 3rdparty/lunasvg url = https://github.com/wxWidgets/lunasvg.git + branch = wx diff --git a/build/cmake/tests/base/CMakeLists.txt b/build/cmake/t...
7
6
0
[{"id": "G0", "claim": "The empty `protected:` section in wxBitmapBundleImplSVG should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The single-argument wxBitmapBundleImplSVG constructor should be declared explicit.", "category": "d...
null
wxt-dev__wxt__1014
wxt-dev/wxt
1,014
defect
a64ff229176ef601a15486888883442ed51ba88e
0177a064003388cce9ed2e3e781b3a0948b7497c
feat(zip): Force sources zip and auto source on opera
Closes #1012 This pull request introduces new functionality to always create a sources zip file under certain conditions and updates related tests, configurations, and command-line options accordingly. ### New Functionality: * Added a new option to always create a sources zip file, even when the browser is not F...
diff --git a/packages/wxt/e2e/tests/zip.test.ts b/packages/wxt/e2e/tests/zip.test.ts index 5645db60c..d356c70d5 100644 --- a/packages/wxt/e2e/tests/zip.test.ts +++ b/packages/wxt/e2e/tests/zip.test.ts @@ -178,4 +178,64 @@ describe('Zipping', () => { true, ); }); + + it('should create sources zip for Ope...
2
1
0
[{"id": "G0", "claim": "Move the decision of whether to zip sources into a `wxt.config.zip.zipSources` boolean computed in resolve-config.ts, and name the option `zipSources` instead of `alwaysBuildSourcesZip`, so zip.ts can just check `if (wxt.config.zip.zipSources) { ... }`.", "category": "design", "verdict": "suppor...
null
wxt-dev__wxt__1042
wxt-dev/wxt
1,042
defect
faa4fcb718da9db469ac214a4217a888914dd684
077569454e9706e58f9e5d4aaa40ac87cd71e6d0
perf: Replace `execa` with `nano-spawn` for smaller package size
Closes #1037
diff --git a/docs/.vitepress/loaders/cli.data.ts b/docs/.vitepress/loaders/cli.data.ts index c99d94844..d498493e9 100644 --- a/docs/.vitepress/loaders/cli.data.ts +++ b/docs/.vitepress/loaders/cli.data.ts @@ -1,6 +1,6 @@ -import { resolve, join } from 'node:path'; +import { resolve } from 'node:path'; import consola f...
2
2
0
[{"id": "G0", "claim": "Move the nano-spawn call in bun.ts to a regular top-level import instead of a dynamic one, as nano-spawn is ESM-only and the dynamic-import workaround is no longer needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
wxt-dev__wxt__1074
wxt-dev/wxt
1,074
defect
a0b63e73507c0465dddca3e97d9bd1d660a9dfb5
b5348609fe4f26315bf9423a26d5bfad14fc4f12
feat(config): Add `outDirTemplate` for customizing output directory structure
Closes #1069 This pull request introduces a new feature to allow customization of the output directory structure using a template string. The main changes include adding a new configuration option, updating the build logic to respect this new option, and adding tests to ensure the feature works as expected. ### N...
diff --git a/packages/wxt/e2e/tests/user-config.test.ts b/packages/wxt/e2e/tests/user-config.test.ts index 01ac7f4d1..c0b497508 100644 --- a/packages/wxt/e2e/tests/user-config.test.ts +++ b/packages/wxt/e2e/tests/user-config.test.ts @@ -130,4 +130,31 @@ describe('User Config', () => { await project.fileExists('....
4
2
1
[{"id": "G0", "claim": "The JSDoc @example for outDirTemplate includes the base output directory, so following it would nest the output (e.g. `.output/.output/...`); the example should omit the outDir prefix and mention that the base directory is configured with `outDir`.", "category": "documentation", "verdict": "supp...
null
wxt-dev__wxt__1171
wxt-dev/wxt
1,171
defect
c3959e84274f78761bb175c0f5b89c910f9a3880
9098b4a4fc62d5ee94ea0329cca8a87f6940a410
fix: Add / to PublicPath and browser.runtime.getURL
@aklinker1 Fixes #984 This seems to be working as you mentioned we need to change `getPathsDeclarationEntry` function only. Do let me know your thoughts.
diff --git a/packages/wxt/src/core/generate-wxt-dir.ts b/packages/wxt/src/core/generate-wxt-dir.ts index cf9980c7f..ddb2a05be 100644 --- a/packages/wxt/src/core/generate-wxt-dir.ts +++ b/packages/wxt/src/core/generate-wxt-dir.ts @@ -78,7 +78,7 @@ async function getPathsDeclarationEntry( isHtmlEntrypoint(entry)...
1
1
1
[{"id": "G0", "claim": "The test snapshots are out of date, so the tests must be run and the snapshots updated until the PR checks pass.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
wxt-dev__wxt__1210
wxt-dev/wxt
1,210
defect
767a3a987c9b7b516ad8661a65534f1d53403e30
2572ccafbecfd1add47da71f9542ac0f60598111
feat: `autoMount` content script UIs
refer: https://github.com/wxt-dev/wxt/issues/537 ## implementation Basically the style of the existing implementation, the `ui.remove` method is internally split. Because what autoMount callback and what the user calls are different in behavior. ## testing Tested for all built-in UIs. The API spec makes i...
diff --git a/docs/guide/essentials/content-scripts.md b/docs/guide/essentials/content-scripts.md index e8b350d9c..42b1b1fa6 100644 --- a/docs/guide/essentials/content-scripts.md +++ b/docs/guide/essentials/content-scripts.md @@ -571,6 +571,44 @@ For MV3, `injectScript` is synchronous and the injected script will be eva...
12
11
4
[{"id": "G0", "claim": "Calling `autoMount` a second time should not throw an error; it should just return (and do nothing) instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The empty JSDoc block added in types.ts should be deleted or given content...
null
wxt-dev__wxt__1514
wxt-dev/wxt
1,514
defect
4e5fb7745a07964cd67140d29be258821c965c1d
af7efd5b6d1fe48602b3b1a9b10ea85bbf19b52b
feat(storage): Add `onMigrationComplete` callback
### Overview Following https://github.com/wxt-dev/wxt/pull/1513 part of https://github.com/wxt-dev/wxt/pull/1511. This PR introduces a new option `onMigrationComplete` to the storage `defineItem` that has two parameters, the migrated item and the migrated version. Note: there might be conflicts and I will reso...
diff --git a/packages/storage/src/__tests__/index.test.ts b/packages/storage/src/__tests__/index.test.ts index 311f63a6a..52e7a7407 100644 --- a/packages/storage/src/__tests__/index.test.ts +++ b/packages/storage/src/__tests__/index.test.ts @@ -705,6 +705,30 @@ describe('Storage Utils', () => { expect(migrateT...
3
2
0
[{"id": "G0", "claim": "The new migration-complete callback should use WXT's existing `hookable` library instead of a plain option, to match how hookable is used elsewhere in WXT.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The first parameter of `onMig...
null
wxt-dev__wxt__1520
wxt-dev/wxt
1,520
defect
4c05cc19e5ce22faf5a6128b601828cea772fe19
9dd4df682b5848ddb074846324721a7ac2f78232
feat: Ignore popup/index.ts instead of erroring
### Overview https://github.com/wxt-dev/wxt/issues/1333 ### Manual Testing I still wasn't able to work the second test work. Could use some help. ### Related Issue <!-- If this PR is related to an issue, please link it here --> This PR closes #1333
diff --git a/packages/wxt/src/core/utils/building/__tests__/find-entrypoints.test.ts b/packages/wxt/src/core/utils/building/__tests__/find-entrypoints.test.ts index b07f37480..397acc17a 100644 --- a/packages/wxt/src/core/utils/building/__tests__/find-entrypoints.test.ts +++ b/packages/wxt/src/core/utils/building/__test...
3
3
1
[{"id": "G0", "claim": "The new test's `expect(() => findEntrypoints())` assertion doesn't actually check anything and needs to be awaited using the .resolves API.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The empty-string separator line removed fr...
null
wxt-dev__wxt__1574
wxt-dev/wxt
1,574
defect
da9e27c28d29317d985e4939f1a1ddc1ee228c41
0dbd26593b2bc10b095ad806703fce95693edefd
feat: type-safe `import.meta.env.BROWSER` with new `targetBrowsers` config
### Overview Currently, `import.meta.env.BROWSER` is typed as a string, which, while technically correct from a type system perspective, can be limiting in practical development. An extension might only support a specific set of browsers, such as "chrome" | "firefox". Instead of a string, defining BROWSER as an e...
diff --git a/docs/guide/essentials/config/environment-variables.md b/docs/guide/essentials/config/environment-variables.md index e287b34a5..a807d1e84 100644 --- a/docs/guide/essentials/config/environment-variables.md +++ b/docs/guide/essentials/config/environment-variables.md @@ -42,6 +42,8 @@ WXT provides some custom ...
4
4
0
[{"id": "G0", "claim": "The docs sentence \"The `BROWSER` can be a safer literal string union type of all browser names that you want to support\" is a mouthful and should be replaced with wording that is easier to understand.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
wxt-dev__wxt__1601
wxt-dev/wxt
1,601
defect
4c35798dbaaf96983d1148544716568beae41732
8cdfc356d39b0e5da58207d7bde3114e98c7de45
fix: fix typescript error on `defineItem` fallback
### Overview Currently, the second signature of `WxtStorage.defineItem` method is incorrect that it doesn't respect the fallback value. https://github.com/wxt-dev/wxt/blob/4c35798dbaaf96983d1148544716568beae41732/packages/storage/src/index.ts#L748-L754 The following examples show the bug clearly. ```typescr...
diff --git a/packages/storage/src/index.ts b/packages/storage/src/index.ts index 0b0ced7c6..ddd5734a3 100644 --- a/packages/storage/src/index.ts +++ b/packages/storage/src/index.ts @@ -750,8 +750,20 @@ export interface WxtStorage { ): WxtStorageItem<TValue | null, TMetadata>; defineItem<TValue, TMetadata extends ...
1
1
1
[{"id": "G0", "claim": "Add type tests for the defineItem fallback typing to packages/storage/src/__tests__/index.test.ts instead of only listing them in the PR description, so the types cannot silently break in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wxt-dev__wxt__1607
wxt-dev/wxt
1,607
defect
4c35798dbaaf96983d1148544716568beae41732
06b9a78899192145531f0e01f43386392ba49248
fix: Fix CORS error in Firefox
### Overview Add cors setting like previous ### Manual Testing https://github.com/user-attachments/assets/8b64b8d7-6bdf-4c1c-a0bd-b43298d86667 ### Related Issue This PR closes #1606
diff --git a/packages/wxt/src/core/builders/vite/index.ts b/packages/wxt/src/core/builders/vite/index.ts index 2a99154d9..1883d4cc6 100644 --- a/packages/wxt/src/core/builders/vite/index.ts +++ b/packages/wxt/src/core/builders/vite/index.ts @@ -65,6 +65,7 @@ export async function createViteBuilder( config.server.w...
1
1
1
[{"id": "G0", "claim": "Setting the Vite dev server's CORS to allow any origin opens the dev server up to requests from malicious websites, so the PR should revert the Vite CORS change and instead fix the dev-mode permission (strip the port from the server origin) at the linked manifest.ts line.", "category": "security...
null
wxt-dev__wxt__1616
wxt-dev/wxt
1,616
defect
d9f10c62ad3abd10a3d9c599d9c668607fe0956b
6946fe1933ede82232a248456a40e9a7c1025158
fix: auto icons override default icons
just removed `return` statement in line 35. https://github.com/wxt-dev/wxt/blob/31071bd11e4926a73abaab8da4d9186dccbdb20c/packages/auto-icons/src/index.ts#L35 ### Manual Testing 1. have default icons in the public folder `public/icon/*` 2. install auto icons 3. add a icon to `<src>/assets/icon.png` 4. `run np...
diff --git a/packages/auto-icons/src/index.ts b/packages/auto-icons/src/index.ts index 61a766eac8..9f658a6bf6 100644 --- a/packages/auto-icons/src/index.ts +++ b/packages/auto-icons/src/index.ts @@ -32,7 +32,7 @@ export default defineWxtModule<AutoIconsOptions>({ wxt.hooks.hook('build:manifestGenerated', async (...
1
1
1
[{"id": "G0", "claim": "Add a test for the auto-icons change (letting auto-generated icons override existing manifest icons), which the pull request left untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wxt-dev__wxt__1907
wxt-dev/wxt
1,907
defect
bb679102b1b81dd8729ed15fc745d750f079736b
ad06e5110cbc3375b6b1071660320cba8e58515f
fix: Don't return promises from unlisted scripts that do not have an async `main` function
### Overview <!-- Describe your changes and why you made them --> ### Manual Testing <!-- Describe how to test your changes to make sure the PR works as intended --> ### Related Issue <!-- If this PR is related to an issue, please link it here --> This PR closes #1906
diff --git a/packages/wxt/src/utils/__tests__/define-unlisted-script.test.ts b/packages/wxt/src/utils/__tests__/define-unlisted-script.test.ts index 4d656e515..f4b327b8c 100644 --- a/packages/wxt/src/utils/__tests__/define-unlisted-script.test.ts +++ b/packages/wxt/src/utils/__tests__/define-unlisted-script.test.ts @@ ...
3
3
0
[{"id": "G0", "claim": "Rename the added test to 'should return the result without awaiting for synchronous main functions' so its title says what it verifies.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the added async test to 'should return ...
null
wxt-dev__wxt__1973
wxt-dev/wxt
1,973
defect
78f8434a0691a2e1a5be80fbebad2a4cc07c73a0
fe31456958761a9557e374e0e0443ec7a314bc74
feat: Add log `--level` cli option
### Overview Add a global option to set consola log-level. `--debug` mode will take priority if set in conjunction. ### Related Issue This PR closes #1942
diff --git a/packages/wxt/src/cli/__tests__/index.test.ts b/packages/wxt/src/cli/__tests__/index.test.ts index 074934338..669dcf830 100644 --- a/packages/wxt/src/cli/__tests__/index.test.ts +++ b/packages/wxt/src/cli/__tests__/index.test.ts @@ -6,7 +6,7 @@ import { prepare } from '../../core/prepare'; import { clean }...
1
1
1
[{"id": "G0", "claim": "The new --level CLI option does not say which log-level values it accepts, and the available values should be documented in the flag's --help description rather than in the public docs.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wxt-dev__wxt__1976
wxt-dev/wxt
1,976
defect
78f8434a0691a2e1a5be80fbebad2a4cc07c73a0
54a2c7186a74cd192c3f04e8eac8511118a01c86
feat: add support for Firefox data collection permissions
### Overview Adds support for Firefox's required `data_collection_permissions` field in `browser_specific_settings.gecko`. As of November 3rd, 2025, all new Firefox extensions must declare their data collection practices. ### Changes - Add `FirefoxDataCollectionType` and `FirefoxDataCollectionPermissions` TypeSc...
diff --git a/packages/wxt/src/core/utils/manifest.ts b/packages/wxt/src/core/utils/manifest.ts index 2cfcc11ee5..0328d939f5 100644 --- a/packages/wxt/src/core/utils/manifest.ts +++ b/packages/wxt/src/core/utils/manifest.ts @@ -118,6 +118,17 @@ export async function generateManifest( ? undefined : versionN...
4
4
3
[{"id": "G0", "claim": "Make FirefoxDataCollectionType an open union ending in `| string & {}` so editors still hint the known literals but unknown Mozilla data types do not error, because the maintainer does not want to be responsible for maintaining the closed list of strings.", "category": "design", "verdict": "supp...
null
wxt-dev__wxt__2010
wxt-dev/wxt
2,010
defect
606fd3164ce1dcada5db62b5c6e01bb7f74f0bb7
f6c380e202edb030aa0f3bd58df83b668cd239d6
feat: add default_state option to popup actions
## Overview This PR adds support for the `default_state` option in popup actions (browser_action/page_action for MV2, action for MV3). This option controls the initial enabled/disabled state of the extension's action button, as documented in the [Chrome Extension Action API](https://developer.chrome.com/docs/extensi...
diff --git a/packages/browser/src/gen/index.d.ts b/packages/browser/src/gen/index.d.ts index 551c8bdf6..63fbe2dee 100644 --- a/packages/browser/src/gen/index.d.ts +++ b/packages/browser/src/gen/index.d.ts @@ -9103,6 +9103,7 @@ export namespace Browser { default_icon?: ManifestIcons | undefined; ...
5
5
3
[{"id": "G0", "claim": "The pull request should not hand-edit the generated packages/browser/src/gen/index.d.ts; undo that change and use a @ts-expect-error instead, as done in PR #2097.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The defaultStat...
null
wxt-dev__wxt__2017
wxt-dev/wxt
2,017
defect
8bbea7cda440644fb6806ebba2f17cfd11c9f8bf
3ec531ae2bfd576575524b32c2aa65873c0f5ada
feat: Add `globalName` entrypoint option.
### Overview Implements https://github.com/wxt-dev/wxt/issues/2004 The IIFE name is not currently configurable for content scripts and unlisted scripts. The variable name can be important when inserting scripts with world=MAIN or directly via a `<script>` tag to ensure there is no conflict with an existing variab...
diff --git a/packages/wxt-demo/src/entrypoints/background.ts b/packages/wxt-demo/src/entrypoints/background.ts index 096261015e..d63cb21206 100644 --- a/packages/wxt-demo/src/entrypoints/background.ts +++ b/packages/wxt-demo/src/entrypoints/background.ts @@ -1,5 +1,6 @@ export default defineBackground({ // type: 'm...
3
2
1
[{"id": "G0", "claim": "A full custom Vite plugin may be unnecessary, since Vite reportedly already outputs an anonymous IIFE when no global name is specified.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `globalName` option should be moved off `...
null
wxt-dev__wxt__2121
wxt-dev/wxt
2,121
defect
2e2272d07aa201f23c61e6a6a169db6fa9fe44db
b11cb9b73afcd564736921f301aa7beb4061e5ed
chore!: Refactor and simplify i18n types to avoid `any`
> [!CAUTION] > > **BREAKING CHANGE** > > If you use `createI18n` without type parameters, the return type has changed: > > ```diff > - import { createI18n, type I18n, type DefaultI18nStructure } from '@wxt-dev/i18n' > + import { createI18n, type UntypedI18n } from '@wxt-dev/i18n' > > - const i18n: I18n<Defau...
diff --git a/packages/i18n/src/__tests__/types.test.ts b/packages/i18n/src/__tests__/types.test.ts index 540732092e..4db9aae1f4 100644 --- a/packages/i18n/src/__tests__/types.test.ts +++ b/packages/i18n/src/__tests__/types.test.ts @@ -47,65 +47,41 @@ describe('I18n Types', () => { describe('t', () => { it('...
9
8
5
[{"id": "G0", "claim": "The removal of the `// @ts-expect-error` markers leaves the type tests failing to compile, so revert it or find another way to test that type errors exist for invalid calls.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Removing...
null
wxt-dev__wxt__2173
wxt-dev/wxt
2,173
defect
301e4a17da29493cff54ba7b588ead2b84b0dd8c
6a1ba8fce6366ef7ad13b96e0c64e7923335f32c
chore: replace fast-glob and ora with lighter alternatives
## Summary Replaces two heavyweight dependencies with lighter, faster alternatives per [e18e.dev](https://e18e.dev) recommendations: - **`fast-glob`** → **`tinyglobby`** - **`ora`** → **`nanospinner`** ## Dependency comparison ### fast-glob → tinyglobby | Metric | fast-glob | tinyglobby | Delta | |--------|-------...
diff --git a/package.json b/package.json index 73a366a9b..60960418e 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@vitest/coverage-v8": "^4.0.18", "changelogen": "^0.6.2", "consola": "^3.4.2", - "fast-glob": "^3.3.3", + "tinyglobby": "^0.2.13", "feed": "^5.2.0", "fs-extr...
1
1
0
[{"id": "G0", "claim": "The dynamic import of nanospinner in rebuild.ts is no longer needed and can be a top-level import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wxt-dev__wxt__2188
wxt-dev/wxt
2,188
defect
5fe4681620d1bbec35f2c41655c36d29d5693ca7
734c513505986ecfd04ee4137174443dff88ac4a
chore: replace minimatch with picomatch
### Overview replaced refs of minimatch to picomatch. Only difference is minimatch had a native TS support while picomatch is JS-only here and doesn’t provide .d.ts. ### Manual Testing ran tests ### Related Issue This PR closes #2177
diff --git a/packages/wxt/package.json b/packages/wxt/package.json index df65f7ccc..f9f54939e 100644 --- a/packages/wxt/package.json +++ b/packages/wxt/package.json @@ -43,7 +43,6 @@ "jszip": "^3.10.1", "linkedom": "^0.18.12", "magicast": "^0.5.2", - "minimatch": "^10.2.4", "nano-spawn": "^2.0.0"...
1
1
0
[{"id": "G0", "claim": "The hand-written `declare module 'picomatch'` block in packages/wxt/src/@types/modules.d.ts should be replaced by installing the `@types/picomatch` types package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wxt-dev__wxt__2200
wxt-dev/wxt
2,200
defect
41a687a63e6cc680abb1d6dc4035f18d36bf04a4
2f7afeba50daf056f55230e6fbda0ff064688917
fix: Support `page_action` for Firefox MV3
### Overview Fix to allow `page_action` on Firefox MV3. ### Manual Testing I have added the `page_action` to the `wxt.config.ts` and confirmed both chrome and firefox generate the proper manifest.json. ```typescript page_action: { default_popup: 'popup.html', default_icon: icons, show_matches: ['*...
diff --git a/packages/wxt/src/core/utils/__tests__/manifest.test.ts b/packages/wxt/src/core/utils/__tests__/manifest.test.ts index 5775be31c3..5cad2464af 100644 --- a/packages/wxt/src/core/utils/__tests__/manifest.test.ts +++ b/packages/wxt/src/core/utils/__tests__/manifest.test.ts @@ -107,6 +107,29 @@ describe('Manife...
3
3
2
[{"id": "G0", "claim": "A test should be added to packages/wxt/src/core/utils/__tests__/manifest.test.ts ensuring a Firefox MV3 page_action gets added correctly, runnable with `pnpm test manifest`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The impl...
null