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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
statelyai__xstate__5467 | statelyai/xstate | 5,467 | defect | dbfe25dd9dd1148baf5003b061bd59566595a3e2 | 3a370a951a1aedff35aff1d101c15e38d5adb4f7 | [@xstate/store] Add wildcard support for store.on('*', ...) | Add wildcard `'*'` support for `store.on('*', …)` to listen to all emitted events. The handler receives the union of all emitted event types.
```ts
const store = createStore({
context: { count: 0 },
emits: {
increased: (_: { upBy: number }) => {},
decreased: (_: { downBy: number }) => {}
},
on... | diff --git a/.changeset/bright-walls-sniff.md b/.changeset/bright-walls-sniff.md
new file mode 100644
index 0000000000..ef566cc7b8
--- /dev/null
+++ b/.changeset/bright-walls-sniff.md
@@ -0,0 +1,27 @@
+---
+'@xstate/store': minor
+---
+
+Add wildcard `'*'` support for `store.on('*', …)` to listen to all emitted events.... | 3 | 3 | 3 | [{"id": "G0", "claim": "The `on` method's handler should be typed the way the core types it (the wildcard case yielding the full emitted union) instead of the `Compute<TEmitted & { type: TEmittedType }>` form this PR adds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
statelyai__xstate__5493 | statelyai/xstate | 5,493 | defect | 4363fff4975ffb0403bb4a7eeca76e8ee30d5e8a | 2aa482c6e46d7c8aba46389aaffe3c97e7a5f064 | [core] Add `filterEvents` to graph traversal |
Add a `filterEvents` option to `xstate/graph` traversal helpers and
`createTestModel(...)` to control which events should be explored from each
state.
This makes it possible to opt into enabled-only traversal for machine snapshots,
such as when you only want to explore events that currently pass guards:
```t... | diff --git a/.changeset/new-worlds-relate.md b/.changeset/new-worlds-relate.md
new file mode 100644
index 0000000000..4cd4bd01b6
--- /dev/null
+++ b/.changeset/new-worlds-relate.md
@@ -0,0 +1,20 @@
+---
+'xstate': minor
+---
+
+Add a `filterEvents` option to `xstate/graph` traversal helpers and
+`createTestModel(...)` ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `filterEvents` callback parameter should be named `snapshot` instead of `state` for naming consistency with `TSnapshot`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
statelyai__xstate__907 | statelyai/xstate | 907 | defect | 7a918ac24de81ffc11cc48a7cc9578cf26337621 | ebb07ec9e48af44deebf95ff0923274740e4d89e | @xstate/fsm: add types to assign() | This PR fixes #762 by providing strong types to `assign()`. | diff --git a/.changeset/forty-news-wash.md b/.changeset/forty-news-wash.md
new file mode 100644
index 0000000000..83a3995c5e
--- /dev/null
+++ b/.changeset/forty-news-wash.md
@@ -0,0 +1,5 @@
+---
+'@xstate/fsm': minor
+---
+
+The `assign()` action creator is now strongly-typed, and takes the context and event types as ... | 2 | 2 | 1 | [{"id": "G0", "claim": "There is a type error in packages/xstate-fsm/test/fsm.test.ts that is reported by CI.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The inline (context, event) => void signatures in the Action union and in ActionObject.exec ... | null |
statespace-tech__statespace__127 | statespace-tech/statespace | 127 | defect | 1dadb0d0a98ac84368aa19b2f54b09ed4ad366c4 | ccf9e1c4dc5f47380f036dba6022ddace028bcc5 | feat: inject query params into statespace serve eval env | - add `merge_eval_env` to `statespace-tool-runtime::eval` so untrusted query params are filtered and trusted env values win on key collisions
- pass GET query params through `statespace-server` markdown handlers into component eval execution
- add integration coverage for real `statespace serve` behavior: query param i... | diff --git a/binaries/statespace-cli/tests/serve_query_env_integration.rs b/binaries/statespace-cli/tests/serve_query_env_integration.rs
new file mode 100644
index 0000000..c939124
--- /dev/null
+++ b/binaries/statespace-cli/tests/serve_query_env_integration.rs
@@ -0,0 +1,139 @@
+use std::path::{Path, PathBuf};
+use st... | 3 | 3 | 3 | [{"id": "G0", "claim": "Avoid the free-port race in the integration test harness: pick_free_port binds port 0 only to discover a candidate and then drops the listener before the child server binds it, so on a busy CI runner another process can take the port and make these tests intermittently fail; prefer letting the s... | null |
statespace-tech__statespace__133 | statespace-tech/statespace | 133 | defect | 518f3f416d27b197f02d7de854e358cfad97bff6 | 73b05e72c8a1a8e5146a44323e757dfea8941144 | refactor(cli): consolidate config-backed auth and remove secrets command | ## Summary
- Removes the `statespace secrets` command and related modules
- Uses a single `config.toml` for persisted CLI auth/session data under `[auth]` and `[profile]`
- Adds a global `--config` that's wired through auth resolution, gateway client setup, `serve`, and SSH setup, etc.
- Keeps `serve` env overrides... | diff --git a/binaries/statespace-cli/src/args.rs b/binaries/statespace-cli/src/args.rs
index 8005f34..39a25a1 100644
--- a/binaries/statespace-cli/src/args.rs
+++ b/binaries/statespace-cli/src/args.rs
@@ -19,6 +19,10 @@ pub(crate) struct Cli {
#[arg(long, global = true, env = "STATESPACE_GATEWAY_URL", hide = true)... | 7 | 7 | 5 | [{"id": "G0", "claim": "The auth command functions were modified to accept and use config_path, but no unit tests were added or updated to verify login, logout, status and token use the provided config path.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
statespace-tech__statespace__136 | statespace-tech/statespace | 136 | defect | ac31bfe01f6bbf8d257e8b179431666a40c85189 | b737d5a633e1aa4cb0269696d2d8cb32108eee04 | Serve: harden env validation and $VAR expansion | ## Summary
- preserve literal `$VAR` tool specs while preventing placeholder-driven trusted env expansion
- add shared structural env validation for request env, query env, and serve config env
- improve local serve PATH parity and missing-binary error clarity
<!-- This is an auto-generated comment: release notes b... | diff --git a/Cargo.lock b/Cargo.lock
index 92bdafa..06b635e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1773,6 +1773,7 @@ dependencies = [
"serde_json",
"sha2",
"statespace-server",
+ "statespace-tool-runtime",
"tempfile",
"thiserror 2.0.18",
"tokio",
diff --git a/binaries/statespace-cli/Cargo.toml b/binar... | 8 | 6 | 4 | [{"id": "G0", "claim": "command_exists_in_path only tests is_file(), so a non-executable file in PATH suppresses the missing-tool warning even though spawning it will still fail.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new integration tes... | null |
statespace-tech__statespace__158 | statespace-tech/statespace | 158 | defect | ce5278203a592ce92a46982fc7483765538e7226 | 698ee8c6ef0e28bdf22afe9a0a859a571c464c05 | feat: add structured logging to `serve` for better local DX | ## Summary
## Changes
## Testing
- [ ] `cargo fmt --all -- --check`
- [ ] `cargo clippy --workspace --all-targets -- -D warnings`
- [ ] `cargo test --workspace`
## Checklist
- [ ] Docs updated (if needed)
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRa... | diff --git a/binaries/statespace-cli/src/commands/serve.rs b/binaries/statespace-cli/src/commands/serve.rs
index ea91ac1..6010655 100644
--- a/binaries/statespace-cli/src/commands/serve.rs
+++ b/binaries/statespace-cli/src/commands/serve.rs
@@ -51,15 +51,19 @@ pub(crate) async fn run_serve(args: ServeArgs, config_path:... | 9 | 7 | 3 | [{"id": "G0", "claim": "Building the startup URL with format!(\"http://{}:{}\") breaks for IPv6 addresses because the IP is not wrapped in brackets, producing an invalid URL; use SocketAddr formatting instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
static-frame__static-frame__1076 | static-frame/static-frame | 1,076 | defect | d561ee05d686269507ca160a314c35b908d11232 | ab1479db8df8db979ff8c7b36b7edbb6707527d1 | Fixes bug & adds test | Closes #1073 | diff --git a/static_frame/core/loc_map.py b/static_frame/core/loc_map.py
index bf0e15d4c..45e37bde4 100644
--- a/static_frame/core/loc_map.py
+++ b/static_frame/core/loc_map.py
@@ -462,12 +462,11 @@ def indexers_to_iloc(
@staticmethod
def encode(indexers: TNDArrayAny, bit_offset_encoders: TNDArrayAny) -> TNDA... | 2 | 1 | 0 | [{"id": "G0", "claim": "The test_intersect1d property test fails on a hypothesis falsifying example (arrays [NaT datetime64[D]] and [None object]); the author notes it also fails on default (d561ee0) and is therefore unrelated to this PR.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_... | null |
static-frame__static-frame__1077 | static-frame/static-frame | 1,077 | defect | d561ee05d686269507ca160a314c35b908d11232 | d12afbe6f6643ff900be254115ca0dfc6cadd647 | Removes an incorrect branch - updates a line to support datetime64 | Closes #1072 | diff --git a/static_frame/core/type_blocks.py b/static_frame/core/type_blocks.py
index c51663fa9..9a0b9f000 100644
--- a/static_frame/core/type_blocks.py
+++ b/static_frame/core/type_blocks.py
@@ -1447,7 +1447,7 @@ def ufunc_axis_skipna(
span = b.shape[1]
end = pos + span
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added condition might be simplifiable to just `kind != 'O'` instead of `kind in DTYPE_NUMERICABLE_KINDS or kind == 'M' or kind == 'm'`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The change to `out[pos] = func(array... | null |
static-frame__static-frame__1103 | static-frame/static-frame | 1,103 | defect | f0a381544c839d3cdffcfb6783fd5e567cd9cdc9 | 21fb0cc7e7a524b2ea67dc6ba306317de30cbf0c | Optimize memory overhead of writing stores using single process | Closes #1101
1. Rearchitects _StoreZip.write to have two helper methods, `_write_multi_process` and `_write_single_process`
2. Make it so that `_write_single_process` has no intermediate in-memory loading, and instead writes straight to disk | diff --git a/static_frame/core/store_zip.py b/static_frame/core/store_zip.py
index 6dd27476c..f696583f6 100644
--- a/static_frame/core/store_zip.py
+++ b/static_frame/core/store_zip.py
@@ -1,9 +1,11 @@
from __future__ import annotations
+import io
import os
import pickle
import zipfile
-from io import BytesIO, St... | 7 | 6 | 0 | [{"id": "G0", "claim": "The TypeAlias annotation change should also be made in generic_aliases.py, with the aliases duplicated in store_zip.py imported from there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`f` is probably not the right para... | null |
static-frame__static-frame__1128 | static-frame/static-frame | 1,128 | defect | 277211f06effe3c927bab5ae363c425855bd02fe | ea52194b3f8bc8e0e4f32b20a016363c4f2c00d4 | 1110/store config remove container type arg | Connected to: #1110
Reduce `StoreZip` complexity by always returning a Frame. | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index 4ad08b18f..c6e374fd1 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -2948,11 +2948,8 @@ def from_xlsx(
trim_nadir=trim_nadir,
),
)
- f: tp.Self = st.read( # type: ignore... | 1 | 1 | 0 | [{"id": "G0", "claim": "Maybe frame_to_frame() can be extended to take a name arg so that in from_xlsx and from_sqlite the conversion and rename are combined into one more efficient call instead of converting and then renaming separately.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "... | null |
static-frame__static-frame__1135 | static-frame/static-frame | 1,135 | defect | 657d4dbb4fc58265268c3e6f10f5a548402f18a4 | 0b7ac0fcb6da73e4c8241dca8f670e641dd0edf9 | Update hypothesis to 6.151.9, fix flaky property tests, fix NumPy 2.x compatibility in TypeBlocks | - [x] Update `hypothesis==6.92.1` to `hypothesis==6.151.9` in all requirements files
- [x] Fix `test_intersect1d`: add signed/unsigned integer guard; fix NaT guard per-array
- [x] Fix `test_setdiff1d`: add NaT guard per-array
- [x] Fix `test_union1d`: add NaT guard; restrict float/complex length check to float/complex ... | diff --git a/requirements-dev-3_11.txt b/requirements-dev-3_11.txt
index 1e12e7353..bab1d81b3 100644
--- a/requirements-dev-3_11.txt
+++ b/requirements-dev-3_11.txt
@@ -4,7 +4,7 @@ typing-extensions>=4.12.0
pytest==8.3.2
pytest-cov==5.0.0
-hypothesis==6.92.1
+hypothesis==6.151.9
scipy==1.10.0
nox==2025.10.16
ipy... | 3 | 2 | 1 | [{"id": "G0", "claim": "Are we sure that replacing the scalar assignment with `func(array=b, axis=axis)[0]` in ufunc_axis_skipna is compatible with NumPy versions before 2.0?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The assertion guard on line... | null |
static-frame__static-frame__1136 | static-frame/static-frame | 1,136 | defect | 657d4dbb4fc58265268c3e6f10f5a548402f18a4 | c6395786e22f50617c586931e9e3f4705600638e | Uniform definition of _IMMUTABLE_CONSTRUCTOR, _MUTABLE_CONSTRUCTOR | Before this change, some Index subclass had both properly set through subclassing, while other did not. This makes al properly defined and adds a test to ensure compliance. | diff --git a/static_frame/core/index.py b/static_frame/core/index.py
index 7dfc14a37..fd9988e4c 100644
--- a/static_frame/core/index.py
+++ b/static_frame/core/index.py
@@ -1930,6 +1930,7 @@ class IndexGO(_IndexGOMixin, Index[TVDtype]):
# update class attr on Index after class initialziation
Index._MUTABLE_CONSTRUC... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new test relies on IndexBase.__subclasses__() and therefore only validates subclasses imported before the test runs; if the module is run in isolation, classes like IndexHierarchy may not be checked, so the concrete Index types should be imported explicitly to make the subclass set complete ... | null |
static-frame__static-frame__1137 | static-frame/static-frame | 1,137 | defect | af39c7c698e37b0bbf8fc0cb145561cd6fb1f683 | 816c7a29d08dae848ad35c2d60269b5bfd01f5f1 | refactor: decompose `matmul()` into typed per-combination helpers | - [x] Review code review feedback requesting changes to constructor arguments
- [x] Line 674: Remove default arguments `index=None, own_index=False`
- [x] Line 686: Change to `own_index=rhs._columns.STATIC`
- [x] Line 698: Remove default arguments `index=None, own_index=False`
- [x] Line 713: Change to `own_index=rhs.... | diff --git a/static_frame/core/container_util.py b/static_frame/core/container_util.py
index b9d04c944..f58d4524e 100644
--- a/static_frame/core/container_util.py
+++ b/static_frame/core/container_util.py
@@ -644,6 +644,116 @@ def index_constructor_empty(index: TIndexInitOrAuto) -> bool:
return False
+# ------... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add tests in test_container_util.py covering the exception-raising lines 657, 681 and 737 of container_util.py.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The helpers must not pass own_index/own_columns=True for an Index owne... | null |
static-frame__static-frame__1145 | static-frame/static-frame | 1,145 | defect | 5017b31e12874eaff6cceb80678b8496735a38fa | 94cad621ecdf43e92e2aebd80ce938f5567ba24c | Add `BusMapping` and `Bus.via_mapping` property | - [x] Explore codebase to understand SeriesMapping and Bus structure
- [x] Create `static_frame/core/bus_mapping.py` with `BusMapping` class
- [x] Add `via_mapping` property to `Bus` class in `bus.py`
- [x] Export `BusMapping` from `static_frame/__init__.py`
- [x] Create `static_frame/test/unit/test_bus_mapping.py` wit... | diff --git a/static_frame/__init__.py b/static_frame/__init__.py
index 8da905472..5e74e3192 100644
--- a/static_frame/__init__.py
+++ b/static_frame/__init__.py
@@ -10,6 +10,7 @@
from static_frame.core.archive_npy import NPZ as NPZ
from static_frame.core.batch import Batch as Batch
from static_frame.core.bus import ... | 5 | 5 | 3 | [{"id": "G0", "claim": "BusMappingItemsView.__contains__ should test Frame equality instead of object identity, returning frame.equals(value, compare_name=True, compare_dtype=True, compare_class=True).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
static-frame__static-frame__1147 | static-frame/static-frame | 1,147 | defect | ff46fae631752aaea2aa17bb66e7ae2ee4bd7912 | 8e63e2bb7ec8d55c76662d8ddbc94ad94e633f43 | Add `__reversed__` to all mapping types and implement `Yarn.via_mapping` | `SeriesMapping`, `MFCMapping` (formerly `BusMapping`), and their view classes did not implement `__reversed__`, making them incompatible with the standard `reversed()` protocol despite `dict` views supporting it. `Yarn` also lacked a `via_mapping` interface entirely.
## Changes
### `__reversed__` support
- **`SeriesM... | diff --git a/static_frame/__init__.py b/static_frame/__init__.py
index 41aaa83a0..c5f02f438 100644
--- a/static_frame/__init__.py
+++ b/static_frame/__init__.py
@@ -10,7 +10,8 @@
from static_frame.core.archive_npy import NPZ as NPZ
from static_frame.core.batch import Batch as Batch
from static_frame.core.bus import ... | 4 | 4 | 2 | [{"id": "G0", "claim": "Now that bus_mapping.py and BusMapping handle both Bus and Yarn, rename the module to mfc_mapping.py, the class to MFCMapping, and the internal attribute to _mfc.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Do not ke... | null |
static-frame__static-frame__128 | static-frame/static-frame | 128 | defect | c4c180737a9b092f2659cac7554d00823368c498 | ece0d6cc5a6088ccf9cf06d5251e2995e81e74e8 | isin performance refactor | Resolves Issue #9
1) Static Frame's current behavior for `isin` calls is to use numpy's built-in `isin` method. This presents a performance issue, as numpy is not optimized to work with object arrays. It results in a time complexity of O(n^2).
2) This PR resolves this by adding a branch within the `isin` logic whi... | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index db5819ea8..b9d2d6d8e 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -44,6 +44,7 @@
from static_frame.core.util import name_filter
from static_frame.core.util import _gen_skip_middle
from static_frame.core.util imp... | 4 | 3 | 2 | [{"id": "G0", "claim": "The import of iterable_to_array in static_frame/core/index_hierarchy.py is no longer used and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Frame.clip docstring must keep the '{}' placeholder becau... | null |
static-frame__static-frame__137 | static-frame/static-frame | 137 | defect | 6c77b4fb49c429ab4ef1c1b066001e08fb58e331 | 8437bc8f88c5389cfb5e51bf5253f3b070adf8f4 | Allow for empty iterable to be used in from_concat and from_concat_items | Addresses issue #135
Adds ability to use Series/Frame's `from_concat` and `from_concat_items` with empty iterables.
Adds unit tests to demonstrate the changed behavior. | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index 841d48629..37f9be721 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -187,13 +187,23 @@ def from_concat(cls,
# axis_series = (0 if axis is 1 else 1)
frames = [f if isinstance(f, Frame) else f.to_fram... | 5 | 5 | 0 | [{"id": "G0", "claim": "In Series.from_concat, write the empty-iterable guard as a truthiness check (`if not len(array_values):`) instead of `if len(array_values) == 0:`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In Series.from_concat and S... | null |
static-frame__static-frame__246 | static-frame/static-frame | 246 | defect | dfab15e0a6d7ec48ca09ff7cbb56815ac4c5f0a9 | 730742cf75ff92f0d79d3d20bdfa9154eead1866 | 116/msgpack | Everything is working now, though it's a little inelegant.
Notes:
* If the magic character hack is acceptable for handling arbitrary data types, a better magic character is needed.
* I used getattr(sys.modules[foo], bar) to replace eval in the magic character hack, but maybe there's a better way? | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index 02aa4ecfd..de66f00e6 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -1393,6 +1393,51 @@ def from_json(cls,
consolidate_blocks=consolidate_blocks
)
+ @classmethod
+ @doc_injec... | 14 | 14 | 8 | [{"id": "G0", "claim": "Encoding each unsupported element as its string form in the cast_msgpack fallback is inefficient, and the reviewer asks whether there is another option and whether the original types (e.g. an Index of integers) come back on import.", "category": "performance", "verdict": "supported", "priority":... | null |
static-frame__static-frame__298 | static-frame/static-frame | 298 | defect | edfad7b2554cb988ba2f5f67a7725344b75832b9 | e0006b73c8e4c24dc58b4bf8475080ad220b0773 | Adds `columns_select` argument to `Frame.from_sql` PR | Closes #297. | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index 57d81b535..cbe28e666 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -5,6 +5,7 @@
from itertools import chain
from itertools import product
from copy import deepcopy
+from operator import itemgetter
import csv
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Use columns.loc_to_iloc for the column selection instead of the np.where/isin workaround, and derive the reduced columns from its result with iloc, now that IndexHierarchy.loc_to_iloc supports Boolean arrays.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
static-frame__static-frame__312 | static-frame/static-frame | 312 | defect | 29ce60384be66fdb538bfccc6853546cacb19d8d | 95d14605a6bc1d8843ad0aa39511224a5c88b12e | Adds multi-process support for reading in multiple labels in StoreZipParquet | I'm leaving this as a draft for now, because there's a lot more to do.
Also, I am holding off on writing unit tests until I get confidence the approach I'm taking aligns with SF code styles/standards. | diff --git a/static_frame/core/store.py b/static_frame/core/store.py
index a4798ea7a..2d4f623a6 100644
--- a/static_frame/core/store.py
+++ b/static_frame/core/store.py
@@ -35,6 +35,10 @@ class StoreConfig(metaclass=InterfaceMeta):
merge_hierarchical_labels: bool
label_encoder: tp.Optional[tp.Callable[[tp.Has... | 5 | 5 | 0 | [{"id": "G0", "claim": "StoreConfigMap does not need the is_empty method, since the default config is used anyway when no per-frame configs are provided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The single_config branch in read_many is unneeded bec... | null |
static-frame__static-frame__339 | static-frame/static-frame | 339 | defect | 8571487c704365d08dddec5f692e6330db0d5811 | c68b41eb1ac3412f46ad063b3eb7236ac87cb588 | Allow unsetting index when columns are IH | Currently we raise `ErrorInitFrame('cannot unset index with a columns with depth greater than 1')` if you try to `unset_index` on a frame with hierarchical columns. I run into this occasionally, and would like to propose this change, which allows you to unset index with a column hierarchy so long as you provide names w... | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index f810f0dfd..250b0f9a6 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -5054,14 +5054,14 @@ def blocks() -> tp.Iterator[np.ndarray]:
else:
block_gen = blocks
- if self._columns.depth > 1:
... | 5 | 3 | 3 | [{"id": "G0", "claim": "The columns IndexHierarchy should be built with the same composed index constructors already used by the Index (index_constructors from the levels' index_types), and blocks() should yield the underlying index blocks instead of consolidating into a single array.", "category": "correctness", "verd... | null |
static-frame__static-frame__368 | static-frame/static-frame | 368 | defect | bef9d7a734fe4c9b5d5468067973cba32d84dd63 | 21577f6edfaab8becab95626cd687465b4f0366e | Quilt Repr & Error Handling Improvements | This is a PR to address QoL improvements for Quilt creation errors, as well as providing a frame-like repr to the class.
The main error improvements are as follows:
1. `from_frames`, where frames do not have unique names.
Current behavior
```python
>>> import frame_fixtures as ff
>>> f1 = ff.parse("s(3,3)... | diff --git a/mypy.ini b/mypy.ini
index 14d815135..46eaa0566 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -7,6 +7,7 @@ warn_unreachable = True
warn_return_any = True
warn_unused_configs = True
+disable_error_code = arg-type, misc
[mypy-hypothesis.strategies]
implicit_reexport = True
@@ -29,9 +30,5 @@ ignore_errors = ... | 8 | 5 | 1 | [{"id": "G0", "claim": "At this point the opposite axis is not reindexing in any form (even just for ordering), though it might be wanted in the future.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a coverage exclusion (#pragma: no cover) to the TY... | null |
static-frame__static-frame__397 | static-frame/static-frame | 397 | defect | 08dc6a07cfc26aa6381b845f3841a8251d0d1217 | 732cc9af418a8082874ff2ba538017a0c4c8b5ce | Adds relabel_at_depth to IndexHierarchy. | Closes #56 | diff --git a/static_frame/core/index_hierarchy.py b/static_frame/core/index_hierarchy.py
index 2b2615293..4a400d530 100644
--- a/static_frame/core/index_hierarchy.py
+++ b/static_frame/core/index_hierarchy.py
@@ -2,6 +2,7 @@
from itertools import chain
from ast import literal_eval
from copy import deepcopy
+from ope... | 7 | 7 | 2 | [{"id": "G0", "claim": "Pre-fetching the `get` method outside the loop, as done before this change, offers a performance advantage over resolving it for each array in a potentially large loop, so the prefetch should be restored.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
static-frame__static-frame__398 | static-frame/static-frame | 398 | defect | 08dc6a07cfc26aa6381b845f3841a8251d0d1217 | 3d7554c4d7700ffcec96619ba847ceadf06582ba | Adds a weak_cache to underlying store containers. | Closes #306
This turned out to be a relatively simple implementation, as the only use case of max_persist is when there exists an underlying store.
And it just so happens, that the logic for reading in from a store existing only in the base class, effectively meaning only a little bit of extra logic was needing ... | diff --git a/static_frame/core/bus.py b/static_frame/core/bus.py
index 6989a20ee..83815f13b 100644
--- a/static_frame/core/bus.py
+++ b/static_frame/core/bus.py
@@ -1,4 +1,3 @@
-
import typing as tp
import numpy as np
@@ -228,7 +227,6 @@ def _from_store(cls,
own_data=True,
)
-
... | 5 | 5 | 3 | [{"id": "G0", "claim": "The not_in_cache sentinel should live at class or module level (e.g. in util.py) rather than as a local object created per call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cache-hit branch should `continue` to the... | null |
static-frame__static-frame__576 | static-frame/static-frame | 576 | defect | 655c23fe1273bc0cd12e16d7581d7a74e14b9a20 | 1656c204eedd7df63d4de1915a5377691d41d42f | 540/from index items support ih | Closes #540 | diff --git a/static_frame/core/index_hierarchy.py b/static_frame/core/index_hierarchy.py
index a682d2026..daa4bf796 100644
--- a/static_frame/core/index_hierarchy.py
+++ b/static_frame/core/index_hierarchy.py
@@ -593,19 +593,12 @@ def from_labels(cls: tp.Type[IH],
)
@classmethod
- def from_in... | 5 | 5 | 1 | [{"id": "G0", "claim": "The from_index_items docstring should state that while each pair's value can be an Index or an IndexHierarchy, across all pairs the depths must be the same.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "outer_level built b... | null |
static-frame__static-frame__578 | static-frame/static-frame | 578 | defect | 655c23fe1273bc0cd12e16d7581d7a74e14b9a20 | 976d7e65c1daf39d585d9f52597aec0cc9c1d68c | 577/ih more interfaces | Closes #577
A few changes
1. Adds a repr for `sf.HLoc`
2. Removes `IndexHierarchy._get_unique_labels_in_occurence_order`
3. Adds `IndexHierarchy.index_at_depth`
4. Adds `IndexHierarchy.indexer_at_depth`
5. Adds `order_by_occurrence` parameter to `.unique(...)` calls for Index objects | diff --git a/static_frame/core/hloc.py b/static_frame/core/hloc.py
index 264c1e674..6c139938a 100644
--- a/static_frame/core/hloc.py
+++ b/static_frame/core/hloc.py
@@ -1,12 +1,14 @@
import typing as tp
from static_frame.core.util import GetItemKeyType
+from static_frame.core.util import NULL_SLICE
+from static_fra... | 8 | 8 | 2 | [{"id": "G0", "claim": "The reviewer notes the EMPTY_TUPLE constant was removed some time ago and asks the author to confirm it actually still exists on master, since the PR imports it.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer que... | null |
static-frame__static-frame__68 | static-frame/static-frame | 68 | defect | 5387bfe83427b3542876d3a4811213e6c5f95ed2 | be9288b9d45628c523b4b06e8b237e5cd1048873 | Series.__reversed__ / Frame.__reversed__ | A continuation of PR https://github.com/InvestmentSystems/static-frame/pull/66 (responding to Issue https://github.com/InvestmentSystems/static-frame/issues/62), the following implements` __reversed__` for both a Series and a Frame and provides unit tests. | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index 25292115a8..d2c538d47d 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -1975,6 +1975,12 @@ def _iter_element_loc(self):
#---------------------------------------------------------------------------
# transfor... | 2 | 2 | 1 | [{"id": "G0", "claim": "Frame.__reversed__ (and likewise Series.__reversed__) should be annotated as returning tp.Iterator[tp.Hashable] instead of tp.Iterable[np.ndarray], since reversed iteration yields keys.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
static-frame__static-frame__754 | static-frame/static-frame | 754 | defect | 85016881e51cdc4cdc7320b6c25da3f5c8236ffa | 0fdbaa38082f0f8d857a26c90a5537f35450e991 | Fixes two minor loc_to_iloc bugs. | Issue #610
First bug:
- An edge case handling for lists of tuples as the input key was accidentally doing `any` instead of `all`. This was incorrect, as a list of tuples requires they all be tuples and have the exact same length
Second bug:
- A poorly implemented `HierarchicalLocMap` method to examine i... | diff --git a/doc/source/examples.txt b/doc/source/examples.txt
index 3564765a9..2707325c5 100644
--- a/doc/source/examples.txt
+++ b/doc/source/examples.txt
@@ -215,11 +215,11 @@ c
#start_Series-memory
>>> s = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s.memory
- L Lu LM LMu LMD LMDu R Ru ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The inline comment '# Raises the following RuntimeError' on the loc_to_iloc call in the new test appears stale now that the call succeeds, and the author should clean it up.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
static-frame__static-frame__767 | static-frame/static-frame | 767 | defect | 07764ae03172f7d23efcb81d996407070cf0d035 | 20bd78f342cee319d10bd325947fc18d8e68c27d | Adds corrected & specialized function for quilt construction when component frames have index hierarchies on axis of selection | Fixes #766 | diff --git a/static_frame/core/axis_map.py b/static_frame/core/axis_map.py
index 32df11c5e..8233ccc68 100644
--- a/static_frame/core/axis_map.py
+++ b/static_frame/core/axis_map.py
@@ -4,9 +4,11 @@
from static_frame.core.bus import Bus
from static_frame.core.exception import AxisInvalid
+from static_frame.core.fram... | 6 | 5 | 1 | [{"id": "G0", "claim": "The bus-iteration loop in _bus_to_hierarchy_inner_hierarchies should be a plain for loop over get_next(items_iter) instead of while True with try/except StopIteration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In Ind... | null |
static-frame__static-frame__977 | static-frame/static-frame | 977 | defect | 454d8d5446b71eceb57935b5ea9ba4efb051210e | 060801cdc927f767cd23016bbd39efccfd5bf23e | Adds support for IH when using (i)loc_min(max) | @flexatone What are your thoughts on this solution to #937 ?
It's marked as a draft now because I didn't want to spend time implementing all the necessary unit tests if you reject the approach outright
If you like it, then I'll get it properly PR ready | diff --git a/static_frame/core/frame.py b/static_frame/core/frame.py
index 33844e1ca..e652763af 100644
--- a/static_frame/core/frame.py
+++ b/static_frame/core/frame.py
@@ -7378,6 +7378,35 @@ def sample(self,
#---------------------------------------------------------------------------
+ def _container_from_... | 2 | 2 | 1 | [{"id": "G0", "claim": "The mixed return type (a Frame when the index is an IndexHierarchy, a Series when it is 1D) is too surprising; the PR could instead always return a Series.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hand-rolled np.fromiter... | null |
static-web-server__static-web-server__131 | static-web-server/static-web-server | 131 | defect | 6840d0fc21a4f5d742c6435987b40ecdf00f5d01 | c4e1716e76e7098e48ed2a840568072c4e6b07c4 | New flag to make trailing slash redirect optional | ## Description
This PR implements a new flag `redirect-trailing-slash` that is true by default resulting in no changed behavior in default settings. Setting it to false will disable the redirection to a directory path with a trailing slash (implemented in #74).
I also updated the docs to mention the new flag.
##... | diff --git a/docker/public/subdir/index.html b/docker/public/subdir/index.html
new file mode 100644
index 00000000..4d07d94f
--- /dev/null
+++ b/docker/public/subdir/index.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <title>Subdir Page</title>
+ <link rel="stylesheet"... | 5 | 5 | 1 | [{"id": "G0", "claim": "Move the added docker/public/subdir/index.html fixture to docker/public/assets/index.html (dropping the subdir directory) and change its title to 'Assets Page'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In docs/conte... | null |
static-web-server__static-web-server__144 | static-web-server/static-web-server | 144 | defect | 48f9458fed9a9d4f4b0f7a20bd6cdf5df51a5258 | be3dbac72ec0c74fc69b137ed01197db68ff9e5f | CORS expose headers option | When allowing headers, also expose the headers for remote scripts to use.
## Description
Allowed headers in CORS are also allowed to be used by remote scripts.
## Related Issue
Can't find any
## Motivation and Context
https://emscripten.org/docs/api_reference/Filesystem-API.html#FS.createLazyFile depe... | diff --git a/docs/man/static-web-server.1.rst b/docs/man/static-web-server.1.rst
index cb5ea523..cee00df1 100644
--- a/docs/man/static-web-server.1.rst
+++ b/docs/man/static-web-server.1.rst
@@ -39,10 +39,13 @@ Gzip, Deflate or Brotli compression on demand determined by the Accept-Encoding
Server TOML configuration fi... | 2 | 2 | 0 | [{"id": "G0", "claim": "Instead of exposing headers by default, let users decide to expose headers when they want via a flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The CORS feature documentation page is missing an entry for the new expose-head... | null |
static-web-server__static-web-server__328 | static-web-server/static-web-server | 328 | defect | e64076c6c73fe697fa695f95c7046adbd63bfe36 | 0c9649a91f262a2b8d84fefd81c370117b6ffe23 | Experimental in-memory files cache with eviction policy support | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes but try to be as concise as possible -->
This PR adds support for in-memory cache functionality on-read to SWS via an advanced configuration entry.
The feature also supports expiration policies su... | diff --git a/Cargo.lock b/Cargo.lock
index 7b8d48a0..9e17eb0d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1434,6 +1434,12 @@ dependencies = [
"lazy_static",
]
+[[package]]
+name = "sieve-cache"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51bf3a9dccf2c079bf1465... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new mem_cache::init call in src/server.rs does not compile: it references values max_size, file_max_size and file_ttl that cannot be found in this scope and passes mismatched types to the Option<MemCacheOpts> parameter.", "category": "correctness", "verdict": "supported", "priority": "P0", "... | null |
static-web-server__static-web-server__339 | static-web-server/static-web-server | 339 | defect | 69bfdd492e258da04bb5d9896a43722c12bf4560 | e2c680b3ddf328be98741e000bf23be29e88a46b | Fix build error when using specific or no Cargo compression features | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes but try to be as concise as possible -->
This PR fixes a build issue when SWS is used as a dependency and the Cargo `compression` feature is disabled completely or just some specific compression feat... | diff --git a/src/compression.rs b/src/compression.rs
index 0c509ff8..50cee2dc 100644
--- a/src/compression.rs
+++ b/src/compression.rs
@@ -8,13 +8,13 @@
// Part of the file is borrowed from <https://github.com/seanmonstar/warp/pull/513>*
-#[cfg(feature = "compression-brotli")]
+#[cfg(any(feature = "compression", f... | 2 | 1 | 0 | [{"id": "G0", "claim": "The cfg feature lists added by this pull request check for `compression-deflate` twice in src/server.rs and in a bunch of other places, and the duplicate should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "W... | null |
static-web-server__static-web-server__361 | static-web-server/static-web-server | 361 | defect | cfd13908f6b6ccaa9db543bf642ea5f2d989b3dc | 38d61808fc9fefe1f00aa78e0e5d857403818de3 | Fix Accept-Encoding handling to work correctly if only two compression schemes are available | ## Description
This fixes `compression::get_preferred_encoding()` to consider all encodings listed in `Accept-Encoding` header and not only the top one. While at it, I replaced dynamic construction of available encodings on each call by a constant.
## Motivation and Context
As things are right now, `compression::g... | diff --git a/src/compression.rs b/src/compression.rs
index 71101349..640bfc32 100644
--- a/src/compression.rs
+++ b/src/compression.rs
@@ -64,6 +64,18 @@ pub const TEXT_MIME_TYPES: [&str; 24] = [
"application/wasm",
];
+/// List of encodings that can be handled given enabled features.
+const AVAILABLE_ENCODINGS... | 3 | 3 | 0 | [{"id": "G0", "claim": "The trace log message misspells the header name as 'accept-ecoding' and should read 'accept-encoding'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add `zstd` to the header value list in the `from_static` test just for ... | null |
static-web-server__static-web-server__371 | static-web-server/static-web-server | 371 | defect | 5b5ea983636f62b2af4685b0e309eb2cd7f09b49 | 1a668478099e5dd211609b6bdadb19abb1fdb276 | Don't percent-encode unreserved characters for directory listing links |
<!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes but try to be as concise as possible -->
Previously we were percent-encoding the whole file and directory entry links when listing a directory regardless if those characters can be allowed to be in ... | diff --git a/src/directory_listing.rs b/src/directory_listing.rs
index 7fadbe08..586f42fb 100644
--- a/src/directory_listing.rs
+++ b/src/directory_listing.rs
@@ -13,7 +13,7 @@ use headers::{ContentLength, ContentType, HeaderMapExt};
use humansize::FormatSize;
use hyper::{Body, Method, Response, StatusCode};
use mim... | 4 | 4 | 3 | [{"id": "G0", "claim": "The new non-Unicode error path is wrong (there is no string to log) and the proper solution is to keep OsString, use to_string_lossy for display, and percent-encode entry_name.as_encoded_bytes().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
static-web-server__static-web-server__381 | static-web-server/static-web-server | 381 | defect | d2eaa7464895b3cc3b485120ebe813788eaf1f82 | be7784da838d15e7a11f21304ce8ecb888e0c0ca | New compression level option support | ## Description
This introduces a new `--compression-level=fastest|best|default` setting with `default` being the default. While `default` is meant to be algorithm-specific, currently level 4 seems to be the perfect sweet spot for all supported algorithms (see benchmarking results below).
This increases the data siz... | diff --git a/docs/content/configuration/command-line-arguments.md b/docs/content/configuration/command-line-arguments.md
index eb9c3412..b9d3766e 100644
--- a/docs/content/configuration/command-line-arguments.md
+++ b/docs/content/configuration/command-line-arguments.md
@@ -16,83 +16,260 @@ Usage: static-web-server [OP... | 7 | 7 | 3 | [{"id": "G0", "claim": "The `default` compression level needs to be redefined as a meaningful performance/file-size tradeoff (around level 4) for all algorithms and actually be used as the default setting.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
static-web-server__static-web-server__606 | static-web-server/static-web-server | 606 | defect | beacdbc0233dbc6e9333c286527d406e2f4c2f18 | d41dd336e4c4f2e2bb3499ec5bbacba67c51fdf8 | Prevent hidden root path to be ignored by `--ignore-hidden-files` feature | <!--- Provide a general summary of your changes in the Title above -->
<!--- Read the docs/PULL_REQUESTS.md -->
## Description
<!--- Describe your changes but try to be as concise as possible -->
This PR fixes an issue where SWS returned 404 when serving from a hidden directory (i.e., `/.root`) together with th... | diff --git a/src/static_files.rs b/src/static_files.rs
index e7b6fbe9..0ccc0e83 100644
--- a/src/static_files.rs
+++ b/src/static_files.rs
@@ -180,7 +180,8 @@ pub async fn handle(opts: &HandleOpts<'_>) -> Result<StaticFileResponse, StatusC
)?;
// Check for a hidden file/directory (dotfile) and ignore it if ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a simple dot file (e.g. `.dot`) fixture in the `tests/fixtures/.hidden-root` directory and write a unit test for it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Assert the response, status, header, and body in the new hidd... | null |
statiolake__proconio-rs__34 | statiolake/proconio-rs | 34 | defect | de900ca84261b0f361233e2ebf58740c5c734610 | f47f2770eabe6372efac7cd1154614d28dee91d9 | Add interactive_input | Fix #26
I added a macro input_interactive! and a static variable explicitly specified to use `LineSource`.
Also, I have confirmed that input_interactive! works correctly with a AtCoder's interactive problem (https://atcoder.jp/contests/abc244/tasks/abc244_c).
using input! is TLE.
https://atcoder.jp/contests/a... | diff --git a/proconio/src/lib.rs b/proconio/src/lib.rs
index 376e493..dca0ea2 100644
--- a/proconio/src/lib.rs
+++ b/proconio/src/lib.rs
@@ -512,7 +512,7 @@ pub use proconio_derive::*;
pub mod marker;
pub mod source;
-use crate::source::auto::AutoSource;
+use crate::source::{auto::AutoSource, line::LineSource};
us... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new tests/interactive.rs is not registered in proconio/Cargo.toml and probably needs a [[test]] entry with name = \"interactive\" and harness = false.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Having separate stdin s... | null |
statiolake__proconio-rs__62 | statiolake/proconio-rs | 62 | defect | c28798e9a7cc35dc619bc2567206b8cd0baad30a | 72be3495a6af02cc46ca602e6a0627e2c7677bd1 | Update MSRV to 1.89.0 to match AtCoder | ## Update Rust version to 1.89.0 for AtCoder compatibility
- [x] Update CI workflow (.github/workflows/ci.yml) to use Rust 1.89.0 instead of 1.70.0
- [x] Update rust-version in proconio/Cargo.toml from 1.70.0 to 1.89.0
- [x] Update UI test version check in proconio/tests/ui.rs from 1.70.0 to 1.89.0
- [x] Update relate... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a211c30..06710cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
channel:
- - 1.70.0
+ - 1.89.0
- stable
- beta
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Since the MSRV is now 1.89.0, check whether the `backtrace = \"=0.3.74\"` pin is still needed and, if the build passes without it, remove it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
statnett__image-scanner-operator__1035 | statnett/image-scanner-operator | 1,035 | defect | bb2f5358c64d9e5ca6f29680480a65de9052bfa6 | 5071e82436a01bee4ccd604075dca42e72e778c5 | refactor: use Severity enum in API | I got frustrated over the constant mapping between the `Severity` enum (`iota int`) and the string representation the API, so I attempted to fix this with custom JSON marshaling. And it seems to work! 🎉 | diff --git a/api/stas/v1alpha1/containerimagescan_types.go b/api/stas/v1alpha1/containerimagescan_types.go
index b70f5ba44..46a1ccb96 100644
--- a/api/stas/v1alpha1/containerimagescan_types.go
+++ b/api/stas/v1alpha1/containerimagescan_types.go
@@ -27,8 +27,7 @@ type Workload struct {
type ScanConfig struct {
// Min... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Severity-only sort should also sort on the other fields (package name, installed version, vulnerability ID) as the removed BySeverity ordering did.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
statnett__image-scanner-operator__110 | statnett/image-scanner-operator | 110 | defect | e494eedb596ffcf94b37dcdcd6209f2e00fa8d87 | baca0846aca2f141ac471d853c7995d73cb2a04d | feat(admin)!: kustomizeable configmap for scan job default configuration | Close #109
BREAKING CHANGE: This moves the configuration of Trivy server from the operator configmap to the new configmap for scan jobs. Any admins overriding the default value will is required to update their configuration. | diff --git a/cmd/main.go b/cmd/main.go
index 94f6a3231..98c8372cd 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -184,7 +184,6 @@ func bindConfig(cfg operator.Config, fs *flag.FlagSet) {
flag.String("scan-job-service-account", "default", "The service account used to run scan jobs.")
flag.String("scan-workload-resour... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request raises the scan job's hardcoded ActiveDeadlineSeconds from one hour to a hardcoded two hours without justification; the thread asks why and proposes setting it back to one hour, since the configured scan-job timeout (now coming from an unvalidated configmap) must not exceed it, ... | null |
statnett__image-scanner-operator__1287 | statnett/image-scanner-operator | 1,287 | defect | bd9475df89d97c912237a25b3b42d4c64bd3b288 | 8a5c10afa4e354553a56d1f19346fc7a0f9e1304 | feat: make scan job lifetime configurable | We want to keep scan jobs around shorter than the current default of two hours. This PR surfaces the Kubernetes Job `TTLSecondsAfterFinished` field. | diff --git a/internal/config/config.go b/internal/config/config.go
index 98f84cf55..9e3d20248 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -8,17 +8,18 @@ import (
)
type Config struct {
- MetricsLabels []string `mapstructure:"cis-metrics-labels"`
- ScanInterval ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The scan-job-ttl-seconds-after-finished flag usage string should say \"Value must be positive\" instead of \"Value must be > 0\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ScanJobTTLSecondsAfterFinished should be decla... | null |
statnett__image-scanner-operator__1587 | statnett/image-scanner-operator | 1,587 | defect | 73aa757080788cd39c6f6f930715b332a977bb1b | be5a3c51492bcdc232e8aa028ccf93b4869f6ac4 | fix: add missing logging to metrics collector | Metrics are not working in 0.16.0, and we should log errors anyway. So before trying to fix the metrics issue, I want to add logging. Ref. this PR. | diff --git a/go.mod b/go.mod
index fad38a43a..affa93670 100644
--- a/go.mod
+++ b/go.mod
@@ -4,6 +4,7 @@ go 1.25.0
require (
github.com/distribution/reference v0.6.0
+ github.com/go-logr/logr v1.4.3
github.com/go-viper/mapstructure/v2 v2.4.0
github.com/gohugoio/hashstructure v0.6.0
github.com/onsi/ginkgo/v2 ... | 4 | 3 | 1 | [{"id": "G0", "claim": "c.Log is used without guaranteeing it has been initialized, which depending on the logr version and configuration can lead to a runtime failure; set a safe default logger (e.g., logr.Discard()) in SetupWithManager or at the start of Collect when c.Log has no sink.", "category": "correctness", "v... | null |
statnett__image-scanner-operator__234 | statnett/image-scanner-operator | 234 | defect | 6de136f0c9c87aeb6dabb0ffbc51f3c3404090c5 | d8d9fa74f8f05a5db900bd83bfd1bdcba516a392 | fix: ensure job pod is deleted when deleting scan job | We must ensure scan job pod is deleted when deleting scan job. Currently the pod seems to be orphaned causing panic on next reconcile. Also adding a safety-guard if this happens again, to get a meaningful error - instead of the current panic. | diff --git a/internal/controller/stas/scan_job_controller.go b/internal/controller/stas/scan_job_controller.go
index b509d2359..111bb2c9b 100644
--- a/internal/controller/stas/scan_job_controller.go
+++ b/internal/controller/stas/scan_job_controller.go
@@ -120,6 +120,9 @@ func (r *ScanJobReconciler) reconcileBackOffJob... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the golang-lint issue on the new nil-check block in reconcileBackOffJobPod by applying the attached suggestion, which adds a blank line after the block's closing brace.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
statnett__image-scanner-operator__43 | statnett/image-scanner-operator | 43 | defect | 11b724e0c7cc3bbd24aeb09bc0a59530d4b8dcf5 | 9493462f150ad8a65570923b547d3b7474e41e03 | ci(lint): rework golangci-lint config + code | Closes #6 | diff --git a/.golangci.yml b/.golangci.yml
index c441133ce..d5eeee85d 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -4,18 +4,20 @@ linters:
- errname
- errorlint
- goconst
-# - gocritic
-# - godot
+ - gocritic
+ - godot
- gofmt
- goimports
-# - gosec
+ - gosec
- prede... | 1 | 1 | 0 | [{"id": "G0", "claim": "The wsl settings block added at the end of .golangci.yml leaves the file without a trailing newline; the reviewer suggests adding a newline (an empty line after 'allow-trailing-comment: true').", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
statnett__image-scanner-operator__861 | statnett/image-scanner-operator | 861 | defect | a187e4da82b8437da01389f96e4bee750ba59c4d | a52e7d1813435b4ccd4c87b3a2a98e938b97fa56 | chore: filter scan job details to avoid api-server resource overflow | I suggest creating scan jobs that don't use `minSeverity` and `ignoreUnfixed` as input to the scan job, but instead apply these filters to the results of the scan job. This should improve the handling of "overflow" better, and avoid the ping-pong between controllers.
This is the first step, improving the handling of... | diff --git a/.gitignore b/.gitignore
index 9a6960fff..213bc3f4b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,5 @@ Dockerfile.cross
*.swo
*~
-# Kuttl
-/kuttl-report.xml
-/kubeconfig
+# Chainsaw
+/chainsaw-report.xml
diff --git a/Makefile b/Makefile
index af8e01f26..9abdd618b 100644
--- a/Makefile
+++ b/Make... | 6 | 4 | 1 | [{"id": "G0", "claim": "The chainsaw-related Makefile change should be done in a separate PR instead of this one.", "category": "process", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider doing the `string` -> `SeverityName` change in a separate refactor PR rather than her... | null |
statnett__image-scanner-operator__978 | statnett/image-scanner-operator | 978 | defect | d9a4f14ff35de776a4b6cd9b588013b05117ffe5 | 6eb46762bd78769d6ed141f05b17d9ed19c1fcb4 | feat: reconcile cis with all owning pods | Simplifies migration to server side apply. Can now safely overwrite (not merge) container image scan owner referances | diff --git a/internal/controller/stas/indexer.go b/internal/controller/stas/indexer.go
index 8fb8532b7..09b9e8679 100644
--- a/internal/controller/stas/indexer.go
+++ b/internal/controller/stas/indexer.go
@@ -4,6 +4,8 @@ import (
"context"
batchv1 "k8s.io/api/batch/v1"
+ corev1 "k8s.io/api/core/v1"
+ metav1 "k8s.... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use a composite (logical) key of containerName and image in the index map instead of the imageScanName function, to avoid misusing imageScanName.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the helper more functional and r... | null |
statrs-dev__statrs__271 | statrs-dev/statrs | 271 | defect | c428c751873cee90f2dffa421e97d2ab954ad9fa | f91ba9c28329fa323868829a40e2ac2faf2db0a7 | Fix several rustdoc warnings | See `cargo doc` for the warnings. Just some trivial things, like URLs broken across multiple lines and empty code blocks. | diff --git a/src/distribution/hypergeometric.rs b/src/distribution/hypergeometric.rs
index 800e03fe..43bc30ca 100644
--- a/src/distribution/hypergeometric.rs
+++ b/src/distribution/hypergeometric.rs
@@ -9,11 +9,7 @@ use std::f64;
/// Implements the
/// [Hypergeometric](http://en.wikipedia.org/wiki/Hypergeometric_dist... | 1 | 1 | 0 | [{"id": "G0", "claim": "Doc references should be italicized with markdown underscores instead of HTML tags like <i>/<div>, since the code style already uses backticks for code.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
statsd__statsd__231 | statsd/statsd | 231 | defect | 3392f73e5852cf820a666b28ce8887f57cd24d00 | 3f1a116cff9fda7b0333e380505f02eb43d9d7b9 | fix internal stats when deleteCounters: true | fix for: https://github.com/etsy/statsd/issues/230
merges cleanly and all unit tests pass with current master, as well as my prefixStats patch and my suffix patch.
| diff --git a/stats.js b/stats.js
index 2f9c1cef..3e59fa95 100644
--- a/stats.js
+++ b/stats.js
@@ -61,9 +61,29 @@ function flushMetrics() {
backendEvents.once('flush', function clear_metrics(ts, metrics) {
// Clear the counters
conf.deleteCounters = conf.deleteCounters || false;
+
+ // handle the case w... | 2 | 1 | 0 | [{"id": "G0", "claim": "Remove the commented-out debug logging lines from the new deleteCounters branch in stats.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer creating an array of statsd-native counters near the top of stats.js and a... | null |
statsd__statsd__382 | statsd/statsd | 382 | defect | bad366cd438cd59b2064dd03ff3d415fc7db0c4b | 63fb16ceeaa278305f3dee09b66db166a31e6ab2 | lib/helpers: fixed is_valid_packet() | This commit introduces following changes:
- Be liberal in what you recieve - do not rely on regexps for packet
parsing but instead accept anything that can be parsed by JavaScript
as a number e.g: +1e-17, -0511, 0xDEADbeef, etc
- Accept both positive and negative counters with explicit / implicit
sign
- Provides ... | diff --git a/lib/helpers.js b/lib/helpers.js
index 8f51696f..c0a8afff 100644
--- a/lib/helpers.js
+++ b/lib/helpers.js
@@ -7,33 +7,37 @@
*
* Returns true for a valid packet and false otherwise
*/
+function isNumber(str) {
+ return Boolean(str && !isNaN(str));
+}
+
function is_valid_packet(fields) {
// ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The 'ms' case in is_valid_packet should use Number(fields[0]) >= 0 instead of Number(fields[0]) > 0, so a timer value of 0 is treated as valid, and that case should get a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
statsd__statsd__448 | statsd/statsd | 448 | defect | 303451b14a780263c84ff20489082ae43bafaae8 | 987116d22cb87b322ad20b168343a0f3ec1d7758 | Add optional TCP interface | This extends statsd to support pluggable server modules on which it's able to receive metrics, using a mechanism similar to the pluggable backends.
I converted the existing UDP listener to a server module, and added a TCP server to address issue #204
Currently only a single server module is loaded, but it would be a... | diff --git a/README.md b/README.md
index 9f14b964..74b129ca 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@ StatsD [![Build Status][travis-ci_status_img]][travis-ci_statsd]
======
A network daemon that runs on the [Node.js][node] platform and
-listens for statistics, like counters and timers, sent over [UDP]... | 2 | 1 | 0 | [{"id": "G0", "claim": "Document the parameters and return value of startServer in stats.js and consider moving the function into a servers/index.js module, since stats.js is overloaded.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rework the se... | null |
statsd__statsd__697 | statsd/statsd | 697 | defect | 56fc03a560c90d01be7bee34560baa8eaaa535df | 9d2c6f857646b49703561daaf8473064f806556b | Graphite tagged metrics support | This PR adds full support for tagged metrics, including sensible handling for suffixes by adding them to the end of the metric name, before any tags.
It also adds support for the "dogstatsd" input format, and if dogstatsd-style tags are specified adds them as graphite tags.
This fixes the deficiencies noted in #6... | diff --git a/backends/graphite.js b/backends/graphite.js
index de23a852..c88df814 100644
--- a/backends/graphite.js
+++ b/backends/graphite.js
@@ -14,7 +14,7 @@
* graphitePort: Port for the graphite text collector. Defaults to 2003.
* graphitePicklePort: Port for the graphite pickle collector. Defaults to 2004.... | 2 | 1 | 1 | [{"id": "G0", "claim": "stats.js should split the packet on the '|#' tag delimiter instead of a bare '#', i.e. the line should read `.split('|#');`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tagged packets are rejected as bad lines because the ... | null |
statsmodels__statsmodels__2552 | statsmodels/statsmodels | 2,552 | defect | baa4cb711474931ea31a2f70b153931ef1c6c9ff | 46f511aa5db09d362a3cd063137b63e4aeae3322 | Handle alpha=None case for plot_acf | See Issue #2366. At least this fixes the existing bug.
| diff --git a/statsmodels/graphics/tests/test_tsaplots.py b/statsmodels/graphics/tests/test_tsaplots.py
index c6ad0540a2c..29396c9cd3f 100644
--- a/statsmodels/graphics/tests/test_tsaplots.py
+++ b/statsmodels/graphics/tests/test_tsaplots.py
@@ -26,6 +26,7 @@ def test_plot_acf():
armaprocess = tsp.ArmaProcess(ar, m... | 3 | 2 | 1 | [{"id": "G0", "claim": "Subtracting confint.mean will be dangerous in case there is an asymmetric confidence interval, so plot_acf should subtract the provided acf_x estimate instead to get the half width of the confint.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
statsmodels__statsmodels__7950 | statsmodels/statsmodels | 7,950 | defect | 4f8c1982c437371dc63f309900e4dcde5c844159 | 6f7904867bfd6c96ae9647465d1eae6002354f52 | BUG: Correct condition number | Remove square root
closes #7938
- [X] closes #7938
- [X] tests added / passed.
- [X] code/documentation is well formatted.
- [X] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<deta... | diff --git a/statsmodels/compat/numpy.py b/statsmodels/compat/numpy.py
index 0b9e43e10a9..d8c844ac7e9 100644
--- a/statsmodels/compat/numpy.py
+++ b/statsmodels/compat/numpy.py
@@ -50,8 +50,8 @@
"np_new_unique",
]
-NP_LT_114 = parse(np.__version__) < Version("1.14")
-NP_LT_123 = parse(np.__version__) < Version(... | 2 | 1 | 0 | [{"id": "G0", "claim": "The condition_number docstring should describe the value as the ratio of the largest to smallest singular value of the exogenous variables (the usual definition for svd/pinv) rather than 'eigenvalue', with the sqrt of the eigenvalue ratio of x'x as the equivalent form.", "category": "documentati... | null |
statsmodels__statsmodels__8633 | statsmodels/statsmodels | 8,633 | defect | 74bd3d6af477d396c54c82e525837156ca1a7ada | 6f9aac0c85fdf8de9cb9b72676a001c591d36f77 | ENH/BUG: archimedean k_dim > 2, deriv inverse in generator transform | see #8631
pr will close bug, but maybe not add full extension to k_dim > 3
I will not implement k_dim > 4 for Frank and Gumbel for 0.14.
Main open question is how to vectorize the special functions. We need our own functions for polylog and sterling numbers and those are not vectorized.
Also, I'm not fixing ot... | diff --git a/statsmodels/distributions/copula/archimedean.py b/statsmodels/distributions/copula/archimedean.py
index 2bfbb63a37b..fc5ca86f615 100644
--- a/statsmodels/distributions/copula/archimedean.py
+++ b/statsmodels/distributions/copula/archimedean.py
@@ -80,41 +80,55 @@ def pdf(self, u, args=()):
args = ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request leaves commented-out code behind: the disabled `dim != 2` guard in GumbelCopula.cdf is commented out instead of deleted, which the code-scanning bot flags.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "S... | null |
statsmodels__statsmodels__8783 | statsmodels/statsmodels | 8,783 | defect | b1de8b79606f88e2c967a3df08838cbb47f77d6e | 82e1d024f02149e9a62f16216a730119374b2ebc | ENH: Plot cross-correlations and auto/cross-correlation matrix | - New function `plot_ccf` to plot cross-correlations by lag between two variables, analogous to `plot_acf`.
- New function `plot_accf` to plot a matrix of auto- and cross-correlation plots between several variables.
| diff --git a/statsmodels/graphics/tests/test_tsaplots.py b/statsmodels/graphics/tests/test_tsaplots.py
index e2555559768..4b05f3a3fb3 100644
--- a/statsmodels/graphics/tests/test_tsaplots.py
+++ b/statsmodels/graphics/tests/test_tsaplots.py
@@ -12,7 +12,9 @@
from statsmodels.datasets import elnino, macrodata
from sta... | 9 | 7 | 2 | [{"id": "G0", "claim": "It may make sense to add model-independent utilities to calculate and plot ACF/CCF in statsmodels.tsa.stattools/statsmodels.graphics.tsaplots and reimplement VARResults.plot_acorr() on top of them, so the functionality does not diverge.", "category": "design", "verdict": "opposed", "priority": "... | null |
statsmodels__statsmodels__8889 | statsmodels/statsmodels | 8,889 | defect | 77cb066320391ffed4196a32491ddca28e8c9122 | 9bb0cbc11d98f7e8ddf0212640d44d6fcf2bf69c | ENH: add get_margeff to GLM | closes #4751
see also #7341 mentions weights which are not supported here in GLM
adding margeff to GLM is largely copy-paste-adjust
unit tests compare GLM with discrete Logit, Probit and Poisson in `discrete/tests/test_sandwich_cov`
those comparisons do not include Negbin NB2
(could possibly be backported ... | diff --git a/statsmodels/discrete/tests/test_sandwich_cov.py b/statsmodels/discrete/tests/test_sandwich_cov.py
index 2d641207602..14d65ef0f1b 100644
--- a/statsmodels/discrete/tests/test_sandwich_cov.py
+++ b/statsmodels/discrete/tests/test_sandwich_cov.py
@@ -9,6 +9,8 @@
import os
import numpy as np
import pandas a... | 1 | 1 | 0 | [{"id": "G0", "claim": "The assignment to 'lin_pred' in GLM._derivative_exog is unnecessary because it is redefined before its value is used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
statsmodels__statsmodels__9130 | statsmodels/statsmodels | 9,130 | defect | e7974698fa97a0d55cc842e8f3a6e80d45ec4e79 | 5076ca5ae4c7f06d24a1fc418dfb9cf500d0675a | ENH: GLM models now save the names of input Pandas Series | Offset, exposure, freq_weights and var_weights have the name of the series saved on the model object. They can be accessed via the class properties.
Closes #9100
- [x] closes #9100
- [x] tests added / passed.
- [x] code/documentation is well formatted.
- [x] properly formatted commit message. See
[N... | diff --git a/statsmodels/genmod/generalized_linear_model.py b/statsmodels/genmod/generalized_linear_model.py
index 4617ad4bc18..a3369571b08 100644
--- a/statsmodels/genmod/generalized_linear_model.py
+++ b/statsmodels/genmod/generalized_linear_model.py
@@ -41,6 +41,7 @@
cached_data,
cached_value,
)
+from sta... | 1 | 1 | 1 | [{"id": "G0", "claim": "_as_array_with_name should take a default_name argument so callers can supply a meaningful string name (e.g. \"offset\" or \"exposure\") instead of the helper returning None when the object is not a named Series, because a string name is needed for the summary table.", "category": "design", "ver... | null |
statsmodels__statsmodels__9249 | statsmodels/statsmodels | 9,249 | defect | bc1899510adacebf1ec351e92a78b7421c17dbb0 | 23cd6b14115ba8d06016527f1e096133766403db | added "one-sided" alternative for proportion_confint | - [x] closes #9239
- [x] tests added / passed.
- [x] code/documentation is well formatted.
- [x] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
I added the 'side' parameter to... | diff --git a/statsmodels/stats/proportion.py b/statsmodels/stats/proportion.py
index f9901d80e8b..6e5fc5e1572 100644
--- a/statsmodels/stats/proportion.py
+++ b/statsmodels/stats/proportion.py
@@ -108,7 +108,7 @@ def _bisection_search_conservative(
return best_pt, best
-def proportion_confint(count, nobs, alph... | 5 | 5 | 3 | [{"id": "G0", "claim": "The new tests' expected numbers should be regression/reference values from another package (mainly R) rather than bare assert_almost_equal against earlier statsmodels output, with a # comment naming the source.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
statsmodels__statsmodels__9255 | statsmodels/statsmodels | 9,255 | defect | c828cabb13d38a827828845948aa6e14002193d7 | 6cfc25ee50bdfb43f2307ad705501587210e1e2d | ENH: add alternative option to confint_poisson | - [x] closes #9254
- [x] tests added / passed.
- [x] code/documentation is well formatted.
- [x] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
Added the 'alternative' option ... | diff --git a/statsmodels/stats/rates.py b/statsmodels/stats/rates.py
index dd6654c7f48..b36abe653ae 100644
--- a/statsmodels/stats/rates.py
+++ b/statsmodels/stats/rates.py
@@ -186,16 +186,13 @@ def test_poisson(count, nobs, value, method=None, alternative="two-sided",
return res
-def confint_poisson(count, ex... | 3 | 3 | 1 | [{"id": "G0", "claim": "In the confint_poisson docstring, delete only the second sentence ('The one-sided interval limits can be obtained by doubling alpha.') and leave the 'All current methods are central...' sentence in place.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
statsmodels__statsmodels__9389 | statsmodels/statsmodels | 9,389 | defect | c25e82eca3e2139f02842efc9fa00be7325d3b17 | e475ec49e05beb0d05d2aae7b8c3d62f38db5401 | feature/wilcoxon mann whitney sample size | - [x] related to #8382
- [x] tests added / passed.
- [x] code/documentation is well formatted.
- [x] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
**Notes**:
* It is e... | diff --git a/docs/source/stats.rst b/docs/source/stats.rst
index 98614363c15..fb56ef76beb 100644
--- a/docs/source/stats.rst
+++ b/docs/source/stats.rst
@@ -188,6 +188,7 @@ Non-Parametric Tests
rank_compare_2indep
rank_compare_2ordinal
+ rank_compare_sample_size
RankCompareResult
cohensd2problarger
... | 14 | 14 | 1 | [{"id": "G0", "claim": "The sample-size ratio parameter is confusing and inconsistent with other power functions; the signature should use `nobs_ratio` (with `nobs_ref` = `nobs_ratio` * `nobs_treat`) and compute `prop_reference` internally.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int... | null |
statsmodels__statsmodels__9407 | statsmodels/statsmodels | 9,407 | defect | f29be609729882446846a930bec1afbdc78a0d2b | bad0a9ba0d8318dbac76ece08a248f777c870e97 | ENH: more reliable casting of pandas data | - [X] closes #9205
- [X] closes #9206
- [X] tests added / passed.
- [X] code/documentation is well formatted.
- [X] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
**Notes*... | diff --git a/statsmodels/base/data.py b/statsmodels/base/data.py
index 61cada0b63f..8cbf5eb6e35 100644
--- a/statsmodels/base/data.py
+++ b/statsmodels/base/data.py
@@ -2,6 +2,7 @@
Base tools for handling various kinds of data structures, attaching metadata to
results, and doing data cleaning
"""
+
from __future__ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "ModelData.__init__ calls self._convert_endog_exog, which PandasData overrides, so the constructor's call may dispatch to the subclass implementation instead of the intended one.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim":... | null |
statsmodels__statsmodels__9498 | statsmodels/statsmodels | 9,498 | defect | 3de1101805cd86dbf4f3f2dc5a0dce8212e7ee5a | 5fe2b2dbee7eb186f831c104d12aa07b1a91b3d3 | Modify x13_arima_analysis to produce seasonality fit diagnostics | - [x] closes #xxxx
- [x] tests added / passed.
- [x] code/documentation is well formatted.
- [x] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
**Notes**:
* It is essent... | diff --git a/statsmodels/tsa/x13.py b/statsmodels/tsa/x13.py
index 009a4fd5256..5e3f2e417cc 100644
--- a/statsmodels/tsa/x13.py
+++ b/statsmodels/tsa/x13.py
@@ -14,6 +14,7 @@
import re
import subprocess
import tempfile
+import regex
from warnings import warn
import pandas as pd
@@ -367,6 +368,7 @@ def x13_arima_... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use truthiness testing (`if logdiagnostics:`) instead of `if logdiagnostics == True:` for the new diagnostics condition in x13_arima_analysis.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the `logdiagnostics` par... | null |
statsmodels__statsmodels__9550 | statsmodels/statsmodels | 9,550 | defect | d6db6fae75175cb0a996e1f985094811c9ee789a | c5b73686cf43920a08c6fb8685ac91629b35ef75 | Add optional raw spec parameter for x13_arima_analysis() | - [x] tests added / passed.
- [x] code/documentation is well formatted.
- [x] properly formatted commit message.
This commit adds an option to pass in a raw `.spec` file to the `x13_arima_analysis()` function, either as a path or as a string.
We needed a way to use more advanced configuration options for x1... | diff --git a/statsmodels/tsa/tests/test_x13.py b/statsmodels/tsa/tests/test_x13.py
index 8b78e824dba..68c061abdd7 100644
--- a/statsmodels/tsa/tests/test_x13.py
+++ b/statsmodels/tsa/tests/test_x13.py
@@ -3,6 +3,8 @@
import numpy as np
import pandas as pd
import pytest
+import tempfile
+import os
from statsmodels... | 8 | 7 | 4 | [{"id": "G0", "claim": "The non-rawspec spec-building path should be the default (primary) branch, since it is the path most invocations take.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Debug print statements must not remain in the final library code... | null |
statsmodels__statsmodels__9597 | statsmodels/statsmodels | 9,597 | defect | db5c350317864df375e8c66798b12e16ecf335b2 | 081c15e813696f01a199a67e2fe8b8eccd4c0747 | STY: Fix linting fails | - [ ] closes #xxxx
- [ ] tests added / passed.
- [ ] code/documentation is well formatted.
- [ ] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
**Notes**:
* It is essent... | diff --git a/statsmodels/tools/data.py b/statsmodels/tools/data.py
index 8b337d9b75d..6ea7c5a8c26 100644
--- a/statsmodels/tools/data.py
+++ b/statsmodels/tools/data.py
@@ -1,6 +1,7 @@
"""
Compatibility tools for various data structure inputs
"""
+
from statsmodels.compat.numpy import NP_LT_2
import numpy as np
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The 'import os' the pull request places at the top of statsmodels/tsa/tests/test_x13.py is not used anywhere in the file, so the PR still fails linting.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
statsmodels__statsmodels__9636 | statsmodels/statsmodels | 9,636 | defect | 686dcc48af8e3a17660674c3249484c083d2f9fa | db35dfd5883788c464e462fc447ed104908e409f | Fix 'add_trend' error message to correctly specify which columns are constant. | - [X] closes #9635
- [X] local tests passed with code below, not included as this is a minor change affecting output only.
- [X] code/documentation is well formatted.
- [X] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#... | diff --git a/statsmodels/tsa/tests/test_tsa_tools.py b/statsmodels/tsa/tests/test_tsa_tools.py
index 3d32e60d630..81016ade7b4 100644
--- a/statsmodels/tsa/tests/test_tsa_tools.py
+++ b/statsmodels/tsa/tests/test_tsa_tools.py
@@ -641,11 +641,17 @@ def test_duplicate_const(self):
has_constant="raise",
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The author should add or modify a test to make sure the corrected constant-column error message works correctly.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of the assert_raises/assert_equal pattern used here (and agai... | null |
statsmodels__statsmodels__9691 | statsmodels/statsmodels | 9,691 | defect | e1efaa5741df495ad6afeb4fc0867d3d87c93cfe | 309867bf9bf2f8f59303d39631470b202c8e0700 | ENH: Add no cross terms option to White's test for heteroscedasticity | This PR adds a `interaction_terms` parameter to the `het_white` function to allow users to choose whether to include interaction terms in White's heteroskedasticity test. This is useful since adding the cross terms consumes degrees of freedom. Additionally, White's heteroscedasticity test with cross terms can also be a... | diff --git a/statsmodels/stats/diagnostic.py b/statsmodels/stats/diagnostic.py
index 4181b2d8a38..5c9aaa79576 100644
--- a/statsmodels/stats/diagnostic.py
+++ b/statsmodels/stats/diagnostic.py
@@ -825,7 +825,7 @@ def het_breuschpagan(resid, exog_het, robust=True):
return lm, stats.chi2.sf(lm, nvars - 1), fval, fpv... | 8 | 6 | 3 | [{"id": "G0", "claim": "The expected-value tuples in the new test are missing commas at the end of their lines.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new function signature should have a space after the comma between parameters.", "cate... | null |
statsmodels__statsmodels__9716 | statsmodels/statsmodels | 9,716 | defect | 91892cc5bf86ad7ee9c0a1b4fa5ac6c4492f46e7 | 53243071c237c5cf6f6cabcc996f8573edf0dc7d | TST: run nonparametric tests in parallel on CI | - [ ] closes #xxxx
- [ ] tests added / passed.
- [ ] code/documentation is well formatted.
- [ ] properly formatted commit message. See
[NumPy's guide](https://docs.scipy.org/doc/numpy-1.15.1/dev/gitwash/development_workflow.html#writing-the-commit-message).
<details>
**Notes**:
* It is essent... | diff --git a/pyproject.toml b/pyproject.toml
index 2202dfa257d..fe1500c7302 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -71,6 +71,7 @@ test = [
# test
"pytest>=8.4.1,<9",
"pytest-randomly",
+ "pytest-run-parallel",
"pytest-xdist",
"pytest-cov",
"coverage[toml]",
diff --git a/req... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new 'Run tests (parallel)' CI step did not seem to run any tests in the CI run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Could the test use a RandomState instance here instead of the thread_unsafe marker?", "categor... | null |
statsmodels__statsmodels__9747 | statsmodels/statsmodels | 9,747 | defect | 681fe80221888e9d9c87e52515c51e354e890ae9 | 95d5f91d4294e4ca1af141242d2cfc3da691c621 | BUG: raise error for invalid endog input in emplike.DescStat | This PR adds basic input validation to emplike.DescStat to ensure that the input data (endog) is a non-empty 1D or 2D array.
Previously, scalar, empty, or higher-dimensional inputs could be silently reshaped or lead to unclear errors later in the computation. The new validation raises a clear ValueError early, impro... | diff --git a/statsmodels/emplike/descriptive.py b/statsmodels/emplike/descriptive.py
index d3c8d6d2e85..61268bef242 100644
--- a/statsmodels/emplike/descriptive.py
+++ b/statsmodels/emplike/descriptive.py
@@ -41,6 +41,15 @@ def DescStat(endog):
If k=1, the function returns a univariate instance, DescStatUV.
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The parametrized test method test_descstat_invalid_input should have 'self' rather than 'endog' as its first parameter.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
status-im__status-go__1111 | status-im/status-go | 1,111 | defect | 03bf6e37a38db724cb6003e50fcca5c06f3c8c45 | e02be8be09b1c87bf3b2280e07d0e303b69f4ae5 | Configure eth.staging fleet | Provide a way to run `statusd` with `eth.staging` fleet. | diff --git a/cmd/statusd/flags_test.go b/cmd/statusd/flags_test.go
index d752fd16777..278bec83484 100644
--- a/cmd/statusd/flags_test.go
+++ b/cmd/statusd/flags_test.go
@@ -68,7 +68,7 @@ func TestStatusFlag(t *testing.T) {
for i, s := range scenarios {
msg := fmt.Sprintf("scenario %d", i)
- c, err := params.New... | 4 | 1 | 0 | [{"id": "G0", "claim": "updateClusterConfig should be written so that a fleet can be added through configuration rather than by changing this switch statement in the code.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep flag parsing in main() instead... | null |
status-im__status-go__4665 | status-im/status-go | 4,665 | defect | e4745d01b46562026ca0ffee7aed17e475979c3f | 16c3d47f96c9525752cb25f40da02aae530a7647 | Simplify FilterManager | Fixes https://github.com/status-im/status-go/issues/4659
After some looking on FilterManager, it appears that it's too complicated. Since the logic for setting specific peers has been removed in favour of automatic selection, i don't actually see any need to maintain any knowledge about particular peers on FilterMan... | diff --git a/wakuv2/filter_manager.go b/wakuv2/filter_manager.go
index ff6f9b2cd1b..c6f774e58d7 100644
--- a/wakuv2/filter_manager.go
+++ b/wakuv2/filter_manager.go
@@ -2,46 +2,21 @@ package wakuv2
import (
"context"
- "sync"
+ "errors"
"time"
- "github.com/google/uuid"
- "github.com/libp2p/go-libp2p/core/peer... | 7 | 4 | 4 | [{"id": "G0", "claim": "The `if sub == nil` health-check condition should be merged into the preceding `else` branch.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear how the minimum peers for subscribe is handled now that MinPeersForFilter log... | null |
status-im__status-go__5002 | status-im/status-go | 5,002 | defect | 107d7a98226a4d536ff057497544abcf0baf5f5c | d836cc2aa990770c456a93f7e21f621eeee7367f | feat: swap via paraswap | Swap using paraswap is integrated on the status-go side.
Tested in the desktop app, unfortunately couldn't test it on the testnet, cause it's not supported by the paraswap.
All swaps made via the desktop app can be seen here https://optimistic.etherscan.io/address/0x946a89180365d054677d10b1a73235c0bee6734f cause... | diff --git a/contracts/gas-price-oracle/address.go b/contracts/gas-price-oracle/address.go
index 57b171e99e2..ae77f3443f9 100644
--- a/contracts/gas-price-oracle/address.go
+++ b/contracts/gas-price-oracle/address.go
@@ -18,7 +18,7 @@ var contractAddressByChainID = map[uint64]common.Address{
func ContractAddress(chain... | 3 | 1 | 1 | [{"id": "G0", "claim": "The Paraswap token list fetched in Can() should be cached for some time, since it barely changes (alaibe suggests the client should do the caching).", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CalculateFees returns zero fe... | null |
status-im__status-go__5070 | status-im/status-go | 5,070 | defect | 9e5462eb9ed6703c9e8bd49453d411ad561e1632 | cd10710a7e8495ae38d699bbf98ddd1ad8d289e5 | fix_: mitigate permission stuck in pending state | ### Description
This PR mitigates permission stuck in pending state upon making device a control node. It fixes [#14023](https://github.com/status-im/status-desktop/issues/14023) by applying events and publishing community events once the device is promoted to control node.
### System Design
The main design de... | diff --git a/protocol/communities/manager.go b/protocol/communities/manager.go
index 0500fb929a9..e3015a1b2ad 100644
--- a/protocol/communities/manager.go
+++ b/protocol/communities/manager.go
@@ -5147,6 +5147,17 @@ func (m *Manager) PromoteSelfToControlNode(community *Community, clock uint64) (
return community.empt... | 4 | 4 | 3 | [{"id": "G0", "claim": "The newly added code doesn't look complete: the new test fails with 'CommunityDescription was not signed by an owner' when the processEvents call added in promoteSelfToControlNode fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
status-im__status-go__5102 | status-im/status-go | 5,102 | defect | 11dc6976bdadd9c80ddcbc6897e647c5246b7ab7 | fb848387fefabe2a1fee7be0ae3d692af50755aa | fix_: add method to retrieve prepared message | fixes #13684
* Add Messenger.PreparedMessageByID to get message with non-null attachment links (images, stickers)
* Add test
status-desktop PR: TODO
Closes [13684](https://github.com/status-im/status-desktop/issues/13684)
Status-desktop PR: [14549](https://github.com/status-im/status-desktop/pull/14549)
| diff --git a/protocol/messenger.go b/protocol/messenger.go
index efdf33ebb82..1a7a0d84ab0 100644
--- a/protocol/messenger.go
+++ b/protocol/messenger.go
@@ -4200,6 +4200,20 @@ func (m *Messenger) MessageByID(id string) (*common.Message, error) {
return m.persistence.MessageByID(id)
}
+func (m *Messenger) PreparedM... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test saves the same message twice: it calls both Messenger.SaveMessages and Persistence.SaveMessages even though Messenger.SaveMessages already calls the persistence method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
status-im__status-go__5217 | status-im/status-go | 5,217 | defect | 133ad0946b8d8e89aa132227a9074ce47420f7e9 | 6b56b45e14db950ab1f02f49643d80faa404fd48 | feat_: hash based query for outgoing messages. | For outgoing messages, only mark it as it sent after successfully found in store node, the messages are not found will be marked as expired and resend.
Important changes:
- [x] find outgoing messages which were sent 5s ago, query the store node with the hashes of the messages
- [x] message found will trigger `Even... | diff --git a/protocol/messenger_peers.go b/protocol/messenger_peers.go
index 59933ff4a51..1f5b28ebafe 100644
--- a/protocol/messenger_peers.go
+++ b/protocol/messenger_peers.go
@@ -13,7 +13,7 @@ func (m *Messenger) AddStorePeer(address string) (peer.ID, error) {
}
func (m *Messenger) AddRelayPeer(address string) (p... | 17 | 14 | 3 | [{"id": "G0", "claim": "w.sendMsgIDs is read for the debug log before sendMsgIDsMu is taken, which might cause misleading logs and is an unsynchronized access.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The outgoing-message tracking logic sits i... | null |
status-im__status-go__5297 | status-im/status-go | 5,297 | defect | 631b1afe428fc079b550eb274a30be300bc8197c | bd1a1b31aa9b7f186b88c6dbf2a969a4432b1c14 | feat_: delete or update permission when deleting a channel | For https://github.com/status-im/status-desktop/pull/15078
Important changes:
- [x] `DeleteChat` removes the permission if it's the only chat in that permission
- [x] `DeleteChat` updates the permission if it has more than one channel
| diff --git a/protocol/communities/community_changes.go b/protocol/communities/community_changes.go
index 55195808946..4c2efcbe54c 100644
--- a/protocol/communities/community_changes.go
+++ b/protocol/communities/community_changes.go
@@ -74,6 +74,54 @@ func EmptyCommunityChanges() *CommunityChanges {
}
}
+func (c *... | 2 | 2 | 0 | [{"id": "G0", "claim": "The chat-id lookup in DeleteChat can be optimized: instead of searching for the chatId in GetChatIds() and then searching for its index again when removing the chat from the list, return the index from the first search.", "category": "performance", "verdict": "supported", "priority": "P2", "scop... | null |
status-im__status-go__5311 | status-im/status-go | 5,311 | defect | b1433e6bfa8406fb31017e86be53bf8dca12d439 | b2ef1dd84549e312998f7f7f74765e0cc48aac9f | feat: adapt create/restore/login endpoints for keycard usage | Closes https://github.com/status-im/status-go/issues/4977
## Modified endpoints to support keycard
1. Set keycard-related properties in settings and nodeConfig
2. Added keycard-related parameters to:
- `CreateAccount`
- `KeycardInstanceUID`
- `KeycardPairingDataFile`
- `RestoreAccount`
... | diff --git a/account/accounts.go b/account/accounts.go
index 7cc1cfc0f15..10484a074b8 100644
--- a/account/accounts.go
+++ b/account/accounts.go
@@ -326,12 +326,16 @@ func (m *DefaultManager) Logout() {
// ImportAccount imports the account specified with privateKey.
func (m *DefaultManager) ImportAccount(privateKey... | 4 | 2 | 0 | [{"id": "G0", "claim": "The pull request adds debug fmt.Println calls that log account passwords in clear text in DefaultManager.ImportAccount and Generator.store.", "category": "security", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The chat-key handling snippet duplicated ... | null |
status-im__status-go__5323 | status-im/status-go | 5,323 | defect | cd8f8aaf6201b4eaa61757dfceb436bb57582c55 | e5095d809ec58a60c5fe75ec16442aca762bc86c | Added test suite for `validateInputData()` | Added full test suite for `validateInputData()`
I've also added an additional validation to prevent `RouteInputParams.FromLockedAmount` from excluding all supported networks.
## Test Cases Summary for `TestValidateInputData`
1. **ENSRegister valid data on testnet**
- **Description:** Validates ENS registra... | diff --git a/services/wallet/router/router_v2.go b/services/wallet/router/router_v2.go
index aae9cfcfbb6..cc3ad35d180 100644
--- a/services/wallet/router/router_v2.go
+++ b/services/wallet/router/router_v2.go
@@ -3,6 +3,7 @@ package router
import (
"context"
"errors"
+ "fmt"
"math"
"math/big"
"sort"
@@ -318,... | 6 | 6 | 0 | [{"id": "G0", "claim": "Router v2 could use a more future-proof error implementation — globally unique errors with a consistent structure via the type system — instead of unstructured errors that tests must match directly by string.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
status-im__status-go__5376 | status-im/status-go | 5,376 | defect | b2a184ea78d339ac4b6cfedec5838c4801d43352 | 7b165f204c3b11cbbb9804a8e3938f68635821fa | fix(wallet)_: fix rpc limiter to reset counters on timeout | Fixes:
- fix rpc limiter to reset counters on timeout
- fix rpc limiter to delete limits on account removal
- fix rpc limiter to not overwrite existing account limit on startup
- fix providers down banner on limit reached error
Closes [#14642](https://github.com/status-im/status-desktop/issues/14642) | diff --git a/rpc/chain/client.go b/rpc/chain/client.go
index 8e10347ae83..7023e79061f 100644
--- a/rpc/chain/client.go
+++ b/rpc/chain/client.go
@@ -1006,7 +1006,7 @@ func (c *ClientWithFallback) SetWalletNotifier(notifier func(chainId uint64, mes
func (c *ClientWithFallback) toggleConnectionState(err error) {
conne... | 4 | 2 | 0 | [{"id": "G0", "claim": "In Allow(), the interval-reset branch returns true both when saving the reset succeeds and when it fails; the reviewer asks whether returning true in both cases is really wanted and, if so, requests collapsing it to a single `return true, rl.saveToStorage(tag, data.MaxReqs, data.Period, 0, time.... | null |
status-im__status-go__5430 | status-im/status-go | 5,430 | defect | d8a49c538b744fbde10acff5b395cef91e24cd78 | 8bddacfa67c2a50945ceebe1df218b2872b956a8 | feat_: call telemetry upon error pushing envelope | Sends request to telemetry upon error publishing envelope.
If telemetry is enabled and the publish function set in `func (w *Waku) broadcast()` fails, then the envelope details and resulting error will be pushed to the telemetry client for sending to the service. Also:
- adds configurable telemetry period to determ... | diff --git a/cmd/status-cli/main.go b/cmd/status-cli/main.go
index 48a9b549067..f094031fd77 100644
--- a/cmd/status-cli/main.go
+++ b/cmd/status-cli/main.go
@@ -22,6 +22,7 @@ const APIModulesFlag = "api-modules"
const TelemetryServerURLFlag = "telemetry-server-url"
const KeyUIDFlag = "key-uid"
const DebugLevel = "de... | 2 | 1 | 1 | [{"id": "G0", "claim": "The status-cli sendDirectMessage API should take an options struct rather than relying on variadic bools' positional order, though the reviewer suggests deferring the refactor if needed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
status-im__status-go__5463 | status-im/status-go | 5,463 | defect | 5f666e6ad956c595935b1f2d4c8f10f53a648580 | c116fba6d048ba273c05340eda69c8a5979420e0 | feat(dapps)_: extend and improve signing | ### Updates: [#15361](https://github.com/status-im/status-desktop/issues/15361)
Required by https://github.com/status-im/status-desktop/pull/15424
Add `wallet_SafeSignTypedDataForDApps` with support for `eth_signTypedData` and `eth_signTypedData_v4`
Reject if the chain to sign doesn't matches the target chain fo... | diff --git a/services/wallet/api.go b/services/wallet/api.go
index 32e6b809fa6..643c6f114f5 100644
--- a/services/wallet/api.go
+++ b/services/wallet/api.go
@@ -16,6 +16,7 @@ import (
gethrpc "github.com/ethereum/go-ethereum/rpc"
signercore "github.com/ethereum/go-ethereum/signer/core/apitypes"
"github.com/status... | 3 | 1 | 0 | [{"id": "G0", "claim": "The new API should not be named `SignMessageForDApps` — the existing `SignMessage` and `HashMessageForSigning` already let the client do the same, or the combined call should be renamed (e.g. `HashMessageAndSign` or `SignMessageEIP191`).", "category": "maintainability", "verdict": "supported", "... | null |
status-im__status-go__5511 | status-im/status-go | 5,511 | defect | 80fe18bef9d4a0a100ef137a1d61d9b2783427db | 94818dea3537a9fc55bc89ffcbd7df58d71867a7 | Check for mobile data connection if setting is on | Restore functionality of not syncing mailserver if on mobile data an user disallowed mobile data. | diff --git a/protocol/messenger_mailserver.go b/protocol/messenger_mailserver.go
index 4290790b1e5..1830460a0b6 100644
--- a/protocol/messenger_mailserver.go
+++ b/protocol/messenger_mailserver.go
@@ -866,12 +866,27 @@ loop:
return result
}
+func (m *Messenger) canSyncWithStoreNodes() (bool, error) {
+ if m.featur... | 1 | 1 | 1 | [{"id": "G0", "claim": "canSyncWithStoreNodes should be checked before performMailserverRequest is performed, otherwise the request is performed and the batch built only to be ignored.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
status-im__status-go__5624 | status-im/status-go | 5,624 | defect | 0e982f1a3deae8afa0f37c126d35ae1214278c9c | f5e83bf0e0161002f79811bc7b7d6768bf1616ec | fix(connector)_: connector response structure to valid json | For https://github.com/status-im/status-desktop/issues/15879
Important changes:
- [x] Fix `eth_accounts`
- [x] Fix `eth_requestAccounts`
- [x] Fix `wallet_requestPermissions`
| diff --git a/services/connector/api.go b/services/connector/api.go
index 2fee8aacae1..3a97c202e4c 100644
--- a/services/connector/api.go
+++ b/services/connector/api.go
@@ -47,7 +47,7 @@ func NewAPI(s *Service) *API {
}
}
-func (api *API) CallRPC(inputJSON string) (string, error) {
+func (api *API) CallRPC(inputJS... | 2 | 1 | 1 | [{"id": "G0", "claim": "Forwarded RPC calls (e.g. eth_blockNumber via connector_callRPC) still return an escaped JSON string nested in another jsonrpc envelope instead of the plain result, and felicio guesses the same holds for the other forwarded route.go methods.", "category": "correctness", "verdict": "supported", "... | null |
status-im__status-go__5654 | status-im/status-go | 5,654 | defect | 551af54fdac75288f134593354e08ea7015bf050 | 2c4ce4a7f78e29e5b658b0ef1066874c14d06bc1 | fix: enable light client for mobile | fix relate mobile [issue](https://github.com/status-im/status-mobile/issues/20947) | diff --git a/api/old_mobile_user_upgrading_from_v1_to_v2_test.go b/api/old_mobile_user_upgrading_from_v1_to_v2_test.go
index 57e9f9d54b7..36ee989fa8a 100644
--- a/api/old_mobile_user_upgrading_from_v1_to_v2_test.go
+++ b/api/old_mobile_user_upgrading_from_v1_to_v2_test.go
@@ -6,6 +6,8 @@ import (
"strings"
"testing... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new custom migration step should increment the Version by one instead of reusing the identical 1662365868, so it is extra precisely guaranteed to happen after the existing step, since sqlite sorts custom steps by Version.", "category": "correctness", "verdict": "supported", "priority": "P2",... | null |
status-im__status-go__5724 | status-im/status-go | 5,724 | defect | bb6d5f602b8e472cc7257b650e0c771a82ec4714 | 3c1090a853e20d299621773ea735d784745d233a | fix scheduler panic after quick stop | this PR should fix mobile [issue](https://github.com/status-im/status-mobile/issues/21032)
important relate [comment](https://github.com/status-im/status-mobile/issues/21032#issuecomment-2291155281) | diff --git a/services/wallet/async/scheduler.go b/services/wallet/async/scheduler.go
index c20c24d6975..ddc970d4165 100644
--- a/services/wallet/async/scheduler.go
+++ b/services/wallet/async/scheduler.go
@@ -11,6 +11,7 @@ import (
var ErrTaskOverwritten = errors.New("task overwritten")
+// Scheduler ensures that ... | 2 | 1 | 0 | [{"id": "G0", "claim": "In the new TestScheduler_Enqueue_Quick_Stop test, longRunningTask should call wg.Done() via a defer so it runs on every return path, instead of calling it separately in each select branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
status-im__status-go__5789 | status-im/status-go | 5,789 | defect | 82ba10ede7a003e4ad23008e732e4690ae5ec430 | ba43762dfbc8045f59a8951d3cd17af97e838d06 | fix!: ensure deleting message does not accidentally delete unrelated notifications | fixes https://github.com/status-im/status-mobile/issues/17052
status-mobile PR: https://github.com/status-im/status-mobile/pull/21157
this PR is a follow up to: https://github.com/status-im/status-go/pull/5520/
## The Issue
* This PR attempts to resolve an issue with notifications being deleted for users after ... | diff --git a/protocol/activity_center_persistence.go b/protocol/activity_center_persistence.go
index 02b1efafe14..cf7187c2533 100644
--- a/protocol/activity_center_persistence.go
+++ b/protocol/activity_center_persistence.go
@@ -61,7 +61,10 @@ func (db sqlitePersistence) DeleteActivityCenterNotificationForMessage(chatI... | 5 | 4 | 1 | [{"id": "G0", "claim": "The added type-switch under the LastMessage check in DeleteActivityCenterNotificationForMessage is no longer needed and the LastMessage if-block should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the PR ... | null |
status-im__status-go__5806 | status-im/status-go | 5,806 | defect | 970119af7812d24e67d046871eefba7eb60e9db4 | a830f8b85629c6b79266762f9431a1191f3ef6fa | feat(statusd)_: websocket endpoint for getting events | Closes https://github.com/status-im/status-go/issues/5803
# Description
This PR enables to get status-go events through a Websocket endpoint.
<img width="956" alt="Screenshot 2024-09-08 at 21 17 37" src="https://github.com/user-attachments/assets/bb9e30a9-8333-47a2-aede-644c1021fb40">
# Usage
1. Run like... | diff --git a/cmd/statusd/main.go b/cmd/statusd/main.go
index 6bc248dd449..c986f8d2867 100644
--- a/cmd/statusd/main.go
+++ b/cmd/statusd/main.go
@@ -80,7 +80,8 @@ var (
params.FleetProd,
),
)
- listenAddr = flag.String("addr", "", "address to bind listener to")
+ listenAddr = flag.String("addr", "", ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The error returned by upgrader.Upgrade is silently discarded, so a failed websocket upgrade is not handled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
status-im__status-go__5830 | status-im/status-go | 5,830 | defect | 13ab5b6f24ba903f50a01d4279dd48c1278efd6f | d93e6a98d9050c603ff5fb94d95640e17d5ef4eb | fix(bridge)_: fix bridge replies not working when they come from Discord | Fixes https://github.com/status-im/status-desktop/issues/16323
The problem was that the code expected to receive the Discord message ID, but the bridge is smart enough to return the Status message ID already, so there is no need to try and convert it.
There were also a couple issues in the bridge code itself.
... | diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go
index f482ac64942..4d6fcc00ee8 100644
--- a/protocol/message_persistence.go
+++ b/protocol/message_persistence.go
@@ -3075,15 +3075,7 @@ func (db sqlitePersistence) findAndUpdateReplies(tx *sql.Tx, bridgeMessageID str
}
func (db sqlitePe... | 3 | 3 | 1 | [{"id": "G0", "claim": "The helper findStatusMessageIDForBridgeMessageID, left unused by this change, could also be removed (nuked).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestBridgeMessageReplies is failing because of this change and sh... | null |
status-im__status-go__5864 | status-im/status-go | 5,864 | defect | 768cda8de926e4137ab4f6ba1f30e39f8ef68ba8 | d61d20042aa8956ce8634da0ee5f603df379d6dc | feat_: use a single content-topic for all community chats | This PR is first step i moving towards using a single content-topic for all community chats and most of the control messages.
Once this is released , in a subsequent release we can disable installing filters using chatIDs for communities altogether.
Detailed proposal https://forum.vac.dev/t/status-communities-revi... | diff --git a/eth-node/types/rpc.go b/eth-node/types/rpc.go
index 6105f3b0160..4af4b967a18 100644
--- a/eth-node/types/rpc.go
+++ b/eth-node/types/rpc.go
@@ -6,19 +6,20 @@ import (
// NewMessage represents a new whisper message that is posted through the RPC.
type NewMessage struct {
- SymKeyID string `json:"s... | 15 | 11 | 1 | [{"id": "G0", "claim": "The commented-out ContentTopicOverride line in sendKeyExchangeMessage should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TODO comments should be listed in a tracking issue and linked here, if they are s... | null |
status-im__status-go__5865 | status-im/status-go | 5,865 | defect | a84f78f8aa748181f715eba5c4492c700aef30b3 | f8770dbddeaf23f4c2f87653a0658e68e76d08c7 | fix_: ignore log partial API request | Major changes:
- Added extra sensitive fields in regex.
- Added some new V2 APIs and removed logging for the old ones:
```
VerifyDatabasePassword -> VerifyDatabasePasswordV2
MigrateKeyStoreDir -> MigrateKeyStoreDirV2
DeleteImportedKey -> DeleteImportedKeyV2
SignTypedData -> SignTypedDataV2
```
- Removed th... | diff --git a/contracts/mock/contracts.go b/contracts/mock/contracts.go
index 0bc640a24f3..aaec70c6df3 100644
--- a/contracts/mock/contracts.go
+++ b/contracts/mock/contracts.go
@@ -12,10 +12,11 @@ package mock_contracts
import (
reflect "reflect"
+ gomock "go.uber.org/mock/gomock"
+
common "github.com/ethereum/g... | 4 | 4 | 0 | [{"id": "G0", "claim": "The deprecation comment on VerifyDatabasePassword should follow the Go convention \"// Deprecated: use VerifyDatabasePasswordV2 instead\" (capital D, colon).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In mobile/status.g... | null |
status-im__status-go__5867 | status-im/status-go | 5,867 | defect | d794e433476db879f34893a61254bd501abdabb2 | 0b78473dfc72176d27f7fa2fc31b3faa67c34d54 | fix(manager)_: make sure to re-add revealed accounts in the response | We remove the shared accounts to send normal admins to not leak the addresses, however, that was a destructive action that also removed them from the `requestToJoin` param, which is reused later in the code, so it created an unwanted side effect. The side effect is now erased. | diff --git a/protocol/communities/manager.go b/protocol/communities/manager.go
index 2133d1c25c6..21037ae7985 100644
--- a/protocol/communities/manager.go
+++ b/protocol/communities/manager.go
@@ -4894,8 +4894,8 @@ func (m *Manager) ShareRequestsToJoinWithPrivilegedMembers(community *Community,
return nil
}
-func ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should check that RequestsToJoinCommunity() is not empty before indexing [0], to prevent panics in tests as much as possible.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
status-im__status-go__5897 | status-im/status-go | 5,897 | defect | 9eb2d97d6d7853ebec93e447efe56f000e53c860 | 7ecc828fe5fdadd476a911e53fbd0283be90a44f | chore_: move/rename files messing generation | 1. Moved `generate_handlers` to `./cmd`.
- Otherwise it's not detected by `go list ./...`. And I don't want to add custom instructions for one case.
- And it makes sense to be there, same as `./cmd/library`.
2. Rename `protocol/sqlite/migrations.go`
- `migrations.go` is used for generated files, wh... | diff --git a/_assets/generate_handlers/generate_handlers.go b/cmd/generate_handlers/generate_handlers.go
similarity index 100%
rename from _assets/generate_handlers/generate_handlers.go
rename to cmd/generate_handlers/generate_handlers.go
diff --git a/_assets/generate_handlers/generate_handlers_template.txt b/cmd/gener... | 1 | 1 | 0 | [{"id": "G0", "claim": "The name `prepare.go` chosen for the renamed migrations file is poor; the reviewer suggests either a `.gitignore` exception (`!protocol.sqlite/migrations.go`) or renaming the file to `prepare_migrations.go`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
status-im__status-go__5899 | status-im/status-go | 5,899 | defect | 7971fd3bcbb3decdd6040858d05569e610388eff | 6a50b1a159df383ef5c9890b2e1bcbdddc486912 | feat(telemetry)_: add metrics for message reliability | Adds metrics for missed messages, delivery confirmation, and peer count by shard/origin.
Tracks additional events in telemetry:
- when a message is successfully delivered
- when a check against a store node detects missed messages (with a separate count for if it was a message relevant to the user, as determined i... | diff --git a/telemetry/client.go b/telemetry/client.go
index 5c21177089f..3b118cc40b2 100644
--- a/telemetry/client.go
+++ b/telemetry/client.go
@@ -18,26 +18,31 @@ import (
"github.com/status-im/status-go/wakuv2"
wps "github.com/waku-org/go-waku/waku/v2/peerstore"
- v2protocol "github.com/waku-org/go-waku/waku/v... | 4 | 3 | 1 | [{"id": "G0", "claim": "Add comments explaining what the MissedXXX telemetry types track (ideally how it works).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ProcessDialFailure discards the error returned by json.Marshal (body, _ := json.Marshal... | null |
status-im__status-go__5940 | status-im/status-go | 5,940 | defect | 7f2bd731c513426e7d76a3a9bec74b2c750c1156 | 9373407a9c2ab76f9b26a238d5eebac5b3aeab88 | feat: testing discovery and dialing with nwaku integration | ## Description
Testing DNS discovery and peer connections and disconnections when integrating nwaku.
I commented everything in `api.go`, `api_test.go`, `message_publishing.go` and a big part of `nwaku.go`. I propose to remove the comments incrementally while we implement and test new features with the nwaku integra... | diff --git a/wakuv2/api.go b/wakuv2/api.go
index f106b32f52b..519a01ee4f8 100644
--- a/wakuv2/api.go
+++ b/wakuv2/api.go
@@ -18,7 +18,7 @@
package wakuv2
-import (
+/* import (
"context"
"crypto/ecdsa"
"errors"
@@ -513,4 +513,4 @@ func (api *PublicWakuAPI) NewMessageFilter(req Criteria) (string, error) {
a... | 3 | 3 | 0 | [{"id": "G0", "claim": "The TODO-nwaku tag should be added to all the commented-out code so the blocks can be revisited in the future.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Pointing the test's DNS discovery at the production bootnode ENR ... | null |
status-im__status-go__5983 | status-im/status-go | 5,983 | defect | 8198ac19969cdaa199ab92eae115bf136574c0db | 18976d685255295d53066df4269ef8ce5ef9a837 | feat: supporting peer exchange with nwaku | Fixing and testing Peer Exchange support using nwaku.
The test `TestPeerExchange` should work once the following nwaku PRs are merged:
- https://github.com/waku-org/nwaku/pull/3141
- https://github.com/waku-org/nwaku/pull/3140
- https://github.com/waku-org/nwaku/pull/3127
Once they are merged, I will update t... | diff --git a/third_party/nwaku b/third_party/nwaku
index c5a825e206c..80c7581ab15 160000
--- a/third_party/nwaku
+++ b/third_party/nwaku
@@ -1 +1 @@
-Subproject commit c5a825e206c1cb3e6e0cf8c01410527804cb76c4
+Subproject commit 80c7581ab15e048c24b984dd91b6867e277a0223
diff --git a/wakuv2/nwaku.go b/wakuv2/nwaku.go
inde... | 6 | 6 | 1 | [{"id": "G0", "claim": "The WakuConfig struct fields in wakuv2/nwaku.go appear misaligned in review even though they look aligned in the author's IDE, and the author asks which linting/formatter tool should be used to fix the alignment.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope":... | null |
status-im__status-go__6014 | status-im/status-go | 6,014 | defect | c08e922f65f03f1559361e3f2762b4b5950126b2 | 98dd91a69b961495ab8478f69fa35a73f1457db6 | chore_: get version with go generate | 1. Version
I've used a combination of `go:generate` and `go:embed` to get the version into Go code.
Currently version is only properly set when you build with Makefile commands. This solution makes it Makefile-agnostic.
For example, I'm running `status-backend` with my IDE, which does `go run ..... | diff --git a/.gitignore b/.gitignore
index d7b9b412f3f..91daa86a650 100644
--- a/.gitignore
+++ b/.gitignore
@@ -120,6 +120,8 @@ bindata.go
migrations.go
cmd/status-backend/server/endpoints.go
protocol/messenger_handlers.go
+params/VERSION
+params/GIT_COMMIT
# Don't ignore generated files in the vendor/ directory... | 1 | 1 | 0 | [{"id": "G0", "claim": "The go:generate lines in params/version.go are non-obvious magic and require a comment explaining what they do.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
status-im__status-go__6051 | status-im/status-go | 6,051 | defect | b329b158c8f62f5bab03be596cf4f7d7b07c96f7 | d4239ac5929c670daba308a2c29d821c57434f3d | fix(BC)_: Notify client on dapp connection changes | 1. Include chainIds and account on `PermissionsGranted` client signal.
2. Send a client event whenever the dapp permissions have been revoked.
+ update tests
PR needed for https://github.com/status-im/status-desktop/issues/16044 | diff --git a/services/connector/api.go b/services/connector/api.go
index 58b851b86c5..3ff9f7ecf46 100644
--- a/services/connector/api.go
+++ b/services/connector/api.go
@@ -22,7 +22,7 @@ type API struct {
func NewAPI(s *Service) *API {
r := NewCommandRegistry()
- c := commands.NewClientSideHandler()
+ c := command... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TestRecallDAppPermission test should also cover the error paths: calling RecallDAppPermissions with an empty URL expecting ErrEmptyUrl and, after the permission has been recalled, with the same URL again expecting ErrDAppDoesNotHavePermissions.", "category": "testing", "verdict": "supported"... | null |
status-im__status-go__6054 | status-im/status-go | 6,054 | defect | 9a45ae09ca24a96bf13c376e9e08061bdc58836a | b1846a95b27bcbbc19e2e997bd6a88803facf38a | feat_: add Sentry panic reporting | Requires:
- https://github.com/status-im/status-go/pull/6053
- https://github.com/status-im/status-go/pull/6052
Iterates:
- https://github.com/status-im/status-go/issues/5895
Closes:
- https://github.com/status-im/status-go/issues/6134
Desktop PR:
- https://github.com/status-im/status-desktop/pull/16786... | diff --git a/.gitignore b/.gitignore
index f3f27c7034a..efb24d9e333 100644
--- a/.gitignore
+++ b/.gitignore
@@ -119,6 +119,9 @@ cmd/status-backend/server/endpoints.go
protocol/messenger_handlers.go
internal/version/VERSION
internal/version/GIT_COMMIT
+internal/sentry/SENTRY_CONTEXT_NAME
+internal/sentry/SENTRY_CONT... | 6 | 3 | 1 | [{"id": "G0", "claim": "Sentry/app monitoring should get its own separate setting so a user can toggle it independently of the Waku-telemetry and analytics (MixPanel) toggles.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The LogOnPanic method probably ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.