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
vectordotdev__vector__24822
vectordotdev/vector
24,822
defect
c788f9359dfca3b2363ca99a565a3334455541da
daa3e58ac8c835133fe0a51a6bf09733a756c593
feat(opentelemetry source): Support per-signal OTLP decoding config
## Summary <!-- Please provide a brief summary about what this PR does. This should help the reviewers give feedback faster and with higher quality. --> Allow independent configuration of OTLP decoding for logs, metrics, and traces. Maintains backward compatibility with boolean configuration. 🤖 Generated with ...
diff --git a/Cargo.lock b/Cargo.lock index 30537aabbffb5..8558be7f4643b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3950,12 +3950,12 @@ dependencies = [ [[package]] name = "evmap" -version = "11.0.0" +version = "10.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b8874945f036109...
4
3
1
[{"id": "G0", "claim": "With per-signal decoding enabled for traces, a trace output becomes Log-typed (SourceOutput::new_maybe_logs), which was not the case before even with use_otlp_decoding: true.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
vectordotdev__vector__24956
vectordotdev/vector
24,956
defect
fbb1e4b501d6081d72f864da891a98464e60d097
76fb1c59bd9abf249e0d0cef61b4b8c90abb3840
chore(datadog_metrics sink): switch series v2 and sketches to zstd compression
## Summary **Rationale:** Switch Series v2 (`/api/v2/series`) and sketches(`/api/beta/sketches`) to zstd compression. - Add `DatadogMetricsCompression` enum (Zlib/Zstd) in `config.rs` with `compressor()`, `content_encoding()`, and `max_compressed_size()` methods - Add `compression()` method on `DatadogMetricsEnd...
diff --git a/changelog.d/24956_datadog_metrics_zstd_series_v2.enhancement.md b/changelog.d/24956_datadog_metrics_zstd_series_v2.enhancement.md new file mode 100644 index 00000000000000..03f1f0507037a2 --- /dev/null +++ b/changelog.d/24956_datadog_metrics_zstd_series_v2.enhancement.md @@ -0,0 +1,3 @@ +The `datadog_metri...
6
5
3
[{"id": "G0", "claim": "For Series v2 (and, from S6, Sketches) content_encoding() emits \"zstd\", but Datadog's metrics v2 API documents \"zstd1\" as the allowed token, so if the intake enforces that enum the requests may be rejected with 4xx and metrics dropped.", "category": "correctness", "verdict": "opposed", "prio...
null
vectordotdev__vector__24971
vectordotdev/vector
24,971
defect
18898e0149f43924a07554303cce3d0a4595eb5b
8eaf3cc3b570ed8a1ad211767fc98d8d28397d00
chore(codecs): replace native encoding fixture patch files with cfg-gated code
## Summary Replaces the loose patch files (`vector_generate_fixtures.patch`, `vrl_generate_fixtures.patch`) used to regenerate native encoding test fixtures with proper `generate-fixtures` feature flags in both this repo and the VRL repo, plus a standalone binary that writes fixtures directly to their committed loca...
diff --git a/Cargo.lock b/Cargo.lock index 35f095a19e231..0fea7e8270bf5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13044,7 +13044,7 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "vrl" version = "0.31.0" -source = "git+https://github.com/vectordotdev/vrl.git?bra...
1
1
1
[{"id": "G0", "claim": "The pull request switches the shared workspace `vrl` dependency from branch `main` to the topic branch `generate-fixtures`, so every normal build (not just fixture generation) depends on an integration branch that could be force-pushed or removed; the dependency should stay on a stable upstream ...
null
vectordotdev__vector__25118
vectordotdev/vector
25,118
defect
1a78c93520ab25377b7162c9aa5756f29492f433
102f44b4d21a1702a064a5ec6085520f742c05c8
fix(ci): use helm-charts develop branch for K8s E2E tests
## Summary Instead of pulling the published chart from `helm.vector.dev`, clone the helm-charts repo (`develop` branch) and use the local chart path. This breaks the circular dependency between Vector and helm-charts releases and catches chart incompatibilities before release. - Add `helm_chart_repo()` helper with `H...
diff --git a/.github/workflows/k8s_e2e.yml b/.github/workflows/k8s_e2e.yml index afdcc01252e205..a4dd2c339f4227 100644 --- a/.github/workflows/k8s_e2e.yml +++ b/.github/workflows/k8s_e2e.yml @@ -197,6 +197,9 @@ jobs: MINIKUBE_VERSION: ${{ matrix.minikube_version }} CONTAINER_RUNTIME: ${{ matrix.co...
1
1
0
[{"id": "G0", "claim": "The workflow could use actions/checkout instead of a raw git clone to fetch helm-charts, though the reviewer is unsure there is any benefit (raised as a nit).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
vectordotdev__vector__25139
vectordotdev/vector
25,139
defect
0c5fd58228bfab0dd9f6e81a1dc651da2ea8e670
447a821c92192c50e79fd1263f24053ae641c50f
enhancement(api)!: replace custom Health RPC with standard gRPC health service
## Summary Replace the custom (unreleased) `ObservabilityService/Health` RPC on the observability API (port 8686) with the standard `grpc.health.v1.Health` service. This enables native Kubernetes gRPC health probes, `grpc-health-probe`, and other standard gRPC health-checking tooling to work out of the box. - Add...
diff --git a/Cargo.lock b/Cargo.lock index 76e4c912d09ee..e72cf110388a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12454,6 +12454,7 @@ dependencies = [ "tokio-stream", "tonic 0.11.0", "tonic-build 0.11.0", + "tonic-health", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 21c40c793a9bf..0934112180b2...
3
3
2
[{"id": "G0", "claim": "The shutdown path only flips the named ObservabilityService status to NOT_SERVING while Kubernetes gRPC readiness probes call Health/Check with the empty service name, so default probes keep seeing SERVING during drain; the overall (\"\") health status should be set to NotServing here as well.",...
null
vectordotdev__vector__25186
vectordotdev/vector
25,186
defect
c6574fd66c328ef57fba27d2ad5422666c3e18eb
25de9386cb523fb77baeeb33fb0dfadc8e577c31
feat(unit tests): add `expected_event_count` field to test outputs
## Summary - Adds an optional `expected_event_count` field to the `TestOutput` config struct, allowing users to assert on the number of events emitted by a transform in unit tests. - Useful for transforms that emit multiple events (e.g., `remap`), where previously there was no way to verify the event count. - Full...
diff --git a/changelog.d/20278_expected_event_count.feature.md b/changelog.d/20278_expected_event_count.feature.md new file mode 100644 index 00000000000000..2bd9bb49c41ccd --- /dev/null +++ b/changelog.d/20278_expected_event_count.feature.md @@ -0,0 +1 @@ +Unit tests now support an optional `expected_event_count` fiel...
2
2
2
[{"id": "G0", "claim": "When `expected_event_count` is set to `0` on an empty stream, the new count check passes but the code still falls through to the existing `output_events.is_empty()` failure path and reports `no events received`, so the field cannot assert zero emitted events.", "category": "correctness", "verdic...
null
vectordotdev__vector__25340
vectordotdev/vector
25,340
defect
9c617a7b766dc95ea919384ff16da2654595f6a4
0c45fa0e3ab64d91126ad40ec3ee2000311becb8
fix(clickhouse sink, aws_s3 sink): use dedicated batch_encoding types
## Summary The `clickhouse` and `aws_s3` sinks previously shared the `BatchSerializerConfig` schema for their `batch_encoding` field. That schema advertised every batch codec (`arrow_stream`, `parquet`, `proto_batch`) even though each sink only supports one — non-supported variants were rejected at config-build time...
diff --git a/changelog.d/clickhouse_aws_s3_dedicated_batch_encoding.fix.md b/changelog.d/clickhouse_aws_s3_dedicated_batch_encoding.fix.md new file mode 100644 index 0000000000000..a946519c41dcf --- /dev/null +++ b/changelog.d/clickhouse_aws_s3_dedicated_batch_encoding.fix.md @@ -0,0 +1,3 @@ +The `clickhouse` and `aws_...
1
1
0
[{"id": "G0", "claim": "Re-export the new S3BatchEncoding type from the aws_s3 module so downstream users who construct S3SinkConfig directly can still name S3BatchEncoding::Parquet to enable Parquet batch encoding programmatically.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
vectorgrp__sil-kit__101
vectorgrp/sil-kit
101
defect
d1008043dc901f6a8a0df3c67e414a6c747f4ac5
ac43714c470bcc324d501162523b9c82b9c091fa
tests: remove MakeTestRegistryUri
remove the `MakeTestRegistryUri` function from all tests. Use the dynamically allocated registry port instead.
diff --git a/SilKit/IntegrationTests/FTest_CanControllerThreadSafety.cpp b/SilKit/IntegrationTests/FTest_CanControllerThreadSafety.cpp index ccb9e3be3..ebe263689 100644 --- a/SilKit/IntegrationTests/FTest_CanControllerThreadSafety.cpp +++ b/SilKit/IntegrationTests/FTest_CanControllerThreadSafety.cpp @@ -89,7 +89,7 @@ c...
3
2
0
[{"id": "G0", "claim": "The new GetRegistryUri accessor should be declared and defined with the trailing return type `-> const std::string` as suggested (ultimately addressed by making it a const member function).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla...
null
vectorgrp__sil-kit__120
vectorgrp/sil-kit
120
defect
089d8dfe8d252ed1bd2b4e2bade986b81fa13a2d
e3bef555d94f3382b66f4e3db3c6e00117d422d5
api: serdes: allow union (de)serialization
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> This change allows to (de-)serialize unions using the public...
diff --git a/SilKit/include/silkit/util/serdes/Deserializer.hpp b/SilKit/include/silkit/util/serdes/Deserializer.hpp index 034f14f13..f51177ea8 100644 --- a/SilKit/include/silkit/util/serdes/Deserializer.hpp +++ b/SilKit/include/silkit/util/serdes/Deserializer.hpp @@ -37,6 +37,8 @@ inline namespace v1 { class Deseri...
1
1
1
[{"id": "G0", "claim": "Serializing an 'empty' union should be allowed per the COE-66476 spec — write the value 0 for the tag to the serialize buffer and nothing for the actual union value — instead of throwing when the discriminator is 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
vectorgrp__sil-kit__135
vectorgrp/sil-kit
135
defect
fd531e41e57fe36bc86e41d291051eeb37e5e158
853181d31fef6c8942c7bd368c7be63cda69eaa4
dev: Usage of InternalLogger and key values
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject Usage of the internal logger API and key values. ## Description Selected logmessages are switch to use the new internal Logger API. Values, which bevor where integrated in the message string, are now handl...
diff --git a/Demos/Can/CanDemo.cpp b/Demos/Can/CanDemo.cpp index 5cef427fd..db7bfe369 100644 --- a/Demos/Can/CanDemo.cpp +++ b/Demos/Can/CanDemo.cpp @@ -198,7 +198,7 @@ int main(int argc, char** argv) std::cout << "now=" << now << ", duration=" << duration << std::endl; SendFra...
18
17
3
[{"id": "G0", "claim": "Define all structured-logging keys as const std::string constants in a new StructuredLoggingKeys.hpp header, so the keys have a single overview and typos are prevented.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The L...
null
vectorgrp__sil-kit__138
vectorgrp/sil-kit
138
defect
473dec75d7d7351082db22c4b61bd523e77ec192
14f6b373f5d22f46b480ccab1622ae33282c8b82
maintenance: remove unused capture, member, and argument
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> Remove a few unused variables that caused warnings with some...
diff --git a/SilKit/IntegrationTests/ITest_MessageAggregation.cpp b/SilKit/IntegrationTests/ITest_MessageAggregation.cpp index a32575e76..4e032dc97 100644 --- a/SilKit/IntegrationTests/ITest_MessageAggregation.cpp +++ b/SilKit/IntegrationTests/ITest_MessageAggregation.cpp @@ -105,8 +105,8 @@ TEST_F(ITest_MessageAggrega...
1
1
0
[{"id": "G0", "claim": "The continuation line of the SetSimulationStepHandlerAsync lambda added in ITest_MessageAggregation.cpp is misaligned (broken formatting).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
vectorgrp__sil-kit__146
vectorgrp/sil-kit
146
defect
7e7ae71c8a4f1b78de741dd72cf6518322150bf2
da05d9bc91d32e1036b83319fad7b0439425eab2
SILKIT-1650: Forward specific SIL Kit exceptions
SIL Kit specific exceptions (e.g. `SilKit::ConfigurationError`) are not transported to the C++ side through the hourglass. There, only the exception `Silkit::SilkitError` is thrown (_ThrowOnError.hpp_) In this PR: - `SilKit_ReturnCodeXYZ` for all specific exceptions - The `CAPI_CATCH_EXCEPTIONS` macro catches the ...
diff --git a/SilKit/include/silkit/capi/Types.h b/SilKit/include/silkit/capi/Types.h index 19e129426..9ecc61bba 100644 --- a/SilKit/include/silkit/capi/Types.h +++ b/SilKit/include/silkit/capi/Types.h @@ -43,15 +43,32 @@ typedef struct SilKit_Experimental_SystemController SilKit_Experimental_SystemCo typedef int32_t...
3
3
0
[{"id": "G0", "claim": "The repeated per-exception test helper functions in Test_CapiExceptions.cpp could be merged into a single function template (TestExceptionToErrorCode<T>) instead of one hand-written function per exception type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "...
null
vectorgrp__sil-kit__151
vectorgrp/sil-kit
151
defect
d23f3a2827aaf3bc9b4ab5fd4214502ac56a86bd
158fcb8b005976d4ecfae7f826e0540f0ade48a1
SILKIT-1653: Use targetted messaging towards netsim
In a simulated network, Netsim handles the validation of all messages and sends them (possibly with a changed timestamp or direction) directed to the corresponding recipients (i.e., _targeted messaging_). Upon reception in a simulated network, controllers reject all messages that do not come from Netsim (see `SimBeh...
diff --git a/SilKit/source/services/can/SimBehaviorDetailed.cpp b/SilKit/source/services/can/SimBehaviorDetailed.cpp index 46258ca84..f1961e098 100644 --- a/SilKit/source/services/can/SimBehaviorDetailed.cpp +++ b/SilKit/source/services/can/SimBehaviorDetailed.cpp @@ -38,7 +38,7 @@ SimBehaviorDetailed::SimBehaviorDetai...
4
4
0
[{"id": "G0", "claim": "The MockParticipant SendMsg mocks in Test_CanControllerDetailedSim.cpp should use the modern MOCK_METHOD form with (override) instead of the legacy MOCK_METHOD3 form, so the compiler checks the right methods are mocked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
vectorgrp__sil-kit__168
vectorgrp/sil-kit
168
defect
8fd6b25975a1ae71e9104b65c23a49b3e0074ed3
f2846337c89de0c90c48081627adab869131c1c4
SILKIT-1660: SystemMonitor: query older participants from VAsio
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject The SystemMonitor does not know about participants which are "older" than the current participants since he misses the Announcement and AnnouncementReplies ## Description Get the list of all connected peers...
diff --git a/SilKit/IntegrationTests/ITest_SystemMonitor.cpp b/SilKit/IntegrationTests/ITest_SystemMonitor.cpp index 94d985396..5b2058c13 100644 --- a/SilKit/IntegrationTests/ITest_SystemMonitor.cpp +++ b/SilKit/IntegrationTests/ITest_SystemMonitor.cpp @@ -65,6 +65,30 @@ class ITest_SystemMonitor : public testing::Test...
2
1
1
[{"id": "G0", "claim": "The comments added in the new monitor_connected_participants test are outdated, at least the 'register the connect and disconnect callbacks' part and the other comments below it.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
vectorgrp__sil-kit__178
vectorgrp/sil-kit
178
defect
6e44af389445958cf7cdb7b2e1de88f84e177657
e64d0fc9f33fee4ae70cb44f55cd2b1f6979f827
SILKIT-1691: Prevent creation of multiple RPCServerInternal for same ClientUUID
In a specific label setup, an additional `RPCServerInternal` is incorrectly created. This means that with one client call you suddenly get two calls to the RPC server's handler. In the fix here, a map for `internalRpcServers` is used for the RPCServer and thus multiple creation of `RPCServerInternals` for the same ...
diff --git a/SilKit/IntegrationTests/CMakeLists.txt b/SilKit/IntegrationTests/CMakeLists.txt index d0170b6d3..dc57b9fe3 100644 --- a/SilKit/IntegrationTests/CMakeLists.txt +++ b/SilKit/IntegrationTests/CMakeLists.txt @@ -75,6 +75,10 @@ add_silkit_test_to_executable(SilKitInternalIntegrationTests SOURCES ITest_Inte...
2
2
0
[{"id": "G0", "claim": "The redundant `discoveryType == ServiceCreated` condition on the early-abort check should be dropped, since testing for ServiceCreated is already done earlier in the handler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
vectorgrp__sil-kit__196
vectorgrp/sil-kit
196
defect
f1f9226f47222fe11b5caabb15a5d5cd7d643994
761c6e47ea65b087e15fbb272076719943555f5d
hop-on: send current sim. task instead of next inside of sim. step
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> This change fixes an issue with hopping onto running time-sy...
diff --git a/SilKit/source/services/orchestration/TimeSyncService.cpp b/SilKit/source/services/orchestration/TimeSyncService.cpp index 9d846bf13..fb09a6dde 100644 --- a/SilKit/source/services/orchestration/TimeSyncService.cpp +++ b/SilKit/source/services/orchestration/TimeSyncService.cpp @@ -370,7 +370,17 @@ TimeSyncSe...
1
1
1
[{"id": "G0", "claim": "The edge-case behaviour this change introduces (a participant hopping on while another participant is hanging in SimulationStepAsync) should get a test — the reviewer wondered whether an integration test with a nested participant requesting NextSimTask would be feasible, or at least that a test ...
null
vectorgrp__sil-kit__197
vectorgrp/sil-kit
197
defect
f6c2cf5aba8831c0cb495e24161f09137d738d9e
a1f9d3767a0ac949ea49fa1adfa4a47543d57caa
add missing LIN experimental docs to html (SILKIT-1738)
Doxygen API docs were missing because the functions were not referenced. Switch the github CI MinGW build to use system libraries and fix the cmake logic.
diff --git a/.github/workflows/build-mingw64.yml b/.github/workflows/build-mingw64.yml index 7c7b3b0da..486e6941c 100644 --- a/.github/workflows/build-mingw64.yml +++ b/.github/workflows/build-mingw64.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: builds: - - arch: x86_64 + - arch:...
3
3
1
[{"id": "G0", "claim": "The new if(MINGW) block in SilKitTestAsio.cmake should be set off with blank lines so the file reads cleanly (applied via a suggestion block).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new experimental C-API doxy...
null
vectorgrp__sil-kit__200
vectorgrp/sil-kit
200
defect
f1f9226f47222fe11b5caabb15a5d5cd7d643994
ecdd8116c2144c2df76b980591c81f29b59c23b2
SILKIT-1743 can xl: update docs, tests and demo
Clarify that we support CAN XL. Update some tests and the Demo to print XL frames if received. Also CAN XL supports up to 20mbit/s
diff --git a/Demos/communication/Can/CanDemoCommon.hpp b/Demos/communication/Can/CanDemoCommon.hpp index 87cde09a9..55887f89b 100644 --- a/Demos/communication/Can/CanDemoCommon.hpp +++ b/Demos/communication/Can/CanDemoCommon.hpp @@ -25,7 +25,10 @@ void FrameHandler(const CanFrameEvent& canFrameEvent, ILogger* logger, b...
1
1
0
[{"id": "G0", "claim": "The fillData loop counter should be declared as size_t instead of auto i = 0, whose int type is compared against the size_t payloadBytes.size().", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vectorgrp__sil-kit__215
vectorgrp/sil-kit
215
defect
70a010b694a25d969ac2473ddaf41dc0b775690f
6977f8743daeed4c1a81f52707dbc4fb5ee5426e
add metrics to dashboard
This PR extends the work done in #92 and #199. Outline: - add "Attribute" metric, which is constant - add metrics for bytes transferred, transmit queue size and messages transfered - make the metric name a list of strings, or as fallback, split a single string using the `/` separator into a list TODO: automated ...
diff --git a/SilKit/IntegrationTests/ITestFixture.hpp b/SilKit/IntegrationTests/ITestFixture.hpp index 2ed9bcf7f..d6326bff9 100644 --- a/SilKit/IntegrationTests/ITestFixture.hpp +++ b/SilKit/IntegrationTests/ITestFixture.hpp @@ -63,8 +63,6 @@ class ITest_DashboardTestHarness : public ITest_SimTestHarness ITest_Das...
7
6
2
[{"id": "G0", "claim": "Change the type of the existing name field to carry the list instead of introducing a separate nameList field that supersedes it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stringlist metric kind appears unused and could b...
null
vectorgrp__sil-kit__218
vectorgrp/sil-kit
218
defect
880fc3b72d2baab390ed2a2fb5b8c33f4b9a9179
b58f92e4c40f332dc22ac389d59080e70b7b49ee
config: add export final participant configuration as string
When a participant configuration was processed, it may include fragments included by `includes:` statements. This adds a new API to retrieve the finalized participant configuration as string. Will be used e.g. in the network simulator and the dashboard.
diff --git a/SilKit/include/silkit/capi/SilKit.h b/SilKit/include/silkit/capi/SilKit.h index 039021d99..940ac3ef3 100644 --- a/SilKit/include/silkit/capi/SilKit.h +++ b/SilKit/include/silkit/capi/SilKit.h @@ -104,4 +104,14 @@ typedef SilKit_ReturnCode(SilKitFPTR* SilKit_ParticipantConfiguration_Destroy_t) SilKit_P...
6
5
2
[{"id": "G0", "claim": "The new C-API function's config parameter should not be prefixed with `out` since it is not an out-parameter (keep it const, applying the same rename in the function declaration and the typedef).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {...
null
vectorgrp__sil-kit__226
vectorgrp/sil-kit
226
defect
fe7dc3728a59e4eabbff8379fd85a75a53a38fd8
4e7aec0a735e7fe1fbb586cd9d700e3482796df6
config: enable configuration override for publisher history length
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> Makes it possible to override the publisher history length i...
diff --git a/SilKit/IntegrationTests/CMakeLists.txt b/SilKit/IntegrationTests/CMakeLists.txt index dc57b9fe3..3862507c6 100644 --- a/SilKit/IntegrationTests/CMakeLists.txt +++ b/SilKit/IntegrationTests/CMakeLists.txt @@ -184,6 +184,12 @@ add_silkit_test_to_executable(SilKitIntegrationTests SOURCES ITest_LinDynamic...
2
1
0
[{"id": "G0", "claim": "Calling controllerConfig.history.value() without checking for a value may throw bad_optional_access if no config override is set, at the >1 validation check and at the SetHistoryLengthForLink call; use value_or(history) to fall back to the API parameter.", "category": "correctness", "verdict": "...
null
vectorgrp__sil-kit__28
vectorgrp/sil-kit
28
defect
dcea1c7529878bc6e74ab69718d4447feed955f1
a402fe0b4c116b6983d6cfd506d9544eb159aa4e
ParticipantConfig: add Include Semantics support
## Subject * Add support to include config snippets in configs provided via file * Add support to include config snippets in configs provided as string * Move file uitility functions to their own unit * Add tests for all provided funtionality ## Description Issues: SILKIT-1391, SILKIT-1495 ## Developer c...
diff --git a/SilKit/IntegrationTests/Hourglass/MockCapi.cpp b/SilKit/IntegrationTests/Hourglass/MockCapi.cpp index 8ac042a31..4bd7bca87 100644 --- a/SilKit/IntegrationTests/Hourglass/MockCapi.cpp +++ b/SilKit/IntegrationTests/Hourglass/MockCapi.cpp @@ -779,6 +779,13 @@ extern "C" ...
9
9
1
[{"id": "G0", "claim": "The test statement resetting participantConfigurationFromAFile to nullptr is unnecessary and should be removed.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The leftover commented-out generator expression #$<TARGET_PROPERTY:${C...
null
vectorgrp__sil-kit__289
vectorgrp/sil-kit
289
defect
bd48e51f008417870e3e5fa261ccbe4e65b6b9df
38b9cc8db6c0278cbf1ea895a3cd03b505c4a35b
flexray: add second keyslot to config
this adds a second key slot id and a bool flag to enable two key slots to the flexray controller config.
diff --git a/SilKit/include/silkit/capi/Flexray.h b/SilKit/include/silkit/capi/Flexray.h index 038cf5c27..48f84daa5 100644 --- a/SilKit/include/silkit/capi/Flexray.h +++ b/SilKit/include/silkit/capi/Flexray.h @@ -216,12 +216,6 @@ struct SilKit_FlexrayNodeParameters //! Maximum permissible rate correction value (ra...
2
2
0
[{"id": "G0", "claim": "Add the section-separator comment '// Parameters according to B.3.2.1 (added in SIL Kit 5.0.3)' above the new pSecondKeySlotId/pTwoKeySlotMode fields in both SilKit/include/silkit/capi/Flexray.h and SilKit/include/silkit/services/flexray/FlexrayDatatypes.hpp, as suggested.", "category": "documen...
null
vectorgrp__sil-kit__297
vectorgrp/sil-kit
297
defect
fd3777fd2999d98dce9224ab3bff79e0e6238df2
0548b129ed856b60bcaf0be2c7b5ab95b6682f4c
Populate `timestamp` in `LinControllerStatusUpdate` message
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> Initializes the `timestamp` variable on the `LinControllerStat...
diff --git a/SilKit/source/services/lin/LinController.cpp b/SilKit/source/services/lin/LinController.cpp index 07bd1cafa..a70decbcc 100644 --- a/SilKit/source/services/lin/LinController.cpp +++ b/SilKit/source/services/lin/LinController.cpp @@ -608,6 +608,7 @@ void LinController::SetControllerStatusInternal(LinControll...
1
1
0
[{"id": "G0", "claim": "LinControllerStatusUpdate msg; should be default-initialized (e.g. LinControllerStatusUpdate msg{};) in SetControllerStatusInternal so no member of the sent message is left uninitialized, in case fields are added in the future.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
vectorgrp__sil-kit__299
vectorgrp/sil-kit
299
defect
c6a77fad02da7122a1edc4ce9b70b410024c8169
1a95a534a0fee586ac8c52c85cd6487617243e91
Centralize Label Prefiltering and Matching
Fix the bug found in https://github.com/vectorgrp/sil-kit/pull/294 Centralize the Prefiltering and Matching ## Developer checklist (address before review) - [ ] Changelog.md updated - [ ] Prepared update for depending repositories - [ ] Documentation updated (public API changes only) - [ ] API docstrings up...
diff --git a/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp b/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp index 641838918..16408053e 100644 --- a/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp +++ b/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp @@ -805,4 +805,83 @@ TEST_F(ITest_Inter...
2
2
0
[{"id": "G0", "claim": "Remove the debug `#include <iostream>` that this pull request added to LabelMatching.cpp.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test variable name `noLabelTestDescriptor` is misleading because the baseDescrip...
null
vectorgrp__sil-kit__301
vectorgrp/sil-kit
301
defect
96a729f58937f2e2a7262a7d1408dfa03cdf0700
961d6ebeacd894e16c38e8489b07f41df5c3e2da
LinController: fix tx/rx trivial behaviour
When not operational, the lin controller should not be able to send frames without waking up/going into operational state first. This fixes this issue for the trivial behaviour case (No Netsim attached) Issues: SILKIT-1468 ## Subject LinController trivial behaviour when not in Operational mode ## Descriptio...
diff --git a/Demos/communication/Lin/LinMasterDemo.cpp b/Demos/communication/Lin/LinMasterDemo.cpp index eef858e12..46784a019 100644 --- a/Demos/communication/Lin/LinMasterDemo.cpp +++ b/Demos/communication/Lin/LinMasterDemo.cpp @@ -104,14 +104,6 @@ class LinMaster : public ApplicationBase { const auto li...
3
2
1
[{"id": "G0", "claim": "The warning in LinController::WarnOnReceptionWhileSleeping should be logged directly instead of being routed through an unnecessary fmt::format into a temporary string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SimBe...
null
vectorgrp__sil-kit__52
vectorgrp/sil-kit
52
defect
2f49e132a9f181eb2f075844fe887e7603d77b17
3579208be25b021cf8323fe1a996321bfd18e038
SILKIT-1535: Configuration for structured logging
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject Adds the configuration option to output log messages in a structure JSON format. ## Instructions for review / testing <!-- - extention of the yaml config - logger format setup --> ## Deve...
diff --git a/SilKit/source/config/Configuration.hpp b/SilKit/source/config/Configuration.hpp index 95c14d05d..b00414f56 100644 --- a/SilKit/source/config/Configuration.hpp +++ b/SilKit/source/config/Configuration.hpp @@ -68,6 +68,13 @@ struct Sink File }; + enum class Format : uint8_t + { + ...
2
2
1
[{"id": "G0", "claim": "Log messages and logger/participant names can contain quotes or other characters that are not allowed in JSON strings, so the JSON log output may be broken; the reviewer asks for a custom sink or format flag that escapes such characters (and handles invalid UTF-8).", "category": "correctness", "...
null
vectorgrp__sil-kit__71
vectorgrp/sil-kit
71
defect
2da267a1ae321bb2533e355f2a602e9dba2756fc
4d3e2249d36797c9671a7bc7f12d4f1b880d5812
SILKIT-1525: Use bulk-update endpoint of dashboard backend service
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> These changes allow the dashboard client in SIL Kit to use the...
diff --git a/SilKit/source/dashboard/CMakeLists.txt b/SilKit/source/dashboard/CMakeLists.txt index 60958d41c..8c7835051 100755 --- a/SilKit/source/dashboard/CMakeLists.txt +++ b/SilKit/source/dashboard/CMakeLists.txt @@ -95,6 +95,8 @@ if(SILKIT_BUILD_DASHBOARD) CreateDashboard.cpp Dashboard.cpp ...
3
3
0
[{"id": "G0", "claim": "The bulk-update optimization appears to be enableable only via the ExperimentalEnableDashboardBulkUpdates option in the registry configuration file and always off when started via the CLI, and that should be documented that way in the Dashboard README.", "category": "documentation", "verdict": "...
null
vectorgrp__sil-kit__72
vectorgrp/sil-kit
72
defect
7cb57b0be5cb51ee12ff069c48cf22c3a00cc347
43e47a8f15378d05429974fcdcd6581e21de262a
-- time sync: Couple virtual time to wall clock
## Subject Introduce wall clock coupling of virtual time. Accessible via participant configuration: ``` Experimental: TimeSynchronization: AnimationFactor: 1.0 ``` ## Description - Added a _WallClockCoupling_ thread similar to the _WatchDog_ thread that manages the time advances when due - Prevent sen...
diff --git a/.editorconfig b/.editorconfig index ef65bb043..0bb684c0e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,3 +3,7 @@ root = true [*.{cpp,ipp,hpp,h,c}] indent_style = space indent_size = 4 + +[*.{json,yml,yaml}] +indent_style = space +indent_size = 2 diff --git a/SilKit/IntegrationTests/CMakeLists.txt...
10
9
3
[{"id": "G0", "claim": "The pull request needlessly changes the file permission of SilKit/IntegrationTests/ITest_CatchExceptionsInCallbacks.cpp, making it executable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In ITest_Internals_ParticipantM...
null
vectorgrp__sil-kit__87
vectorgrp/sil-kit
87
defect
f3d05c2f759b177daa4b3e30bdb129fc7ecd0493
4d1b59b660394bf0f65df7bddad35ceb23bd12de
config: allow overriding rpc and pub/sub labels
<!-- SPDX-FileCopyrightText: 2023 Vector Informatik GmbH SPDX-License-Identifier: MIT --> ## Subject <!-- - What kind of changes does this pull request comprise? - Add a label like "Bugfix", "docs", etc. to this PR to give context. --> This PR implements an extension to the participant configura...
diff --git a/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp b/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp index e743ccb0c..da66fbeb5 100644 --- a/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp +++ b/SilKit/IntegrationTests/ITest_Internals_DataPubSub.cpp @@ -501,6 +501,60 @@ TEST_F(ITest_Inter...
6
5
0
[{"id": "G0", "claim": "The test comment should be more distinguishing, e.g. '// Matching mandatory labels provided by a participant configuration'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test comment should be more distinguishing, e.g...
null
vectorgrp__sil-kit__93
vectorgrp/sil-kit
93
defect
e17cbcad80b24a55fc97a768e98f10979f4df24d
a8743bce8e00d6648efa4ad09a75bceac3b44243
SILKIT-1572 core: message aggregation
## Subject Implementation of a message aggregation mechanism for the VAsioPeer (time sync case only). ## Description For simulations with time synchronization, user data messages (PubSub, RPC, CAN, Ethernet) are aggregated in the VAsioPeer and send en bloc at the end of the corresponding time step. Messages ...
diff --git a/SilKit/source/config/Configuration.hpp b/SilKit/source/config/Configuration.hpp index a4e9fe826..dc68bbd8f 100644 --- a/SilKit/source/config/Configuration.hpp +++ b/SilKit/source/config/Configuration.hpp @@ -23,10 +23,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <alg...
10
10
3
[{"id": "G0", "claim": "The toLowerCase snippet duplicated four times in the repo should be extracted into a helper function in SilKit/source/util/StringHelpers.cpp.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conjunction in operator==(co...
null
vectorize-io__hindsight__1141
vectorize-io/hindsight
1,141
defect
52c148c203000b14fce9c77ff4702dd8d4349f1e
f0f09a3b3c02b3fa8f5689333beff910fc1fe490
fix(integrations): preserve raw UTF-8 in dynamically-derived bank_id
## Problem When `dynamicBankId: true`, `derive_bank_id()` runs each granularity segment through `urllib.parse.quote(..., safe="")` (Python integrations) or `encodeURIComponent()` (TypeScript integrations) before joining them with `::`. The resulting percent-encoded string is then used as the bank **identifier itself**...
diff --git a/hindsight-integrations/claude-code/.claude-plugin/plugin.json b/hindsight-integrations/claude-code/.claude-plugin/plugin.json index f673cd882d..ba7677ea1b 100644 --- a/hindsight-integrations/claude-code/.claude-plugin/plugin.json +++ b/hindsight-integrations/claude-code/.claude-plugin/plugin.json @@ -1,7 +...
1
1
0
[{"id": "G0", "claim": "Please don't change the plugin/package versions and don't add the CHANGELOG entry — revert those parts of the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vectorize-io__hindsight__1188
vectorize-io/hindsight
1,188
defect
e301883952e5fbe54241d47ef86f0cce69d1bef4
d6a8d752bf0752447d7a89ce5b26ba81d1df01cb
feat(api): expose retry_count and next_retry_at on operation responses
## Summary The \`async_operations\` table has tracked \`retry_count\` and \`next_retry_at\` for every task since the worker poller was introduced, but neither is exposed through the generic list / status endpoints or plumbed through to validator extensions. That leaves two consumers unable to distinguish a freshly-que...
diff --git a/hindsight-api-slim/hindsight_api/api/http.py b/hindsight-api-slim/hindsight_api/api/http.py index 13cdb182c4..4ceea3ab8a 100644 --- a/hindsight-api-slim/hindsight_api/api/http.py +++ b/hindsight-api-slim/hindsight_api/api/http.py @@ -2119,6 +2119,8 @@ class OperationResponse(BaseModel): "c...
2
2
2
[{"id": "G0", "claim": "retry_count on OperationStatusResponse must be an optional field to stay backwards compatible with older clients.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The failing verify-generated-files job should be fixed by regene...
null
vectorize-io__hindsight__1241
vectorize-io/hindsight
1,241
defect
9f4b3b670f56f0883f421092b729eac65c2a8fa6
5ee0c4739f14cd270fb4ed6233ce7eca00e59cf9
feat(embeddings): add HINDSIGHT_API_EMBEDDINGS_GEMINI_FORCE_IPV4 opt-in
## Summary Add an opt-in `HINDSIGHT_API_EMBEDDINGS_GEMINI_FORCE_IPV4` flag that configures the Gemini embeddings client with an IPv4-only `httpx` transport. Works around environments where AAAA records resolve but IPv6 egress is broken (some Docker / VPC setups), which causes the default google-genai client to hang on...
diff --git a/hindsight-api-slim/hindsight_api/config.py b/hindsight-api-slim/hindsight_api/config.py index e0787309d6..d8a996ee9c 100644 --- a/hindsight-api-slim/hindsight_api/config.py +++ b/hindsight-api-slim/hindsight_api/config.py @@ -183,6 +183,7 @@ def normalize_config_dict(config: dict[str, Any]) -> dict[str, An...
2
1
1
[{"id": "G0", "claim": "Inserting force_ipv4 before batch_size means existing positional callers passing batch_size as the 7th argument would now silently set force_ipv4 instead, so force_ipv4 should be moved after batch_size (or the constructor made keyword-only).", "category": "correctness", "verdict": "supported", "...
null
veeso__tui-realm__196
veeso/tui-realm
196
defect
be1cd440a71fce794c8884eec2a3a6fad04feb05
8c232d75c403db64c0c84620a4bbd4bfe9c21355
feat(tuirealm): add TestEventListener for integration testing
Closes #190 ## Summary - Add `TestEventListener` (sync) and `AsyncTestEventListener` (async, requires `async-ports` feature) for programmatic event injection in integration tests without requiring a real terminal
diff --git a/crates/tuirealm/src/terminal.rs b/crates/tuirealm/src/terminal.rs index 1d33071c..ac82aac0 100644 --- a/crates/tuirealm/src/terminal.rs +++ b/crates/tuirealm/src/terminal.rs @@ -27,6 +27,7 @@ pub use self::event_listener::TermionInputListener; #[cfg(feature = "termwiz")] #[cfg_attr(docsrs, doc(cfg(featur...
2
1
0
[{"id": "G0", "claim": "An async implementation of the test event listener should also be considered.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some examples using the testing features should be added later.", "category": "documentation", "verdict":...
null
vega__altair__2522
vega/altair
2,522
defect
2dff60b9862adaecdf48b9aebf065be5be7fb3ad
fabcbf9e212fb625b5363e9fb24b0c37831000ff
Represent pandas ordered categoricals as ordinal data
A suggestion for how Altair could support ordered pandas categoricals. This doesn't deal with the order of segments in a stacked bar chart, but I think that is something that should be fixed in VL (https://github.com/vega/vega-lite/issues/1734) rather than here. close #245, ref #2170
diff --git a/altair/utils/core.py b/altair/utils/core.py index 43bc1b4d58..47ba727f2d 100644 --- a/altair/utils/core.py +++ b/altair/utils/core.py @@ -193,8 +193,6 @@ def infer_vegalite_type(data): # Otherwise, infer based on the dtype of the input typ = infer_dtype(data) - # TODO: Once this returns 'O',...
3
3
1
[{"id": "G1", "claim": "The test changes target vegalite/v4, but they probably should be moved to vegalite/v5 if the PR should be merged.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The need to reset sort manually could be solved by custom logic ...
null
vega__altair__2568
vega/altair
2,568
defect
7509e452a8c5da2870b48b30969d170dc4015597
8dbf794cccab704435aa8034a77d73ee464dd61e
ENH: Make the schema validation error for non-existing params more informative
@jakevdp What do you think of something like this as a solution to #2565? I am still working on organizing the printed parameters in neatly formatted columns so that they are easier to read, but I thought I would check in with you whether you think this solution is robust enough. It has been working fine in my limit...
diff --git a/altair/utils/schemapi.py b/altair/utils/schemapi.py index 0c8f9b2749..00a1b0a85e 100644 --- a/altair/utils/schemapi.py +++ b/altair/utils/schemapi.py @@ -6,6 +6,7 @@ import json import textwrap from typing import Any, Sequence, List +from itertools import zip_longest import jsonschema import jsonsch...
9
9
5
[{"id": "G0", "claim": "The schema-validation error changes made in altair/utils/schemapi.py need to be moved into the code-generation source file tools/schemapi/schemapi.py.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "After #2842 the first p...
null
vega__altair__2813
vega/altair
2,813
defect
8a71d2e127a74148dfb812f01be7ae1d3fb0c09a
05b52b74e9e91a55797a1c8d57d81190fb41431b
Remove side-effects of calling EncodingChannelMixin.to_dict
Fixes #2497. CC @joelostblom. It can be verified by using the example code in the mentioned issue.
diff --git a/altair/utils/schemapi.py b/altair/utils/schemapi.py index 2c86b1d2e5..851812801d 100644 --- a/altair/utils/schemapi.py +++ b/altair/utils/schemapi.py @@ -350,8 +350,24 @@ def to_dict(self, validate=True, ignore=None, context=None): if self._args and not self._kwds: result = _todict(se...
1
1
1
[{"id": "G0", "claim": "Add a test that checks the chart spec contains the shorthand syntax and that it is expanded to the long form syntax when using to_dict(), both before and after displaying (or equivalent) a chart, to prevent this regression in the future.", "category": "testing", "verdict": "supported", "priority...
null
vega__altair__3114
vega/altair
3,114
defect
139c86a84197f8faba387dc1e9d41db1d5d0deea
68ed2b03e218dae8a6175f5288bd264b8707f3db
Support for type inference for DataFrames using the DataFrame Interchange Protocol
Closes #3112 ### Approach After discussion and experimentation in #3112, it looked to me like the best approach for generalizing our column type inference beyond pandas is to look up column names and types in the return value of the `__dataframe__` protocol method. If we do this (rather than convert the input datas...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc4774cb33..4dafbdac33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,10 @@ jobs: pip install .[dev] # pip install "selenium<4.3.0" # pip install altair_saver + - n...
5
4
1
[{"id": "G0", "claim": "The comment on the datetime64 edge-case hack should reference the pandas GitHub issue that tracks it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the pyarrow_available() check into infer_vegalite_type_for_dfi_column...
null
vega__altair__3118
vega/altair
3,118
defect
139c86a84197f8faba387dc1e9d41db1d5d0deea
02d724f0d1c85bc65074ed373d5cd35246b86317
Add support for new referencing resolution in jsonschema>=4.18
Closes #3097. @Julian: * Could you elaborate on your comment in https://github.com/altair-viz/altair/issues/3097#issuecomment-1638584720? `alt.load_schema` should return the full Vega-Lite schema which is hosted at https://vega.github.io/schema/vega-lite/v5.8.0.json.: ```python # It looks like you were previously...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc4774cb33..ef1e2e3bbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] - jsonschema-version: ["3.0", ...
5
1
0
[{"id": "G0", "claim": "If all schemas passed to _get_referencing_registry properly contain $schema properties, use referencing.Resource.from_contents(rootschema) instead of deriving the specification from the draft URL.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
vega__altair__3219
vega/altair
3,219
defect
cf7bdbd78cb93f8b6582f7ef070e5e8663622a94
cfccc0405d3a2edac07a68f6410635f96a9b7bcf
[Doc] Add Show Image Marks With Selection/Show Local Images Examples
This will close #2739 1. Show Image Marks With Selection ![image](https://github.com/altair-viz/altair/assets/75072960/9a7978ec-fbf5-4fd4-90d3-8eacc856b739) 2. Use Local Images As Image Marks I only provide source code here, not sure if there is any better illustration. ![image](https://github.com/altair-viz/alt...
diff --git a/doc/user_guide/marks/image.rst b/doc/user_guide/marks/image.rst index 673fc1057d..c965741816 100644 --- a/doc/user_guide/marks/image.rst +++ b/doc/user_guide/marks/image.rst @@ -43,3 +43,104 @@ Scatter Plot with Image Marks ) alt.Chart(source).mark_image(width=50, height=50).encode(x="x", y="y"...
6
6
0
[{"id": "G0", "claim": "A link to the numpy-tooltip-images tutorial should be included somewhere on the image marks page.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The two examples would be easier to understand if shown one at a time as in ...
null
vega__altair__3362
vega/altair
3,362
defect
89b717c85ea94ffb6ca4643461af867df564bc84
1a671f6919efe67291a5b8de46a174dd5e69fe40
Clarifications to the interactive docs
I have been working a bit more with expressions lately and have some suggestions for clarifications in the docs. I also tried to point to more advanced gallery examples in a couple of places and included mentions of dash-vega-components and altair-tiles in the relevant pages. Finally, I also added an example of how to ...
diff --git a/doc/user_guide/interactions.rst b/doc/user_guide/interactions.rst index 41cb1d3bca..42f6007dc4 100644 --- a/doc/user_guide/interactions.rst +++ b/doc/user_guide/interactions.rst @@ -247,6 +247,13 @@ We can modify the brush definition, and leave the rest of the code unchanged: chart | chart.encode(x=...
1
1
0
[{"id": "G1", "claim": "The docs should lean toward using the alt.datum and alt.expr Python builders rather than encouraging users to build up expressions as strings, so they do not need to think about the JavaScript-style syntax.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"...
null
vega__altair__3526
vega/altair
3,526
defect
f0c1e0a77bf8e3660fdabf484229a47a021d1f8c
057369bd9b22c38d39878e082b8ffddf3f6a25c7
feat: Adds `@register_theme` decorator
> [!IMPORTANT] > Prior to `v5.5.0`, (https://github.com/vega/altair/pull/3618) refactored this into `alt.theme.register`. > See updated examples in https://altair-viz.github.io/user_guide/customization.html#defining-a-custom-theme Resolves one item in #3519 Fairly simple addition, but it is a nice convenience w...
diff --git a/altair/__init__.py b/altair/__init__.py index 9a6496d5ef..2ca816f6e9 100644 --- a/altair/__init__.py +++ b/altair/__init__.py @@ -617,6 +617,7 @@ "mixins", "param", "parse_shorthand", + "register_theme", "renderers", "repeat", "sample", diff --git a/altair/utils/plugin_regi...
3
2
0
[{"id": "G0", "claim": "The bounded `TypeVar` (`R = TypeVar(\"R\", bound=Dict[str, Any])`) could later be replaced with the `alt.Config`-based `TypedDict` (#3536), which would give detailed type-checking feedback on the returned dict.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_exist...
null
vega__altair__3533
vega/altair
3,533
defect
0062e6228134f176bb9fbaa944724039bb6b043a
d80c24ab6f65d0ca60b789d10d40cb6fc6739f84
fix: Raise informative error message if a non-existent column name is passed
closes #3532
diff --git a/altair/vegalite/v5/schema/channels.py b/altair/vegalite/v5/schema/channels.py index 34daf00ab9..bf0008e9b9 100644 --- a/altair/vegalite/v5/schema/channels.py +++ b/altair/vegalite/v5/schema/channels.py @@ -14,7 +14,7 @@ from typing import TYPE_CHECKING, Any, Literal, Sequence, TypedDict, Union, overload ...
2
1
0
[{"id": "G0", "claim": "In `to_dict`, `context.get('data', None)` should be factored out into a variable annotated to convey that the data has been narwhalified/narrowed by that point (e.g. `nw.DataFrame | Any`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
vega__altair__3550
vega/altair
3,550
defect
591bf40fc0158ddd8d2fad2774d5230eb73ab734
1eac049d80c0315852cb77f9b311f9ad9c895b8d
fix: Pass native dataframe to data transformers
closes https://github.com/vega/altair/issues/3549 Also addresses the issue brought up in https://github.com/marimo-team/marimo/pull/2006
diff --git a/altair/utils/_vegafusion_data.py b/altair/utils/_vegafusion_data.py index 99779b62ec..970098d331 100644 --- a/altair/utils/_vegafusion_data.py +++ b/altair/utils/_vegafusion_data.py @@ -13,8 +13,6 @@ ) from weakref import WeakValueDictionary -import narwhals.stable.v1 as nw - from altair.utils._import...
2
1
0
[{"id": "G0", "claim": "Using narwhals' write_csv requires Narwhals v1.5.2+, so the PR raises the minimum Narwhals version, and the author asks whether that is acceptable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer cannot write a test th...
null
vega__altair__3693
vega/altair
3,693
defect
936c0af6f473bea113fbf162c444a8a99a571447
308cb7a1d8c29a38d05239609b1b76d95bf6f614
chore: Use `pass_through` instead of `strict` in `narwhals.from_native`, use stable.v1 API more
I'm addressing the API mix noted in https://github.com/vega/altair/pull/3690 Also, seeing as `1.13.1` is now the minimum, you can now use `pass_through` instead of `strict` (https://narwhals-dev.github.io/narwhals/backcompat/#after-stablev1)
diff --git a/altair/_magics.py b/altair/_magics.py index 8f40080db1..61abf51e2c 100644 --- a/altair/_magics.py +++ b/altair/_magics.py @@ -7,8 +7,8 @@ from importlib.util import find_spec from typing import Any +import narwhals.stable.v1 as nw from IPython.core import magic_arguments -from narwhals.dependencies im...
3
3
1
[{"id": "G0", "claim": "Add a ruff flake8-tidy-imports rule for the narwhals imports, like the existing banned-translations rules but suggesting the `narwhals.stable.v1` path.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "pyright reports a ty...
null
vega__altair__3827
vega/altair
3,827
defect
a6d0b7d5720cb414f3a3b61e58cdbe2bcbadcce4
75ca1b7c5268a56566125730ca6ddec04017bf3d
feat: Allow numpy scalars in altair expressions
## Use old numpy scalar representation in expressions. Numpy 2.0 has changed the representation of scalars (e.g., `repr(np.int64(0))` used to be `'0'` but became `np.int64(0)` ([related issue](https://github.com/h5py/h5py/issues/2456)). Due to this change, numpy constants can no longer be used in altair expressions ...
diff --git a/altair/expr/core.py b/altair/expr/core.py index cb89391f4c..57833459b3 100644 --- a/altair/expr/core.py +++ b/altair/expr/core.py @@ -3,6 +3,8 @@ import datetime as dt from typing import TYPE_CHECKING, Any, Literal, Union +import numpy as np + from altair.utils import SchemaBase if TYPE_CHECKING: @...
1
1
1
[{"id": "G0", "claim": "The PR must not import numpy directly, because Altair no longer hard-depends on numpy (it delegates through narwhals), and instead should handle numpy scalars via a local helper that looks numpy up in sys.modules rather than a hard import or a narwhals version bump.", "category": "correctness", ...
null
vega__altair__3974
vega/altair
3,974
defect
d61b42af206acf80f7f7ca5160915336700fa97f
557f2dcf2814f0268f0951d2ec977af2561bab9a
fix: unique view names per concat cell and correct param.views
After some hours digging. **What’s going wrong (v6.0.0):** View and param names in v6.0.0 use content-based hashing for thread-safety. When you concatenate two (or more) **identical** faceted charts, they get the **same** content hash, so they all receive the **same** view name (e.g. `view_9f1740faf6e66b88_0`). As a...
diff --git a/altair/vegalite/v6/api.py b/altair/vegalite/v6/api.py index 2410e8e805..d442964f28 100644 --- a/altair/vegalite/v6/api.py +++ b/altair/vegalite/v6/api.py @@ -5204,27 +5204,69 @@ def _remove_duplicate_params(layer: list[ChartType]) -> list[ChartType]: return subcharts +def _view_name_base(name: str...
2
2
1
[{"id": "G0", "claim": "The `param_idx == 0` condition prevents parameters other than the first from being added to all charts in a concatenation: with two faceted cells sharing p1 and p2, only p1 lists both cell views while p2 lists just the first cell's view, so shift-drag selection only works in the first row.", "ca...
null
vega__compassql__134
vega/compassql
134
defect
1f4bbe384b4c3dcca864fb2d63b402896776b3f5
920f85117ad1bdf13ad9d72e34d3c09e15b0d67d
Scale bandSize
Part of #2. Add basic support for scale.clamp, scale.exponent, scale.round. Add scaleType() helper method used for inferring correct scale type from encoding's type. Includes tests for scale properties and scaleType helper.
diff --git a/src/config.ts b/src/config.ts index ee963419..22151fad 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,7 +6,7 @@ import {ScaleType} from 'vega-lite/src/scale'; import {TimeUnit} from 'vega-lite/src/timeunit'; import {Type} from 'vega-lite/src/type'; -import {Property, DEFAULT_PROPERTY_PRECENCE} fr...
11
10
3
[{"id": "G0", "claim": "A test in the pull request is failing and needs to be made to pass.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The default scaleBandSizes enumeration value 90 (in [0, 21, 90]) needs justification or should not be enumerat...
null
vega__compassql__145
vega/compassql
145
defect
8163e0185e4e1e047d4e35550ab46e940ce03983
6beb2ea0aace4e1fcd36ebb68e5bc52691f17f0c
Basic Support for scale.* properties
Fix #2. Add test and basic support for scale.clamp, scale.domain, scale.exponent, scale.range, scale.round
diff --git a/src/config.ts b/src/config.ts index e780eabe..8a25ce63 100644 --- a/src/config.ts +++ b/src/config.ts @@ -36,6 +36,8 @@ export interface QueryConfig { /** Default maxbins to enumerate */ maxBinsList?: number[]; + scaleRounds?: boolean[]; + scaleTypes?: ScaleType[]; scaleZeros?: boolean[]; ...
2
2
1
[{"id": "G0", "claim": "There is no test showing that scale.round can be successfully enumerated, so such a test is needed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SCALE_ROUND should sit in alphabetical order in the src/property.ts lists instead ...
null
vega__compassql__197
vega/compassql
197
defect
93321450c8969006921785d91c249399850d280e
7e34cd8c9bbde169997b16daf8426d12a8c4207b
add aggregateOnly and rawOnly config and constraint
fix #6 - add aggregateOnly config - add rawOnly config - add aggregateOnly constraint - add rawOnly constraint - add tests for both constraints
diff --git a/src/config.ts b/src/config.ts index f44ffe7c..dee0c5f5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -66,6 +66,7 @@ export interface QueryConfig { // CONSTRAINTS // Spec Constraints + aggregateOnly?: boolean; hasAppropriateGraphicTypeForMark?: boolean; omitAggregatePlotWithDimensionOnlyO...
4
4
3
[{"id": "G0", "claim": "The aggregateOnly constraint's satisfy body should not check `if (opt.aggregateOnly)` because the generation pipeline only invokes this constraint when the option is true.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ra...
null
vega__compassql__201
vega/compassql
201
defect
cd91045381b33ae65a9716c125306781c3cc2c8a
e844a5d934f2e9670a1e850cc5062b1561a6c2a7
OmitAggregatePlotWithoutDimension constraint
Fix #192 - add OmitAggregatePlotWithoutDimension config - add OmitAggregatePlotWithoutDimension constraint - add Query test to verify that result excludes aggregate plot without dimension - add unit tests for constraint
diff --git a/src/config.ts b/src/config.ts index 606d7f43..5cfbebe8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -69,6 +69,7 @@ export interface QueryConfig { hasAppropriateGraphicTypeForMark?: boolean; omitAggregate?: boolean; omitAggregatePlotWithDimensionOnlyOnFacet?: boolean; + omitAggregatePlotWitho...
8
6
2
[{"id": "G0", "claim": "The 'should return true if plot is aggregate and has dimension' test case uses an aggregated nominal field, which cannot occur in practice, so the reviewer asks to rewrite it as a proper test case with N and MEAN(Q).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "in...
null
vega__compassql__224
vega/compassql
224
defect
00c89c35a0c56f66792cd83ff9e252c6506ccf70
a8a5b44f53dbaa9f39fcbe22a66ad0a39620ad55
Cardinality exclude invalid flag
1) Add a third argument, `excludeInvalid`, to schema's `cardinality` method that causes invalid values to be ignored when calculating the cardinality. Ignored values are: `null`, `NaN`, and any invalid date in the case of temporal data. 2) Updates the `timeUnitShouldShowVariation` constraint to be more accurate by usi...
diff --git a/src/constraint/encoding.ts b/src/constraint/encoding.ts index b1ab7875..267dd0f9 100644 --- a/src/constraint/encoding.ts +++ b/src/constraint/encoding.ts @@ -162,7 +162,7 @@ export const ENCODING_CONSTRAINTS: EncodingConstraintModel[] = [ strict: false, satisfy: (encQ: EncodingQuery, schema: Sche...
11
11
5
[{"id": "G0", "claim": "All occurrences of binSummary are called with excludeInvalid=false ignoring the input excludeInvalid, so the parameter should either be honored or not added to binSummary at all.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Baki...
null
vega__compassql__238
vega/compassql
238
defect
23d601621d77a9b43a1be9849555f063737c39fa
b44499eba3bfbbe63d5ab3d483f36551455acb9d
Relax hasAllRequiredChannelsForMark constraint for when mark is an enum spec
fix #237 - Allow a point plot to generate when mark is an enum spec. fix #235 - Relax spec when there is only row or column channel.
diff --git a/src/constraint/spec.ts b/src/constraint/spec.ts index 18eb7dbc..4e757c6e 100644 --- a/src/constraint/spec.ts +++ b/src/constraint/spec.ts @@ -219,11 +219,13 @@ export const SPEC_CONSTRAINTS: SpecConstraintModel[] = [ return specM.channelUsed(Channel.TEXT); case Mark.BAR: case M...
3
3
1
[{"id": "G0", "claim": "The `isEnumSpec(specM.enumSpecIndex.mark)` wrapper looks unnecessary here — `specM.enumSpecIndex.mark` alone should be sufficient.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The POINT case should return a plain disjun...
null
vega__compassql__239
vega/compassql
239
defect
23d601621d77a9b43a1be9849555f063737c39fa
b249d8339e075394ffd5551b986fdc5dbd71f72c
Add timeUnitHasVariation method for schema
Add method `timeUnitHasVariation`. Returns true if the number of dates that are completely distinct in all "parts" of the timeUnit is greater than 1. Part of a follow up to https://github.com/uwdata/voyager2/issues/93.
diff --git a/src/constraint/encoding.ts b/src/constraint/encoding.ts index 267dd0f9..27a63f5b 100644 --- a/src/constraint/encoding.ts +++ b/src/constraint/encoding.ts @@ -162,7 +162,7 @@ export const ENCODING_CONSTRAINTS: EncodingConstraintModel[] = [ strict: false, satisfy: (encQ: EncodingQuery, schema: Sche...
4
3
1
[{"id": "G0", "claim": "The method should not modify a `const`; pass `{timeUnit: ...}` as the last parameter of `extend` instead of assigning `dateEncQ.timeUnit` after the extend.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear what...
null
vega__compassql__354
vega/compassql
354
defect
28d7ccb39ba6e05f2bcf4d88814a07ce9f6709e0
a8c85f90b061190d719d0bb18181d8b824eddb67
Split constraint files
Updated constraint encodings to be split across - field.ts with the field constraints - value.ts with the value constraints The generic constraint checker, constraint model, etc were moved to base.ts Only the check encoding function is left in encoding.ts
diff --git a/src/constraint/base.ts b/src/constraint/base.ts index cc34829f..35d31119 100644 --- a/src/constraint/base.ts +++ b/src/constraint/base.ts @@ -1,4 +1,11 @@ -import {Property} from '../property'; +import {QueryConfig} from '../config'; +import {isEncodingNestedProp, Property} from '../property'; +import {Pro...
1
1
0
[{"id": "G0", "claim": "The encoding constraint test file should also be split to provide 1:1 mappings between the source constraint files and their tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vega__compassql__372
vega/compassql
372
defect
79aeb592437f19a706930175cf8dc27d36defff3
6610ec965a6e830c43826710e0141181ff26405a
Fix #70 high cardinality nomial fields distinguished as new type
Added a new type for the high cardinality strings (ExpandedType.KEY) Added constants for determining type to configuration - I think the enumeration was handled properly, not entirely sure though
diff --git a/src/config.ts b/src/config.ts index 966ad141..5345283e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -70,6 +70,9 @@ export interface QueryConfig { // EFFECTIVENESS PREFERENCE maxGoodCardinalityForColor?: number; // FIXME: revise maxGoodCardinalityForFacet?: number; // FIXME: revise + // HIGH ...
7
7
2
[{"id": "G0", "claim": "Name the new high-cardinality config options minPercentUniqueForKey and minCardinalityForKey instead of percentUnique and minimumKeys.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an isDiscrete helper to expandedtyp...
null
vega__compassql__376
vega/compassql
376
defect
2c19a1287f5ea3e4eeac61850af9a3130e41088a
89e0f4a562d5bc27faaccf0ace89caf2c558d901
Provide SpecQueryGroup Generic.
SpecQueryModelGroup Is based on this class. closes #375
diff --git a/src/model.ts b/src/model.ts index 040e7eb8..a13a1cc8 100644 --- a/src/model.ts +++ b/src/model.ts @@ -346,14 +346,15 @@ export class SpecQueryModel { } } -export class SpecQueryModelGroup { +export class SpecQueryGroup<T> { + private _name: string; private _path: string; - private _items: (Spe...
1
1
0
[{"id": "G0", "claim": "isItemSpecQueryGroup looks more like a static method and should be extracted outside of the class so it can be reused easily.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vega__compassql__379
vega/compassql
379
defect
b370fba86ec43c2b784fa815ebb9aaf96d93e09a
60832cf45043ec4a29dc432f664bade726abc3aa
Make Schema conform to Table Schema Spec.
This changes the `Schema` interface to be compliant with the Table Schema spec. https://specs.frictionlessdata.io/table-schema/ As discussed in https://github.com/vega/voyager/issues/338, here we: * provide interfaces for `TableSchemaFieldDescriptor` and `TableSchema` * rename field to name - the required ID...
diff --git a/src/constraint/field.ts b/src/constraint/field.ts index 9197a486..7da24e10 100644 --- a/src/constraint/field.ts +++ b/src/constraint/field.ts @@ -7,7 +7,7 @@ import {QueryConfig} from '../config'; import {getEncodingNestedProp, Property, SCALE_PROPS} from '../property'; import {PropIndex} from '../propin...
8
8
2
[{"id": "G0", "claim": "The pull request's tests are failing and need to be fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Keep the enum named PrimitiveType instead of renaming it to DataType, since PrimitiveType is more descriptive.", "category"...
null
vega__compassql__415
vega/compassql
415
defect
11fc6265649e6951b35fe43e43df3e1f028bcb64
ce54ab86e1cc8956ec5b92810ac5675d3628965b
Add width/height as a top level specification for CQL queries.
Width height can be specified to control the dimensions of the output vega-lite specs that come out of `recommend`. See issue #332
diff --git a/src/model.ts b/src/model.ts index 3d2130cd..6ebb8fda 100644 --- a/src/model.ts +++ b/src/model.ts @@ -286,6 +286,14 @@ export class SpecQueryModel { spec.mark = this._spec.mark as Mark; spec.encoding = toEncoding(this.specQuery.encodings, {schema: this._schema, wildcardMode: 'null'}); + + if...
3
3
1
[{"id": "G0", "claim": "The shared JSDoc comment over width and height should be removed or turned into separate comments, since it would only be shown under height when hovering over width.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JSDoc...
null
vega__vega-embed__1051
vega/vega-embed
1,051
defect
16f9369090b1fb022af4203dba90362fc23ea4c5
ee862274fcef1dd8e416d5f7355000f85766c87c
feat: update the `scaleFactor` property to allow setting different values
Closes #1047 Hi! 👋 This PR contains my proposal to support a different `scaleFactor` for each format (PNG and SVG) following conventions for other properties. I also added an HTML file for testing. What do you think? Let me know your opinion, @domoritz! 😄 <!-- GITHUB_RELEASE PR BODY: prerelease-version -...
diff --git a/README.md b/README.md index c50dae7a0..aa19c11a9 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ var opt = { | `height` | Number | Sets the view height in pixels. See [Vega docs](https://vega.github.io/vega/docs/api/view/#view_height) for details. Note that Vega-Lite overrides this ...
1
1
1
[{"id": "G0", "claim": "The PR's new scaleFactor object behaviour ships with no unit test; the reviewer asks for an actual unit test, or at least one checking that setting an object doesn't crash.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vega__vega-embed__157
vega/vega-embed
157
defect
1ea996fa8ebf56433cd2a2c09ba275c3b055d865
b7febffdb4d53d8bfec33467838e1960a4306ac4
feat(download): enable custom file name for downloads
Adds file name option for #102 Tested via the yarn server and changing the config for the test chart.
diff --git a/README.md b/README.md index f0f5eac5c..a45eed7fa 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,8 @@ var opt = { "PNG_ACTION": ..., "SOURCE_ACTION": ..., "SVG_ACTION": ... - } + }, + "downloadFileName" : ..., } ``` @@ -153,6 +154,7 @@ var opt = { | `sourceFooter` | String |...
2
2
1
[{"id": "G0", "claim": "Don't add the downloadFileName option to test-vl.html; the demo HTML page should stay unchanged.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a small unit test covering the new downloadFileName behaviour.", "category": "test...
null
vega__vega-embed__88
vega/vega-embed
88
defect
d414f26485c47d3a6e09f6086136ef1b99c2d325
5d5060e2de212f6004b0b591900cf96adf18260c
Add support to optionally change the actions text.
Fixes #87.
diff --git a/README.md b/README.md index 443336826..084d09934 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,14 @@ var opt = { "hover" : ..., - "runAsync": ... + "runAsync": ..., + "i18n": { + "COMPILED_ACTION": ..., + "EDITOR_ACTION": ..., + "PNG_ACTION": ..., + "SOURCE_ACTION": ..., + ...
5
5
0
[{"id": "G0", "claim": "The i18n options do not need a deep merge in embed(); use an object spread instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new i18n test, the expected strings should be used directly rather than through destructured...
null
vega__vega-embed__935
vega/vega-embed
935
defect
787874c9cd74b914810c08d016091f6660adc990
4db71e1e5dabc4772b1f442aa491762c4be29fee
feat: Expose expression functions
Exposes `vega.expressionFunction` to allow consumers to create custom functions/formatters. Follow up to this ticket: https://github.com/vega/vega-embed/issues/934 <!-- GITHUB_RELEASE PR BODY: prerelease-version --> # Version Published prerelease version: `v6.21.0-next.0` <details> <summary>Changelog</summary> ...
diff --git a/src/embed.ts b/src/embed.ts index 0532ba4e8..044453080 100644 --- a/src/embed.ts +++ b/src/embed.ts @@ -25,7 +25,7 @@ import * as themes from 'vega-themes'; import {Handler, Options as TooltipOptions} from 'vega-tooltip'; import post from './post'; import embedStyle from './style'; -import {Config, Mode...
3
3
1
[{"id": "G0", "claim": "The test identifier `visitorFunction` should be renamed to `functionWithVisitor`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make `visitor` optional in the ExpressionFunction type and fix the runtime detection so an e...
null
vega__vega-embed__98
vega/vega-embed
98
defect
c6a61eef7269222ce40b0f6bda047a3135850ad8
767361aa63e6904772ea810f993cd4189ff3d4bf
Adding support for view.hover hoverSet and leaveSet arguments.
Addresses #90. @domoritz Could you give me some advise for testing? Two things I thought of were: 1. Check the view instance for streams added. I'm not sure where the hover streams are added though. 2. Stub View.hover before embedding to confirm that hover was executed and verify arguments it was executed wit...
diff --git a/src/embed.ts b/src/embed.ts index 23ecf8de9..b489bc327 100644 --- a/src/embed.ts +++ b/src/embed.ts @@ -8,6 +8,7 @@ import { Config as VlConfig, TopLevelSpec as VlSpec } from 'vega-lite'; import schemaParser from 'vega-schema-url-parser'; import * as themes from 'vega-themes'; import { Handler, Options ...
3
3
1
[{"id": "G0", "claim": "When mode is Vega and the hover option is not defined, the new code still enters the object branch and destructures undefined, so embedding a Vega spec without an explicit hover option would throw.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"i...
null
vega__vega__1594
vega/vega
1,594
defect
6a56c93260d17962a7a3e29fa726202b35c8046c
6d76b23467df8d4e30034525fdf99e349eaac947
Replace d3-voronoi with d3-delaunay.
Fixes #1492
diff --git a/packages/vega-voronoi/package.json b/packages/vega-voronoi/package.json index 92b16361f0..e13ad9bde4 100644 --- a/packages/vega-voronoi/package.json +++ b/packages/vega-voronoi/package.json @@ -12,7 +12,7 @@ "module": "index", "repository": "vega/vega", "scripts": { - "rollup": "rollup -g d3-vo...
3
2
2
[{"id": "G0", "claim": "The failing tests come from the airports example test scene, whose voronoi polygon path strings changed, and the scenegraph fixture must be regenerated before the PR can merge.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Do no...
null
vega__vega__2004
vega/vega
2,004
defect
9badf6d2d1490057f4010e3796189ca366878101
0ede82a1139bfdc8ba3e86cd7ec6f624ff68deea
Add luminance and contrast functions
# Implements luminance and contrast expression functions This PR adds 2 new functions. It was discussed in #1860. The implementation is pretty small (20 LOC). Adding this to vega allows for more accessible charts and would help to build awareness about accessibility in my opinion. - `luminance` returns the relati...
diff --git a/docs/docs/expressions.md b/docs/docs/expressions.md index a83b798758..0a2a03e361 100644 --- a/docs/docs/expressions.md +++ b/docs/docs/expressions.md @@ -589,8 +589,15 @@ Constructs a new [CIE LAB](https://en.wikipedia.org/wiki/Lab_color_space#CIELAB) <b>hcl</b>(<i>specifier</i>)<br/> Constructs a new [H...
2
2
2
[{"id": "G0", "claim": "The luminance function should call rgb on its input internally so users need not call rgb explicitly before invoking it (and contrast would then work the same way).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The docs text and ...
null
vega__vega__2921
vega/vega
2,921
defect
ca27004f8c3ad8aa94f017fb5df6bf90748bda92
ca8b2180d5215a0feaa9b2c7d82a76dd1b22333b
Re #2920: Fix memory leaks when replacing data
https://github.com/vega/vega/issues/2920 * When detaching Operators, clear the references to `source` and `pulse` * When detaching EventStreams, reset the `_filter` function and clear `targets` * When cleaning Facet, remove subflows with count 0 from the active _targets array. These may be a little too much of ...
diff --git a/packages/vega-dataflow/src/EventStream.js b/packages/vega-dataflow/src/EventStream.js index bfa47a7a59..435c9bc01c 100644 --- a/packages/vega-dataflow/src/EventStream.js +++ b/packages/vega-dataflow/src/EventStream.js @@ -122,7 +122,10 @@ EventStream.prototype = { }, detach() { - // no-op for ha...
3
3
0
[{"id": "G0", "claim": "Add a space after the comment slashes in EventStream.js detach() (`//Remove any references to other streams` should read `// Remove any references to other streams`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The add...
null
vega__vega__3686
vega/vega
3,686
defect
3290eaee7de69ad448a44349856107a461e67247
44456882d25988ccb900e79216c36251e05b6294
feat: Add aggregate parameters to vega-transform, and exponential moving average
This adds exponential moving averages, fixing #3341. In order to do this, it enables supplying parameters to aggregation functions. This addresses the block on https://github.com/vega/vega-lite/issues/4439. As I'm not a javascript programmer, feedback will be gratefully taken on board.
diff --git a/packages/vega-transforms/src/Aggregate.js b/packages/vega-transforms/src/Aggregate.js index 61d8a0a113..56c50b2fc6 100644 --- a/packages/vega-transforms/src/Aggregate.js +++ b/packages/vega-transforms/src/Aggregate.js @@ -11,6 +11,7 @@ import {accessorFields, accessorName, array, error, inherits} from 'veg...
5
1
1
[{"id": "G0", "claim": "The `aggregate_params` parameter name may redundantly repeat `aggregate` given the Aggregate context of the definition.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using `aggregate_params` in a Vega editor spec appears not to wor...
null
vega__vega__3973
vega/vega
3,973
defect
c5c084bfb2a616a0a9bdb78c7069647a3a896b47
5e6190d84a0fb9aff2a33b0ca7658b5b5f4208b2
feat: add sort function to `vega-functions` (and `vega-interpreter`)
## Motivation This PR tests a [fix](https://github.com/vega/vega/pull/3962#issuecomment-2362682733) for https://github.com/vega/vega/pull/3962 , with the goal of adding a `sort` function to the default set of Vega functions in the expression language. ## Changes - Includes @domoritz and @joelostblom's doc an...
diff --git a/docs/docs/expressions.md b/docs/docs/expressions.md index a38c05974a..c2c5194e77 100644 --- a/docs/docs/expressions.md +++ b/docs/docs/expressions.md @@ -522,6 +522,10 @@ Returns an array containing an arithmetic sequence of numbers. If _step_ is omit <b>slice</b>(<i>array</i>, <i>start</i>[, <i>end</i>])...
2
1
0
[{"id": "G0", "claim": "When an array mixes numbers and strings, the new sort appears to order them as type-grouped subarrays (all strings up to the first number, then numbers, then the rest) instead of the expected flat ordering like [\"0\", \"1\", \"2\", \"3\", \"4\", \"a\", \"b\"].", "category": "correctness", "verd...
null
vega__vega__4009
vega/vega
4,009
defect
560aeecbbe99edb3022071fbe8c756d04f2e57bc
f56cf1f61723c1498461a35fa9b91673b9ad3960
feat: Add base64 string encoder/decoder to `vega-expression` and `vega-interpreter`
## Motivation - Allow users to modify SVG images that were Base64 encoded. This is useful in Vega-Lite environments where remote access to images was disabled, such as Deneb (PowerBI), so users are especially dependent on inline data definitions. - See #3875 ## Testing - Try test URL sandbox showing that ima...
diff --git a/docs/docs/expressions.md b/docs/docs/expressions.md index 7fc55b9622..58e7d1e27a 100644 --- a/docs/docs/expressions.md +++ b/docs/docs/expressions.md @@ -523,7 +523,7 @@ Returns an array containing an arithmetic sequence of numbers. If _step_ is omit Returns a section of _array_ between the _start_ and _e...
2
1
1
[{"id": "G0", "claim": "The interpreter's btoa entry could be simplified to a bare `btoa: btoa` reference instead of wrapping it in an arrow function.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add a test for the newl...
null
vega__vegafusion__417
vega/vegafusion
417
defect
6d352b78df1a2fca4db0b9a29aae2e5283df9a43
d85d702a8358b688677c20f1a431a7b02db92a3d
Experimental s3 and parquet support
This PR adds initial support for loading input files from s3, and for parquet support. Includes: - Use object_store::aws::AmazonS3Builder to support loading json, csv, arrow, and parquet files from s3. Credentials are pulled from environment variables per https://docs.rs/object_store/latest/object_store/aws/struct....
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 7e5b6bed2..f7c5a1de8 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -53,6 +53,8 @@ jobs: ~/.cargo target .pixi + - name: start minio server in the b...
1
1
0
[{"id": "G0", "claim": "File paths built from potentially untrusted url input (e.g. Path::new(url)) can lead to a path traversal vulnerability and should be validated and sanitized.", "category": "security", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
vektra__mockery__1022
vektra/mockery
1,022
defect
10fff726ef847b7091cd34854b1f19fe2effc7e4
909ea891f92b962605289a16a7f83fe208c0559d
Fix uppercase generic type parameters
Description ------------- The implementation doesn't modify the behavior of the existing exported function called `exported`. - Fixes #1021 ## Type of change - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fi...
diff --git a/.mockery_testify.yml b/.mockery_testify.yml index 7556d1f2..b468ea56 100644 --- a/.mockery_testify.yml +++ b/.mockery_testify.yml @@ -65,6 +65,7 @@ packages: github.com/vektra/mockery/v3/internal/fixtures/empty_return: github.com/vektra/mockery/v3/internal/fixtures/method_args/same_name_arg_and_type:...
2
1
0
[{"id": "G0", "claim": "The type parameter names should not be exported at all — the template_funcs.Exported( lines should be removed entirely from the Interface methods (the reviewer considers the current uppercasing a bug and is comfortable with a backwards-incompatible change).", "category": "correctness", "verdict"...
null
vektra__mockery__1061
vektra/mockery
1,061
defect
5b3d78a463774a268eba5ff62cd92cd1fc563d02
e8cb561c022c0dba684c94f4c67e414b99fff936
Fix matryer template imports when outputting mock to different package than source
Description ------------- This change updates the Matryer mock generation template to ensure the **source package of the interface** is correctly imported when generating a mock—particularly when the skip-ensure flag is not set. When `skip-ensure` is **disabled**, the generated mock includes a **compiler asserti...
diff --git a/internal/mock_matryer.templ b/internal/mock_matryer.templ index 2d2e0462..1ac1ca74 100644 --- a/internal/mock_matryer.templ +++ b/internal/mock_matryer.templ @@ -15,6 +15,15 @@ package {{.PkgName}} {{- $_ := .Registry.AddImport "sync" "sync" }} {{- end }} +{{- if ne .PkgName .Registry.SrcPkg.Name }...
2
2
2
[{"id": "G0", "claim": "The `ne .PkgName .Registry.SrcPkg.Name` condition is incorrect in the general case: mocks placed outside the source package path can still share the source package's name, so this logic would wrongly treat them as being in the same package.", "category": "correctness", "verdict": "supported", "p...
null
vektra__mockery__1105
vektra/mockery
1,105
defect
390f232732d98e10d8aa1b9250658cad7f2a77f5
0f536ead4b49a1d5ebbf9269144178021a22fd3c
Add support for overriding configuration through comments on interfaces
Description ------------- Adds support for configuring mocks through directive comments on the interface. The comment will be parsed as a yaml configuration, any configuration supported on the file based config is also supported by this: ```Go //mockery:struct_name: <struct_name> //mockery:file_name: <file_name>...
diff --git a/.mockery_testify.yml b/.mockery_testify.yml index 6ee47071..c0eb187c 100644 --- a/.mockery_testify.yml +++ b/.mockery_testify.yml @@ -127,4 +127,4 @@ packages: Foo: pkg-path: github.com/vektra/mockery/v3/internal/fixtures/replace_type_pointers type-name: Bar...
2
2
1
[{"id": "G0", "claim": "The override discovery should not need manual support for each individual config parameter: the doc comment should be parsed into config.Config and merged into the interface's Config using the existing merge method, with the discovery logic living in GetInterfaceConfig.", "category": "design", "...
null
vektra__mockery__1125
vektra/mockery
1,125
defect
f5daeff55ebad0eb2caf849037929fb2306d4414
39176fb4b0b8b05a18f8e7ff4008124c99aa7c74
fix: constraint interfaces generation
Description ------------- I added a check to the parser for whether the interface is a constraint. Mocks will not be generated using such interfaces. Examples of interfaces that will be skipped: ```go type Skip1 constraints.Ordered type Skip2 interface { ~int } type Skip3 interface { constraints.Flo...
diff --git a/.mockery_testify.yml b/.mockery_testify.yml index 60c1b3f0..747b991a 100644 --- a/.mockery_testify.yml +++ b/.mockery_testify.yml @@ -139,3 +139,4 @@ packages: configs: - structname: FunServerWithDifferentFile - structname: AnotherFunServerWithDifferentFile + github.com/vekt...
1
1
1
[{"id": "G0", "claim": "The isConstraint check is easily tricked: creating an alias to `constraints.Float` would not be caught, and an additional check for alias types that resolves the alias and then performs the same checks would be needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
vektra__mockery__1138
vektra/mockery
1,138
defect
3ed8ae7def7c234d7bb68c476e1b2b23f84f1cf2
dc7ca2f8c944d58757e85aef489fee65a5da13fd
feat: goimports configuration options
Description ------------- Add goimports local-prefix configuration. Fixes #1098. ## 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 wo...
diff --git a/config/config.go b/config/config.go index b9af4283..71aed963 100644 --- a/config/config.go +++ b/config/config.go @@ -561,6 +561,12 @@ type ReplaceType struct { TypeName string `koanf:"type-name" yaml:"type-name,omitempty"` } +type FormatterOptions struct { + GoImports *struct { + LocalPrefix string ...
2
2
1
[{"id": "G0", "claim": "The new FormatterOptions field in Config should be a pointer (*FormatterOptions) so that the yaml map can be nil.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Users should also be able to modify the full imports.Options struct, ...
null
vektra__mockery__1154
vektra/mockery
1,154
defect
a8553f7661202c8efac1f8145aa35ef3ae4d770e
a44906d1e0e4cc16b33bab50243ba2f7d101de12
fix(cmd): fix file descriptor leak from defer in loop
Description ------------- Extract file creation and writing into writeFile() helper so that defer file.Close() runs per-call instead of accumulating until Run() returns. With many mock files, the previous code could exhaust OS file descriptor limits. - Fixes # (issue) ## Type of change - [x] Bug fix (non-b...
diff --git a/internal/cmd/mockery.go b/internal/cmd/mockery.go index 95b66f13..6f8da1ad 100644 --- a/internal/cmd/mockery.go +++ b/internal/cmd/mockery.go @@ -178,6 +178,18 @@ func (i *InterfaceCollection) Append(ctx context.Context, iface *internal.Interf return nil } +func writeFile(path string, data []byte) err...
2
1
0
[{"id": "G0", "claim": "writeFile defers f.Close() and ignores its returned error, so a Close failure (e.g. flush/disk-full) makes the helper still return nil and the caller treat the file as successfully written; the reviewer asks that close errors be propagated or surfaced.", "category": "correctness", "verdict": "op...
null
vektra__mockery__422
vektra/mockery
422
defect
b8ea55ea8d5cadefa28c886939782101b5827610
1e4d5ebb0fb93a57a4026205da29ae0a6b9fde82
Fix: avoid package name collision with inPackage (#291)
Fixes #291. Tired of waiting, so I copied everything from https://github.com/vektra/mockery/pull/402, sorry.
diff --git a/mocks/pkg/fixtures/example_project/bar/foo/Client.go b/mocks/pkg/fixtures/example_project/bar/foo/Client.go new file mode 100644 index 000000000..a1e5b38f8 --- /dev/null +++ b/mocks/pkg/fixtures/example_project/bar/foo/Client.go @@ -0,0 +1,33 @@ +// Code generated by mockery v0.0.0-dev. DO NOT EDIT. + +pac...
4
3
1
[{"id": "G0", "claim": "The nested condition in getNonConflictingName should be collapsed into a single if statement: if !g.importNameExists(name) && (!g.InPackage || g.iface.Pkg.Name() != name).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
vektra__mockery__540
vektra/mockery
540
defect
996367122f7e15e992a7b56a19a33b36abb3f8b6
8ca9a1d9fb09e8fae00044b1a3603b65ce492704
Add a replace-type parameter to allow replacing package and/or type names
Description ------------- Add a `replace-type` parameter to allow replacing package and/or type names. This overcomes the problem of type aliases to internal packages, like `cloud.google.com/go/pubsub.Message`, which is a type alias, for which the mock forwarded the implementation to an internal package that's not...
diff --git a/cmd/mockery.go b/cmd/mockery.go index ae502ac11..8be222e24 100644 --- a/cmd/mockery.go +++ b/cmd/mockery.go @@ -76,6 +76,7 @@ func NewRootCmd() *cobra.Command { pFlags.Bool("unroll-variadic", true, "For functions with variadic arguments, do not unroll the arguments into the underlying testify call. Inste...
4
3
0
[{"id": "G0", "claim": "The new test function should be renamed from TestInternalPackagePrologue to TestReplaceTypePackagePrologue.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tests should not assert the exact generated code; instead ...
null
vektra__mockery__639
vektra/mockery
639
defect
1baf2eee3508ab0183cf332695bd2c2a7bb37461
5ffa3550cfa516f3dd768ef08626cb435d586664
Add text/template functions for manipulating "output" values
Description ------------- I thought adding some `text/template` functions to the "outputter" would make for a more flexible and more generic solution to #509 and other "I want my Mocks in an oddly specific path" situations where some light-weight string manipulation is necessary Adding `replace` (aka `strings.R...
diff --git a/pkg/outputter.go b/pkg/outputter.go index fc1ced0b2..b2b994082 100644 --- a/pkg/outputter.go +++ b/pkg/outputter.go @@ -197,6 +197,13 @@ func parseConfigTemplates(ctx context.Context, c *config.Config, iface *Interfac "outpkg": &c.Outpkg, } + // Functions available in the template for manipulating...
2
1
0
[{"id": "G0", "claim": "Reference the strings package functions directly instead of adding small wrapper functions around them, and name the replace function `replaceAll`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do not adopt sprig's large...
null
vektra__mockery__693
vektra/mockery
693
defect
8abb7022eefaf0d424283d8957117e31e6eaa1cf
b387c05bc94cd4aad6f1cbc3cf3cc82bf0c47c47
[Fix] Generate mock build constraints
Supported only the new format of build tags https://pkg.go.dev/cmd/go#hdr-Build_constraints Fixes #691 Description ------------- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. - Fixes # (issue) ## Type of change - [ ] Bug fix (non-...
diff --git a/.mockery.yaml b/.mockery.yaml index cfff59dde..bddc591b6 100644 --- a/.mockery.yaml +++ b/.mockery.yaml @@ -5,6 +5,11 @@ mockname: "{{.InterfaceName}}" filename: "{{.MockName}}.go" outpkg: mocks packages: + github.com/vektra/mockery/v2/pkg/fixtures/buildtag/comment: + config: + all: True + ...
5
3
2
[{"id": "G0", "claim": "The `tag` config field is already used by the parser with a different format than the generated mock file would use, and this usage is undocumented.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "We need to double check wheth...
null
vektra__mockery__699
vektra/mockery
699
defect
8965d12fdca43889c6cc67f803dafb1cf47991a2
80c5909aa135c7496f69f4fbeee4d30d33262e94
fix expecter and void rolled varaidic
Description ------------- If ```yaml with-expecter: True unroll-variadic: False ``` and varaidic function doesn't return arguments then the wrong mock is generated. Example: ```golang // --- interface --- type ILogger interface { Infof(format string, a ...interface{}) } // --- mock --- func (_m *M...
diff --git a/mocks/github.com/vektra/mockery/v2/pkg/fixtures/ExpecterAndRolledVariadic.go b/mocks/github.com/vektra/mockery/v2/pkg/fixtures/ExpecterAndRolledVariadic.go index 1b9e3c520..201243a24 100644 --- a/mocks/github.com/vektra/mockery/v2/pkg/fixtures/ExpecterAndRolledVariadic.go +++ b/mocks/github.com/vektra/mock...
2
2
0
[{"id": "G0", "claim": "The generated mock code for rolled variadic expecter calls should not rely on the anonymous-function workaround; the reviewer would like the generator to emit straightforward if/else Called code (assigning tmpRet only when the method has return values), ideally via a new printTemplateBytes templ...
null
vektra__mockery__710
vektra/mockery
710
defect
72c48edaedf0e416e6f96fcd666ce07a9bb580ff
8b05a947964864093a71a6b6b811e6713aa965d2
Fix replace-type for different packages from the same source
Description ------------- When different packages that map to the same source package and mapped with replace-type, the package of the first one are used for all other packages. - Fixes #688 ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change w...
diff --git a/pkg/fixtures/example_project/fiz/fiz.go b/pkg/fixtures/example_project/fiz/fiz.go new file mode 100644 index 000000000..657a58823 --- /dev/null +++ b/pkg/fixtures/example_project/fiz/fiz.go @@ -0,0 +1,11 @@ +package fiz + +import ( + "github.com/vektra/mockery/v2/pkg/fixtures/example_project/fiz/fizi/fiz1"...
2
2
0
[{"id": "G0", "claim": "Add a short README.md to the example_project/fiz fixture package explaining what the package is testing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the fixture package and its types to something more descriptive ...
null
vektra__mockery__719
vektra/mockery
719
defect
f54eea9ef41b7852fb97b066457a483e19c933b8
4fd99094173c4b230735429806bf047d632941ef
Fixing mocks for interfaces where method returns function with variadic argument.
Description ------------- Adding a Variadic fixtures to handle signatures with that case - Fixes #707 and #431 - Fixing whitespace and format in yml ## Type of change - [X] Bug fix (non-breaking change which fixes an issue) Version of Golang used when building/testing: -------------------------------...
diff --git a/Taskfile.yml b/Taskfile.yml index b78e8955a..c53b8c712 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -13,12 +13,12 @@ tasks: - "**/*.go" cmds: - go fmt ./... - + mocks.remove: desc: remove all mock files cmds: - - find . -name '*_mock.go' | xargs rm - - rm -rf mock...
3
3
3
[{"id": "G0", "claim": "The fixture in pkg/fixtures/variadic.go does not exercise the original issue (#431): a method that returns a function one of whose arguments is variadic.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "renderTypeTuple applies the ...
null
vektra__mockery__750
vektra/mockery
750
defect
4854efd1ae4dfeb13e2462bc36e3a054ee672d09
93da8ee299e68cbd6a1a48deb46c5a238b0fd6c2
Add ability to replace type constraints
Description ------------- Adds a config option that can replace generic types with a concrete type. - Fixes #747 ## 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 cau...
diff --git a/.mockery.yaml b/.mockery.yaml index 2559bb86d..026c3d6f1 100644 --- a/.mockery.yaml +++ b/.mockery.yaml @@ -41,6 +41,10 @@ packages: config: with-expecter: True unroll-variadic: False + ReplaceGeneric: + config: + replace-generic: + TReplace: i...
5
5
2
[{"id": "G0", "claim": "The replace-generic parameter actually replaces any type, not just generics, so its name is semantically wrong and should be renamed (e.g. replace-param-type) or the existing replace-type feature should handle this.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intr...
null
vektra__mockery__835
vektra/mockery
835
defect
5a0ad1c590407ca694e155938e21875948bbd67c
b354a87eb6ae571cec8197ded2ddd62f6accf6c8
fix(generator): support nil returns when using interface typed params
Description ------------- - Types using generic typed interface params, should allow nil values on return. - Some test/example mocks haven't been regenerated recently, so 'task mock' removed and recreated mocks taking into account the yaml config and package movements, etc. - Fixes #513 ## Type of change ...
diff --git a/mocks/github.com/vektra/mockery/v2/pkg/fixtures/EmbeddedGet.go b/mocks/github.com/vektra/mockery/v2/pkg/fixtures/EmbeddedGet.go index a87f878ae..a913d1066 100644 --- a/mocks/github.com/vektra/mockery/v2/pkg/fixtures/EmbeddedGet.go +++ b/mocks/github.com/vektra/mockery/v2/pkg/fixtures/EmbeddedGet.go @@ -32,...
1
1
1
[{"id": "G0", "claim": "The new test in pkg/generator_test.go only does a simple text comparison of the generated output, which the reviewer says is not useful; instead run an actual test on the generated mock itself that supplies a nil return value and checks the nil interface comes back, and generate the mock in the ...
null
vektra__mockery__838
vektra/mockery
838
defect
5a0ad1c590407ca694e155938e21875948bbd67c
4192ae1689aebdad51155b2b6b553ec1b3d18813
Fix(recursive): use packages.Load support for recursive search instea…
Description ------------- Related Issue: #636 This Pull Request attempts to implement a better recursive behavior for mockery. Instead of giving an error when no Go files are present, we lookup using `packages.Load` and ignore packages with no goFiles. Shifts sub-package lookup responsibility to `packages.Lo...
diff --git a/pkg/config/config.go b/pkg/config/config.go index 66a3b72b9..7695a0479 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -6,7 +6,6 @@ import ( "errors" "fmt" "os" - "path/filepath" "reflect" "regexp" "strings" @@ -542,128 +541,26 @@ func shouldExcludeModule(ctx context.Context, ro...
4
1
1
[{"id": "G0", "claim": "Recursive package discovery may not work when the package exists in a remote git repository rather than on local disk.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The recursive config option may not be needed at all, since u...
null
vektra__mockery__857
vektra/mockery
857
defect
3a3fb6e01f3ec5ba8903a925414aae058b317a1c
267dbdfe67d79c9a46cd76513734ec5e71ce80f4
Make the parser accept index list expressions
Description ------------- Interfaces defined as instantiation of generic interfaces with more than one type parameter ([example](https://github.com/volmedo/mockery/blob/267dbdfe67d79c9a46cd76513734ec5e71ce80f4/pkg/fixtures/index_list_expression.go#L7)) are described as `*ast.IndexListExpr` by Go's AST library. T...
diff --git a/mocks/github.com/vektra/mockery/v2/pkg/fixtures/GenericMultipleTypes_mock.go b/mocks/github.com/vektra/mockery/v2/pkg/fixtures/GenericMultipleTypes_mock.go new file mode 100644 index 000000000..54ae5f102 --- /dev/null +++ b/mocks/github.com/vektra/mockery/v2/pkg/fixtures/GenericMultipleTypes_mock.go @@ -0,...
2
1
0
[{"id": "G0", "claim": "Change the tests to follow the type_alias pattern: create a subpackage in the fixtures directory holding the interface, update .mockery.yaml to place the mocks in that directory, and add the tests there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
vektra__mockery__940
vektra/mockery
940
defect
325bff2a1e4f63d3d1ef37620b4127f5d462c03c
103f702b7d55c05bd13c9ee4dd25a60a9d31cac3
fix: include-auto-generated option to work with multi-line comment
Description ------------- This further improves the fix made in https://github.com/vektra/mockery/pull/928. That version of the fix didn't work for generated files with multi-line comment (e.g. sqlc). Additionally it runs mockery in the e2e test. - Fixes #939 ## Type of change - [x] Bug fix (non-br...
diff --git a/e2e/test_disable_include_auto_generated.sh b/e2e/test_disable_include_auto_generated.sh index 444b557d..e720c756 100755 --- a/e2e/test_disable_include_auto_generated.sh +++ b/e2e/test_disable_include_auto_generated.sh @@ -1,6 +1,9 @@ #!/bin/bash # This checks for issue #920, that fixes "include-auto-gene...
1
1
1
[{"id": "G0", "claim": "Leave autoGeneratedRegex anchored as it was and instead loop over each ast.Comment in the comment group, running the regex against each individual comment rather than loosening the regex to match the whole group text.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in...
null
velas__velas-chain__104
velas/velas-chain
104
defect
09d4ef0b75a277dfa24c8d3438129fd83602d9a6
7a5123fe9d3d144c9ca08765dd38d4009643b176
Fixup some testnet bugs
1. Fix evm-state processing. 2. Add evm program logging. 3. Add possibility to fixup ledger time.
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 80d7f024dc..4910dc8008 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,7 +2,7 @@ name: Build on: workflow_dispatch: push: - branches: [develop] + branches: [develop, testbuild] jobs: dock...
3
2
0
[{"id": "G0", "claim": "The Peer struct should use named fields or not be public instead of a public tuple of three unnamed fields.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new trace in EvmState::commit should read \"state before commit\" rathe...
null
velas__velas-chain__106
velas/velas-chain
106
defect
1bbd1990d4164eaf2c4b9a0b90e457c56647d3ff
8c384912d6728635133c2f5b9b55dc30ced473bf
Fix rpc error handling and windows build
Fix evm-bridge rpc error proxy. Fix windows build, and make linux build in ci, run without AVX512
diff --git a/.travis.yml b/.travis.yml index e36e875501..58fc052588 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ branches: only: - master - - test + - testbuild - /^v\d+\.\d+/ notifications: @@ -51,6 +51,8 @@ jobs: - <<: *release-artifacts name: "Linux release artifacts"...
5
1
0
[{"id": "G0", "claim": "The binding for `original_err` in the RpcError match should not use an underscore prefix, since the prefix convention signals an unused variable.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The from_client_error helper s...
null
velas__velas-chain__176
velas/velas-chain
176
defect
530aeeea8f2a1089fddad081c27e66478ca04bde
2499821e6eb4584e4a5168f396329d0e1fdf59fb
Number of RPC improvements.
- Fix authorized transaction signature (R contain evm address of account, S contain 0x1). - Add evm transaction hash to the logs. - Add parsing for evm instructions.
diff --git a/Cargo.lock b/Cargo.lock index c63e519c0f..525bb0a45b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6658,11 +6658,14 @@ dependencies = [ "base64 0.12.3", "bincode", "bs58", + "evm-rpc", + "evm-state", "lazy_static 1.4.0", "serde", "serde_derive", "serde_json", "solana-account-decoder", + "sol...
9
7
0
[{"id": "G0", "claim": "The call `.transaction_execute_unsinged(alice.secret.to_address(), create_tx,false, noop_precompile)` is not rustfmt-formatted (missing space after comma, bad indentation) and should be reformatted.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "...
null
velas__velas-chain__255
velas/velas-chain
255
defect
7d1f18833cee508c2016e3eb7b0142a4462004b8
f4785640e3e98ae3134aa7e530eccebafa140dae
Implement evm-state purging and archive evm state in separate directory
- Bump snapshot to 1.5.0 - On load purge evm-state if snapshot was old version. - Use gc to cleanup old evm state. - On demand save state into seperate archive folder.
diff --git a/Cargo.lock b/Cargo.lock index 9462521eaa..0e427c695b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2957,8 +2957,7 @@ dependencies = [ [[package]] name = "librocksdb-sys" version = "6.20.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c309a9d2470844aceb9a4a098cf5286154d20...
4
3
1
[{"id": "G0", "claim": "The AccountsPackagePre/AccountsPackage should carry a RootGuard instead of the newly added `bank: Arc<Bank>` field that the test fills with `bank: bank.clone()`.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pre-existing meth...
null
velas__velas-chain__287
velas/velas-chain
287
defect
f66dad800a4d71c1c5c3f465f91b5acfac10ea64
277f9bf4b85196cafdfd7a1a0d84edb81245e860
Purge blockstore evm data
Implement purging of evm blockstore data Add Block header index by slot to be able to purge evm headers using slot range.
diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index bd11bf18b3..1e1ac176ab 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -159,6 +159,7 @@ pub struct Blockstore { evm_blocks_cf: LedgerColumn<cf::EvmBlockHeader>, evm_transactions_cf: LedgerColumn<cf::EvmTransactionRe...
3
3
2
[{"id": "G0", "claim": "The stray `//` appended to the column struct declarations (e.g. `pub struct SlotMeta;//`) has no explained purpose and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The patch excluding the evm column f...
null
velas__velas-chain__401
velas/velas-chain
401
defect
6b37f618d2e7294060a3c6dbda971652e1d6c4e7
7ab5a2199c4ca76974390ba118c47b9cf5982a21
Feature batch time limit
Fix ledger archive generation for macos Add middleware to limit batch execution time Add test
diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index 0faa85ef80..c2c433288c 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -4083,6 +4083,7 @@ pub fn create_new_ledger( drop(blockstore); let archive_path = ledger_path.join(DEFAULT_GENESIS_ARCHIVE); + #[cfg(not(ta...
14
12
2
[{"id": "G0", "claim": "The macOS tar flag \"--no-mac-metadata\" is a strange way to disable mac metadata and a rust crate for tar files might be preferable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The batch timer should also be updated when the c...
null
vendurehq__vendure__3582
vendurehq/vendure
3,582
defect
56c6cb5e479b48b039cac664d02ebc74ea7a6af8
10224feca87e1b6877326d2f8978db6a3f70be74
feat(core): Add support for deprecating custom fields with @deprecated directive
# Add support for deprecating custom fields with @deprecated annotation ## Summary This PR adds support for marking custom fields as deprecated using the `@deprecated` GraphQL directive. This feature enables smooth API evolution by allowing developers to mark fields for future removal while providing clear migrat...
diff --git a/packages/core/src/api/config/__snapshots__/graphql-custom-fields.spec.ts.snap b/packages/core/src/api/config/__snapshots__/graphql-custom-fields.spec.ts.snap index bb91d908c8..021a7cc939 100644 --- a/packages/core/src/api/config/__snapshots__/graphql-custom-fields.spec.ts.snap +++ b/packages/core/src/api/c...
3
3
2
[{"id": "G0", "claim": "The @since tag on the new deprecated field config property says 3.1.0 but should say 3.4.0, the version that will actually ship the feature.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The space before the deprecation di...
null
vendurehq__vendure__3590
vendurehq/vendure
3,590
defect
56c6cb5e479b48b039cac664d02ebc74ea7a6af8
dbfef77cc34fbcfd694b30e748c0e4db86d85b1f
perf(job-queue-plugin): Optimize list query for BullMQJobQueuePlugin
# Description The current implementation for listing jobs in the BullMQJobQueuePlugin is very inefficient, which can cause resource issues on projects with hundreds of thousands of jobs. The reason is that in order to filter on job queue name (e.g. "update-search-index"), the current Lua script loads _all_ jobs i...
diff --git a/packages/dev-server/test-plugins/job-queue-stress-test/job-queue-stress-test.plugin.ts b/packages/dev-server/test-plugins/job-queue-stress-test/job-queue-stress-test.plugin.ts new file mode 100644 index 0000000000..84cb9fa3f1 --- /dev/null +++ b/packages/dev-server/test-plugins/job-queue-stress-test/job-qu...
5
3
0
[{"id": "G0", "claim": "The hardcoded state string lists are reused blindly in the event listeners and job migration and should be moved to a shared enum so that the second argument of updateJobIndex is typesafe (and the get-jobs-by-type script could use it as well).", "category": "maintainability", "verdict": "support...
null
vendurehq__vendure__3834
vendurehq/vendure
3,834
defect
a0df5bed093bb07ac818689d8bc4a990d11c88ea
ae0329e67d5da978e0c6987ec6a92937aaeb6a35
feat(dashboard): Implement meta title based on breadcrumb
# Description Uses the existing breadcrumb data from the route loaders to set the page meta title correctly <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Browser tab title now updates dynamically from page breadcrumbs (e.g., “Page • Vendu...
diff --git a/packages/dashboard/index.html b/packages/dashboard/index.html index f67a573ac2..46107c4dbf 100644 --- a/packages/dashboard/index.html +++ b/packages/dashboard/index.html @@ -1,15 +1,14 @@ <!doctype html> <html lang="en"> - <head> - <meta charset="UTF-8" /> - <link rel="icon" type="image/...
4
1
1
[{"id": "G0", "claim": "The array branch assigns the last breadcrumb entry directly instead of stringifying it, so React element or component crumbs can become \"[object Object]\" or empty page titles; run renderNodeAsString on the array's last element too.", "category": "correctness", "verdict": "supported", "priority...
null
vendurehq__vendure__3872
vendurehq/vendure
3,872
defect
8a76d944e80c07504ebe8a5a2fa1a806c27a4896
1578c1f98befccba5f3ef3b971fa9311ab98d105
feat(dashboard): New CLI schema command
# Description This PR introduces a new `npx vendure schema` command that allows generation of schema files for graphql tooling. It also includes several fixes and improvements to the CLI. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - New CL...
diff --git a/packages/cli/src/commands/add/codegen/add-codegen.ts b/packages/cli/src/commands/add/codegen/add-codegen.ts index 261a5395bd..df6c1a8d55 100644 --- a/packages/cli/src/commands/add/codegen/add-codegen.ts +++ b/packages/cli/src/commands/add/codegen/add-codegen.ts @@ -34,7 +34,7 @@ export async function addCo...
6
4
3
[{"id": "G0", "claim": "typePaths is always set to the admin API glob, so --api shop still loads the admin schema files and produces the wrong schema; pick the correct constant based on apiType before calling getFinalVendureSchema.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introdu...
null