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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
submariner-io__submariner__3600 | submariner-io/submariner | 3,600 | defect | fb0ad15c2a8a2db22a90bf880d4df52a17cfe628 | cf1c791ee11a65c6a221e67e05b45f197ceb0b6f | Adopt the ROKS workaround for Tigera Operator | The new ROKS versions are using Tigera Operator which reads the Installation resource and it changes the IPPools' IPIPMode settings according to the Installation.
So move this ROKS workaround from default IPPool into default Installation.
<!-- Thanks for sending a pull request! Here are some tips for you:
1. I... | diff --git a/go.mod b/go.mod
index edd2eabd9..81e85af6a 100644
--- a/go.mod
+++ b/go.mod
@@ -16,6 +16,7 @@ require (
github.com/prometheus/client_golang v1.23.0
github.com/submariner-io/admiral v0.22.0-m1
github.com/submariner-io/shipyard v0.22.0-m1
+ github.com/tigera/operator/api v0.0.0-20250829192342-96fd517a8... | 5 | 5 | 1 | [{"id": "G0", "claim": "The suite test calls tigerav1.AddToScheme(scheme.Scheme) in BeforeEach without checking the returned error (lint errcheck) and it can cause an intermittent data-race failure; the line should be removed and Expect(tigerav1.AddToScheme(scheme.Scheme)).To(Succeed()) added to BeforeSuite after L88."... | null |
submariner-io__submariner__3665 | submariner-io/submariner | 3,665 | defect | 55817204f6f7d26e84caa4cfcd96a8a75bac6d08 | a7b252077094bc44e5a3469c213bb46911449fa0 | Convert certificates without using openssl | This implements PEM-encoded X.509 certificate parsing using Go crypto, and exports the result using SSLMate's go-pkcs12 package (or rather, cert-manager's fork of go-pkcs12 which adds support for encoding with a friendly name; see https://github.com/SSLMate/go-pkcs12/pull/67 for details).
Depends on https://github.c... | diff --git a/go.mod b/go.mod
index b5c5091dee..a33536a1d1 100644
--- a/go.mod
+++ b/go.mod
@@ -14,7 +14,7 @@ require (
github.com/projectcalico/api v0.0.0-20230602153125-fb7148692637
github.com/prometheus-community/pro-bing v0.7.0
github.com/prometheus/client_golang v1.23.2
- github.com/submariner-io/admiral v0.2... | 8 | 8 | 5 | [{"id": "G0", "claim": "Calling Expect() during Ginkgo v2 tree construction (top-level CA setup and the createSignedCertificate helper invoked at Describe level) leads to undefined behavior or panics because the Gomega matcher is not initialized there; the certificate generation should be moved into BeforeSuite or Befo... | null |
submariner-io__submariner__3774 | submariner-io/submariner | 3,774 | defect | 9424fb5be75240ab1193364080f8069d2e61b5e7 | 3ecf431ae00a9338060e80eee57aa574b1516536 | NAT discovery adjustments at address minor issues found by Cursor AI review |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Error messages now show the actual server port for clearer debugging.
* NAT logging now reports ports for better diagnostics.
* IP validation in NAT responses tightened for improved accuracy.
... | diff --git a/pkg/natdiscovery/listener.go b/pkg/natdiscovery/listener.go
index 5f8790ed47..c368d99f71 100644
--- a/pkg/natdiscovery/listener.go
+++ b/pkg/natdiscovery/listener.go
@@ -127,7 +127,7 @@ func (nd *natDiscovery) listenerLoop(serverConnection ServerConnection) {
func (nd *natDiscovery) parseAndHandleMessageF... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test's sleep adds a bare `+ 20` (20 nanoseconds, not 20 milliseconds) to the nanosecond-based timeout duration, so it does not sleep slightly longer than the timeout as intended; use `+ 20*time.Millisecond`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "int... | null |
submariner-io__submariner__3796 | submariner-io/submariner | 3,796 | defect | b0f9c9421d7bd61473a106790d00189b8a804c14 | 1afa7fb69ddb4669a3ba7e6fe9d1efc2e5548ad4 | Adjust to golangci-lint v2.8.0 | See commits for details.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Chores**
* Internal performance optimizations and code improvements across system components.
<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>
<!--... | diff --git a/pkg/cable/vxlan/vxlan_test.go b/pkg/cable/vxlan/vxlan_test.go
index e2721206d1..7df02e06f9 100644
--- a/pkg/cable/vxlan/vxlan_test.go
+++ b/pkg/cable/vxlan/vxlan_test.go
@@ -157,7 +157,7 @@ func testVxlanConnectivity(t *testDriver, natInfo *natdiscovery.NATEndpointInfo)
routes, err := t.netLink.RouteLis... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commit messages should describe the changes (preallocate slices with capacity, drop unused nolint:prealloc directives, simplify strings.Index using strings.Cut) instead of reproducing the linting messages.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "int... | null |
submariner-io__submariner__3885 | submariner-io/submariner | 3,885 | defect | bdad528252df20f64361b8c6380a1cc4f5f517f4 | 4f675f851196f84d2d1aab815658e691c95b80ac | Automated backport of #3881: Fix deletion of non-Submariner OVN routes during | Backport of #3881 on release-0.23.
#3881: Fix deletion of non-Submariner OVN routes during
For details on the backport process, see the [backport requests](https://submariner.io/development/backports/) page.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New... | diff --git a/pkg/routeagent_driver/handlers/ovn/fake/ovsdb_client.go b/pkg/routeagent_driver/handlers/ovn/fake/ovsdb_client.go
index 27abad75d..ccd188d02 100644
--- a/pkg/routeagent_driver/handlers/ovn/fake/ovsdb_client.go
+++ b/pkg/routeagent_driver/handlers/ovn/fake/ovsdb_client.go
@@ -189,6 +189,13 @@ func (c *OVSDB... | 2 | 1 | 0 | [{"id": "G0", "claim": "The CreateOrUpdate upsert predicates still match only on prefix/nextHop (or priority/match/nextHop), so reconciliation can adopt an identical untagged route or policy owned by another controller by writing the Submariner ExternalIDs and a later cleanup will delete it as if Submariner owned it; t... | null |
submariner-io__submariner__3891 | submariner-io/submariner | 3,891 | defect | b5fb30f241dd207f143181bb09080bd613bc18a6 | 1b3522bba9474ec978b6681c31bb4a1737991d7b | Replace context.TODO() with proper context in public IP watcher | Change the `PublicIPWatcher` `Run` method to take a `context.Context` parameter instead of a stop channel, and propagate it through `syncPublicIP()` to `updateLocalEndpoint()`. This ensures proper cancellation when the watcher is stopped and eliminates the use of `context.TODO()`.
<!-- This is an auto-generated co... | diff --git a/pkg/endpoint/public_ip_watcher.go b/pkg/endpoint/public_ip_watcher.go
index 613c943884..096f89c8b5 100644
--- a/pkg/endpoint/public_ip_watcher.go
+++ b/pkg/endpoint/public_ip_watcher.go
@@ -57,12 +57,14 @@ func NewPublicIPWatcher(config *PublicIPWatcherConfig) *PublicIPWatcher {
func (p *PublicIPWatcher) ... | 2 | 1 | 0 | [{"id": "G0", "claim": "GetPublicIP performs blocking network operations (HTTP requests with a 30-second timeout, load-balancer retries up to 6 minutes, DNS lookups) using context.TODO() instead of the parent context from the watcher, so when the watcher is stopped these operations could continue running to completion ... | null |
submariner-io__submariner__3894 | submariner-io/submariner | 3,894 | defect | 584b8b76bba9939c8507bf801d9aeb7b8f6009cc | ab50aa5b1624a4ec20ca3f0a92266b162835896f | Return OVN connection data directly | Instead of storing data in temporary files (which then need to be cleaned up), return the relevant data directly.
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our developer guide: https://submariner.io/development/
2. Ensure you have added the a... | diff --git a/pkg/routeagent_driver/handlers/ovn/connection.go b/pkg/routeagent_driver/handlers/ovn/connection.go
index 65c58f4746..df7cc28842 100644
--- a/pkg/routeagent_driver/handlers/ovn/connection.go
+++ b/pkg/routeagent_driver/handlers/ovn/connection.go
@@ -23,7 +23,6 @@ import (
"crypto/tls"
"crypto/x509"
"... | 5 | 4 | 3 | [{"id": "G0", "claim": "getOVNTLSConfig ignores the boolean returned by AppendCertsFromPEM, which could lead to confusing TLS handshake failures when the CA data is malformed or empty; it should check the return value and fail early with a clear error.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
submariner-io__submariner__3906 | submariner-io/submariner | 3,906 | defect | 21143492bf3c4c74152679a65f7c27d706a57940 | 11e7bbc2c685fd0bde5c47e6288558687636190c | Add a context parameter to GetPublicIP | ... so that its blocking operations can be cancelled.
Fixes #3385
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor**
* Public IP resolution is now context-aware: DNS, API and load-balancer lookups honor cancellation and timeouts, with context-driven... | diff --git a/pkg/endpoint/local_endpoint.go b/pkg/endpoint/local_endpoint.go
index 0726c546b..4e3c93f3a 100644
--- a/pkg/endpoint/local_endpoint.go
+++ b/pkg/endpoint/local_endpoint.go
@@ -195,7 +195,7 @@ func GetLocalSpec(ctx context.Context, submSpec *types.SubmarinerSpecification,
endpointSpec.CableName = fmt.Spri... | 3 | 2 | 2 | [{"id": "G0", "claim": "invokeResolvers should bail out of the fallback loop once ctx is done, since it keeps trying resolvers after cancellation and static resolvers can still make it return success despite the caller's context being canceled.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
submariner-io__submariner__3914 | submariner-io/submariner | 3,914 | defect | de40fb0306e7d7686f5256f689c06b8b7763e1af | 6f0c70a97e99965c962b6a8a25ac9b707cf3a203 | Fix potential stale active gateway scenarios | It was observed in a real environment where two gateway pods had their `gateway.submariner.io/status` labels set to true even though only one of them was actually as evidenced by the `Gateway` CRs.
Code inspection revealed two potential issues that could lead to this scenario that were addressed in separate commits.... | diff --git a/pkg/gateway/gateway.go b/pkg/gateway/gateway.go
index 10c742b228..d1e48491b0 100644
--- a/pkg/gateway/gateway.go
+++ b/pkg/gateway/gateway.go
@@ -21,7 +21,6 @@ package gateway
import (
"context"
"os"
- "reflect"
"strings"
"sync"
"time"
@@ -29,7 +28,6 @@ import (
"github.com/pkg/errors"
"gith... | 4 | 3 | 2 | [{"id": "G0", "claim": "Run still doesn't guarantee the Passive HA status is set before it returns on shutdown, because leaderelection.RunOrDie runs detached and Run doesn't wait for it, so the process can die before the update finishes and recreate the stale active label; the reviewer asks to synchronize shutdown with... | null |
submariner-io__submariner__3917 | submariner-io/submariner | 3,917 | defect | 9ff81f425ee3257b4730cb80cb225c300693b4f6 | 2b757bc6cf1c812ab49e6193dac5ba198833e994 | Automated backport of #3914: Move HA label retry logic to SetHALabels and fail on | Backport of #3914 on release-0.22.
#3914: Move HA label retry logic to SetHALabels and fail on
For details on the backport process, see the [backport requests](https://submariner.io/development/backports/) page.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* *... | diff --git a/pkg/gateway/gateway.go b/pkg/gateway/gateway.go
index 0c6b6634d..b965d0057 100644
--- a/pkg/gateway/gateway.go
+++ b/pkg/gateway/gateway.go
@@ -21,7 +21,6 @@ package gateway
import (
"context"
"os"
- "reflect"
"strings"
"sync"
"time"
@@ -29,7 +28,6 @@ import (
"github.com/pkg/errors"
"github... | 2 | 2 | 2 | [{"id": "G0", "claim": "Graceful shutdown marks the pod passive after waiting only on the waitGroup covering the cable engine syncer, while the cable engine, datastore syncer, tunnel controller and health checker are stopped asynchronously in onStoppedLeading, so the pod can be marked passive while the old leader is st... | null |
submariner-io__submariner__3929 | submariner-io/submariner | 3,929 | defect | 60d276b7b795caf78a74346ff00310c99bad363c | 0578b6e3a4b29d9debc382753be875f7e55f527a | Retry indefinitely on Gateway pod HA status patch errors | The previous approach of categorizing errors as "retryable" was fragile and incomplete. In a production env, it was observed that the `Patch` operation failed with error
"_etcdserver: request timed out, possibly due to previous leader failure_"
However, this didn't trigger a retry attempt b/c it was likely eith... | diff --git a/pkg/gateway/gateway.go b/pkg/gateway/gateway.go
index 28c13097c3..c2acd0bfa4 100644
--- a/pkg/gateway/gateway.go
+++ b/pkg/gateway/gateway.go
@@ -221,10 +221,7 @@ func (g *gatewayType) Run(ctx context.Context) error {
case <-ctx.Done():
case fatalErr := <-g.fatalError:
g.cableEngineSyncer.SetGateway... | 4 | 3 | 0 | [{"id": "G0", "claim": "The 'should retry with a fresh backoff and eventually succeed' spec doesn't actually exercise the fresh-backoff path: with Steps=10, Duration=100ms and BackOffCap=500ms the first backoff cycle lasts about 3.7s while the reactor starts succeeding after 1s, so the outer loop never restarts.", "cat... | null |
submariner-io__submariner__3934 | submariner-io/submariner | 3,934 | defect | 17dff7678d8a08f4d9dbcfecd9155603f41ed94c | 2739d791eb8510b54e9e034db16d783fd9e628c8 | Add comprehensive unit test coverage for the GetLocalIP function | ...including tests for both IPv4 and IPv6 address resolution through dial and route fallback mechanisms.
Refactored `getValidGlobalIPv6FromSameInterface` to use `cni.HostInterfaces` instead of `net.Interfaces` for consistency and improved testability.
Other improvements:
- Return empty string for "not found" c... | diff --git a/pkg/endpoint/local_ip.go b/pkg/endpoint/local_ip.go
index 07c0228bb4..76864e0702 100644
--- a/pkg/endpoint/local_ip.go
+++ b/pkg/endpoint/local_ip.go
@@ -23,6 +23,7 @@ import (
"net"
"github.com/pkg/errors"
+ "github.com/submariner-io/submariner/pkg/cni"
netlinkAPI "github.com/submariner-io/submari... | 6 | 4 | 2 | [{"id": "G0", "claim": "netlinkAPI.NewFunc and cni.HostInterfaces are package-level globals mocked in BeforeEach without restoration, so later specs can inherit the fake behavior and become order-dependent; save and restore them with DeferCleanup like endpoint.Dial.", "category": "testing", "verdict": "opposed", "prior... | null |
submariner-io__submariner__3954 | submariner-io/submariner | 3,954 | defect | 61e4002404899116151fe4d25772a658a0e05c9a | 45c909ba7b2a227aef01bbb1bc3337d831f18519 | Refactor HostInterface to use net.IP instead of string | Change the `HostInterface.Addr` field from string to `net.IP` since callers only use the IP and not the subnet mask. This also eliminates redundant CIDR parsing across multiple callers and improves type safety.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **R... | diff --git a/pkg/cable/vxlan/vxlan_test.go b/pkg/cable/vxlan/vxlan_test.go
index 7df02e06f9..4f85520550 100644
--- a/pkg/cable/vxlan/vxlan_test.go
+++ b/pkg/cable/vxlan/vxlan_test.go
@@ -31,6 +31,7 @@ import (
subv1 "github.com/submariner-io/submariner/pkg/apis/submariner.io/v1"
"github.com/submariner-io/submariner... | 3 | 1 | 1 | [{"id": "G0", "claim": "Add a defensive nil guard before dereferencing Addr in the getValidGlobalIPv6FromSameInterface loop, since it assumes every HostInterface has a non-nil Addr and could panic on malformed or zero-valued entries.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "intro... | null |
submariner-io__submariner__3979 | submariner-io/submariner | 3,979 | defect | e8b7fadb9ece3212cbd6483db96cb659454bb739 | f49229a8c86fdd95beceb2e7c8e0d7e36035cc97 | Fix IPv6 protocol conflict in nftables rules | Fixes #3978
Was hitting an issue where IPv6 rules broke due to the generic RuleActionSelfSNAT entry being applied to all IP families. It needs per-family handling, so removed it from the shared map. Cleaned up the indentation while I was at it.
Added IPv6 tests to verify the protocol headers work correctly - UDP gets... | diff --git a/pkg/packetfilter/nftables/nftables.go b/pkg/packetfilter/nftables/nftables.go
index 5fce3e1581..6222657fff 100644
--- a/pkg/packetfilter/nftables/nftables.go
+++ b/pkg/packetfilter/nftables/nftables.go
@@ -58,13 +58,12 @@ var (
}
ruleActionToStr = map[packetfilter.RuleAction][]string{
- packetfilter... | 5 | 4 | 2 | [{"id": "G0", "claim": "Rename the isIPv6Set flag (e.g. to isIPv6 or familyIsIPv6) because it no longer controls only set prefixes but also protocol keywords, CIDR prefixes and SelfSNAT rendering.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
submariner-io__submariner__3987 | submariner-io/submariner | 3,987 | defect | c11e58dbe0aa94cf9af2487f39767fda72d7ed43 | eedbdb95e5dc92609044de2180c8b42b2f6f635b | Automated backport of #3979: Fix IPv6 protocol conflict in nftables rules | Backport of #3979 on release-0.23.
#3979: Fix IPv6 protocol conflict in nftables rules
For details on the backport process, see the [backport requests](https://submariner.io/development/backports/) page.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Release ... | diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 6381b4727..59c014738 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -60,6 +60,7 @@ jobs:
- extra-toggles: dual-stack, globalnet
- extra-toggles: ipv6-stack
- extra-toggles: nftables
+ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The negative ICMP assertion `Not(ContainSubstring(\"ip nexthdr icmp\"))` is tautologically true because the IPv4 path emits `ip protocol icmp`; it should use `ip protocol icmp` to actually guard against IPv4-formatted regressions.", "category": "testing", "verdict": "supported", "priority": "P2"... | null |
suborbital__e2core__110 | suborbital/e2core | 110 | defect | 4f84ee42de51c6ba404fa7840ea1eff9ae6e0197 | 836bb3dbf4b8419ed864bf45f487b0746a8c5157 | Use Grav tunnel for proxy executor | This PR does a few related things (all related to proxy mode):
- Use `grav.Tunnel` to send the first message in a sequence (this ensures only one peer handles the message)
- Changes from `pod.On` to a callback function system in the executor, which solves some concurrency issues at larger scales
- Additional concu... | diff --git a/Makefile b/Makefile
index 42edae00..1268122b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,9 @@ atmo:
atmo/proxy:
go build -o .bin/atmo-proxy -tags proxy ./main.go
+atmo/proxy/install:
+ go build -o $(HOME)/go/bin/atmo-proxy -tags proxy ./main.go
+
run: atmo
ATMO_HTTP_PORT=8080 .bin/atmo $(bundle... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added comment should be rewritten from `//a sequence executes the handler's steps and manages its state` to `// a sequence executes the handler's steps and manages its state`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
suborbital__e2core__137 | suborbital/e2core | 137 | defect | c68894e91a1326f096572faedaade93a2a09fb11 | e2302d46992d398a370e8925b5a99e900874cb49 | Throw validation error on route conflicts (Subo #53) | intended to close https://github.com/suborbital/subo/issues/53 | diff --git a/directive/directive_test.go b/directive/directive_test.go
index bfb4e88f..16d7ad41 100644
--- a/directive/directive_test.go
+++ b/directive/directive_test.go
@@ -193,6 +193,70 @@ func TestDirectiveValidatorInvalidOnErr(t *testing.T) {
}
}
+func TestDirectiveValidatorDuplicateResourceMethod(t *testing.... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new duplicate-entry check in Validate() is incomplete: distinct parameterized paths such as /:hello and /:goodbye would not be caught, even though they would still be a conflict for the router.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
suborbital__e2core__145 | suborbital/e2core | 145 | defect | 68533e1db96d688a87ed69e3bce8e1d62091e994 | afc1060440d0aa7157f93cae7e08c2c5f7f80efb | feat(opentelemetry): Add capability to atmo to use opentel when in proxy mode | Closes #143
~~This changeset depends on https://github.com/suborbital/vektor/pull/78 being available. To get around the requirements, you can add the following line to atmo's `go.mod` file temporarily~~
> ```go
> replace github.com/suborbital/vektor => ../vektor
> ```
~~where `../vektor` points to a direc... | diff --git a/Makefile b/Makefile
index dff7d4d6..6648b838 100644
--- a/Makefile
+++ b/Makefile
@@ -68,4 +68,5 @@ mod/replace/reactr:
mod/replace/vektor:
go mod edit -replace github.com/suborbital/vektor=$(HOME)/Workspaces/suborbital/vektor
-.PHONY: build atmo atmo/docker docker/dev docker/dev/multi docker/publish ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The tracer configuration should be expanded so the provider is chosen explicitly (none | collector | honeycomb | jaeger | zipkin) with per-provider settings blocks, defaulting to \"none\" (a noop tracer) instead of inferring the exporter from the API key.", "category": "design", "verdict": "supp... | null |
suborbital__e2core__240 | suborbital/e2core | 240 | defect | ad4ce83a300a4413a6dd7e2e4784a62545766d5f | 37bb9e2bd5a65d15fbfce5d9739015aa09c42001 | fix(tests): add mock executor to get tests passing | This PR gets the coordinator tests passing to get all vmain tests green! | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3564c646..5d97c289 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,7 +48,7 @@ jobs:
- name: Run test
run: |
- make test
+ make test/ci
image:
runs-on: ubuntu-latest
diff --git... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Dockerfile should end with a trailing newline (suggestion: `USER deltav` followed by a blank line).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A note should be added explaining why the logfilePath function is comm... | null |
subquery__subql__1169 | subquery/subql | 1,169 | defect | 0b79613695f5c719ac54445256d382c04bb666eb | bfb450bd0ce961d8e3cfeb66cf1ea57eff5fdbb9 | Local ipfs | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1161
## New function
subql publish creates .<manifest-file>-cid file that contains the IPFS cid
Please delete opt... | diff --git a/packages/cli/src/commands/publish.test.ts b/packages/cli/src/commands/publish.test.ts
new file mode 100644
index 0000000000..4e2ba2d7a6
--- /dev/null
+++ b/packages/cli/src/commands/publish.test.ts
@@ -0,0 +1,31 @@
+// Copyright 2020-2022 OnFinality Limited authors & contributors
+// SPDX-License-Identifie... | 2 | 2 | 1 | [{"id": "G0", "claim": "The function createIPFS_file should be renamed (suggested createCIDFile) instead of using a snake_case name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should add tests covering that existing CID files are over... | null |
subquery__subql__1380 | subquery/subql | 1,380 | defect | f36bd9f497609d448ffd331bc639c28539ac1497 | aa47678d5ae5b38dfb62156aad9e109b8a17d86d | fix comments issue with new package | # Description
using `yaml` package to keep comments when using `subql init`
Fixes #1376
- [x] Bug fix (non-breaking change which fixes an issue)
## Checklist
- [x] I have tested locally
- [x] I have performed a self review of my changes
- [x] Linked to any relevant issues
- [x] I have added tests relev... | diff --git a/packages/cli/src/controller/init-controller.test.ts b/packages/cli/src/controller/init-controller.test.ts
index fa18ff7529..de19775114 100644
--- a/packages/cli/src/controller/init-controller.test.ts
+++ b/packages/cli/src/controller/init-controller.test.ts
@@ -3,7 +3,11 @@
import * as fs from 'fs';
im... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `yaml` dependency should be added to the CLI package instead of the validator package.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
subquery__subql__1435 | subquery/subql | 1,435 | defect | 7d40ab4ba59520987a9441a5b3ff33e1f703138f | 9287309f1846feb7efe7c5468f537d8a18f5a022 | Bypass blocks | # Description
Fixes #1413
Still working on Range aspect of the bypassBlocks
## Feature
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update
## Checklist
- [x] I have tested locally
- [x] I have performed a self review of my changes
- [ ] Updat... | diff --git a/packages/common-substrate/src/project/project.spec.ts b/packages/common-substrate/src/project/project.spec.ts
index 04e34f08d3..bd6f87c611 100644
--- a/packages/common-substrate/src/project/project.spec.ts
+++ b/packages/common-substrate/src/project/project.spec.ts
@@ -71,6 +71,10 @@ describe('project.yaml... | 6 | 6 | 2 | [{"id": "G0", "claim": "The early-return condition in filteredBlockBatch combines the empty-bypassBlocks check and the maxBatchBlock < minBypass check with && where an or-condition would do, since empty bypassBlocks already makes minBypass Infinity, so the length check is unnecessary.", "category": "correctness", "verd... | null |
subquery__subql__1491 | subquery/subql | 1,491 | defect | 88c60f982ecdd19d727ab644d7b54d743c1e9e96 | 61d7b768491bcf2e76382da586b8c64f6b6d4a70 | Worker use runtime service | # Description
Main runtime service fetch specVersion maps once, and each workers has own runtime service, copied specVersions from map.
After that, each worker runtime service maintain own runtimes and specVersion.
TODO/Improvement:
- [x] if able to know which workers has the latest specVersion map, could... | diff --git a/packages/node-core/src/indexer/dictionary.service.ts b/packages/node-core/src/indexer/dictionary.service.ts
index f56d36f888..039e347485 100644
--- a/packages/node-core/src/indexer/dictionary.service.ts
+++ b/packages/node-core/src/indexer/dictionary.service.ts
@@ -8,7 +8,6 @@ import {NodeConfig, timeout, ... | 4 | 4 | 0 | [{"id": "G0", "claim": "Remove the need for the `as any` casts when passing main-thread runtime service state (specVersionMap, parentSpecVersion, latestFinalizedHeight) to workers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Providing Diction... | null |
subquery__subql__1494 | subquery/subql | 1,494 | defect | 88c60f982ecdd19d727ab644d7b54d743c1e9e96 | 3dd9bbc66e6427c7bbfe51007663d20f3fd7e537 | add block hash validation after fetch | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1481
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which f... | diff --git a/packages/node/src/utils/substrate.ts b/packages/node/src/utils/substrate.ts
index d48d465b64..7904f83858 100644
--- a/packages/node/src/utils/substrate.ts
+++ b/packages/node/src/utils/substrate.ts
@@ -258,10 +258,18 @@ export async function getBlockByHeight(
logger.error(`failed to fetch BlockHash ${... | 2 | 2 | 1 | [{"id": "G0", "claim": "The validation error message 'please check with endpoint' is unclear about what the user should do (e.g. whether they need to find another endpoint) and should be clearer.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ther... | null |
subquery__subql__1614 | subquery/subql | 1,614 | defect | e9ac5de3729b5485e2bce0251ec52427f3608084 | 29cf0893d24dd5cc5361ed655ced36aecc763d25 | Flush store cache in operational order | # Description
- enable with `store-flush-in-order` flag
- only work with **non-historica**l project, as historical projects has no constraints between entity, we can always use bulk method.
- it will only sort **relational** model 's record, other non-relational model can be flush with bulk method.
- We need to... | diff --git a/packages/node-core/src/configure/NodeConfig.ts b/packages/node-core/src/configure/NodeConfig.ts
index 6575870de9..64f12e068e 100644
--- a/packages/node-core/src/configure/NodeConfig.ts
+++ b/packages/node-core/src/configure/NodeConfig.ts
@@ -48,6 +48,7 @@ export interface IConfig {
readonly storeCacheTh... | 7 | 7 | 2 | [{"id": "G0", "claim": "The store-flush-in-order option description has a grammar error: 'this only work in non-historical mode' should read 'this only works in non-historical mode'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It might be worth... | null |
subquery__subql__1618 | subquery/subql | 1,618 | defect | 6f1d24c3a37521e088a061ce438ff524663a72d8 | 634e86efcfd6a6f8632c6b1fcced6181e81abc7f | postgres based mmr DB | # Description
Provide a DB storage mechanism for MMR rather than file based. This will simplify having to manage storage and will also make creating backups simpler as it can be in the same DB as projects.
Fixes #1594
## Type of change
Please delete options that are not relevant.
- [ ] New feature (non-br... | diff --git a/packages/node-core/src/configure/NodeConfig.ts b/packages/node-core/src/configure/NodeConfig.ts
index bcf6f1f34d..8fffd84275 100644
--- a/packages/node-core/src/configure/NodeConfig.ts
+++ b/packages/node-core/src/configure/NodeConfig.ts
@@ -31,6 +31,7 @@ export interface IConfig {
readonly indexCountLi... | 6 | 6 | 5 | [{"id": "G0", "claim": "Rename the `mmr-db-store` boolean option to `mmr-store-type` as an enum, since other store types may come later.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The postgres DB class should implement the merkle-mountain-range `Db` ... | null |
subquery__subql__1664 | subquery/subql | 1,664 | defect | 29df082ddb4026a46a57a2830caf805c55fe9593 | e2d4dba425eea1d56ba7db25a078f1d221ac71b4 | Regenerate mmr | # Description
TODO:
- [x] Move regenerate service to node-core
This feature allow re-generate mmr between POI and MMR DB while NOT indexing.
There are 2 modes for subcommand `mmr-regen`.
**Required flags:**
`--proof-of-index`
**Shared flags:**
`--probe` : Fetch latest mmr height information f... | diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts
index 1e1c3216b3..b9b386b660 100644
--- a/packages/common/src/constants.ts
+++ b/packages/common/src/constants.ts
@@ -48,3 +48,9 @@ export enum SUPPORT_DB {
// DATABASE ERROR REGEX
export const CONNECTION_SSL_ERROR_REGEX = 'not support... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new import of PlainPoiModel in mmr.service.ts should be a relative import rather than the package-qualified '@subql/node-core/indexer/poi'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The poi getter in mmr.service.... | null |
subquery__subql__1696 | subquery/subql | 1,696 | defect | 97ad0d9bbd011463da337000e47593b2767ea29c | bfc46a4159837a51ccd3065a1daf84eac2f8b041 | deprecate project id from poi table, track deployment in metadata | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
TODO:
- [x] should not use Record type for deployments, user could switch back to same deployment and block height could be ... | diff --git a/packages/node-core/src/indexer/entities/Metadata.entity.ts b/packages/node-core/src/indexer/entities/Metadata.entity.ts
index eda9267272..2b8af005e1 100644
--- a/packages/node-core/src/indexer/entities/Metadata.entity.ts
+++ b/packages/node-core/src/indexer/entities/Metadata.entity.ts
@@ -26,6 +26,7 @@ exp... | 3 | 1 | 0 | [{"id": "G0", "claim": "The inline deployments-tracking block in BaseProjectService should be moved into its own function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions whether the new deployments field needs to be made q... | null |
subquery__subql__1759 | subquery/subql | 1,759 | defect | d70d70aaf2460eb2a9c997ded45cefd7197eef8d | 8364785b479e5749275f49c766339a5cad1eaaa1 | Composite index | # Description
Fixes #1718, #1455
Create Composite index within entity fields (id, fields, fk fields), use new scalar `CompositeIndex` as field type.
And use `@joinIndex()` to include composite fields.
Example:
``` graphql
type StarterEntity @entity {
id: ID! #id is a required field
field1: Int!
... | diff --git a/packages/cli/src/controller/codegen-controller.ts b/packages/cli/src/controller/codegen-controller.ts
index d7d356ffa0..8b8c6239d6 100644
--- a/packages/cli/src/controller/codegen-controller.ts
+++ b/packages/cli/src/controller/codegen-controller.ts
@@ -300,7 +300,7 @@ export function processFields(
i... | 3 | 2 | 2 | [{"id": "G0", "claim": "Declaring a composite index as a separate CompositeIndex-typed field with @joinIndex is the wrong shape; it should be declared at the entity level instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "A composite index directive... | null |
subquery__subql__1824 | subquery/subql | 1,824 | defect | 304b90cd969b793fe8763e35a31cce47424d95f7 | 9bd27e311d89b2d4fa458cbd313d1947c0190591 | wait for `connected` event from ApiPromise while reconnecting | # Description
Wait for `connected` event from ApiPromise before resolving apiConnect()
Fixes #1812
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
## Checklist
- [ ] I have tested locally
- [ ] I have performed a self review of... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 977de5121f..4352ab75fb 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Se... | 4 | 4 | 3 | [{"id": "G0", "claim": "handleApiError (and the reconnection it triggers) could be called multiple times for the same endpoint when a batch of requests fails, so a batch of requests would all run this.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
subquery__subql__1870 | subquery/subql | 1,870 | defect | 3ff40743756da446eccfc1e094de34bd9f070e44 | d03b497ed76814acc09cd693f66e858bcd9da49e | inti db schema manually during test run | # Description
Initialize schema entities at the start of each test run as it gets deleted when one test run finishes
Fixes #1844 #1877
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
## Checklist
- [ ] I have tested locally
- [ ... | diff --git a/packages/node-core/src/indexer/testing.service.ts b/packages/node-core/src/indexer/testing.service.ts
index 8c90eb9f61..f77ae5b73b 100644
--- a/packages/node-core/src/indexer/testing.service.ts
+++ b/packages/node-core/src/indexer/testing.service.ts
@@ -13,6 +13,7 @@ import Pino from 'pino';
import {IApi}... | 3 | 3 | 1 | [{"id": "G0", "claim": "Now that `initDbSchema` is called, the preceding manual 'Init db' schema-creation block in `runTest` may no longer be necessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When a second test file is created (both file... | null |
subquery__subql__1927 | subquery/subql | 1,927 | defect | 27e9be37cbc2d945d57e392f2fde84a4a34a2f27 | fcb45b6f2123bce1fe5dc8ac0e61d3b385aa16da | add primary network endpoint | # Description
add `--primary-network-endpoint` to specify a primary end point that is always used unless there are issues with that endpoint
Fixes #1924
## Type of change
Please delete options that are not relevant.
- [ ] New feature (non-breaking change which adds functionality)
## Checklist
- [ ] ... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index ad8a400798..dd9714ac57 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Se... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move some of the connection setup logic out of packages/node into node-core so that the node package does not need changes and other SDKs can easily be updated.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
subquery__subql__1976 | subquery/subql | 1,976 | defect | 5713da62dd50930360824299e498cd36a40c0f97 | 0e892191faaa268588eb98c520add194a1a525d8 | Fix for unstructured storage abis (codegen) | # Description
Fixes #1975
Fix incorrect codegen on unstructured storage proxy contract abi
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or... | diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md
index 94413b9d8f..03f43fbb2e 100644
--- a/packages/cli/CHANGELOG.md
+++ b/packages/cli/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https... | 1 | 1 | 1 | [{"id": "G0", "claim": "In joinInputAbiName, the includes('[]') check is redundant — replace() is a no-op on non-matches, and types containing '[]' should be lowercased too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
subquery__subql__2003 | subquery/subql | 2,003 | defect | 889e86e88750ef7f9d2e36a6f6faaea57b9809c4 | 630be036557c3e2f33c739b6bc9276a0e3d874c6 | fix(codegen): undefined tstype for unsupported field type | # Description
Removes erroneous type assertion in the `getTypeByScalarName` utility function.
Fixes #2001
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
## Checklist
- [ ] I have tested locally
- [x] I have performed a self re... | diff --git a/packages/cli/src/controller/codegen-controller.spec.ts b/packages/cli/src/controller/codegen-controller.spec.ts
index c96d60306b..df73cb8b19 100644
--- a/packages/cli/src/controller/codegen-controller.spec.ts
+++ b/packages/cli/src/controller/codegen-controller.spec.ts
@@ -4,7 +4,14 @@
import fs from 'fs'... | 2 | 2 | 1 | [{"id": "G0", "claim": "A test should be added covering the codegen change that handles computing the tsType of an unsupported scalar type.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests are too specific in testing Enums, which the author call... | null |
subquery__subql__2006 | subquery/subql | 2,006 | defect | 889e86e88750ef7f9d2e36a6f6faaea57b9809c4 | 0fe5e3efe9ed522f5b6a772f92cbf6329963e41c | Fix empty block range | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1995
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which f... | diff --git a/packages/node-core/src/indexer/storeCache/cacheModel.spec.ts b/packages/node-core/src/indexer/storeCache/cacheModel.spec.ts
index 89553615ee..36f768de8d 100644
--- a/packages/node-core/src/indexer/storeCache/cacheModel.spec.ts
+++ b/packages/node-core/src/indexer/storeCache/cacheModel.spec.ts
@@ -45,8 +45,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new tests in cacheModel.spec.ts should not have massive 500000 ms timeouts unless there is a reason for them.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
subquery__subql__2064 | subquery/subql | 2,064 | defect | 2218b98e960188b112e1c9f493d6ce37090a673b | 8d9c2f7ce170afa4d0952192f51eb753b39d4480 | Endblock feature | # Description
Allow an optional endBlock on the datasource. Handlers in that datasource will only run from startBlock to endBlock
Fixes #2008
## Type of change
Please delete options that are not relevant.
- [ ] New feature (non-breaking change which adds functionality)
- [ ] This change requires a docume... | diff --git a/packages/common-substrate/src/project/models.ts b/packages/common-substrate/src/project/models.ts
index 216f3979fa..cba5c9106e 100644
--- a/packages/common-substrate/src/project/models.ts
+++ b/packages/common-substrate/src/project/models.ts
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0
import {R... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new method should be renamed from hasDataSourceWithEndBlockGreaterThan to hasDataSourcesAfterHeight.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The datasource-gathering logic duplicated in hasDataSourceWithEndBlockGreaterT... | null |
subquery__subql__211 | subquery/subql | 211 | defect | 7f445cf053e300088fc8de0341cff049bcf48595 | ba600371123c65d4846205e3c1511ba5e8ca0624 | use parent's specVersion to decide if metadata need to be injected | Fixes #210 | diff --git a/packages/node/src/indexer/api.service.test.ts b/packages/node/src/indexer/api.service.test.ts
index dbd79e5eab..5e2f05779f 100644
--- a/packages/node/src/indexer/api.service.test.ts
+++ b/packages/node/src/indexer/api.service.test.ts
@@ -58,7 +58,7 @@ describe('ApiService', () => {
const patchedApi = ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using parentBlockHashs to fetch the events makes the fetched events and blocks mismatched.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
subquery__subql__2110 | subquery/subql | 2,110 | defect | 8205360db5d2b9da03c41c386336197975016d07 | adf97feedca9fc09f252c584c67fb2c26b36a20a | Support built in cache feature | # Description
Implement in-memory cache and inject it to sandbox. workers will use the cache service from host to allow using same instance of cache in the sandbox.
Fixes #2022
## Type of change
Please delete options that are not relevant.
- [ ] New feature (non-breaking change which adds functionality)
-... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 5b7db31a3a..f8c23727a9 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Se... | 5 | 5 | 0 | [{"id": "G0", "claim": "unwrapProxyArgs is now used in multiple places, so it should be moved to a common (shared) location instead of living in worker.store.service.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Cache interface's per-ca... | null |
subquery__subql__2164 | subquery/subql | 2,164 | defect | c241659827822045d1ea83bb6e00b84744526e35 | e7b9fe54ec1b90100500e8c86638734aae73773d | Add/query depth limit | # Description
adding new flag on query service that can allow restrictions on the depth of the graphql query
`--query-depth-limit=<number>`
Fixes #2127
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking... | diff --git a/packages/query/src/graphql/graphql.module.ts b/packages/query/src/graphql/graphql.module.ts
index 6dcd5e9dea..2fd9eefc9f 100644
--- a/packages/query/src/graphql/graphql.module.ts
+++ b/packages/query/src/graphql/graphql.module.ts
@@ -26,6 +26,7 @@ import {getYargsOption} from '../yargs';
import {plugins} ... | 4 | 4 | 1 | [{"id": "G0", "claim": "If no maxDepth value is set, the plugin should not impose any depth limit instead of defaulting to 5.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The context parameter threaded through determineDepth seems to be unused and... | null |
subquery__subql__2418 | subquery/subql | 2,418 | defect | 3e1d2ee7ea1ddce0c48b71d9d77b329121edb433 | af3e04c7f051e0264d801bf302fd7854db5e9a21 | Update block failed message | # Description
Update block failed message.
Fixes #2414 (issue)
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause ex... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 1402758b11..98461c74d9 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Se... | 2 | 2 | 2 | [{"id": "G0", "claim": "The failed-index message must be emitted for a specific decode error type, not for all errors failing to index blocks.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The api.query.system.events.at call in fetchEventsRange (su... | null |
subquery__subql__2445 | subquery/subql | 2,445 | defect | b8ec6504938cd9b7e27aadfeec668e7f73aed83d | ce891151bdab6ebca182be561d1d60ef59d6366b | Strict utils types | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
enable ts strict mode in utils package
## Type of change
Please delete options that are not relevant.
... | diff --git a/packages/utils/src/types/TypeClass.ts b/packages/utils/src/types/TypeClass.ts
index d89f5819c3..9d4ab8282e 100644
--- a/packages/utils/src/types/TypeClass.ts
+++ b/packages/utils/src/types/TypeClass.ts
@@ -6,10 +6,22 @@ import {DataTypes} from '@subql/x-sequelize';
type ValueOf<T> = T[keyof T];
export ty... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new TypeToHashData interface is hand-written instead of tied to the supported type definitions, so adding a new type in supported (e.g. BigFloat) would not produce the compiler error it should when the two drift apart.", "category": "design", "verdict": "supported", "priority": "P2", "scope"... | null |
subquery__subql__2447 | subquery/subql | 2,447 | defect | b8ec6504938cd9b7e27aadfeec668e7f73aed83d | 35394791d525948a7a96cb9a7d6494eb4c8cec22 | enable ts strict in query package | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
enable ts strict mode in query package
## Type of change
Please delete options that are not relevant.
... | diff --git a/packages/query/src/configure/configure.module.ts b/packages/query/src/configure/configure.module.ts
index e07bc0ab38..1ddcf04c5d 100644
--- a/packages/query/src/configure/configure.module.ts
+++ b/packages/query/src/configure/configure.module.ts
@@ -15,7 +15,7 @@ async function ensurePool(poolConfig: PoolC... | 6 | 6 | 1 | [{"id": "G0", "claim": "The PR should keep the codebase's established `} catch (e: any) {` pattern instead of casting with `(e as Error).message`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `_explainResults` guard should use optional cha... | null |
subquery__subql__2448 | subquery/subql | 2,448 | defect | e5e854109c5d460e84b5ecafd742d83b957facd3 | d4cc9bc4d16fe057b52aed8898bfad653c3b0272 | enable ts strict in common package | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Enable ts strict mode in common package
## Type of change
Please delete options that are not relevant.... | diff --git a/packages/common/src/multichain/models.ts b/packages/common/src/multichain/models.ts
index 8584400dba..1c3453f891 100644
--- a/packages/common/src/multichain/models.ts
+++ b/packages/common/src/multichain/models.ts
@@ -8,10 +8,10 @@ import {RunnerQueryBaseModel} from '../project';
export class Multichain... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `defaultBranch` field can be declared optional (`?`) instead of using the definite-assignment assertion (`!`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks for an explanation of the `!` non-null assertions ... | null |
subquery__subql__2461 | subquery/subql | 2,461 | defect | 326f2a3e1b0287d4eec7cf891719490041de229c | 29229d55567f7bbbb6562a1fe4d9a1301db9e640 | Graphql to support snakeCase fields | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Graphql to support snakeCase fields
## Type of change
Please delete options that are not relevant.
- ... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 58db9d4550..070b5235c9 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changelog entry should be reworded from \"Graphql to support snakeCase fields\" to \"Store service index check failing with snake_case fields (#2461)\" to accurately describe the fix.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
subquery__subql__2463 | subquery/subql | 2,463 | defect | 6b28e4f62026a7beeef6d30011234763738edc5e | 554114f44ab6875db93a41f25fcc20f196d10449 | Fix various issue with substrate dictionary | # Description
- Update with common-substrate, fix `EventFilter` incorrectly extend `BlockFilter`, lead dictionary error
- Fix dictionary query entries included undefined fields
Fixes # (issue)
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an ... | diff --git a/packages/common-substrate/CHANGELOG.md b/packages/common-substrate/CHANGELOG.md
index b63d04541c..506d2744e6 100644
--- a/packages/common-substrate/CHANGELOG.md
+++ b/packages/common-substrate/CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#... | 1 | 1 | 0 | [{"id": "G0", "claim": "The undefined-field filtering should live in `callFilterToQueryEntry` or `eventFilterToQueryEntry` rather than in `buildDictionaryV1QueryEntries`, where the `Object.*` mapping is very hard to follow and removes a lot of type checks.", "category": "maintainability", "verdict": "supported", "prior... | null |
subquery__subql__2480 | subquery/subql | 2,480 | defect | b0fb60e13a6eed373bf7b4060c61b53e946565d3 | 6c430220c2bac4f8336e39557496742b611a1fdf | Ipfs client lite | # Description
Remove original ipfs http client, only use lite client
## Type of change
Fixes https://github.com/subquery/subql/issues/1928
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
-... | diff --git a/packages/cli/src/controller/publish-controller.ts b/packages/cli/src/controller/publish-controller.ts
index af5745831c..ceadee98ec 100644
--- a/packages/cli/src/controller/publish-controller.ts
+++ b/packages/cli/src/controller/publish-controller.ts
@@ -11,9 +11,9 @@ import {
validateCommonProjectManife... | 4 | 3 | 1 | [{"id": "G0", "claim": "With the lite client the value stored in fileCidMap is now a CID object where the caller previously got a string, so the .toString() should be dropped (or the type made consistent).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
subquery__subql__2481 | subquery/subql | 2,481 | defect | 03776170f1ac4979bb94dd568a9e19e73c71c97c | 8ba0a45b49b3a48617689ec2443b387b5569af52 | Fix admin api db size | # Description
Fixed issue for admin api, when dbSize not been set in the metadata, fetch and update dbSize will return undefined issue.
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds f... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index ef33ac214a..5e52030cf9 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test's cleanup (dropSchema and sequelize.close) should be moved into afterEach so the schema is still cleaned up when any step above fails.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
subquery__subql__2504 | subquery/subql | 2,504 | defect | 723fcedd998b307a9f400e2cfbe33968c98134e7 | 4fe561d895c8a5ddd9e392022b5384b518190017 | Fix get bigInt from jsonb, and deepclone from cache model | # Description
- Fixed get and set data not been deepCloned and data is not mutable
- Improved get bigInt type from json type
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functiona... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 6272b50d05..a61f5bfd81 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed... | 4 | 3 | 0 | [{"id": "G0", "claim": "It may be worth dropping the regex-based bigint string check, since hex-encoded bigints could cause an error.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Drop the redundant `.length` check on `bigIntFields`, using `if (big... | null |
subquery__subql__2505 | subquery/subql | 2,505 | defect | ab4c24f8b65d09c1d5413948cb8e4f6488423254 | 9006d56f75ab782e8c50fc836862b580bae3290a | Reload chainTypes | - Fixed reload chainTypes when project changed,
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functiona... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index a61f5bfd81..7c7ea4160c 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
+-... | 7 | 4 | 1 | [{"id": "G0", "claim": "Making the private #ctx field public removes its privacy with no visible reason, so it should stay private (or the change justified).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "onProjectChange should combine reloadCha... | null |
subquery__subql__2526 | subquery/subql | 2,526 | defect | 8adf5c4f8a7f00cda030e3e53daca89e46b47f9e | 4de7db9a0a3550bdb65cb0651a1f073ea8a006fa | add support for null ordering in 'order by' query (#2387) | # Description
adds support for null ordering in 'order by' query
Fixes #2387
## Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work ... | diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md
index 5510375977..aa74054eaa 100644
--- a/packages/query/CHANGELOG.md
+++ b/packages/query/CHANGELOG.md
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Update dependencies (#2518)
+#... | 2 | 2 | 2 | [{"id": "G0", "claim": "Tests are still needed for these changes (the graphql.test.ts test case the author was trying to add is missing).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The failing test `GraphqlHistorical › to filter historical items when o... | null |
subquery__subql__2566 | subquery/subql | 2,566 | defect | 10023965bca54cdd777a9e697a2ca30a1181a2d7 | 42ff912e7aaaba0c77386206934ae3f3c58ebea2 | Rework bypass blocks to not expand large block ranges | # Description
If a large range of blocks was specified to be bypassed, then it could result in array/map size limits. This change simplifies the logic to calculate bypass blocks, as well as no longer expanding block ranges to individual blocks.
Fixes https://github.com/subquery/subql/issues/2565
## Type of chan... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 5560f37664..fd81bcb9a8 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Se... | 1 | 1 | 1 | [{"id": "G0", "claim": "The bypass range pushed for a datasource gap should end at nextHeight - 1, because nextHeight is the start of the next datasource and its block should not be skipped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
subquery__subql__2587 | subquery/subql | 2,587 | defect | cdfa98edd6c7bdfa3da3a4fb1874084af03ca08d | c6cbc78a47728e99e17bf8171fa699073b2d30d2 | Multi-chain project initialization error | # Description
Fixes # (issue)
Fixed the error that occurred during the initialization of multi-chain.
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking chang... | diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md
index 79bb32c9d2..1b1515c0b8 100644
--- a/packages/cli/CHANGELOG.md
+++ b/packages/cli/CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+- Multi-chain project i... | 3 | 3 | 2 | [{"id": "G0", "claim": "The RPC endpoint prompt should drop the hard-coded Polkadot fallback (`wss://polkadot.api.onfinality.io/public-ws`) as the default, since the defaults will rarely be for the Polkadot network.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
subquery__subql__2602 | subquery/subql | 2,602 | defect | 9debdf0b1f661c27ac2cd6ad982d254c5a2774ac | ed546e0b72a144fd260784dc09531a3e7509df65 | Update polkadot 14 | Supersedes https://github.com/subquery/subql/pull/2596 | diff --git a/package.json b/package.json
index a7b243be61..ab9a63c7d2 100644
--- a/package.json
+++ b/package.json
@@ -35,8 +35,8 @@
"typescript": "^5.5.4"
},
"resolutions": {
- "@polkadot/api": "12.3.1",
- "@polkadot/util": "13.0.2",
+ "@polkadot/api": "14.3.1",
+ "@polkadot/util": "^13.2.3",
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The 'Update polkadot/api library to 14 version' entry is repeated (duplicated) in packages/node/CHANGELOG.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change log should be updated for the dependency changes made b... | null |
subquery__subql__2613 | subquery/subql | 2,613 | defect | ba33f6bc0fbf0343c35c58b844741b0d31a9e05d | 63c52fc71cec0aa1164eff44a6eee06c1c3b4433 | Fixed the issue where flags that require special handling were being overwritten. | # Description
When the `primary-network-endpoint` flag exists, it will report an "Invalid endpoint" error.
After yargs parses the flags, there will be two types of fields: snake_case and camelCase. Therefore, we currently need to optimize the logic for handling camelCase fields.
Fixes #2612
## Type of change
... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 6a4dd0af24..80406734d9 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The test added for yargsToIConfig is not sufficient because it only demonstrates support for camelCase keys rather than the actual issue of the snake_case flag's processed value being overwritten.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
subquery__subql__2648 | subquery/subql | 2,648 | defect | 8821937bc152259ca904d529b6fedfe915212ede | 1288f9c2833f100e39804f92a4a626af040b68cf | Fix the issue that may occur when using a dictionary to crawl blocks. | # Description
When setting a smaller batch size and the current processing height reaches latestFinalizedHeight, it causes the program to exit unexpectedly. Will cause the following error.
```
2025-01-21T07:09:18.745Z <BlockDispatcherService> INFO Enqueueing blocks 21671197...21671197, total 1 blocks
2025-01-21T07... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index 2f00117e87..7219368704 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed the incons... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test for the new dictionary empty-batch enqueue branch (startBlockHeight vs lastBufferedHeight) in fetch.service.ts so the changed behaviour is not regressed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
subquery__subql__2720 | subquery/subql | 2,720 | defect | 16052b90e6ff7aa4016652bece344dccb814509f | 73105d88e5ae0b66901b54399575c03698dd30d1 | Process already fetched blocks on fetch block failure | # Description
The previous behaviour, when a block failed to fetch the indexer would instantly exit, discarding and already fetched blocks and any changes from processed blocks but not flushed to the db.
The new behaviour means that when a block fails to fetch it will process any already fetched blocks and flush th... | diff --git a/packages/node-core/CHANGELOG.md b/packages/node-core/CHANGELOG.md
index c3fa5fa672..571429c693 100644
--- a/packages/node-core/CHANGELOG.md
+++ b/packages/node-core/CHANGELOG.md
@@ -5,8 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [S... | 4 | 3 | 3 | [{"id": "G0", "claim": "applyPendingChanges runs after the rewind completes; applying cache changes after a rewind seems wrong, so it should happen before the rewind.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "createIndexerWorker should inject t... | null |
subquery__subql__2901 | subquery/subql | 2,901 | defect | d86406f014cd1da7a891263f0fc99086c8bf2857 | d22790eed6aa86544392143521466d4e9dafbef5 | feat: add environment variable support for mapping handlers | # Description
Extends subql existing environment variable support from ts manifests to mapping handlers, allowing developers to access `.env` variables during indexing runtime.
Fixes #2471
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue... | diff --git a/packages/cli/package.json b/packages/cli/package.json
index f31073a765..14295e5cba 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -14,6 +14,7 @@
"@subql/common": "workspace:~",
"@subql/utils": "workspace:~",
"chalk": "^4",
+ "dotenv": "^16.4.5",
"ejs": "^3.... | 2 | 2 | 0 | [{"id": "G0", "claim": "The malformed-.env test should be more strict and assert that the config equals an empty object instead of only checking that it is defined.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getSandboxEnvGlobals is not used anywhere... | null |
subquery__subql__3016 | subquery/subql | 3,016 | defect | 1fbbccc4d8b343f659cbff75af83c6f4c0598137 | 41c60ddf6fd3fd53c73e54d29bf05d0964d0ff09 | fix: handle non-sequential unfinalized blocks with backfill | # Description
Previously, when dictionary returned non... | diff --git a/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts b/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts
index e489079b55..6a70dddec7 100644
--- a/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.ts
+++ b/packages/node-core/src/indexer/unfinalizedBlocks.service.spec.... | 5 | 3 | 1 | [{"id": "G0", "claim": "The new sequential-path fork check flags a valid sequential block as a fork whenever header.parentHash is undefined or empty, so the fork check should only run when the new header actually has a parent hash to validate.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
subquery__subql__3028 | subquery/subql | 3,028 | defect | 264145d63621dcea012672a8fd60a03ba333b6ed | 923240c464d09f155c885370fe35dfa5301d52c8 | Optionally disable multichain rewind lock | # Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change whic... | diff --git a/packages/node-core/src/configure/NodeConfig.spec.ts b/packages/node-core/src/configure/NodeConfig.spec.ts
index cc8546b05a..7b9271dcb2 100644
--- a/packages/node-core/src/configure/NodeConfig.spec.ts
+++ b/packages/node-core/src/configure/NodeConfig.spec.ts
@@ -80,4 +80,12 @@ describe('NodeConfig', () => {... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new negative assertion in 'does not wait for multichain rewind when lock is disabled' is nondeterministic: because FetchService.init() starts the loop asynchronously, the assertion can pass before the loop reaches the rewind-check branch, and the test should be hardened (e.g. by delaying bef... | null |
subquery__subql__304 | subquery/subql | 304 | defect | 9cfad4314ca63b41bd03dedea2008b3b6ba32a51 | 01fd72508c00097575bd6387d7fb9df451f55722 | Support historic api rpc | Closes #302 | diff --git a/package.json b/package.json
index 571cbd962f..699226ab88 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"vuepress": "next"
},
"resolutions": {
- "@polkadot/api": "4.6.2"
+ "@polkadot/api": "4.9.3-3"
},
"scripts": {
"docs:dev": "vuepress dev docs",
diff --git a/pa... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test variable names `patchedBlock` and `patchedBlock2` are misleading — they suggest the block itself is patched when they actually hold blocks fetched from the patched API — and should be renamed, even to simple names like `b1`, `b2`.", "category": "maintainability", "verdict": "supported",... | null |
subquery__subql__307 | subquery/subql | 307 | defect | 6bcb4b67769aba98fbcd464dcf1d72ac3bdf1da5 | 7514cd87f8eef1a5b7eaed366450d584a77c2c97 | Get finalized block from api call, instead of using subscription | Closes #305 | diff --git a/packages/node/src/indexer/fetch.service.spec.ts b/packages/node/src/indexer/fetch.service.spec.ts
index 8a5341c60f..4eee80ec14 100644
--- a/packages/node/src/indexer/fetch.service.spec.ts
+++ b/packages/node/src/indexer/fetch.service.spec.ts
@@ -14,7 +14,24 @@ jest.mock('../utils/substrate', () =>
funct... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request need not listen to the `connected` event at all.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fetch service should have some error-handling code, since it is not clear what Nest will do if an error is thrown... | null |
subquery__subql__488 | subquery/subql | 488 | defect | c8d1c10584ae0282c9f65fe4c0da3cbb8a655a31 | 1a036fa8b1e54fd694f57dc5f8bb6c4da28f1154 | Proof of index part 2 | Closes #410
TODO:
- [x] Fix comment issues
- [x] Folk MMR repo, fix relate bugs and test
- [x] Test if we set mmr to nullable will not cause conflict in our current projects
- [x] Solve when adding large number of blocks to filebaseDb, `JavaScript heap out of memory` issue | diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md
index 83acf56b9c..aee4fd905f 100644
--- a/packages/node/CHANGELOG.md
+++ b/packages/node/CHANGELOG.md
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](h... | 13 | 9 | 3 | [{"id": "G0", "claim": "updatePoiMmrRoot compares the two values via u8aToHex string inequality, which the author says reports two equal values as different — the values should be compared as byte arrays (e.g. u8aEq).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
subquery__subql__778 | subquery/subql | 778 | defect | 6955183c8dfe8a93c70f8964c4457b2ae7d10a1d | fa94ab0d8a1db0cb58aaa06821496c87622810c5 | Add authToken to subql publish ipfs-http header | Implements:
- https://github.com/subquery/subql/issues/776
Overview:
- Adds a yaml file for secrets and a flag for a secret authToken
- This yaml doesn't have a spec because it's likely to remain small and I think we would want breaking changes for changes to this yaml. Not using a normal file so that we have the... | diff --git a/jest.config.js b/jest.config.js
index da880b1e61..d26f52f712 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -195,7 +195,7 @@ module.exports = {
// ],
"transformIgnorePatterns": [
- "node_modules/(?!(@polkadot|@babel/runtime/helpers/esm)/)"
+ "node_modules/(?!(@polkadot|@babel/runtime/hel... | 7 | 7 | 3 | [{"id": "G0", "claim": "determineStringOrFsStream should be simplified to `return !!(toBeDetermined as fs.ReadStream).path;` instead of the verbose if/return-true/return-false body.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Assigning fetch/... | null |
substrait-io__substrait-java__236 | substrait-io/substrait-java | 236 | defect | a1186b3d9cfcbe3faa52f8192ace3ca2a65e9219 | 99a2b27fd9bcf62508a7c14f553abe5c0fcccf50 | fix: issue-134 to choose cast failure condition - needs calcite 1.34 | Resolves #134
To get the SqlKind.SAFE_CAST - that needs Calcite 1.35 (implemented [here](https://issues.apache.org/jira/browse/CALCITE-5557)) However 1.34 also had a [change to the external API](https://github.com/apache/calcite/commit/ddb4200f8f52b02afb1b866abb0785218e2c5994)
I've included both in the PR as the... | diff --git a/.gitignore b/.gitignore
index 0ea09b09b..d7d9428ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ gen
*.iml
out/**
*.iws
+.vscode
diff --git a/core/src/main/java/io/substrait/expression/proto/ProtoExpressionConverter.java b/core/src/main/java/io/substrait/expression/proto/ProtoExpressionConver... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request should add a test verifying that the cast conversion works end-to-end, e.g. in ExpressionConvertabilityTest using the assertRuleRoundTrip helper in PlanTestBase.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
substrait-io__substrait-java__457 | substrait-io/substrait-java | 457 | defect | d61d8c44b252ab2653ac282fa4266717bc0a7e4d | ad11957f3c02f1383dc5128fad83763431422341 | feat(isthmus): add dynamic function conversion for Substrait<->Calcite | This PR introduces support for dynamic scalar User-Defined Functions (UDFs) for round-trip conversion between Substrait plans and Calcite RelNodes.
It establishes the Substrait YAML extension files as the single source of truth (SSoT) for all function signatures. The primary addition is a new utility, [YamlToSqlOper... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/ExtensionUtils.java b/isthmus/src/main/java/io/substrait/isthmus/ExtensionUtils.java
new file mode 100644
index 000000000..c590477cd
--- /dev/null
+++ b/isthmus/src/main/java/io/substrait/isthmus/ExtensionUtils.java
@@ -0,0 +1,29 @@
+package io.substrait.isthmus;
... | 23 | 22 | 8 | [{"id": "G0", "claim": "The new SubstraitSqlValidator constructor should take Prepare.CatalogReader as its first argument so both constructors read (CatalogReader, SqlOperatorTable).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new YamlToSqlOperato... | null |
substrait-io__substrait-java__521 | substrait-io/substrait-java | 521 | defect | 6a187c0c280afa3f87d7f792baed11d4738d77bf | e28168f6afaf8ab41f24c3ab9bb28fa75270931f | fix(isthmus): adding support for new proto and deprecated form in AggregateRel | Substrait is either produced using using the deprecated form where Groupings is set with a grouping_expressions list, or the new proto form where the grouping_expressions is defined on the AggregateRel itself with the Groupings having a list of references into the grouping_expressions list.
This PR would add suppor... | diff --git a/core/src/main/java/io/substrait/relation/ProtoRelConverter.java b/core/src/main/java/io/substrait/relation/ProtoRelConverter.java
index a055a8f97..574762309 100644
--- a/core/src/main/java/io/substrait/relation/ProtoRelConverter.java
+++ b/core/src/main/java/io/substrait/relation/ProtoRelConverter.java
@@ ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request should include tests for consuming a proto plan with the deprecated aggregate encoding and one with the new aggregate encoding, ideally in a new AggregateRelTest class.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
substrait-io__substrait-java__569 | substrait-io/substrait-java | 569 | defect | e50ecd2a9d9ef42859572b21e7d2488b16c3ba7a | ccb6091692fa9f034d494fa7f483a242108dc647 | fix(core): close AdvancedExtension serde gaps | I noticed there are multiple gaps in the serialization and deserialization of `AdvancedExtension which I'm trying to close with this PR:
- in `PlanProtoConverter` pass `ExtensionProtoConverter` to `RelProtoConverter`
- in `ProtoPlanConverter` pass `ProtoExtensionConverter` to `ProtoRelConverter`
- move/add `HasExt... | diff --git a/core/src/main/java/io/substrait/dsl/SubstraitBuilder.java b/core/src/main/java/io/substrait/dsl/SubstraitBuilder.java
index f211d8237..d47d075d6 100644
--- a/core/src/main/java/io/substrait/dsl/SubstraitBuilder.java
+++ b/core/src/main/java/io/substrait/dsl/SubstraitBuilder.java
@@ -19,6 +19,7 @@
import i... | 2 | 2 | 0 | [{"id": "G0", "claim": "For consistency with the other builders, remove the `import ImmutableExtensionDdl.Builder;` at the top of ProtoRelConverter.java and refer to the builder type explicitly as `final ImmutableExtensionDdl.Builder builder` in newExtensionDdl.", "category": "maintainability", "verdict": "supported", ... | null |
substrait-io__substrait-java__575 | substrait-io/substrait-java | 575 | defect | 4447e2f3e00ad0658f44a2aa54807892bdeb3cde | dc717a47be855674695c2810e3dd7edc7c350cbc | feat(isthmus): support fully qualified table names in SubstraitCreateStatementParser | Currently, the `SubstraitCreateStatementParser` can only parse `CREATE TABLE` statement with simple table names without any additional qualifiers. This PR changes the code to support parsing statements with fully qualified table names.
In order to support this I refactored `SchemaCollector` and extracted some functi... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/SchemaCollector.java b/isthmus/src/main/java/io/substrait/isthmus/SchemaCollector.java
index ec05ce1c1..1c81dd26f 100644
--- a/isthmus/src/main/java/io/substrait/isthmus/SchemaCollector.java
+++ b/isthmus/src/main/java/io/substrait/isthmus/SchemaCollector.java
@@ ... | 7 | 7 | 0 | [{"id": "G0", "claim": "The test method names all starting with `testProcessCreateStatementsToCatalogWith` are very long and hard to read given the enclosing class name already scopes them, and could be simplified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":... | null |
substrait-io__substrait-java__582 | substrait-io/substrait-java | 582 | defect | ab5943e53f73ed73f816f2c3f59502378b3bf15c | 8bc569dc90a90dedf0fb0be32a1c56d67b507a32 | feat(isthmus): mapping of bitwise functions from substrait | - Added lines 75-78 in `FunctionMappings.java`
- Added tests in `ArithmeticFunctionTest.java` to test with one int for `bitwise_not` and two ints for `bitwise_xor`, `bitwise_and` and `bitwise_or` | diff --git a/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java b/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java
index 7ba25874d..3a90bf166 100644
--- a/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java
+++ b/isthmus/src/main/java/io/substr... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use JUnit's CsvSource to pass the column and mask as separate test parameters instead of a ValueSource of single strings the test parses itself.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
substrait-io__substrait-java__597 | substrait-io/substrait-java | 597 | defect | cce51cdd5b2f2a8ee15e420a5a40c6b260e454a0 | b792247416f9a864a99ba3842c1219c3a083d7c4 | feat(isthmus): true, false, distinct comparator scalar fn mappings | - Added `is_true`, `is_false`, `is_not_true`, `is_not_false` and `is_distinct_from` functions in `FunctionMappings.java`
- Added tests into new file: `ComparisonFunctionsTest.java`
| diff --git a/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java b/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java
index 5acf1fe43..750ee9b86 100644
--- a/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java
+++ b/isthmus/src/main/java/io/substr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The is_distinct_from test added by this pull request does not actually test the IS DISTINCT FROM mapping, because Calcite rewrites such a query into AND/OR/IS NOT TRUE(=(...)) form, and the same happens for IS NOT DISTINCT FROM.", "category": "testing", "verdict": "supported", "priority": "P1", ... | null |
substrait-io__substrait-java__601 | substrait-io/substrait-java | 601 | defect | 848bfcf83f4235574a686a4d48407a8f8ba5d99e | 4844da58576307c3f205aa4d6d6ff89ca2f3c222 | feat: enforce row type consistency with schema in virtual tables | - ensure that virtual table builders enforce consistency of types across schema and rows (#600)
- allow nullability to be explicitly set in conversion from spark literal to substrait literal
| diff --git a/core/src/main/java/io/substrait/relation/VirtualTableScan.java b/core/src/main/java/io/substrait/relation/VirtualTableScan.java
index 0b9f61e28..9a54f6794 100644
--- a/core/src/main/java/io/substrait/relation/VirtualTableScan.java
+++ b/core/src/main/java/io/substrait/relation/VirtualTableScan.java
@@ -20,... | 2 | 1 | 0 | [{"id": "G0", "claim": "The nested if blocks in the Some(n) branch of apply would be clearer if pulled up into separate case conditions with guards.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wrong-field-count case exercised by the new c... | null |
substrait-io__substrait-java__602 | substrait-io/substrait-java | 602 | defect | 442f1f2b171d8eb691f3dcc01c2d6fe03c6add8a | 8c33967da09609de0a032eab8fec810ea55e6a90 | feat: add ExchangeRel support to core | Implement ExchangeRel in core. the spec https://github.com/substrait-io/substrait/blob/main/proto/substrait/algebra.proto#L470 | diff --git a/core/src/main/java/io/substrait/relation/AbstractRelVisitor.java b/core/src/main/java/io/substrait/relation/AbstractRelVisitor.java
index 99f4e0577..02418ce1d 100644
--- a/core/src/main/java/io/substrait/relation/AbstractRelVisitor.java
+++ b/core/src/main/java/io/substrait/relation/AbstractRelVisitor.java... | 6 | 5 | 1 | [{"id": "G0", "claim": "The new isthmus visit methods for the exchange relations could map to Calcite's LogicalExchange instead of falling back, perhaps in a follow-up PR.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In newScatterExchange, newSingleBuc... | null |
substrait-io__substrait-java__610 | substrait-io/substrait-java | 610 | defect | 22448d1bd36c5face8675e31b85d5378d40901a0 | 8114bcfff2aa0f4257a9f27b1f6d3953376f378f | feat(isthmus): mapping of positional scalar fns | -Added mappings for `STARTS_WITH`, `ENDS_WITH`, `CONTAINS` and `POSITION` to `FunctionMappings.java`
-Added extra libraries to enable the included operators in `SubstraitOperatorTable.java`
-Added passing tests to `StringFunctionTest.java` including `STARTSWITH`, `ENDSWITH`, `STRPOS` and literals | diff --git a/isthmus/src/main/java/io/substrait/isthmus/OperatorAlias.java b/isthmus/src/main/java/io/substrait/isthmus/OperatorAlias.java
new file mode 100644
index 000000000..7a50600a2
--- /dev/null
+++ b/isthmus/src/main/java/io/substrait/isthmus/OperatorAlias.java
@@ -0,0 +1,24 @@
+package io.substrait.isthmus;
+
+... | 3 | 1 | 0 | [{"id": "G0", "claim": "The implementation changes beyond the new function mappings - the OperatorAlias class, its canonical() wrapping of the s() and resolver() helpers, and the explicit reverse-mapping resolver entries - are unnecessary and should be removed so the PR goes back to the minimal change of mappings plus ... | null |
substrait-io__substrait-java__613 | substrait-io/substrait-java | 613 | defect | 22448d1bd36c5face8675e31b85d5378d40901a0 | cef97986ae282295a43479d718f0195d9e54e07b | feat(core): handle struct-based UDT literals | Support both opaque (google.protobuf.Any) and
structured (Literal.Struct) encodings for user-defined type literals per [Substrait spec](https://substrait.io/types/type_classes/#communicating-user-defined-types).
- Split UserDefinedLiteral into UserDefinedAny and UserDefinedStruct
- Move type parameters to interfac... | diff --git a/core/src/main/java/io/substrait/expression/AbstractExpressionVisitor.java b/core/src/main/java/io/substrait/expression/AbstractExpressionVisitor.java
index 072507295..d190542f8 100644
--- a/core/src/main/java/io/substrait/expression/AbstractExpressionVisitor.java
+++ b/core/src/main/java/io/substrait/expre... | 15 | 8 | 2 | [{"id": "G0", "claim": "The PR does not attempt to validate that a provided struct representation matches the definition in the yaml file; the author considers that worth doing but defers it to follow-up issue #614.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": ... | null |
substrait-io__substrait-java__624 | substrait-io/substrait-java | 624 | defect | 2e3ca32efc5e770d2ae4d584179353f07e75e0ef | 033f093440baa019e00b3bc93e45981bbd59cda7 | feat: handle parameterConsistency option in YAML extensions | This pull request introduces improved handling and validation of variadic parameter consistency for function signatures, particularly distinguishing between consistent and inconsistent parameter types in variadic arguments. The changes ensure that function argument matching logic respects the `parameterConsistency` set... | diff --git a/core/src/main/java/io/substrait/extension/SimpleExtension.java b/core/src/main/java/io/substrait/extension/SimpleExtension.java
index 39d7c45e0..ab9058e77 100644
--- a/core/src/main/java/io/substrait/extension/SimpleExtension.java
+++ b/core/src/main/java/io/substrait/extension/SimpleExtension.java
@@ -235... | 3 | 3 | 2 | [{"id": "G0", "claim": "The variadic tests should be gathered in a dedicated VariadicBehaviourTest class: rename the isthmus VariadicParameterConsistencyTest for generality, and move testParameterConsistencyLoading out of TypeExtensionTest, which is specific to custom type handling.", "category": "maintainability", "ve... | null |
substrait-io__substrait-java__625 | substrait-io/substrait-java | 625 | defect | 5d5134974a9b09ca5c6bb029b6501483b8bc353e | efe1ff2d0d86a6a54beef7cd3230a4ba6f949b73 | Isthmus To/From SQL examples & enhanced APIs | Starting from two examples of using Isthmus to go from and to SQL a few new methods make the process a lot simpler and symetrical.
We found that in use we needed helper wrapper clases, but these could be pushed into the main code.
**Note to reviewers**
I'll leave as draft until I'm sure the build is good and t... | diff --git a/examples/isthmus-api/.gitignore b/examples/isthmus-api/.gitignore
new file mode 100644
index 000000000..6ead40eb5
--- /dev/null
+++ b/examples/isthmus-api/.gitignore
@@ -0,0 +1,4 @@
+_apps
+_data
+**/*/bin
+build
diff --git a/examples/isthmus-api/README.md b/examples/isthmus-api/README.md
new file mode 100... | 19 | 18 | 2 | [{"id": "G0", "claim": "The examples print the plan's default toString() as one super long unreadable line in the README, and the reviewers ask for a more readable representation, proposing printing the protobuf text (or JSON) format instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "sco... | null |
substrait-io__substrait-java__627 | substrait-io/substrait-java | 627 | defect | 0ec1289b4431f52efd4e5219ff6530b6f2e0eebf | 9e99091a041cd3a677014d2df8155e454e6e8a03 | feat: support Nested Lists | This PR is to add support for the Expression Nested List type.
[Issue](https://github.com/substrait-io/substrait-java/issues/375)
Key Changes:
- Substrait pojo to proto and back conversion
- Substrait pojo to calcite and back conversion
- Added new type in Isthmus to support Nested functions list during the... | diff --git a/core/src/main/java/io/substrait/expression/AbstractExpressionVisitor.java b/core/src/main/java/io/substrait/expression/AbstractExpressionVisitor.java
index 072507295..bdff1b934 100644
--- a/core/src/main/java/io/substrait/expression/AbstractExpressionVisitor.java
+++ b/core/src/main/java/io/substrait/expre... | 12 | 11 | 5 | [{"id": "G0", "claim": "NestedList's getType() reads values().get(0) without checking that all values share the same type, so a check enforcing homogeneous element types should be added.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The private nes... | null |
substrait-io__substrait-java__643 | substrait-io/substrait-java | 643 | defect | acaecb5c0ef8f18646bc9a6975599dc826bf74ee | b9633735ae9ac13f6d90d9f6f7c87012f1d1203e | feat(isthmus): support month()-style datetime operators | The Substrait Function for Month style mappings doesn't work as the calcite only has 2 arguments, but substrait has three.
Isthmus (in either direction) assumes that there is a 1:1 mapping between a substrait function and a calcite function. With the same number of arguments in each. (although types can be coerced i... | diff --git a/core/src/main/java/io/substrait/expression/EnumArg.java b/core/src/main/java/io/substrait/expression/EnumArg.java
index 956c9a653..5b8d0f916 100644
--- a/core/src/main/java/io/substrait/expression/EnumArg.java
+++ b/core/src/main/java/io/substrait/expression/EnumArg.java
@@ -4,6 +4,8 @@
import io.substrai... | 9 | 8 | 1 | [{"id": "G0", "claim": "Returning null from EnumArg.of when the option is not accepted is a breaking change to the class API that risks breaking callers with unexpected delayed failures; better to leave the code as-is or actively throw an exception (e.g. IllegalArgumentException) where the problem occurs.", "category":... | null |
substrait-io__substrait-java__649 | substrait-io/substrait-java | 649 | defect | acaecb5c0ef8f18646bc9a6975599dc826bf74ee | d26173fdf69d2485f6faa1faa939f2cc1b4297d4 | feat: introduce ConverterProvider to control conversion behaviour | Introduces the ConverterProvider class as a single source of configuration for
all conversion related classes between SQL, Calcite and Substrait. All
conversion classes now have constructors consuming a ConverterProvider.
The no-arg ConverterProvider constructor provides reasonable defaults for
conversions. Other... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/ConverterProvider.java b/isthmus/src/main/java/io/substrait/isthmus/ConverterProvider.java
new file mode 100644
index 000000000..6aad6244a
--- /dev/null
+++ b/isthmus/src/main/java/io/substrait/isthmus/ConverterProvider.java
@@ -0,0 +1,77 @@
+package io.substrait.... | 8 | 7 | 1 | [{"id": "G0", "claim": "The new SqlToSubstrait(ExtensionCollection) constructor is deprecated as soon as it is defined, so it should not exist at all and callers should be moved straight to the ConverterProvider constructor.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
substrait-io__substrait-java__676 | substrait-io/substrait-java | 676 | defect | 931bdd602ae81d4100b6b572ea7ab81afdbebfc3 | 55dd3b9e57cd34fc8ade6315f76460e654b05711 | fix(isthmus): correct strpos parameter order | Both SQL STRPOS and POSITION functions are modelled by Calcite as Position. Parameters are substring followed by the input to be searched. This maps to the Substrait strpos function, which has the parameters of input to be searched followed by substring. The default mapping retains the argument order, which results in ... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/expression/PositionFunctionMapper.java b/isthmus/src/main/java/io/substrait/isthmus/expression/PositionFunctionMapper.java
new file mode 100644
index 000000000..0eb2d254b
--- /dev/null
+++ b/isthmus/src/main/java/io/substrait/isthmus/expression/PositionFunctionMap... | 2 | 2 | 0 | [{"id": "G0", "claim": "A comment should be added at the parameter swap in PositionFunctionMapper because the code uses naked index numbers (0 and 1) to reference parameters with no local explanation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
substrait-io__substrait-java__684 | substrait-io/substrait-java | 684 | defect | be6f4ae3bb1f73133c38c06b8df48ff58e9c2cab | 20423dee2aaf7a5995817c135448133437b56b3d | fix(isthmus): preserve nullability in VirtualTableScan Calcite roundtrip | Uses schema field nullability when converting Calcite `LogicalValues` literals back to Substrait, instead of deriving nullability from the `RexLiteral` type.
Calcite's `LogicalValues` may have literals with non-nullable types even when the schema field is nullable (Calcite infers the tightest possible type for liter... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/SubstraitRelVisitor.java b/isthmus/src/main/java/io/substrait/isthmus/SubstraitRelVisitor.java
index 87dde05c4..2b06f0257 100644
--- a/isthmus/src/main/java/io/substrait/isthmus/SubstraitRelVisitor.java
+++ b/isthmus/src/main/java/io/substrait/isthmus/SubstraitRel... | 5 | 2 | 0 | [{"id": "G0", "claim": "If nullability of literals is always lost in Calcite Values, `type.nullable()` will always be false and the new convert overload will always just use the default nullability.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use `... | null |
substrait-io__substrait-java__695 | substrait-io/substrait-java | 695 | defect | 0a9bfdb712e6201ea6bb17729358db786f5454dc | 159d016adbeeae6cb3ef4b160e7e119a48f86c44 | feat(isthmus): add strptime_* function mappings | This adds Calcite mappings for the following 3 Substrait functions:
- `strptime_time` -> `PARSE_TIME`
- `strptime_timestamp` -> `PARSE_TIMESTAMP`
- `strptime_date` -> `PARSE_DATE`
I added the `ScalarFunctionConverter` into the `RexExpressionConverter` instance in `FunctionConversionTest` in order to round-trip ... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java b/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java
index 0c8805c0f..90f04a326 100644
--- a/isthmus/src/main/java/io/substrait/isthmus/expression/FunctionMappings.java
+++ b/isthmus/src/main/java/io/substr... | 4 | 3 | 0 | [{"id": "G0", "claim": "In testStrptimeTime, the cast to RexCall is unnecessary to allow toString to be called; call calciteExpr.toString() directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In testStrptimeDate, the cast to RexCall is unne... | null |
substrait-io__substrait-java__701 | substrait-io/substrait-java | 701 | defect | ac4256f7c351d3a2431b0f3895973b0d9ab6734c | e68496d8ec6ffba874f5736d0ab2011c852e2bef | refactor(isthmus): strptime function mapping | Avoid code duplication. Also test operator name and operands explicitly instead of relying on Calcite's toString implementation, which might change over time. | diff --git a/isthmus/src/main/java/io/substrait/isthmus/expression/AbstractStrptimeFunctionMapper.java b/isthmus/src/main/java/io/substrait/isthmus/expression/AbstractStrptimeFunctionMapper.java
new file mode 100644
index 000000000..eefd8aab2
--- /dev/null
+++ b/isthmus/src/main/java/io/substrait/isthmus/expression/Abs... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR description calls for asserting the operator name and operands explicitly instead of relying on Calcite's toString(), but past practice preferred relying on Calcite's toString()/explain() for test readability, and the reviewer asks for clarity on which approach to use.", "category": "test... | null |
substrait-io__substrait-java__721 | substrait-io/substrait-java | 721 | defect | 12be149f2e954131a338b08741dcd559a7d25535 | a4d3319b3db9492590aeecb40201b994eec16a69 | feat(isthmus): migrate to PrecisionTime / PrecisionTimestamp | This PR migrates isthmus to use PrecisionTime / PrecisionTimestamp instead of the deprecated Time / Timestamp types. | diff --git a/core/src/main/java/io/substrait/expression/ExpressionCreator.java b/core/src/main/java/io/substrait/expression/ExpressionCreator.java
index 8f276d142..9203796af 100644
--- a/core/src/main/java/io/substrait/expression/ExpressionCreator.java
+++ b/core/src/main/java/io/substrait/expression/ExpressionCreator.... | 7 | 2 | 0 | [{"id": "G0", "claim": "The new precision checks should throw IllegalArgumentException (or a dedicated Isthmus exception such as IllegalPrecisionException) rather than UnsupportedOperationException, and the same applies to other instances of this precision-check pattern.", "category": "design", "verdict": "supported", ... | null |
substrait-io__substrait-java__723 | substrait-io/substrait-java | 723 | defect | d765711194770ad6f4caf46a5180c585510ca0ee | c288cc1e1e9cd6def2f72d496334299b7d85ea7e | feat: add missing extension YAMLs and test for completeness | Closes #722
Adds a test that dynamically discovers all extension YAMLs under `substrait/extensions/` on the classpath (via ClassGraph) and verifies they are loaded by `DefaultExtensionCatalog`. Files not yet loadable are listed in `UNSUPPORTED_FILES` with comments explaining why. The test also asserts these are NOT lo... | diff --git a/core/build.gradle.kts b/core/build.gradle.kts
index df0f3f364..54dae67f8 100644
--- a/core/build.gradle.kts
+++ b/core/build.gradle.kts
@@ -87,6 +87,7 @@ dependencies {
testImplementation(platform(libs.junit.bom))
testImplementation(libs.protobuf.java.util)
testImplementation(libs.guava)
+ testIm... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new test should check the extension YAML files on the classpath instead of relying on the current working directory (../substrait/extensions), especially given plans to remove the submodule and package the extension YAMLs into a separate JAR.", "category": "design", "verdict": "supported", "... | null |
substrait-io__substrait-java__744 | substrait-io/substrait-java | 744 | defect | b865296f8088bb7abbbbce3730fa346445d5d6e5 | 9659aa1ad0a30b64b21dd75888d546f7b30824fb | fix(core): use new aggregate grouping behavior in RelProtoConverter | changes RelProtoConverter to output the new and the old aggregate grouping proto structures
relates to https://github.com/substrait-io/substrait-java/issues/299 and https://github.com/substrait-io/substrait/pull/1002
This PR changes the `RelProtoConverter` to output the new and the old grouping behavior keeping t... | diff --git a/core/src/main/java/io/substrait/relation/RelProtoConverter.java b/core/src/main/java/io/substrait/relation/RelProtoConverter.java
index 02122b031..429d26661 100644
--- a/core/src/main/java/io/substrait/relation/RelProtoConverter.java
+++ b/core/src/main/java/io/substrait/relation/RelProtoConverter.java
@@ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The assert on the second grouping's expression references uses expected value 1 but its message says it should be 2.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new round-trip tests would read better if they introduced... | null |
substrait-io__substrait-java__747 | substrait-io/substrait-java | 747 | defect | 8bc2a30d32488d14201cc112b454c01a8ab8b3e3 | c7f1047b2fd7a98cd624f99c7f2a48a1ce10d368 | fix(examples): update sql example | - use new api for create catalog reader
- remove the helper class
- Derby is no longer supported | diff --git a/examples/isthmus-api/src/main/java/io/substrait/examples/FromSql.java b/examples/isthmus-api/src/main/java/io/substrait/examples/FromSql.java
index ce045ddaa..44375b2e8 100644
--- a/examples/isthmus-api/src/main/java/io/substrait/examples/FromSql.java
+++ b/examples/isthmus-api/src/main/java/io/substrait/e... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new isthmus-api example is missing from the list of examples in the repo root readme, and the author should add it there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The indentation of the new text blocks in FromSql.... | null |
substrait-io__substrait-java__783 | substrait-io/substrait-java | 783 | defect | 999cdcb9475e2747e8c3efe69be904be313f66cf | 3da2998d101a38694f608fe6897596fc07184962 | fix(isthmus): assertFullRoundTrip for any_value | fixes #781
The existing AutomaticDynamicFunctionMappingConverterProvider could not handle Substrait functions with parameterized return types (e.g., any1?). Functions like any_value, lag, and first_value failed because the return type inference couldn't resolve parameterized types to concrete Calcite types.
This... | diff --git a/isthmus/src/main/java/io/substrait/isthmus/SimpleExtensionToSqlOperator.java b/isthmus/src/main/java/io/substrait/isthmus/SimpleExtensionToSqlOperator.java
index ad04f5e23..2a4d45232 100644
--- a/isthmus/src/main/java/io/substrait/isthmus/SimpleExtensionToSqlOperator.java
+++ b/isthmus/src/main/java/io/sub... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should use Calcite's SqlBasicAggFunction instead of a custom subclass of SqlAggFunction to represent aggregate functions, with no behavioural changes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
subsurface__subsurface__1538 | subsurface/subsurface | 1,538 | defect | 19871a6ab2c7a3022e0f7981154d4d6cd59715a9 | 4a37c16de953fd1fe89fcb714523dfca8f996d5a | Whitespace | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the ... | diff --git a/core/divecomputer.cpp b/core/divecomputer.cpp
index 5a6353f1f1..978074e620 100644
--- a/core/divecomputer.cpp
+++ b/core/divecomputer.cpp
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
#include "divecomputer.h"
#include "dive.h"
-#include "subsurface-string.h"
#include "subsurface-qt/SettingsObjec... | 2 | 1 | 0 | [{"id": "G0", "claim": "The whitespace cleanup would be even better if it was added as a git hook, so the formatting is done automatically.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use spaces inside the braces, e.g. `DiveComputerNode{ m, d, {}, {}, {... | null |
subsurface__subsurface__2846 | subsurface/subsurface | 2,846 | defect | d30b773365706daa56694bb0538f9f34d1432bae | c8bcce30a99ff1e106a99745319a9c68eb7488d4 | Csv sac | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the ... | diff --git a/tests/testparse.cpp b/tests/testparse.cpp
index f4d3356650..36ece77f2d 100644
--- a/tests/testparse.cpp
+++ b/tests/testparse.cpp
@@ -306,7 +306,7 @@ void TestParse::testParseMerge()
int TestParse::parseCSVmanual(int units, std::string file)
{
verbose = 1;
- char *params[57];
+ char *params[59];
int ... | 1 | 1 | 0 | [{"id": "G0", "claim": "process_loaded_dives() could calculate the SAC instead of the test hard-coding a value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
subsurface__subsurface__3230 | subsurface/subsurface | 3,230 | defect | 11c54b85f6f6c567e5a9f6e6e537eace49ee6666 | 18f24fc21f4497ec5e891e05f52bec7a3e40122d | Cloud storage updates | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the ... | diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp
index 98b87aef3d2..714b6283656 100644
--- a/core/checkcloudconnection.cpp
+++ b/core/checkcloudconnection.cpp
@@ -4,11 +4,14 @@
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QEventLoop>
+#include <QHostAddress>
#inclu... | 2 | 2 | 0 | [{"id": "G0", "claim": "The commit message of aa53543 contains a typo (\"to\" should be \"too\") that should be fixed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop bound CLOUD_NUM_HOSTS can get out of sync with the cloudServers[] array ... | null |
subsurface__subsurface__3238 | subsurface/subsurface | 3,238 | defect | c34f0b88a255401a5603413e59656cf4fe4967ca | ea3422d1f8e48c203fbc80a85178047164814b18 | Planner: Don't force ascent | The planner should not always ascent from the depth of
the last manually entered waypoint but consider the
possibility that it should first top where we are
before the next stop depth has cleared.
Reported-by: David Carron
Signed-off-by: Robert C. Helling <helling@atdotde.de>
<!-- Lines like this one are co... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4123036657f..48cbda65e3c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
printing: use sensible font size even for strange window size
+* Planner: Don't immediately ascent automatically
---
* Always add new entries at the very top of this file above other... | 2 | 2 | 1 | [{"id": "G0", "claim": "Change the condition to array indexing, `decostoplevels[stopidx] > depth`, because the pointer-arithmetic form `*(decostoplevels + stopidx) > depth` is super-cryptic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The com... | null |
subsurface__subsurface__3324 | subsurface/subsurface | 3,324 | defect | 4e93d384823adbdd40633b0d8bcaa0c862fc108e | f61e44b04416844977463dab0fcdc050da429a32 | Remove gps | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the ... | diff --git a/Subsurface-mobile.pro b/Subsurface-mobile.pro
index 2e1b6a95944..de8489a9cd3 100644
--- a/Subsurface-mobile.pro
+++ b/Subsurface-mobile.pro
@@ -23,7 +23,6 @@ SOURCES += subsurface-mobile-main.cpp \
core/cloudstorage.cpp \
core/configuredivecomputerthreads.cpp \
core/devicedetails.cpp \
- core/gpsloca... | 1 | 1 | 1 | [{"id": "G0", "claim": "Removing the apply-gps-fix machinery may be removing too much, since importing GPS info from another app would still need it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
subsurface__subsurface__3443 | subsurface/subsurface | 3,443 | defect | acc4dc57af622c90b1c5ccb93251626742f31df1 | 0a5373814b55c978a1e9194d09b2dde034cd43b3 | Collect and convert git repo data to 'struct git_info' | We have this nasty habit of randomly passing down all the different
things that we use to look up the local and remote git repository, and
the information associated with it.
Start collecting the data into a 'struct git_info' instead, so that it
is easier to manage, and easier and more logical to just look up
di... | diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp
index 7b86eaaa76..080f4bc8e7 100644
--- a/core/checkcloudconnection.cpp
+++ b/core/checkcloudconnection.cpp
@@ -198,20 +198,20 @@ void CheckCloudConnection::gotContinent(QNetworkReply *reply)
}
// helper to be used from C code
-extern "C" bo... | 10 | 1 | 0 | [{"id": "G0", "claim": "Saving should be reworked so it opens the local repository directly instead of syncing with the cloud via open_git_repository(), and the create-by-cloning case needs design thought before that change.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id"... | null |
subsurface__subsurface__3974 | subsurface/subsurface | 3,974 | defect | c7b7c3f69168c1056c74bd2b240223874ab68294 | c1aa641da6163d285352d3f47fd6fe1e48d943a7 | Get dive gas fixes | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the ... | diff --git a/core/divelist.c b/core/divelist.c
index 0278a20aec..be7f2831a2 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -41,8 +41,14 @@ void get_dive_gas(const struct dive *dive, int *o2_p, int *he_p, int *o2max_p)
if (!is_cylinder_used(dive, i))
continue;
+ if (cyl->cylinder_use == OXYGEN)
+ cont... | 3 | 1 | 1 | [{"id": "G0", "claim": "The handling of mino2 looks incorrect - to mikeller's understanding it should probably only be adjusted for gases that contain helium, and a CCR dive with TMx 22/20 DIL and air as bailout should make formatDiveGasString return \"22/20\", which the current code does not.", "category": "correctnes... | null |
subsurface__subsurface__4313 | subsurface/subsurface | 4,313 | defect | f5857262835be44c80f0a8500f3764f09dc22d94 | ef94f2e33899ee58e3fcd7252056050d5bb3feab | C++-ification of diveplan | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the ... | diff --git a/core/planner.cpp b/core/planner.cpp
index a457221f928..7670248141f 100644
--- a/core/planner.cpp
+++ b/core/planner.cpp
@@ -66,18 +66,19 @@ void dump_plan(struct diveplan *diveplan)
}
#endif
-bool diveplan_empty(struct diveplan *diveplan)
+diveplan::diveplan()
{
- struct divedatapoint *dp;
- if (!dive... | 2 | 2 | 1 | [{"id": "G0", "claim": "cloneDiveplan should be refactored to not return the unintuitive divedatapoint*, leaving fetching of the last segment to the caller, and its call sites could probably do with refactoring that possibly avoids most of the cloning calls.", "category": "design", "verdict": "supported", "priority": "... | null |
subsurface__subsurface__4361 | subsurface/subsurface | 4,361 | defect | 0e7d3a6466be86f281b49564137f3a7001f7a093 | 1d2a430b807191e6b43fb3b44efb5b8afe747ccd | Slight refactor of DAN parse code | ### Describe the pull request:
<!-- Replace [ ] with [x] to select options. -->
- [x] Bug fix
- [ ] Functional change
- [ ] New feature
- [x] Code cleanup
- [ ] Build system change
- [ ] Documentation change
- [ ] Language translation
### Pull request long description:
Mostly NFC; this commit is mainly to g... | diff --git a/core/import-csv.cpp b/core/import-csv.cpp
index 281653d6d3..dcb43baad3 100644
--- a/core/import-csv.cpp
+++ b/core/import-csv.cpp
@@ -1,21 +1,21 @@
-#include <unistd.h>
-#include <stdlib.h>
#include <errno.h>
#include <libdivecomputer/parser.h>
+#include <map>
+#include <stdlib.h>
+#include <unistd.h>
... | 3 | 1 | 1 | [{"id": "G0", "claim": "The lines this PR adds to xml_params_add and xml_params_add_int put no space inside curly brackets ({key, value}), unlike the space-inside-braces style prevalent in the codebase.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai... | null |
subsurface__subsurface__4370 | subsurface/subsurface | 4,370 | defect | beb352d47c1d40fb3c2a2805c4c05592ee99eab3 | f0765f9e39b5c819f942575fbd3bfef0a881ccdb | Round MOD to lower depths | When computing the suggested switch depth for a gas, we should take the next stop depth above the MOD, i.e. round down. Otherwise we can produce MOD violation warnings.
We need, however, a bit of fudge as otherwise we do not suggest to switch to o2 at 6m.
Fixes #4365
<!-- Lines like this one are comments and w... | diff --git a/core/dive.cpp b/core/dive.cpp
index 32093a5f580..32efe22f237 100644
--- a/core/dive.cpp
+++ b/core/dive.cpp
@@ -2457,7 +2457,9 @@ int dive::mbar_to_depth(int mbar) const
depth_t dive::gas_mod(struct gasmix mix, pressure_t po2_limit, int roundto) const
{
double depth = (double) mbar_to_depth(po2_limit.m... | 1 | 1 | 1 | [{"id": "G0", "claim": "The planner tests need a change to their test data now that MOD rounding was altered.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
subsurface__subsurface__4736 | subsurface/subsurface | 4,736 | defect | dfd5e20d3d2b7105e89ded44222dc6f1631d2a39 | 2222953dda2d633ceac616da078359dbdc664f25 | Tests: Add Tests for Printing. | <!-- Lines like this one are comments and will not be shown in the final output. -->
<!-- Make sure that you have read the "Contributing" section of the README and also the notes in CodingStyle. -->
<!-- If you are a collaborator, please add labels and assign other collaborators for a review. -->
### Describe the pull... | diff --git a/printing_templates/tests/custom_template_1.html b/printing_templates/tests/custom_template_1.html
new file mode 100644
index 00000000000..e621b6f0ea0
--- /dev/null
+++ b/printing_templates/tests/custom_template_1.html
@@ -0,0 +1,192 @@
+<html>
+<head>
+ <style>
+ body {
+ {{ print_options.grayscale }};
... | 8 | 7 | 3 | [{"id": "G0", "claim": "templatePath includes the absolute SUBSURFACE_SOURCE prefix, so templatePath.startsWith(\"/printing_templates/\") is never true and bundled templates always take the custom branch; it should detect bundled templates with contains() or an absolute-path comparison.", "category": "correctness", "ve... | null |
succinctlabs__sp1__1089 | succinctlabs/sp1 | 1,089 | defect | 551eaeb8563ab8fabf2f1f9ab38965720b7c8aaa | 55151d974ddb6eb25065ec36e00f352e924a41a6 | feat: result instead of exit(1) on trap in recursion | bubble up `SP1RecursionProverError` instead of exit(1) | diff --git a/prover/src/lib.rs b/prover/src/lib.rs
index c2a28ab4e0..cc7a47ec39 100644
--- a/prover/src/lib.rs
+++ b/prover/src/lib.rs
@@ -443,15 +443,10 @@ impl<C: SP1ProverComponents> SP1Prover<C> {
let proofs = inputs
.into_par_iter()
.map(|input| {
- ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new .into_par_iter() in prover/src/lib.rs looks free, so unless there was a reason not to iterate concurrently it should stay (otherwise the author will remove it).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The runtime.ru... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.