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
zeldaret__oot__2478
zeldaret/oot
2,478
defect
652478c338b0a9aa04f3d8f908a2c44a429e94f3
46a0661274a3dede48dcb598bbd9ce0506073a32
Reduce overlay dependencies on global.h (8)
Contributions made in this pr are licensed under CC0.
diff --git a/include/buffers.h b/include/buffers.h new file mode 100644 index 00000000000..e74719c440d --- /dev/null +++ b/include/buffers.h @@ -0,0 +1,15 @@ +#ifndef BUFFERS_H +#define BUFFERS_H + +#include "gfx.h" +#include "macros.h" +#include "ultra64.h" + +extern u16 gZBuffer[SCREEN_HEIGHT][SCREEN_WIDTH]; // 0x258...
12
12
0
[{"id": "G0", "claim": "The Kanji_OffsetFromShiftJIS doc comment should remain only in the .s file rather than being added to include/kanread.h, consistent with keeping documentation out of headers.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
zeldaret__oot__2509
zeldaret/oot
2,509
defect
2278bcb2c3383553d136216a7fc1600cd86485f3
647e2c3560a13a84780acb0cd6f9816df664ae87
macros.h 1/?: `PRINTF` and `T`
One of the last steps for header splits are the remaining macros in macros.h. Im starting with these two macros on their own because they are used in many places, and commonly used together. Follow up PRs after this one will move more macros at a time. Many files are touched in the PR but 99% of it is simply addi...
diff --git a/include/macros.h b/include/macros.h index 813ceb6f26c..0cb1b4285de 100644 --- a/include/macros.h +++ b/include/macros.h @@ -1,7 +1,6 @@ #ifndef MACROS_H #define MACROS_H -#include "terminal.h" #include "versions.h" #define SCREEN_WIDTH 320 @@ -13,13 +12,6 @@ #define BAD_RETURN(type) void #endif ...
1
1
0
[{"id": "G0", "claim": "The new include/printf.h includes is_debug.h although nothing in the header appears to need it — what is this include needed for?", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
zeldaret__oot__2552
zeldaret/oot
2,552
defect
6459f3380024b1a30d96de4e531f812f4d010962
8ffa87099c4d340780495e93dfa5ce09f44e6d94
T() macro in overlays 9
#2064 continued This PR concludes converting existing translations to T(), what's left after is untranslated strings
diff --git a/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c b/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c index eb9941b46bc..d8d2535a260 100644 --- a/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c +++ b/src/overlays/actors/ovl_En_Okarina_Effect/z_en_okarina_effect.c...
5
4
0
[{"id": "G0", "claim": "The onomatopoeia ビカビカビカ is better translated as the well-known \"sparkle sparkle sparkle\" than the PR's \"sparkling, sparkling, sparkling\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "\"豆よ のびろ 指定\" is more like \"Beans...
null
zeldaret__oot__2555
zeldaret/oot
2,555
defect
e991255a45b628d75a7b378726415414215aa814
7cd0000696d58ed9ac754ac276b4cfb203c28b76
Rename `acDmgInfo.effect` -> `hitBacklash`
I will fixup the extracted colliders to use the new enum in a subsequent PR
diff --git a/include/z64collision_check.h b/include/z64collision_check.h index 2c275637661..d268a222cfd 100644 --- a/include/z64collision_check.h +++ b/include/z64collision_check.h @@ -86,9 +86,14 @@ typedef struct ColliderElementDamageInfoAT { /* 0x05 */ u8 damage; // Damage } ColliderElementDamageInfoAT; // siz...
3
2
0
[{"id": "G0", "claim": "The new field names could be changed to something like `backlashType` and `receivedBacklash` (or `hitBacklashType` / `hitBacklashReceived` if the \"hit\" prefix is kept) so the give-and-take between AT and AC is more obvious without relying on the at/hit prefixes.", "category": "maintainability"...
null
zeldaret__oot__2608
zeldaret/oot
2,608
defect
7a816391bbb9584a5047a927dfd069414061927f
f888732b8570d7fa1a4d3325e56e94c77867747a
Introduce `CAM_DATA_SET_`, `CAM_ITEM_TYPE_` and name `Player_SetTurnAroundCamera`, `Player_RequestCameraSetting`
Revival of ancient PR #1456 which I'll split up into chunks As a reminder for camera system neophytes, the link between `CAM_SET_TURN_AROUND` and `Camera_KeepOn4` is: `CAM_SET_TURN_AROUND` -> `sCameraSettings[CAM_SET_TURN_AROUND] = { { 0x4A000001 }, sCamSetTurnAroundModes }` -> `sCamSetTurnAroundModes` -> ```c ...
diff --git a/include/camera.h b/include/camera.h index 9d4783de06e..76c65f05f27 100644 --- a/include/camera.h +++ b/include/camera.h @@ -119,6 +119,12 @@ struct View; #define CAM_VIEW_FOV (1 << 5) // camera->fov #define CAM_VIEW_ROLL (1 << 6) // camera->roll +#define CAM_SET_CAMERA_DATA_0 (1 << 0) +#define CAM_SET_...
3
3
0
[{"id": "G0", "claim": "The CAM_SET_ abbreviation for the camera-data flag macros is extremely confusing (CAM_SET_CAMERA_DATA_ reads as 'setting the data'), so the flags should be renamed, e.g. to CAM_DATA_SET_0..4.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
zeldaret__tmc__137
zeldaret/tmc
137
defect
d207eaf8fac4fb65bf34b3c5a617b8df13fe772a
e541025bb7c5bc4d4abeccc10bf0aef8f2662024
MinishSizedArchway OK
may this truly epic PR make up for my 6 months of inactivity
diff --git a/asm/minishSizedArchway.s b/asm/minishSizedArchway.s deleted file mode 100644 index cc3b107417..0000000000 --- a/asm/minishSizedArchway.s +++ /dev/null @@ -1,40 +0,0 @@ - .include "asm/macros.inc" - - .include "constants/constants.inc" - - .syntax unified - - .text - - - thumb_func_start MinishSizedArchway ...
4
3
0
[{"id": "G0", "claim": "The `return;` at the end of the void function MinishSizedArchway is unnecessary and should be removed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the dungeon sprite-priority update could simply be `this->spritePrio...
null
zellij-org__zellij__1577
zellij-org/zellij
1,577
defect
b4cf0e7a818ac85c14e598ac302d2f4a11f6cd30
6c2be5b4260893f2bae23a46c3171d4472cfa5df
feat: support `themes` directory
Resolve #1491 **EDIT: The `theme_dir` option was removed due to another issue. Therefore, `themes` directory always exists under the zellij config directory.**
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 3b81694b41..1ac942c85e 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -27,8 +27,9 @@ use zellij_utils::{ data::{ClientId, InputMode, Style}, envs, errors::{ClientContext, ContextType, ErrorInstruction}, - i...
4
4
1
[{"id": "G0", "claim": "Themes from the config file and the themes directory are not combined, so a user with a theme configured misses directory themes; the serialization and merging should be done in the setup step instead of the client.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr...
null
zellij-org__zellij__1648
zellij-org/zellij
1,648
defect
01adc08f05d827fe28ede78aaabf327903647003
37600a47c2222b0dd612b04f52e962385c716b61
screen: Don't crash when first tab doesn't exist
while trying to attach a new client. Instead, check whether the first tab does exist and if not, take the first tab index from the tabs present in the session. If no tabs exist, panic with a better error message. Fixes #1645
diff --git a/CHANGELOG.md b/CHANGELOG.md index 08ba5acbb0..f6f3f3301f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] +* fix: crash when a...
5
2
1
[{"id": "G0", "claim": "When a client attaches to a session the plugins/status bar are sent a ModeInfo whose mode is Tab even though the client is not in tab mode — apparently surfaced by this fix, with the wrong ModeInfo picked up around zellij-server/src/screen.rs:644 (new_tab's per-client mode_info lookup).", "categ...
null
zellij-org__zellij__2120
zellij-org/zellij
2,120
defect
601eee8bb3e1d57d8a5df2b04d15506bc2aa92eb
da30ecde6ebcd4536d8dd4534626e31f2fc83e80
Add `GoToTabName` action to switch tab by name
To resolve #2099 , add new action ` GoToTabName` to switch tab by name
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index eb711fa3a0..e764786c44 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -307,6 +307,7 @@ impl InputHandler { | Action::GoToPreviousTab | Action::CloseTab ...
3
2
1
[{"id": "G0", "claim": "The new GoToTabName / switch-tab-by-name behaviour ships with no test; the reviewer asks the author to add one, pointing at an existing screen test as a model.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the GoToTabName arm...
null
zellij-org__zellij__2145
zellij-org/zellij
2,145
defect
601eee8bb3e1d57d8a5df2b04d15506bc2aa92eb
da9a83028144ca0d5f1415284805e5189a9eb316
Add action `QueryTabNames` to list all tab names
To resolve #2098 , as shown below <img width="534" alt="image" src="https://user-images.githubusercontent.com/2225426/217746791-7ec098ea-d989-4ddb-808c-5a4b7785e1c3.png">
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 51d6c99d636..e7360bc457b 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -45,6 +45,7 @@ pub(crate) enum ClientInstruction { ActiveClients(Vec<ClientId>), StartedParsingStdinQuery, DoneParsingStdinQuery, + Ta...
3
3
3
[{"id": "G0", "claim": "The normal client's instruction loop here cannot receive ClientInstruction::TabNameList for this query, so per imsnif the handling should live in the cli_client when the query is sent from the CLI.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
zellij-org__zellij__2239
zellij-org/zellij
2,239
defect
c6c9bb5c370e8ea9c38cf66efc445d2caafd1baa
6871ebec305cb754e78f223a8045ed01c1855929
Add action to clear all buffers for a specific pane
Fixes #2081 (?) I want to start a bigger feature contribution but I needed some easy task to get familiar with the codebase. This seemed like a perfect candidate. It's just a draft anyway if for some reason this naive implementation is somehow not favorable. Also I guess for the sake of fixing this particular is...
diff --git a/src/sessions.rs b/src/sessions.rs index 0ddcfcb223..5f3354de9c 100644 --- a/src/sessions.rs +++ b/src/sessions.rs @@ -207,7 +207,7 @@ pub(crate) fn assert_session_ne(name: &str) { process::exit(1); } if name.contains('/') { - eprintln!("Session name cannot contains '/'."); + ...
4
4
4
[{"id": "G0", "claim": "Add a conditional so clear_screen does nothing (with a log) when the pane has an alternate screen, since programs in full-screen mode should not have their buffers wiped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Forgo t...
null
zellij-org__zellij__2291
zellij-org/zellij
2,291
defect
09c1d7909d0adbd1e23be698969feaf06e99c38c
2a8ca0627cc6192d324d8c5ac3b14382d455d1c9
feat(layout): Support environment variables in cwd (#2288)
Fixes #2288. * Add [`shellexpand`](https://crates.io/crates/shellexpand) as dependency. I hope it's fine, it only has `dirs` as a dependency. * Expand environment variable in kdl parser's `parse_cwd()`. * On failure, fall back to previous behavior. It's my first time creating a PR here. Tell me if I missed ...
diff --git a/Cargo.lock b/Cargo.lock index 7c83462dff..70b65f110c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -814,6 +814,15 @@ dependencies = [ "dirs-sys", ] +[[package]] +name = "dirs" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3aa72a6f96ea37bbc5aa912f6788...
5
5
5
[{"id": "G0", "claim": "parse_cwd should return a proper ConfigError when env-var expansion of `cwd` fails instead of logging and silently discarding it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "While expanding env vars, also expand tildes (`~...
null
zellij-org__zellij__294
zellij-org/zellij
294
defect
74cc48fc500f7f81a867394e8d6550562500d14f
a8dae6216fafda3304694e184db24671471c444d
Adding field active_at and using it to sort panes
Using last activity time to determine which pane was previously active when moving back to a direction. Closes #230
diff --git a/src/client/panes/plugin_pane.rs b/src/client/panes/plugin_pane.rs index 24daec08af4..545baaad27a 100644 --- a/src/client/panes/plugin_pane.rs +++ b/src/client/panes/plugin_pane.rs @@ -3,6 +3,7 @@ use crate::{common::SenderWithContext, pty_bus::VteBytes, tab::Pane, wasm_vm::Pl use std::{sync::mpsc::channel...
1
1
0
[{"id": "G0", "claim": "The pane's active_at field should use std::time::Instant instead of a u64 of seconds since the epoch, since Instant is guaranteed to behave correctly around leap-seconds and is more idiomatic Rust.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zellij-org__zellij__423
zellij-org/zellij
423
defect
325fc5620f07412381dd47dcf7cf9e141a3d66bf
ff2996b26d37dd386b0967c5164ecd92446fa7b8
Load config before start()
Close #414 Previously, a config file was loaded within `start()`, and if the config file is invalid, Zellij was supposed to show a user what's wrong with it. However, since `start()` starts setting up its terminal with an alternative screen buffer, neither standard output nor standard error could display such an err...
diff --git a/Cargo.lock b/Cargo.lock index c94f39ae792..55cfcf013cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2205,6 +2205,7 @@ dependencies = [ "strip-ansi-escapes", "structopt", "strum", + "tempfile", "termion", "termios", "unicode-truncate", diff --git a/Cargo.toml b/Cargo.toml index d712b372436..7433...
3
3
1
[{"id": "G0", "claim": "Use the existing ConfigResult alias instead of Result<Self, Self::Error> as the return type of Config::try_from, for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "One of the pull request's tests always fails on ...
null
zellij-org__zellij__47
zellij-org/zellij
47
defect
a2914066bf0e2e2bf5caee263d2378b7d77f477f
17111aa9c1a4f119adf45b615b438630471d02c7
Add variable to track if the pane is in fullscreen mode or not
Fixes #46
diff --git a/src/screen.rs b/src/screen.rs index a433f02b1a2..4901c9b8272 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -92,6 +92,7 @@ pub struct Screen { panes_to_hide: HashSet<RawFd>, active_terminal: Option<RawFd>, os_api: Box<dyn OsApi>, + is_fullscreen: bool, } impl Screen { @@ -113,10 +1...
4
3
2
[{"id": "G0", "claim": "Rename the new field is_fullscreen to fullscreen_is_active for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a snapshot test that adds a terminal, toggles it to full screen, adds another terminal and checks ...
null
zellij-org__zellij__471
zellij-org/zellij
471
defect
7b5e728f9db7d82d9282265bb8fa35d7b05e5622
2cb57af992781f0b6be35115a7e2f47dd12c89a9
Switching Tabs if there's no pane in the direction
New behavior for Alt + 'h' and Alt + 'l': will switch tabs if there are no available panes in the direction. Closes #464
diff --git a/assets/config/default.yaml b/assets/config/default.yaml index d56004ef13f..cb6aa2485ee 100644 --- a/assets/config/default.yaml +++ b/assets/config/default.yaml @@ -16,9 +16,9 @@ keybinds: key: [Ctrl: 'q',] - action: [NewPane: ] key: [ Alt: 'n',] - - action: [MoveFocus:...
4
3
3
[{"id": "G0", "claim": "In the new MoveFocusLeftOrPreviousTab and MoveFocusRightOrNextTab match arms, the UnblockInputThread send() call should be moved out of the if block so it runs even when the focus move succeeds, not only when a tab switch happens.", "category": "correctness", "verdict": "supported", "priority": ...
null
zellij-org__zellij__523
zellij-org/zellij
523
defect
b20ac47d689a13cc894c3a10838cb8c2247a6e42
ee1ac6fc9cafce4c5e51442c9d4291bdb4525374
fix(pty): use async io to avoid polling
This patch fixes #509 by using async read instead of polling a non-blocking fd. This reduces CPU usage when the ptys are idle.
diff --git a/Cargo.lock b/Cargo.lock index 48aa2bf2ce7..0dda8373402 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,6 +170,17 @@ version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" +[[package]] +name = "asy...
5
4
0
[{"id": "G0", "claim": "When rendering cannot keep up with output production the unbounded to_screen queue grows, causing user-visible lag and ballooning memory that this PR's faster streaming exacerbates; a proper fix needs back pressure between Pty and Screen, and the reviewer asks whether some workaround (even an ar...
null
zellij-org__zellij__536
zellij-org/zellij
536
defect
099cbadc2b9d38df880aa53a0e86121780af6daa
63c295d59669e7dae45c1e47f5069cf047486a33
Add back pressure to pty
This PR fixes #525 by adding back pressure if `Pty` is producing renderable output faster than `Screen` can render it . This is achieved by changing the unbounded queue to a bounded one between them.
diff --git a/Cargo.lock b/Cargo.lock index 596062e178..291ac16020 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -417,6 +417,20 @@ dependencies = [ "cfg-if 1.0.0", ] +[[package]] +name = "crossbeam" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd01a6eb3daaafa260f6f...
1
1
1
[{"id": "G0", "claim": "Integration tests fail intermittently (top_and_quit fails on the first run with a snapshot mismatch, though it passes on rerun and on CI), and the reviewers ask whether raising MIN_TIME_BETWEEN_SNAPSHOTS to ~200ms would help or whether a SLEEP should be added to the failing test for now.", "cate...
null
zellij-org__zellij__622
zellij-org/zellij
622
defect
105ae616829da277481b82fb9610062bea22f985
a99e6538a9d208a4658d516e8c4b6a99a465242d
feat(tab): add keybind to go to last tab visited
Fixes #398. Tab key is used as default for the `GoToLastTab` action. A test have been added, All other tests still pass.
diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index f02b5ad818a..7f578766025 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -188,6 +188,7 @@ impl InputHandler { | Action::GoToPreviousTab | Action::CloseTab ...
4
4
1
[{"id": "G0", "claim": "The action should be named `ToggleTab` rather than `GoToLastTab` (with the Tab-mode keybind labelled `Toggle` rather than `Last`), because `Toggle` carries the intention better.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
zellij-org__zellij__789
zellij-org/zellij
789
defect
e0d7212c2a263a0357ca8c2156ba448c403eea19
6be94cb5422c1472364685045a604681d6c7fb60
feat: add initial session name to layout template
This PR resolve #611 **proposal** ``` --- session: - name: "SESSION_NAME" template: ... tabs: ... ``` Instead of using `session_name`, a `session` structure is used. (for future scalability) **expected results** 1. When Zellij is launched (with layouts), the session name is initialized to ...
diff --git a/src/main.rs b/src/main.rs index 0cacc3759b..65d99ad50d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -171,10 +171,14 @@ pub fn main() { attach_layout, ); } else { - let session_name = opts - .session - .clone() - ...
2
2
1
[{"id": "G0", "claim": "The hand-written `impl Default for SessionFromYaml` duplicates what the `Default` derive macro would expand to and should be replaced by adding `Default` to the struct's `#[derive()]`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
zenc-lang__zenc__251
zenc-lang/zenc
251
defect
95b4bea7c6eb67a4d09692bf6f38879a87690ec0
8a10bfcdd30db21f3002cf28b718ddf1d4b71bd8
fix: resolve technical debts (typecheck, generics, cJSON)
## Description This PR addresses three key technical debts identified in the codebase: 1. **Typecheck Warning ([src/analysis/typecheck.c](cci:7://file:///home/oxta/%C3%81rea%20de%20trabalho/Zen-C/src/analysis/typecheck.c:0:0-0:0))**: Added specific bounds checking to emit warnings when a shift amount (>= 32) is appli...
diff --git a/src/analysis/typecheck.c b/src/analysis/typecheck.c index 9a69f53ec..d874f598a 100644 --- a/src/analysis/typecheck.c +++ b/src/analysis/typecheck.c @@ -439,10 +439,15 @@ static void check_expr_binary(TypeChecker *tc, ASTNode *node) const char *hints[] = {"Shift amount exceeds bit width, re...
1
1
0
[{"id": "G0", "claim": "Use the INT_MAX constant (or INT32_MAX from stdint.h) instead of the hardcoded magic number 2147483647 in the clamp, to stay consistent with the rest of the file and avoid maintainability issues.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zendesk__maxwell__1034
zendesk/maxwell
1,034
defect
d89c3048fdf0fea0a91778c8920f2536bef9bee2
f1e61d44ef98bc6b4687045cbd8be7a72887b0af
fix regression in processing alibaba ha_health_check tables
Fixes #1032, small but urgent fix @ericwush @liulikun
diff --git a/src/main/java/com/zendesk/maxwell/filtering/Filter.java b/src/main/java/com/zendesk/maxwell/filtering/Filter.java index e52d6fea4..6fa3bdcb5 100644 --- a/src/main/java/com/zendesk/maxwell/filtering/Filter.java +++ b/src/main/java/com/zendesk/maxwell/filtering/Filter.java @@ -83,6 +83,16 @@ public static bo...
1
1
0
[{"id": "G0", "claim": "The comment in the new TableCacheTest.testHaTables could be reworded a bit to be clearer.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zendesk__maxwell__1175
zendesk/maxwell
1,175
defect
f8ac7bcc5e576953cd2a1807e2c0f6f37399ba64
81db966e88f7caed3e96cccf73080725f014f3bf
move key-related serialization from RowMap info new RowIdentity class
* extract primary-key related serialization from RowMap into RowIdentity This is required work for implementing publishing of fallback records in #1176 /cc @osheroff
diff --git a/src/main/java/com/zendesk/maxwell/producer/MaxwellKinesisProducer.java b/src/main/java/com/zendesk/maxwell/producer/MaxwellKinesisProducer.java index 1d566c28d..a2440d913 100644 --- a/src/main/java/com/zendesk/maxwell/producer/MaxwellKinesisProducer.java +++ b/src/main/java/com/zendesk/maxwell/producer/Max...
3
3
0
[{"id": "G0", "claim": "Use org.apache.commons.lang3.tuple.Pair, as used elsewhere in the codebase, instead of the custom pair() helper and Map.Entry-based pair construction, since it is probably cleaner.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In...
null
zendesk__maxwell__129
zendesk/maxwell
129
defect
e04b38e9485be71e25f1598c8361eb244a7dba21
ea553e51cbf419e0602814e8f46b2dcb7c10fd06
Scavenge thread take 2
@vanchi-zendesk here's a different approach at the scavenge thread. it's more readable I guess, but I had to expose some guts of RunLoopProcess as well as make it somewhat less accurate.
diff --git a/src/main/java/com/zendesk/maxwell/Maxwell.java b/src/main/java/com/zendesk/maxwell/Maxwell.java index a5dd4b353..10c52d059 100644 --- a/src/main/java/com/zendesk/maxwell/Maxwell.java +++ b/src/main/java/com/zendesk/maxwell/Maxwell.java @@ -79,6 +79,7 @@ public void run() { } }); + this.context.st...
1
1
1
[{"id": "G0", "claim": "The schema row should not be deleted from `maxwell`.`schemas` before all of its child rows (columns, tables, databases) are deleted; the reviewer asks that this delete be moved to after the row-deletion loops.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
zendesk__maxwell__132
zendesk/maxwell
132
defect
739033d3b9f6c14487eb11fb9d375de45a067e0c
74b9a619dc2b91cc17bd98a9d69bf7a889d4b65f
Performance work
switching out to the jackson json libraries gets us from 70k rows per second to 100k rows per second on my laptop. It adds a significant amount of ugliness as we end up hand-building the JSON, but this is _the_ hot loop of maxwell and so probably worth it. Suggestions on how to make the code prettier welcome. @zende...
diff --git a/pom.xml b/pom.xml index bb138e447..d720708c9 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,18 @@ <groupId>com.djdch.log4j</groupId> <artifactId>log4j-staticshutdown</artifactId> <version>1.1.0</version> - </dependency> + </dependency> + <dependency> + <group...
5
4
0
[{"id": "G0", "claim": "The keySet() override constructs a new LinkedHashSet on every call in the hot loop, creating garbage and GC pressure; the reviewer asks to precompute immutable key sets (or use a cheaper structure than LinkedHashSet) instead.", "category": "performance", "verdict": "supported", "priority": "P2",...
null
zendesk__maxwell__1469
zendesk/maxwell
1,469
defect
6d737c609986eb7aa133994861d5f44b526c1758
594d5026625aab10fedb335b4e56cc49ec0af4e6
add support to convert underscore naming style of fields in JSON output to camel case
in production, most of the fields in MYSQL tables are using underscore style naming strategy。And maxwell currently uses these raw names in its json output. ```` CREATE TABLE `book` ( `pk_id` bigint(20) NOT NULL AUTO_INCREMENT , `cover_id` varchar(64) , `cover_raw_link` varchar(1024) , `link_to` varchar...
diff --git a/config.properties.example b/config.properties.example index cb3a97026..1a60b9b27 100644 --- a/config.properties.example +++ b/config.properties.example @@ -112,6 +112,10 @@ password=maxwell # See also: ddl_kafka_topic #output_ddl=true +# turns underscore naming style of fields to camel case style in JS...
7
6
2
[{"id": "G0", "claim": "Fix the whitespace in the pull request: maxwell uses tabs, not spaces.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Undo any unnecessary changes to the import sections.", "category": "maintainability", "verdict": "supported", "pr...
null
zendesk__maxwell__152
zendesk/maxwell
152
defect
f1b63027798cc90b9574a4a95ddbebb847c4bb8c
f28195ec400cf14ea85774b7afa9b6c5976890a7
Fix date/datetime tests.
I noticed that some of the methods in ColumnDefTest were missing the @Test annotation, which means they weren't running. Added the annotation, and fixed up the tests. This is my first pull request ever, so let me know if I did anything wrong (either in the code, or in the Github workflow/pull request thing).
diff --git a/src/test/java/com/zendesk/maxwell/ColumnDefTest.java b/src/test/java/com/zendesk/maxwell/ColumnDefTest.java index a3d8a17bd..96341d1b1 100644 --- a/src/test/java/com/zendesk/maxwell/ColumnDefTest.java +++ b/src/test/java/com/zendesk/maxwell/ColumnDefTest.java @@ -11,6 +11,7 @@ import java.text.SimpleDateF...
2
2
0
[{"id": "G0", "claim": "The new TestDateTime lines are indented with spaces instead of tabs; use tabs to match the file's style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DateColumnDef.toSQL() returns the date value wrapped in two single-qu...
null
zendesk__maxwell__1667
zendesk/maxwell
1,667
defect
ebac2b844d1579e79c10d8be74819721ae361107
43cec0d6262471157cf607df98a064ae7e444940
Add SNS producer and updated config
AWS SNS topics now support FIFO ordering and strict delivery. This allows maxwell to publish messages to an SNS topic, with optional `table` and `database` message attributes for subscription filtering https://aws.amazon.com/about-aws/whats-new/2020/10/amazon-sns-introduces-fifo-topics-with-strict-ordering-and-dedup...
diff --git a/docs/docs/config.md b/docs/docs/config.md index b642b1543..0b7dc5925 100644 --- a/docs/docs/config.md +++ b/docs/docs/config.md @@ -90,6 +90,13 @@ option | argument | descripti -------------------------------|-------------------------------------| -------...
4
3
2
[{"id": "G0", "claim": "Fix the missing white space between `table` and `database` in the producers.md options paragraph.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If the SNS client library supports further configuration, the docs should drop...
null
zendesk__maxwell__1670
zendesk/maxwell
1,670
defect
d3d167022405d537eaf511c4b49a9bfaea12f912
ce21478d57362b062cfd671df8c27eafb98be9a8
[Ready for Review] Proposal for allowing live updates to maxwell filter
We are also having issues with wanting to quickly turn on and off maxwell filters. I saw with issue #1615 that we were not the only ones having this issue. My proposal is pretty simple: expose an http endpoint `PATCH: /config` that would allow a user to supply a json containing the new filter, and update it live. ``...
diff --git a/src/main/java/com/zendesk/maxwell/MaxwellConfig.java b/src/main/java/com/zendesk/maxwell/MaxwellConfig.java index 24c228845..8fcc3c6cd 100644 --- a/src/main/java/com/zendesk/maxwell/MaxwellConfig.java +++ b/src/main/java/com/zendesk/maxwell/MaxwellConfig.java @@ -110,6 +110,8 @@ public class MaxwellConfig ...
5
4
3
[{"id": "G0", "claim": "The /config update endpoint should also support PUT and POST methods, not only PATCH, so it behaves with least surprise for clients.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "One of the new files uses spaces where the project...
null
zendesk__maxwell__1698
zendesk/maxwell
1,698
defect
3e65c03eaae2f63bbb0c371238dca0add6756c8c
c792187cbe50b2797cad0bf963f310f871235b12
Add env_config option for config.properties alternative
Setting many kafka parameters is not possible using environment variables in Linux because Java is unable to read environment variables with '.' in them. Environment variables are supposed to be alphanumeric with underscores allowed only. Settings like kafka.bootstrap.servers can only be set in the config.properties. S...
diff --git a/src/main/java/com/zendesk/maxwell/MaxwellConfig.java b/src/main/java/com/zendesk/maxwell/MaxwellConfig.java index 00be4008d..e5ae06335 100644 --- a/src/main/java/com/zendesk/maxwell/MaxwellConfig.java +++ b/src/main/java/com/zendesk/maxwell/MaxwellConfig.java @@ -179,6 +179,11 @@ protected MaxwellOptionPar...
6
6
4
[{"id": "G0", "claim": "readPropertiesEnv should throw an exception rather than exiting the process in the branch where the env variable is missing or not JSON-encoded (the 'return null; // unreachable' line the comment anchors on).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd...
null
zendesk__maxwell__172
zendesk/maxwell
172
defect
f45e8b0426f03b92fdc2e17c1d3b51a1ef500b4b
10726b08564dfccaee317ae6eb3fbc5c83c81ea7
Overflow large transactions to disk
And for the last act, we have the actual feature: serialize RowMap rows to disk in a data structure that keeps N elements in memory and then starts spooling out to disk. we run at about 1/10th the speed after spooling to disk, so making the memory buffer big "enough" is important. If I knew how to reflect on java's ...
diff --git a/src/main/java/com/zendesk/maxwell/BinlogPosition.java b/src/main/java/com/zendesk/maxwell/BinlogPosition.java index 6dee0aa01..25f9aa272 100644 --- a/src/main/java/com/zendesk/maxwell/BinlogPosition.java +++ b/src/main/java/com/zendesk/maxwell/BinlogPosition.java @@ -1,10 +1,11 @@ package com.zendesk.maxw...
7
6
0
[{"id": "G0", "claim": "The transaction events need not be buffered until the XID arrives: Maxwell could stream them into Kafka as they come in, or mark events as part of a transaction using the transaction's start binlog position instead of MySQL's XID.", "category": "design", "verdict": "opposed", "priority": "P3", "...
null
zendesk__maxwell__1739
zendesk/maxwell
1,739
defect
725f1b21d4c8a73b159bf3059b5380fcfdd49a44
5d0de05aff8dd81ff4fa57cb524507fa1e58cf91
replicator client reconnect more than once
fixed #1768 - when connection is dropped and binlog_heartbeat = true, BinaryLogClient will try reconnect until connection is re-established
diff --git a/src/main/java/com/zendesk/maxwell/Maxwell.java b/src/main/java/com/zendesk/maxwell/Maxwell.java index 9f9454775..5d56f05c0 100644 --- a/src/main/java/com/zendesk/maxwell/Maxwell.java +++ b/src/main/java/com/zendesk/maxwell/Maxwell.java @@ -242,7 +242,8 @@ private void startInner() throws Exception { co...
2
2
0
[{"id": "G0", "claim": "The `import jnr.ffi.annotations.In` added to MaxwellConfig.java is wrong and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `client_max_reconnection_attempts` option should be moved to the \"mysql\"...
null
zendesk__maxwell__1928
zendesk/maxwell
1,928
defect
ce53800d3b4c9d193bb103e1ce023639b0cb9ade
5e96aa39ffdde6effbf152eae578bcb600fcf1b3
Fix DDL multi-line comments
As shown in the #1927 issue, the binlog comment in polardb-x(aliyun) was in line with the mysql annotation specification, when maxwell threw exceptions when executing specific sql, and tests found that the comment could be multiple lines in a piece of sql. eg: ``` String sql = "# POLARX_ORIGIN_SQL=CREATE INDEX devic...
diff --git a/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java b/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java index fa70ad39b..79c865e99 100644 --- a/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java +++ b/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java @@ -58,...
2
1
1
[{"id": "G0", "claim": "The pull request's code change should be covered by a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The MULTILINE # comment stripping regex will strip out all the SQL if anything starts with '#'.", "category": "correctness...
null
zendesk__maxwell__1971
zendesk/maxwell
1,971
defect
88b36ede2a6c3eb4513ec5c0047d98442d0e20d0
4fd139b2eef3fd7c32e9518b9759babbde0ad478
added operation sql for filtering server instances
fix #1970
diff --git a/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java b/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java index fde6c1048..1fff96fa4 100644 --- a/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java +++ b/src/main/java/com/zendesk/maxwell/schema/ddl/SchemaChange.java @@ -39,...
1
1
0
[{"id": "G0", "claim": "The reviewer asks that ALTER INSTANCE filtering ignore all `ALTER INSTANCE.*` statements rather than only the three enumerated variants (ROTATE INNODB MASTER KEY, ROTATE BINLOG MASTER KEY, RELOAD TLS).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zendesk__maxwell__2
zendesk/maxwell
2
defect
bb607381c22bea0cf93d9df8603aa4abca0f171c
ec5e1dc5038bfa7742683923892eb3ae05d109c7
Save schema in mysql
when we record schema changes, we'll stash them in mysql.
diff --git a/.classpath b/.classpath index 8863a41af..52010b39d 100644 --- a/.classpath +++ b/.classpath @@ -19,6 +19,7 @@ </attributes> </classpathentry> <classpathentry including="**/*.java" kind="src" path="src/test/resources"/> + <classpathentry kind="src" path="src/main/antlr4"/> <classpathentry kind="con...
4
3
2
[{"id": "G0", "claim": "The schema save performs its inserts outside a transaction, and the reviewer asks whether the whole save should be wrapped in one.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The save path has absolutely no error checks, a...
null
zendesk__maxwell__226
zendesk/maxwell
226
defect
bae4bc3e667b2f7ba94ec68dc7c47d0de2f02607
cf9a4676346349f1931f73799dbe99c37b6ce5a3
mysql-test, part 9
allow index definitions inside ADD COLUMN ( ... ) format. this also fixes handling of that form @zendesk/rules
diff --git a/src/main/antlr4/imports/mysql_alter_table.g4 b/src/main/antlr4/imports/mysql_alter_table.g4 index e9a3cb2b1..1bb43fd7c 100644 --- a/src/main/antlr4/imports/mysql_alter_table.g4 +++ b/src/main/antlr4/imports/mysql_alter_table.g4 @@ -25,7 +25,7 @@ alter_specification: // the various alter_table commands a...
1
1
0
[{"id": "G0", "claim": "The code before this pull request passed `null` as the column position to `AddColumnMod`, which would throw an exception when `index` was called on it in the apply method.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
zendesk__maxwell__242
zendesk/maxwell
242
defect
f1051eedc92ae09c23ef93f5b83867e15f8b1209
a869547daffa42a634a891d1e352dd049a5c9753
Allow custom maxwell database name
resolves zendesk/maxwell#225 tests still pending.
diff --git a/src/main/java/com/zendesk/maxwell/Maxwell.java b/src/main/java/com/zendesk/maxwell/Maxwell.java index c5425e5d7..af38eee63 100644 --- a/src/main/java/com/zendesk/maxwell/Maxwell.java +++ b/src/main/java/com/zendesk/maxwell/Maxwell.java @@ -26,7 +26,7 @@ private void initFirstRun(Connection connection) thro...
3
3
1
[{"id": "G0", "claim": "The new option should be named `schema_database` instead of `database` to be ultra-clear about its intentions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Substituting the database name into SQL strings (INSERT/SELECT ...
null
zendesk__maxwell__299
zendesk/maxwell
299
defect
a2826c72250a5639e5e24dbe57fa276b3e7876ef
ec437de37941fd1869e3fdba276e16ec2199b546
Column Filter
This is took-over work from https://github.com/zendesk/maxwell/pull/293. ### Status :construction: ### Reference https://github.com/zendesk/maxwell/pull/293
diff --git a/src/main/java/com/zendesk/maxwell/MaxwellAbstractRowsEvent.java b/src/main/java/com/zendesk/maxwell/MaxwellAbstractRowsEvent.java index 5166c2b7b..e606038d0 100644 --- a/src/main/java/com/zendesk/maxwell/MaxwellAbstractRowsEvent.java +++ b/src/main/java/com/zendesk/maxwell/MaxwellAbstractRowsEvent.java @@ ...
3
3
2
[{"id": "G0", "claim": "The list of excluded columns should be carried by the RowMap itself (instantiated into it) rather than passed as a parameter into toJSON, which is much cleaner.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "excludeColumns should ...
null
zendesk__maxwell__334
zendesk/maxwell
334
defect
4ee377a8146240361fa2e699bc4134218b32c676
9c3c290e641377cfa265dba08c8e4fbd8d6727a3
Patch up unsigned schemas
Find and fix instances of the unsigned schema-capture bug In order to repair the schemas, we patch up the in-memory representation of the schema and instruct the next snapshot to break its delta-history. Note that after I get sign-off here I'm going to backport all of this back to the v1_0 branch. @zendesk/rules
diff --git a/src/main/java/com/zendesk/maxwell/MaxwellReplicator.java b/src/main/java/com/zendesk/maxwell/MaxwellReplicator.java index 1670d4d0c..5307c7115 100644 --- a/src/main/java/com/zendesk/maxwell/MaxwellReplicator.java +++ b/src/main/java/com/zendesk/maxwell/MaxwellReplicator.java @@ -356,12 +356,7 @@ private vo...
4
2
2
[{"id": "G0", "claim": "restoreFrom should still throw InvalidSchemaError when it cannot find a schema, as it did before the change removed that check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The variable shouldResave declared in handleVersio...
null
zendesk__maxwell__366
zendesk/maxwell
366
defect
dc7c90539cc0a3a806196ad636ff35d93c3db869
8d83343674e83782da1e49d9e81bef655e997608
Do some work on Maxwell memory pressure
Under load in production, it was fairly easy to get Maxwell to run itself out of memory, especially with a transaction that involves many > 10mb rows. This changes the way that we flush our list of transactions to disk; previously we had kept a fixed size nubmer of RowMap objects in memory, now we make an educated gu...
diff --git a/src/main/java/com/zendesk/maxwell/RowMap.java b/src/main/java/com/zendesk/maxwell/RowMap.java index 24e531e0c..b59c92bee 100644 --- a/src/main/java/com/zendesk/maxwell/RowMap.java +++ b/src/main/java/com/zendesk/maxwell/RowMap.java @@ -15,6 +15,7 @@ import java.util.UUID; import java.util.regex.Pattern; ...
5
4
2
[{"id": "G0", "claim": "putData double-updates approximateSize, since approximateKVSize already mutates it and putData also adds its return value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The stray `//*` comment markers left in ListWithDiskBuf...
null
zendesk__maxwell__377
zendesk/maxwell
377
defect
357ae9592d3d3af13beb0c431417166c7321c90f
bff85a83908aba85ce6461292750b5a2aa151242
#362: preserve case of columns as they came in
Instead of downcasing all fields as they come in, preserve the original casing of the field, only doing case-insensitive compares on lookup. primary keys stay downcased; it's probably better to keep kafka keys static than to preserve original casing there. @zendesk/rules note: some sections best viewed with `?w=1`
diff --git a/pom.xml b/pom.xml index d2563f36d..b779fc558 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,9 @@ <version>5.1.39</version> </dependency> <dependency> - <groupId>commons-lang</groupId> - <artifactId>commons-lang</artifactId> - <version>2.6</version> + <groupId>org.apach...
3
1
1
[{"id": "G0", "claim": "SchemaStoreVersion needs to be bumped for the new `schemaVersion < 2` upgrade path in handleVersionUpgrades to make sense.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `data.containsKey(pk)` check in pkToJsonHash (and l...
null
zendesk__maxwell__393
zendesk/maxwell
393
defect
7b65e3827a23e1cc65d9c28dd8f0694135ef051d
1b1ed3888d64a5888ad3138260d958b0153e2555
Give the position thread a client_id
Towards enabling multiple maxwell instances pointing at one server, we give the position store a `client_id` that identifies unique instances of maxwell. @zendesk/rules
diff --git a/pom.xml b/pom.xml index 8aef7ff81..7acd4ac5b 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ <dependency> <groupId>com.zendesk</groupId> <artifactId>open-replicator</artifactId> - <version>1.4.2</version> + <version>1.4.3</version> </dependency> <dependency> <g...
5
2
2
[{"id": "G0", "claim": "The default clientID of \"maxwell\" would be better made unique so the maxwell instance a row comes from can be identified.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If several maxwell instances (one per shard) share the same...
null
zendesk__maxwell__404
zendesk/maxwell
404
defect
d2f73d8bb8237632e09890e43ecd4c2caa3efa9f
7874d4a3bcfc3ff1f5bed187d3f38d1f52c77c1f
(master-recovery, part 1) Refactor position store into two components
split apart the SQL work from the thread-loop of the position store. Also, make sure that `MaxwellConfig` always gets setup with sane defaults. @zendesk/rules
diff --git a/src/main/java/com/zendesk/maxwell/MaxwellConfig.java b/src/main/java/com/zendesk/maxwell/MaxwellConfig.java index 98273dd42..12a3d6b1b 100644 --- a/src/main/java/com/zendesk/maxwell/MaxwellConfig.java +++ b/src/main/java/com/zendesk/maxwell/MaxwellConfig.java @@ -42,6 +42,7 @@ public MaxwellConfig() { // a...
2
1
1
[{"id": "G0", "claim": "The new PositionStoreThread may be racy: getPosition (line 78) writes the plain `position` field without synchronization, so it could race against setPosition.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With the SQLExcept...
null
zendesk__maxwell__635
zendesk/maxwell
635
defect
127a52bc10ef01e7092df704582f45cdec6b9f48
a559182a9fd4d16bd27e5c8d99ff775dd37bf70d
ignore kafka/kinesis producer errors based on new configuration ignore_producer_error
We Kafka/Kinesis fails to publish the message, we only log the error currently. When setting the new config `ignore_producer_error` to false, it will enable us to shutdown Maxwell and reprocess the message again when Maxwell is running again (hopefully Kafka/Kinesis can publish the message by then). /cc @timbertson ...
diff --git a/docs/docs/config.md b/docs/docs/config.md index 3aeca2a78..11dd3064e 100644 --- a/docs/docs/config.md +++ b/docs/docs/config.md @@ -138,6 +138,7 @@ client_id | STRING | unique te replica_server_id | LONG | unique...
5
4
1
[{"id": "G0", "claim": "The docs entry describing the `false` case of ignore_producer_error is confusing, and should be reworded (suggested: \"log producer errors instead of terminating maxwell\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
zendesk__maxwell__740
zendesk/maxwell
740
defect
e910d19cb874f5204b452a7b9ca518b11f28cfd4
eb81d439bdd01a5063f8bf4cfb2f9bad28aa46e3
report lag metrics only on commits events
### Description Only report lag on commit events as when MySQL is slow on transactions, the lag will be incorrect based on the timestamp of every event (row change). Also measure the execution time internally instead of using the value in the header. /cc @timbertson @ericwush
diff --git a/src/main/java/com/zendesk/maxwell/replication/AbstractReplicator.java b/src/main/java/com/zendesk/maxwell/replication/AbstractReplicator.java index b2e719b30..07bc003b8 100644 --- a/src/main/java/com/zendesk/maxwell/replication/AbstractReplicator.java +++ b/src/main/java/com/zendesk/maxwell/replication/Abs...
1
1
1
[{"id": "G0", "claim": "The new metric code needs sanity checking for the case where an XID event arrives without a prior QUERY event (transactionStartTime == 0), or confirmation that QUERY is always seen before XID.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zendesk__maxwell__837
zendesk/maxwell
837
defect
b14caee06e7ed9dd7e09f385e3a7ece0c8b02cef
f4b26862c19aa45f12052140d7172ed7a69d5be5
Fix-up DDL partitioning
DDL now will support at least being partitioned by database or table. Addresses issue #804.
diff --git a/src/main/java/com/zendesk/maxwell/producer/MaxwellKafkaProducer.java b/src/main/java/com/zendesk/maxwell/producer/MaxwellKafkaProducer.java index 50732156f..2613118c6 100644 --- a/src/main/java/com/zendesk/maxwell/producer/MaxwellKafkaProducer.java +++ b/src/main/java/com/zendesk/maxwell/producer/MaxwellKa...
2
2
0
[{"id": "G0", "claim": "Use \"database\".equals(partitionKeyFallback) in case partitionKeyFallback is null, to avoid a NullPointerException in the guard the PR adds.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the else branch, just return t in...
null
zendesk__maxwell__845
zendesk/maxwell
845
defect
bf34dd99467ea63a8eedbbd468b3a03ed8e7cdc6
3619770c076ebc992b824653b8695b5eda208509
Ben/rewrite partition choice
this removes the overworked "HashStringProvider" bits and centralizes the logic of choosing a partition key into a `switch` statement. Also centralizes the fallback logic. Note that this includes PR #837, probably best to review after merging that.
diff --git a/src/main/java/com/zendesk/maxwell/producer/partitioners/AbstractMaxwellPartitioner.java b/src/main/java/com/zendesk/maxwell/producer/partitioners/AbstractMaxwellPartitioner.java index e5296c0f9..b45835984 100644 --- a/src/main/java/com/zendesk/maxwell/producer/partitioners/AbstractMaxwellPartitioner.java +...
1
1
1
[{"id": "G0", "claim": "The PR drops the old database default for partitioning: an unknown or null partition-by string now yields null (and a null PartitionBy hashes to a random UUID), and the reviewer asks that `database` be used as the default again.", "category": "correctness", "verdict": "supported", "priority": "P...
null
zendesk__maxwell__906
zendesk/maxwell
906
defect
333312a313b5a60efd9188ec3bac781078e83663
3deb981ac1e6a8c6c067d9320907b71f61316197
add javascript filtering
This introduces javascript per-row hooks that are called before passing a row off to the producer. This lets users munge data, filter out output based on arbitrary code, and choose their own kafka topics. More possibilities are obviously available, but it seems like a good place to start. TODO: some testing, ...
diff --git a/docs/docs/config.md b/docs/docs/config.md index 32343da9d..9bf7a3a9f 100644 --- a/docs/docs/config.md +++ b/docs/docs/config.md @@ -95,6 +95,26 @@ you can use `exclude_columns` to filter out columns by name. Maxwell can filter rows to only match when a column contains a specific value. The `include_colum...
4
1
0
[{"id": "G0", "claim": "The reviewer asks whether --javascript should check the file's extension, since --javascript=test.py worked without complaint, and says it should at least throw a warning.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "WrappedR...
null
zendeskgarden__react-containers__225
zendeskgarden/react-containers
225
defect
6b98ceaa6cbe425cfeea18c09bb27a6256f01bda
068ccbe9aefb7b114a5fe7a6f24ae8e85b6c0073
chore(tests): add user-event and improve tests
## Description This PR adds the [`@testing-library/user-event`](https://www.npmjs.com/package/@testing-library/user-event#typeelement-text-options) package to the project. It also required an update of `@testing-library/dom`. ## Detail Most of this PR is a straight forward migration from `fireEvent` to `userEv...
diff --git a/package.json b/package.json index 75f8c2100..1b2f651cd 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,9 @@ "test:all": "jest --config=utils/test/jest.config.js", "version": "yarn run build && git add -A" }, + "dependencies": { + "@testing-library/user-event": "12.1.0" + }, "...
3
3
2
[{"id": "G0", "claim": "The newly added @testing-library/user-event dependency belongs in devDependencies instead of dependencies.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Removing the readOnly-textarea test drops branch coverage on the readOnly-ha...
null
zendeskgarden__react-containers__384
zendeskgarden/react-containers
384
defect
b46d1743ac0d19a40e54ad587845960a061db7e0
f20b7a6911830f5a1d9f8fb4f4eae69521f97f73
feat(splitter): add splitter
<!-- structure the Title above as the first line of a https://conventionalcommits.org/ message. example: "feat(selection): add keydown event to handle rtl". the title informs the semantic version bump if this PR is merged. --> - [ ] **BREAKING CHANGE?** <!-- if so, indicate why under description --...
diff --git a/README.md b/README.md index 05be2365e..859da3f4c 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ to install. | [`@zendeskgarden/container-schedule`](packages/schedule) | [![npm version][schedule npm version]][schedule npm link] | [![npm version][schedule size bundle]][schedule...
26
22
8
[{"id": "G0", "claim": "The pre-cache state utility added by this PR (with its 'TODO Promote to Container Utilities?') should be promoted to the shared Container Utilities package.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The demo's flex styling (p...
null
zenodo__zenodo__1284
zenodo/zenodo
1,284
defect
d89c9a83f3885b7067a30834baf1b16bac4b96e5
537a040bf43003ce2229ca65392ee96f844cc81d
global: files jsonschema fixes
* Adds 'file_id' as files schema key and introduces requried keys. * Refactoring of jsonschema compilers and file's 'source' schemas. Signed-off-by: Krzysztof Nowak <k.nowak@cern.ch>
diff --git a/.travis.yml b/.travis.yml index af504d791..efd8224ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,7 @@ addons: packages: - nodejs - libfreetype6-dev + firefox: "55.0" notifications: email: false @@ -80,6 +81,7 @@ before_install: - "./scripts/setup-npm.sh" - "cat r...
2
1
1
[{"id": "G0", "claim": "The tests are making an actual request to the OpenAIRE Indexing API (at the testing endpoint), apparently caused by some publish signal firing the task.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Making bucket, checksum, file...
null
zenodo__zenodo__1557
zenodo/zenodo
1,557
defect
9f0c975184f5f59e2aaf503134ceec8873b29a3e
34e32a6a89e96491b9aab8a138e0c2666284214f
schemas: change identifier for foreign DOIs
closes #1327 and #1524
diff --git a/tests/unit/records/test_schemas_datacite.py b/tests/unit/records/test_schemas_datacite.py index ca661a08e..3f92148ce 100644 --- a/tests/unit/records/test_schemas_datacite.py +++ b/tests/unit/records/test_schemas_datacite.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # # This file is part of Zenodo. -# Copy...
1
1
0
[{"id": "G0", "claim": "The new resolve_openaire_communities docstring should read \"Resolve a list of Zenodo communities as a set of OpenAIRE communities\" instead of omitting the \"as\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zenodo__zenodo__1685
zenodo/zenodo
1,685
defect
1e7770d9700f2c3f974fcf7c11536f33289e32ef
a2ec38c98c065d7da17a17ff5643637ee49a2072
record-ui: fix bibtex long value formatting
* Fix the case of values with trailing whitespace causing repetition of the value. (closes #1598)
diff --git a/tests/unit/records/test_bibtex_serializer.py b/tests/unit/records/test_bibtex_serializer.py index 751c809c7..7049d3c77 100644 --- a/tests/unit/records/test_bibtex_serializer.py +++ b/tests/unit/records/test_bibtex_serializer.py @@ -582,3 +582,30 @@ def test_format_publication_default(full_record): ...
1
1
0
[{"id": "G0", "claim": "The new `field = field.rstrip()` line should use plain `.strip()` instead of `.rstrip()`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
zenodo__zenodo__1721
zenodo/zenodo
1,721
defect
9e13d38f19379a98313a39eddeaa09bb5e904fc7
441442c887668e080e0d4fe111815f9b7ec70c3f
deposit-ui: fix redirect link generated
* Fixes redirect link for ui provided by the api when creating a new version (closes #1622).
diff --git a/zenodo/modules/records/serializers/schemas/common.py b/zenodo/modules/records/serializers/schemas/common.py index 6c50448bd..ce1b98609 100644 --- a/zenodo/modules/records/serializers/schemas/common.py +++ b/zenodo/modules/records/serializers/schemas/common.py @@ -569,7 +569,7 @@ def _dump_relation_links(se...
2
2
1
[{"id": "G0", "claim": "The pull request only fixes the problem partially, since the issue of both actions (discard and new version) running simultaneously and causing an Elasticsearch version conflict also needs to be tackled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existin...
null
zenodo__zenodo__1725
zenodo/zenodo
1,725
defect
9e13d38f19379a98313a39eddeaa09bb5e904fc7
64377fcfc0b93fb397205cb810e4cbeb9bf7e2ef
global: bump idutils to 1.1.2
* Closes #1723
diff --git a/requirements.txt b/requirements.txt index 3180ce411..fded9faab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -101,7 +101,7 @@ html5lib==1.0.1 httpretty==0.8.14 humanize==0.5.1 idna==2.6 -IDUtils==1.0.0 +IDUtils==1.1.2 infinity==1.4 intervals==0.8.1 invenio-access==1.0.0 diff --git a/setup.p...
1
1
1
[{"id": "G0", "claim": "All DOIs should be with HTTPS URLs, so the pull request should not weaken the DOI URL expectations to http:// (nor emit http:// DOI URLs) as a consequence of bumping idutils to 1.1.2.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zenodo__zenodo__1747
zenodo/zenodo
1,747
defect
b873d27cee276a34d26c416541f42bb52ad2ebb3
4e3fa88ed5fc6359f9fb03139036e3278e2e00a8
deposit: support temporal metadata in REST APIs
* support temporal metadata in REST APIs (close #1741) * serializers for temporal metadata (close #1743) * support temporal search queries (close #1742)
diff --git a/zenodo/modules/deposit/jsonschemas/deposits/records/record-v1.0.0.json b/zenodo/modules/deposit/jsonschemas/deposits/records/record-v1.0.0.json index 39383f9dd..73a86b6b3 100644 --- a/zenodo/modules/deposit/jsonschemas/deposits/records/record-v1.0.0.json +++ b/zenodo/modules/deposit/jsonschemas/deposits/re...
2
2
1
[{"id": "G0", "claim": "arrow.get should be called with an explicit strict format (e.g. 'YYYY-MM-DD') because Arrow's liberal parsing otherwise interprets values like '2019' as unix timestamps.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The date...
null
zenodo__zenodo__2299
zenodo/zenodo
2,299
defect
7af3c9e57367d849f5151da68d8929cf5c0b9c7d
79764693892848dcb1d88c0692c24a6173c76b7a
records-ui: display REANA badge
Closes #2296 ![image](https://user-images.githubusercontent.com/12964318/156571923-0b79e4a0-0af7-4da2-9ddd-ff51ea12569f.png)
diff --git a/zenodo/modules/records/templates/zenodo_records/box/info.html b/zenodo/modules/records/templates/zenodo_records/box/info.html index 81e22ad58..c2ff08ef7 100644 --- a/zenodo/modules/records/templates/zenodo_records/box/info.html +++ b/zenodo/modules/records/templates/zenodo_records/box/info.html @@ -72,6 +7...
6
6
2
[{"id": "G0", "claim": "The badge's reana-file detection should not be a plain exact-name for-loop: simplify it (e.g. a membership test) and accept the variants seen in the wild such as reana-cwl.yaml and .yml, e.g. with regex-style matching.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i...
null
zenodo__zenodo__2376
zenodo/zenodo
2,376
defect
e044d40dfa6940268fcc7cdfcaeb57a0b1b4860b
3621b6c3459c503541aa8e9cf9e2a193d48e8b37
spam: add domain validation in safelist admin panel
Adding status flags on the safelisting panel ![image](https://user-images.githubusercontent.com/15949934/186382149-bac6ec2d-0a52-4aaa-a7d3-f83c723a6317.png)
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index d9a372357..e0bdc2ac4 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -149,7 +149,7 @@ def tmp_db_path(): @pytest.yield_fixture(scope='session') -def tmp_spam_domains_file(): +def tmp_spam_domains_forbidden_list_file(): """T...
7
7
1
[{"id": "G0", "claim": "The two-line ZENODO_SPAM_DOMAINS_FORBIDDEN_LIST_FILEPATH assignment in tests/unit/conftest.py will probably get a complaint from pep8 and should be formatted as a one-liner.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "...
null
zenodo__zenodo__303
zenodo/zenodo
303
defect
36d60b28c07982d4b955234b063992a3ebbb0e3b
c818f1a2e45b1a7bd735ffda9bfb9537db8efbbe
base: authors REST API support
- Adds authors REST API support (addresses #217). Signed-off-by: Adrian Pawel Baran adrian.pawel.baran@cern.ch <!--- @huboard:{"order":271.0,"milestone_order":303,"custom_state":""} -->
diff --git a/zenodo/base/format_templates/DataCite.xsl b/zenodo/base/format_templates/DataCite.xsl index 314833e51..3fbe4f120 100644 --- a/zenodo/base/format_templates/DataCite.xsl +++ b/zenodo/base/format_templates/DataCite.xsl @@ -71,6 +71,20 @@ exclude-result-prefixes="marc fn dc invenio"> <creatorN...
2
2
1
[{"id": "G0", "claim": "The DataCite output would contain multiple nameIdentifier elements per creator, which the DataCite schema does not allow, so the extra identifier must be removed for now until a future schema version permits it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
zenodo__zenodo__503
zenodo/zenodo
503
defect
3307cd3511bffa1bb5b1cef9d44e192c031c65f9
6cf280794541fa839e7272022cfe5c7113643f38
records: marcxml mapping improvement
- Improves marcxml mappings. (closes #501) Signed-off-by: Leonardo Rossi leonardo.r@cern.ch
diff --git a/tests/unit/records/test_schemas_marcxml.py b/tests/unit/records/test_schemas_marcxml.py new file mode 100644 index 000000000..2ca37458b --- /dev/null +++ b/tests/unit/records/test_schemas_marcxml.py @@ -0,0 +1,275 @@ +# -*- coding: utf-8 -*- +# +# This file is part of Zenodo. +# Copyright (C) 2016 CERN. +#...
5
4
4
[{"id": "G0", "claim": "The test's `meetings` value should be a list with a dict inside rather than a plain dict (and the serializer mapping should match that shape).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should assert that the record v...
null
zenodo__zenodo__564
zenodo/zenodo
564
defect
c705cdf28509409a86a17b39326901551368e55e
55e199ea483f9ffcd597aba8208702a959161b58
views: file listing based on permissions
- Lists files in record view only if the viewer has a permission to view them. (closes #423) Signed-off-by: Sami Hiltunen sami.mikael.hiltunen@cern.ch
diff --git a/setup.py b/setup.py index 7b6659223..4bdabcba4 100644 --- a/setup.py +++ b/setup.py @@ -83,6 +83,7 @@ 'CairoSVG>=1.0.20', 'cerberus>=0.9.2', 'datacite>=0.2.1', + 'python-dateutil>=2.4.2', 'dcxml>=0.1.0', 'dojson>=1.2.1', 'Flask-BabelEx>=0.9.2', diff --git a/zenodo/config.py...
3
3
2
[{"id": "G0", "claim": "The to_dict() workaround for AttrDict belongs in the objecttype filter or the ObjectType model rather than the frontpage template, since to_dict() would not work if the record comes from the db; also open an issue on elasticsearch-dsl.", "category": "design", "verdict": "supported", "priority": ...
null
zenodo__zenodo__599
zenodo/zenodo
599
defect
95717fb25eb0858ded9baa7b2fb71af54edbc54b
5f8677a638db2f6f29e1278fa2f5a9605ed51eec
deposit: datacite DOI minting
- Adds signal for datacite DOI minting. Signed-off-by: Krzysztof Nowak k.nowak@cern.ch
diff --git a/requirements.devel.txt b/requirements.devel.txt index 97d06db70..50695d6e9 100644 --- a/requirements.devel.txt +++ b/requirements.devel.txt @@ -23,7 +23,7 @@ # as an Intergovernmental Organization or submit itself to any jurisdiction. # Requirements for testing development version of important packages...
5
4
3
[{"id": "G0", "claim": "The task builds the DataCite document with datacite_v31.dump() (JSON), but DataCite accepts only XML, so it should use datacite_v31.serialize(pid, record).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The task always calls ...
null
zenodo__zenodo__786
zenodo/zenodo
786
defect
1574a8f4e594031cc9677a6c02845b3188e3e4ad
f102e1f6944b607cf5f5a175d864c0a4cd311f59
pages: prepare what's new page
- Adds a new What's New page. (closes #766) Signed-off-by: Alexander Ioannidis a.ioannidis@cern.ch
diff --git a/zenodo/modules/fixtures/data/pages.json b/zenodo/modules/fixtures/data/pages.json index 8a13cad14..d5be5370f 100644 --- a/zenodo/modules/fixtures/data/pages.json +++ b/zenodo/modules/fixtures/data/pages.json @@ -61,5 +61,12 @@ "description": "", "file": "pages/features.html", "template_name"...
2
2
0
[{"id": "G0", "claim": "The temporary /whatsnew view added to theme/views.py with a FIXME saying to remove it and its template should not be part of the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The front-page should also be u...
null
zenodo__zenodo__881
zenodo/zenodo
881
defect
f1f3ec2f4122e057302c52b90da29eaa64178ab6
16cfb5bf88e5105e06a50e31fbc994bd71fd25cd
installation: version bumps
Signed-off-by: Alexander Ioannidis <a.ioannidis@cern.ch>
diff --git a/requirements.txt b/requirements.txt index 6f146676c..9f5713dca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ -e git+https://github.com/lnielsen/invenio-migrator.git@#egg=invenio-migrator # PyPI requirements -alabaster==0.7.8 +alabaster==0.7.9 amqp==1.4.9 anyjson==0.3.3 apipk...
2
1
0
[{"id": "G0", "claim": "The setup.py dependency pin 'invenio-deposit>=1.0.0a7.dev20161003' should become 'v1.0.0a7' once that release is out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Pillow update (to 3.4.2, fixing CVE-2016-9190) is so...
null
zenorocha__clipboard.js__720
zenorocha/clipboard.js
720
defect
64797395643b6bab7221842150f63d5916dbb9be
d9b90c2f5d25a9752093b7f2fb0ec990250fa16a
Remove unnecessary code and add node version control
This PR remove `import listen from 'good-listener'` dependency from `test/clipboard.js` and add `.nvmrc` to the project to control which Node version we will be using while running the project.
diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..8351c193 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +14 diff --git a/test/clipboard.js b/test/clipboard.js index 7a3b2355..bb6a7aea 100644 --- a/test/clipboard.js +++ b/test/clipboard.js @@ -1,127 +1,131 @@ -import Clipboard from '../src/clipboard'; -impor...
1
1
0
[{"id": "G0", "claim": "The test file's changed code should keep using single quotes so it stays standardized with the rest of the code base, which uses single quotes.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
zenorocha__clipboard.js__808
zenorocha/clipboard.js
808
defect
98c96a1136f78bd0b6fc5f5d3da964550fc9cd17
c16f99a0eedf212a660e21163c5e69937d98d1ec
Support more HTML input types. Close #800
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/zenorocha/clipboard.js/blob/master/contributing.md#proposing-pull-requests --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> **What kind of change does this PR introduce?** (check at least one) - ...
diff --git a/demo/target-input-number.html b/demo/target-input-number.html new file mode 100644 index 00000000..c5373845 --- /dev/null +++ b/demo/target-input-number.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <title>target-input-number</title> + <meta name="...
1
1
1
[{"id": "G0", "claim": "The new test in test/actions/copy.js uses it.only, which restricts the test run to that single test; the reviewer asks that the .only be removed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zenstackhq__zenstack__1110
zenstackhq/zenstack
1,110
defect
9f9d27704c2eecbbbd69e841ece6b1d4d22040f6
841989d574239243f5d9651f64f6aac4f48acf15
merge from dev
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added reverse iteration functionality in data handling for improved operation sequence. - Introduced enhanced policy handling methods for data connections and updates. - Implemented new validat...
diff --git a/packages/runtime/src/cross/nested-write-visitor.ts b/packages/runtime/src/cross/nested-write-visitor.ts index db2455d7e..4ce4e0ae7 100644 --- a/packages/runtime/src/cross/nested-write-visitor.ts +++ b/packages/runtime/src/cross/nested-write-visitor.ts @@ -4,7 +4,7 @@ import type { FieldInfo, ModelMeta } f...
9
1
0
[{"id": "G0", "claim": "The error message expected for `@@validate(hasSome(x, 1))` may not accurately reflect the actual validation issue, so the `hasSome` implementation or the test case should be reviewed to ensure the message accurately reflects the validation logic (e.g. using `has(x, [1])` if x is meant to be an a...
null
zenstackhq__zenstack__1194
zenstackhq/zenstack
1,194
defect
a28d592d1a696d142ef1fecdfd562aeea72fd918
33fefa22977fa051259f31d23933ae184934d0bb
chore(server): change default exports to named ones for compatibility
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Improved code organization and naming for API handlers across different server technologies. - Standardized export patterns for middleware and plugins, enhancing code maintainability and readabilit...
diff --git a/packages/server/package.json b/packages/server/package.json index 6ff916bc3..818992ad8 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -59,6 +59,7 @@ }, "exports": { "./package.json": "./package.json", + "./api": "./api/index.js", "./api/re...
1
1
0
[{"id": "G0", "claim": "Some files still import the RPC handler under the old casing `RPCAPIHandler` while the pull request's new export is named `RPCApiHandler`, and this case variation should be addressed to keep import names uniform.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
zenstackhq__zenstack__1629
zenstackhq/zenstack
1,629
defect
6bde15ebb295d66cc525d25e278021e7eaf192b4
19bf371caa1ad9fda261ea4fef21cb4884333e92
Truncate too long delegate aux relation name in runtime
# Issue Long relation names cause any db operations failure
diff --git a/packages/runtime/src/constants.ts b/packages/runtime/src/constants.ts index 5fd8c2901..4eee90954 100644 --- a/packages/runtime/src/constants.ts +++ b/packages/runtime/src/constants.ts @@ -67,3 +67,7 @@ export const PRISMA_MINIMUM_VERSION = '5.0.0'; * Prefix for auxiliary relation field generated for dele...
2
2
2
[{"id": "G0", "claim": "The new 'handles very long property names' test passes both before and after the fix, so it does not exercise the real issue, which ymc9 believes happens when a concrete model's name (not a field name) is very long.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "int...
null
zenstackhq__zenstack__1754
zenstackhq/zenstack
1,754
defect
1197c70d1aba5f5b27698b0cbe7d5768c3c11c81
e52bd626af83639e70d8602704187fc9e4573354
RESTApiHandler support compound ids (@@id)
https://github.com/zenstackhq/zenstack/issues/1748 Adds support for the Prisma @@id compound ids to the RESTApiHandler. [Discord thread](https://discordapp.com/channels/1035538056146595961/1289126659932553236/1289126659932553236)
diff --git a/packages/server/src/api/rest/index.ts b/packages/server/src/api/rest/index.ts index 75b2f738b..13cf6f4fc 100644 --- a/packages/server/src/api/rest/index.ts +++ b/packages/server/src/api/rest/index.ts @@ -32,6 +32,9 @@ const urlPatterns = { relationship: new UrlPattern('/:type/:id/relationships/:relati...
10
7
3
[{"id": "G0", "claim": "The compound key field name should not be a fixed `compoundIdKey` constant; Prisma's own convention (id1_id2_) should be used as the compound key field name.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The locally defined `IdFi...
null
zenstackhq__zenstack__1862
zenstackhq/zenstack
1,862
defect
85a8d5d7f5baf5765a300530f8a7b19b1d8ad5a3
adcbf4bda2d7b7668c2e57d7b44ad6a4163a28f7
fix: make sure both fk and relation fields are optional in create input types
fixes #1843
diff --git a/packages/schema/src/plugins/enhancer/enhance/index.ts b/packages/schema/src/plugins/enhancer/enhance/index.ts index 7236cac85..ce4e167c1 100644 --- a/packages/schema/src/plugins/enhancer/enhance/index.ts +++ b/packages/schema/src/plugins/enhancer/enhance/index.ts @@ -7,6 +7,7 @@ import { getDataModelA...
5
2
0
[{"id": "G0", "claim": "The regression test hardcodes user ID \"1\" for both the connect and the FK create, which might not exist; create a user first and use its ID.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The create operations in the regression...
null
zenstackhq__zenstack__2029
zenstackhq/zenstack
2,029
defect
41157fff03a2f230427196ab447e8e70e3c7eb29
8cef34313d5dda983a7afe195b2a8141a1188e1c
fix(zod): delegate aux fields appearing in WhereUniqueInput schemas
Fixes #2028 This also silently fixes the enhanced PrismaClient types by updating that code to use `.includes(DELEGATE_AUX_RELATION_PREFIX)` over `.startsWith(DELEGATE_AUX_RELATION_PREFIX)` to search for delegate aux fields. Unfortunately I couldn't find an easy way to test the PrismaClient types within the existi...
diff --git a/packages/schema/src/plugins/enhancer/enhance/index.ts b/packages/schema/src/plugins/enhancer/enhance/index.ts index 1cd49c0a4..c0331e61e 100644 --- a/packages/schema/src/plugins/enhancer/enhance/index.ts +++ b/packages/schema/src/plugins/enhancer/enhance/index.ts @@ -565,10 +565,10 @@ export type Enhanced<...
2
1
0
[{"id": "G0", "claim": "The added negative assertions that delegate aux fields are excluded from UserFolderWhereUniqueInputObjectSchema might be overkill, since the original issue may not actually have required them.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "...
null
zenstackhq__zenstack__2040
zenstackhq/zenstack
2,040
defect
e8694e6c06d27b5624e3b8d2cc69189a1ea71958
81dec88ab3654d52125626e7db79973d2821b903
fix(JSON): @default not working for @JSON types & Typed JSON lists generating invalid Zod schemas
Fixes #2039
diff --git a/packages/schema/src/language-server/validator/attribute-application-validator.ts b/packages/schema/src/language-server/validator/attribute-application-validator.ts index b22a6f372..f536d4d66 100644 --- a/packages/schema/src/language-server/validator/attribute-application-validator.ts +++ b/packages/schema/...
1
1
0
[{"id": "G0", "claim": "The new Typed-JSON check in assignableToAttributeParam should use the existing hasAttribute helper instead of a manual attributes.find, to make the code shorter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zenstackhq__zenstack__2120
zenstackhq/zenstack
2,120
defect
03d6f7f80ade622cf5576a5070010df4b4ff1014
4347fdb6e049b8d5d7319b9bc61ac30a220f6406
fix(delegate): simulate cascade delete
fixes #2102
diff --git a/packages/runtime/src/cross/model-meta.ts b/packages/runtime/src/cross/model-meta.ts index 727038fd4..ad8d2aa76 100644 --- a/packages/runtime/src/cross/model-meta.ts +++ b/packages/runtime/src/cross/model-meta.ts @@ -20,6 +20,11 @@ export type RuntimeAttribute = { */ export type FieldDefaultValueProvider...
4
1
1
[{"id": "G0", "claim": "The recursive cascade delete may recurse endlessly or double-delete when two delegate branches reference each other with onDelete: Cascade, because Promise.all(cascadeDeletes.map(... this.doDelete(...))) recurses without cycle detection.", "category": "correctness", "verdict": "uncertain", "prio...
null
zenstackhq__zenstack__2171
zenstackhq/zenstack
2,171
defect
02f458d072a1218c781144caf0c0ff06c68c2618
577304971e79a79949f98a7fa53031186f6ce72d
fix: improve support for new `prisma-client` generator
Fixes #2168 Improves support for new `prisma-client` generator. @ymc9 What I think needs some attention, which I wasn't able to figure out. The `enhance.ts` that is generated imports these: `import type { InternalArgs, DynamicClientExtensionThis } from '../prisma/client/runtime/library';` But I don't belie...
diff --git a/packages/schema/src/plugins/enhancer/enhance/index.ts b/packages/schema/src/plugins/enhancer/enhance/index.ts index f30d756cc..c1e79bdab 100644 --- a/packages/schema/src/plugins/enhancer/enhance/index.ts +++ b/packages/schema/src/plugins/enhancer/enhance/index.ts @@ -121,9 +121,13 @@ export class EnhancerG...
3
2
1
[{"id": "G0", "claim": "Maybe the $Types usage check is unnecessary and the import could just be added unconditionally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When multiple fields use the same TypeDef, duplicate type names end up in the ...
null
zenstackhq__zenstack__2184
zenstackhq/zenstack
2,184
defect
15b13f528d93efd721de027d601785f2ff057407
be3f72fd6fdf66a641729bc38f86a64d9ed9b32e
fix: Update re-exports for new prisma-client generator
This should update the re-exporting of the Prisma logical client when using the new `prisma-client` generator, consistent with discussions [here](https://github.com/zenstackhq/zenstack/pull/2177#issuecomment-3069340310)
diff --git a/packages/schema/src/plugins/enhancer/enhance/index.ts b/packages/schema/src/plugins/enhancer/enhance/index.ts index cdfdb006b..8e6e3719d 100644 --- a/packages/schema/src/plugins/enhancer/enhance/index.ts +++ b/packages/schema/src/plugins/enhancer/enhance/index.ts @@ -1,4 +1,5 @@ import { DELEGATE_AUX_RELA...
2
1
0
[{"id": "G0", "claim": "The enhancer generation logic has become deeply entangled (starting with the logical client and now with two flavors of generators) and warrants a local refactor.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The condi...
null
zenstackhq__zenstack__2187
zenstackhq/zenstack
2,187
defect
dc4eb4e1d44e8b51002d3ba42d6b459b241b9370
eb9332e8b33b6ae292b4f04e1989defc8731625d
feat: add ability to map model names in the URLS/JSON response
implements https://github.com/zenstackhq/zenstack/issues/2178 this PR also adds support for a `prefix` similar to the openapi plugin. note openapi plugin itself still needs to be updated, to also use this model name mapping. also we did not add any new tests. would appreciate any hints on that. finally we will...
diff --git a/packages/server/src/api/rest/index.ts b/packages/server/src/api/rest/index.ts index 59558be98..54e533987 100644 --- a/packages/server/src/api/rest/index.ts +++ b/packages/server/src/api/rest/index.ts @@ -50,6 +50,9 @@ export type Options = { * it should be included in the charset. */ urlSe...
11
10
6
[{"id": "G0", "claim": "Relationship names are field names, not model names, so applying modelNameMapping to them in matchUrlPattern and reverse-mapping them when generating relationship URLs is incorrect and can break relationship routes and links.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
zenstackhq__zenstack__2188
zenstackhq/zenstack
2,188
defect
037fc2cb03d4161de33bc826b8c69fabe5044687
9c860e807bf8ce81116e2411be4134a8cddf8e44
feat: support natural keys in the API
this makes it possible to use a natural key even while also using surrogate primary keys https://www.prisma.io/dataguide/datamodeling/correctness-constraints#the-primary-key Using the surrogate key might be sensible since it is more compact for foreign keys. Also the tag name might be editable. But inside the API...
diff --git a/packages/runtime/src/cross/utils.ts b/packages/runtime/src/cross/utils.ts index c56ff3cf9..2883a0c6b 100644 --- a/packages/runtime/src/cross/utils.ts +++ b/packages/runtime/src/cross/utils.ts @@ -50,9 +50,17 @@ export function zip<T1, T2>(x: Enumerable<T1>, y: Enumerable<T2>): Array<[T1, T2 * Gets ID fie...
7
5
2
[{"id": "G0", "claim": "The @@externalId processing in getIdFields (packages/runtime/src/cross/utils.ts) lacks null-safety on externalId.args and does not validate that the configured external ID name matches an existing unique constraint, so it should use optional chaining/type validation and throw or fall back with a...
null
zenstackhq__zenstack__2206
zenstackhq/zenstack
2,206
defect
6d11737e3742d27e415764f769b70c576057579a
d395aa98e6608f0b5bc081c5a4b613f163635ef2
Angular tanstack query
Second try (before I did not branch from dev ...) Heyho, pretty new to the open-source world. As I use Angular and NestJS in my tech stack and found this interesting library I was pretty sad that the plugin does not work with Angular, so I created an implementation. Sadly, I can't get the test running on my system...
diff --git a/packages/plugins/tanstack-query/package.json b/packages/plugins/tanstack-query/package.json index 8793764b9..4a481470c 100644 --- a/packages/plugins/tanstack-query/package.json +++ b/packages/plugins/tanstack-query/package.json @@ -58,6 +58,12 @@ "import": "./runtime-v5/svelte.mjs", ...
2
2
1
[{"id": "G0", "claim": "The new Angular case in generateMutationHook duplicates the identical react/vue case above it; consider combining them to reduce code duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added mandatory p...
null
zenstackhq__zenstack__2252
zenstackhq/zenstack
2,252
defect
80ebb556c68c14f8fdbc10d91b479ede29876b3e
f92fea4c0cb3ab4a3bfaf94ae1c5c2c079ae3378
Rest api sparse fieldsets
implements sparse fieldsets as shown in the specification https://jsonapi.org/format/#fetching-sparse-fieldsets
diff --git a/packages/server/src/api/rest/index.ts b/packages/server/src/api/rest/index.ts index 7d9f220ac..7c1f6897a 100644 --- a/packages/server/src/api/rest/index.ts +++ b/packages/server/src/api/rest/index.ts @@ -177,6 +177,10 @@ class RequestHandler extends APIHandlerBase { status: 400, t...
6
2
1
[{"id": "G0", "claim": "injectRelationQuery can crash when select[relationship] is boolean, because when no fields[...] is provided for the related type select is set to { [relationship]: true } which later augmentation spreads as an object; fix by always using an object with a sensible default selection (IDs + scalar ...
null
zenstackhq__zenstack__2260
zenstackhq/zenstack
2,260
defect
237bb59f62a7dd45bae69bee45fe3a988a9a6691
3f6526231e308c27bdbd57f2d4a2ce8612ff5438
fix(delegate): issue with filtering concrete relations with fields from base
fixes #2246
diff --git a/packages/runtime/src/enhancements/node/delegate.ts b/packages/runtime/src/enhancements/node/delegate.ts index 56f918f40..977e1c199 100644 --- a/packages/runtime/src/enhancements/node/delegate.ts +++ b/packages/runtime/src/enhancements/node/delegate.ts @@ -228,6 +228,9 @@ export class DelegateProxyHandler e...
3
1
0
[{"id": "G0", "claim": "The schema's `mediaType` field has no default, so the nested `movies.create` call in the regression test may fail; add explicit `mediaType: 'Movie'` under the create data or verify that the Prisma client auto-populates the discriminator for delegated models.", "category": "correctness", "verdict...
null
zenstackhq__zenstack__2306
zenstackhq/zenstack
2,306
defect
c23ff100acd37c48849f41181729e92114b71bc6
3c6a135a184c418055d861f7dbba8c55e03e86f1
fix: type with `@@auth` cannot be properly compiled with new "prisma-client" generator
fixes #2294
diff --git a/packages/schema/src/plugins/enhancer/enhance/auth-type-generator.ts b/packages/schema/src/plugins/enhancer/enhance/auth-type-generator.ts index 3736682ed..e908ddd30 100644 --- a/packages/schema/src/plugins/enhancer/enhance/auth-type-generator.ts +++ b/packages/schema/src/plugins/enhancer/enhance/auth-type-...
1
1
0
[{"id": "G0", "claim": "addTypeField should early-return when findType returns no declaration, as ensureType already does, so a missing declaration is not used to derive type metadata (isTypeDef(undefined)) and no non-existent type is added to the map.", "category": "correctness", "verdict": "supported", "priority": "P...
null
zenstackhq__zenstack__2391
zenstackhq/zenstack
2,391
defect
7a98d4106d7eb5f7745347a2d7337e37cb4b014a
ba735bacd61e69d60da80d2c27aaa224030270f1
fix(zod): a couple of improvements
- Add "create" and "update" variants to model schemas - Simplify dependencies - Translate ZModel meta description into zod meta <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Support for description metadata (@meta, @@meta) on schemas, model...
diff --git a/packages/zod/package.json b/packages/zod/package.json index a7488a784..ad0f66197 100644 --- a/packages/zod/package.json +++ b/packages/zod/package.json @@ -33,11 +33,8 @@ } }, "dependencies": { - "@zenstackhq/common-helpers": "workspace:*", "@zenstackhq/schema": "workspac...
11
1
1
[{"id": "G0", "claim": "The type casts in factory.ts (lines 64, 89, 112) should be documented with inline comments explaining why the cast is safe.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Runtime assertions should be added to validate that ...
null
zenstackhq__zenstack__2399
zenstackhq/zenstack
2,399
defect
d49c39e260bcc1f1027ae0859505e28538bc31b4
e73085c84371a001e916413e354df0dd22226608
feat(transaction): implement transaction handling with sequential operations and validation
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a transactional RPC endpoint for batched, sequential operations with atomic execution. Requests are POST-only, each operation is validated, results are serialized with metadata, structured...
diff --git a/packages/server/src/api/rpc/index.ts b/packages/server/src/api/rpc/index.ts index 6f572e82d..4ea145f8b 100644 --- a/packages/server/src/api/rpc/index.ts +++ b/packages/server/src/api/rpc/index.ts @@ -7,6 +7,8 @@ import z from 'zod'; import { fromError } from 'zod-validation-error/v4'; import type { ApiHa...
13
9
4
[{"id": "G0", "claim": "Transaction operation args skip the processRequestPayload/SuperJSON deserialization that regular RPC operations go through, so complex data types (BigInt, Date, Decimal) may not work in transactions; each operation's args should be processed the same way before invoking the client.", "category":...
null
zenstackhq__zenstack__2406
zenstackhq/zenstack
2,406
defect
f2c567b853c25fc9619fbaae7a3a89257490b57e
40f4671bf157d46992b54548df0c6773b7ef27c9
fix(orm): use compact alias names when transforming ORM queries to Kysely
fixes #2378 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved SQL alias generation to avoid collisions and length issues in complex nested queries. * **New Features** * Added a configurable option to enable compact/normalized alias nam...
diff --git a/CLAUDE.md b/CLAUDE.md index 6f74cd60a..04e18dee4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -20,6 +20,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ### Testing - E2E tests are in `tests/e2e/` directory +- Regression tests for GitHub issues go in `tests/regression/...
6
1
1
[{"id": "G0", "claim": "The new useCompactAliasNames option should be covered by a test that runs with the option set to false to verify the disabled path works.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TempAliasTransformer should carry a code com...
null
zenstackhq__zenstack__2425
zenstackhq/zenstack
2,425
defect
7de2af2be2bc59ea65a6a27d28281177d4c0d133
ff685cdc003a3414064621b0baab874206fbb3f4
fix(orm): fallback to compact temp aliases for overlong names
Fixes #2424 ## Summary This PR fixes deep nested include failures caused by overlong temporary relation aliases when `useCompactAliasNames: false`. - Keeps existing behavior for `useCompactAliasNames: false` when aliases are short/safe. - Adds a safety fallback: if any temp alias exceeds a safe identi...
diff --git a/packages/orm/src/client/executor/temp-alias-transformer.ts b/packages/orm/src/client/executor/temp-alias-transformer.ts index 1a66a260a..52eff84ca 100644 --- a/packages/orm/src/client/executor/temp-alias-transformer.ts +++ b/packages/orm/src/client/executor/temp-alias-transformer.ts @@ -1,15 +1,58 @@ impo...
6
5
1
[{"id": "G0", "claim": "With name compaction, useCompactAliasNames becomes more a debugging facility, and the reviewer asks why it was set to true.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be cleaner to move the name length check into the Te...
null
zenstackhq__zenstack__2480
zenstackhq/zenstack
2,480
defect
d4fbb3860926f375002f8302a15d3865d7d53a1d
43fd9899efb1c83fdefeb943a1f8481d7c40ab77
refactor(orm): move validateInput logic into InputValidator
## Summary - Add `enabled` option to `InputValidator` constructor to control whether Zod-based validation runs - When `validateInput: false`, the validator skips parsing and returns input as-is instead of receiving `undefined` as the validator - Update `ZodSchemaFactory` to always include extra validations (controlled ...
diff --git a/packages/orm/src/client/client-impl.ts b/packages/orm/src/client/client-impl.ts index 1046d0ca8..52fc9c772 100644 --- a/packages/orm/src/client/client-impl.ts +++ b/packages/orm/src/client/client-impl.ts @@ -120,7 +120,9 @@ export class ClientImpl { } this.kysely = new Kysely(this.kysel...
4
1
1
[{"id": "G0", "claim": "The `validateInput` JSDoc could be slightly enhanced to also state that disabling bypasses all Zod-based validation, including structural validation (required fields, correct types), not just attribute-based rules.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope":...
null
zenstackhq__zenstack__2487
zenstackhq/zenstack
2,487
defect
0778e493a9553c935723cae267de2e8475ed041f
83a882d2b3ff58de1fe776255e43161b7aaa3b4d
fix: a few small fixes
I'm importing schemas across packages, came across a few issues as I went. Happy to split it out if you prefer. - fix: load plugins with jiti: I wasnt able to load a plugin from a workspace package - createOpposite option on @ relation: im importing schema files across packages, I'd like a one way import. - fix...
diff --git a/packages/cli/src/actions/action-utils.ts b/packages/cli/src/actions/action-utils.ts index aed343193..5f18f9be4 100644 --- a/packages/cli/src/actions/action-utils.ts +++ b/packages/cli/src/actions/action-utils.ts @@ -291,6 +291,14 @@ export async function loadPluginModule(provider: string, basePath: string)...
7
2
2
[{"id": "G0", "claim": "Escape all arguments (fromUrl, toUrl, shadowDatabaseUrl, extraArgs) before passing parts.join(' ') to execPrisma, which runs it through a shell, or switch to argv-based execution.", "category": "security", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "g...
null
zenstackhq__zenstack__2490
zenstackhq/zenstack
2,490
defect
12aeb7bd1869a042c5f6be119264af9d57cec627
a06004e498af28371b5a8a69b5d3be1376efd23e
feat(clients): add ExtResult support to TanStack Query hooks
Add type inference helpers to client-helpers enabling computed fields from plugins to be reflected in result types across React, Vue, and Svelte adapters. **Changes:** - Add `InferSchema`, `InferOptions`, and `InferExtResult` type utilities to `client-helpers` - Update `useClientQueries` to accept a `ClientContract` t...
diff --git a/packages/clients/client-helpers/src/types.ts b/packages/clients/client-helpers/src/types.ts index da66f9483..5f30ac613 100644 --- a/packages/clients/client-helpers/src/types.ts +++ b/packages/clients/client-helpers/src/types.ts @@ -1,8 +1,28 @@ +import type { ClientContract, QueryOptions } from '@zenstackh...
5
5
3
[{"id": "G0", "claim": "In vue.ts's ModelMutationModelResult, SimplifiedResult is built with QueryOptions<Schema> instead of the Options generic, so the mutation result's data is widened back to the generic schema shape while mutateAsync resolves the narrowed type.", "category": "correctness", "verdict": "supported", "...
null
zenstackhq__zenstack__2492
zenstackhq/zenstack
2,492
defect
abae35aa611a93107e1c912c213253b7925a50f5
907b907d383b24dffb45e01e23402428837761ef
fix(orm): improve result field extension plugin's typing
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Richer plugin result-field type inference and improved plugin declaration helpers. * $use now accepts inline plugin objects and plugin operations are documented as non-mutating. * **Refacto...
diff --git a/packages/orm/src/client/contract.ts b/packages/orm/src/client/contract.ts index 99f247d06..0ed8d0004 100644 --- a/packages/orm/src/client/contract.ts +++ b/packages/orm/src/client/contract.ts @@ -40,15 +40,16 @@ import type { } from './crud-types'; import type { Diagnostics } from './diagnostics'; impor...
3
1
1
[{"id": "G0", "claim": "The single-argument definePlugin overload should return RuntimePlugin<Schema, ExtQueryArgs, ExtClientMembers, ExtResult> instead of RuntimePlugin<SchemaDef, ...>, because returning SchemaDef drops the plugin's inferred schema type and weakens downstream typing of operations that depend on schema...
null
zenstackhq__zenstack__2497
zenstackhq/zenstack
2,497
defect
d982cc528ce5f9a4723e1269ab15b966da859e09
03736ed7e13f76a43f2dbf62e53850f50c243ab0
fix: preserve transaction state in $use, $unuse, and $unuseAll
Fixes #2494 ## Problem Calling `$use()`, `$unuse()`, or `$unuseAll()` on a transaction client returns a new client that runs queries **outside** the active transaction. The constructor always creates a fresh Kysely instance from `kyselyProps` (`this.kysely = new Kysely(this.kyselyProps)`), but the transaction state ...
diff --git a/packages/orm/src/client/client-impl.ts b/packages/orm/src/client/client-impl.ts index 439735d49..e2a44f4f8 100644 --- a/packages/orm/src/client/client-impl.ts +++ b/packages/orm/src/client/client-impl.ts @@ -378,6 +378,10 @@ export class ClientImpl { newClient.inputValidator = new InputValidator(n...
2
2
1
[{"id": "G0", "claim": "Consider using a valid plugin structure: the test's $use plugin uses the `handle` property, which is not a recognized ClientImpl plugin hook, and should use a real hook such as `onQuery` instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
zenstackhq__zenstack__2500
zenstackhq/zenstack
2,500
defect
00768de0cc18bc2f5b0919b62902c841bdc8362c
7d1429c9df6b19085e674666d184351befc19c85
fix(zod): properly infer scalar array types
Closes #2499 ~I haven't added a test case yet~ because the current zmodel used for testing the zod package specifies `sqlite` which doesn't support array types. Edit: I've now added a test case but it required switching the provider to `postgresql` and regenerating the schema. Let me know if that's not desired. ...
diff --git a/packages/zod/src/types.ts b/packages/zod/src/types.ts index b8d1b05b0..270f7bccc 100644 --- a/packages/zod/src/types.ts +++ b/packages/zod/src/types.ts @@ -24,7 +24,7 @@ export type GetModelFieldsShape<Schema extends SchemaDef, Model extends GetModel [Field in GetModelFields<Schema, Model> as FieldIsR...
2
2
0
[{"id": "G0", "claim": "GetModelCreateFieldsShape and GetModelUpdateFieldsShape are missing the ZodArrayIf wrapper that was applied to GetModelFieldsShape, causing incorrect TypeScript type inference for scalar array fields in create/update operations.", "category": "correctness", "verdict": "supported", "priority": "P...
null
zenstackhq__zenstack__2503
zenstackhq/zenstack
2,503
defect
ece062f02b5fc088db65ec974a6cb8d1e0a8b850
27e45926779314684ccfd34616c086970d6fbd5b
feat(zod): add ORM-style select/include/omit options to makeModelSchema
Add support for ORM-style field selection and relation inclusion in Zod schema generation. The `makeModelSchema` method now accepts optional `select`, `include`, and `omit` options to control which fields appear in the generated schema. Key changes: - Add overloaded signatures to `makeModelSchema` with type-safe op...
diff --git a/packages/zod/src/factory.ts b/packages/zod/src/factory.ts index dece3e27e..a0d0ef2c0 100644 --- a/packages/zod/src/factory.ts +++ b/packages/zod/src/factory.ts @@ -15,8 +15,10 @@ import { SchemaFactoryError } from './error'; import type { GetModelCreateFieldsShape, GetModelFieldsShape, + GetM...
6
5
4
[{"id": "G0", "claim": "The options path still runs model-level @@validate whenever `select` is absent, but `omit` also removes fields from the payload, so a rule referencing an omitted field can make the schema impossible to satisfy (providing the field fails strict parsing; omitting it leaves the refinement evaluatin...
null
zenstackhq__zenstack__2504
zenstackhq/zenstack
2,504
defect
41ea0c91fdba10f31d5e86735566e768fd11d8cd
3579df5038f16a02cdf0c74ef39b30f080219454
feat(server): add specific 4xx error responses to REST OpenAPI spec
## Summary - Replace generic "Error" descriptions with specific messages for 400, 403, 404, and 422 responses in the REST OpenAPI spec - Add `respectAccessPolicies` option to `OpenApiSpecOptions` that inspects `@@allow`/`@@deny` rules and conditionally includes 403 responses on mutation operations (create, update, dele...
diff --git a/packages/server/src/api/common/types.ts b/packages/server/src/api/common/types.ts index 167ca17e5..3542bfc82 100644 --- a/packages/server/src/api/common/types.ts +++ b/packages/server/src/api/common/types.ts @@ -19,6 +19,12 @@ export type OpenApiSpecOptions = { /** Spec summary. */ summary?: st...
3
1
1
[{"id": "G0", "claim": "mayDenyAccess returns true for any operation-matching @@deny rule even when its condition is a literal false, so unconditionally-allowed operations incorrectly get a 403 in the spec; a regression case asserting no 403 for @@allow('all', true) + @@deny('all', false) should be added.", "category":...
null
zenstackhq__zenstack__2528
zenstackhq/zenstack
2,528
defect
826cc4e6661f0887318be3b22d60c6aed9ecbfc1
2b2aef240b25fead4ff46be3227eaada3184b824
fix(orm): unify zenstack v3 and prisma behavior on empty branches in OR filter
# Summary I found this issue in our migration to v3 where behavior differed from previous prisma based v2 version. For example queries such as: ``` await client.testItem.findMany({ where: { OR: [{ name: undefined }] }, }); ``` Is treated by zenstack as: ``` select "TestItem"."id" as "id", "TestItem"....
diff --git a/packages/orm/src/client/crud/dialects/base-dialect.ts b/packages/orm/src/client/crud/dialects/base-dialect.ts index 5fae51ef5..a698e53d1 100644 --- a/packages/orm/src/client/crud/dialects/base-dialect.ts +++ b/packages/orm/src/client/crud/dialects/base-dialect.ts @@ -264,9 +264,16 @@ export abstract class ...
4
4
3
[{"id": "G0", "claim": "OR branches that are all-undefined or normalize to a no-op (e.g. `OR: [{ id: undefined }]` or a branch like `OR: [{ name: { contains: undefined } }]`) make the OR resolve to match-all instead of no-match, so pruning should happen on the built expression (keeping explicit literal `true` branches)...
null
zenstackhq__zenstack__2543
zenstackhq/zenstack
2,543
defect
28ae08d739242d1c8dac17132e1b4a1fe933dbbe
c990aa403d018f07faf6bacc129c8e4927e2346f
fix(orm): type inference for polymorphic models
## Summary Querying a delegate (polymorphic base) model such as `db.asset.findMany()` now returns a proper TypeScript discriminated union instead of the flat base type. **Before:** `findFirstOrThrow()` returned `Asset` — accessing `r.duration` was always a type error, and narrowing by `r.assetType` had no effect ...
diff --git a/packages/orm/src/client/crud-types.ts b/packages/orm/src/client/crud-types.ts index 99fb9e69c..8f77af16b 100644 --- a/packages/orm/src/client/crud-types.ts +++ b/packages/orm/src/client/crud-types.ts @@ -12,14 +12,17 @@ import type { GetEnum, GetEnums, GetModel, + GetModelDiscriminator, ...
3
2
1
[{"id": "G0", "claim": "DefaultModelResult should reuse the existing FlatModelResult generic instead of repeating the same inline mapped-type expression twice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DelegateUnionResult should degrade to ...
null
zenstackhq__zenstack__2561
zenstackhq/zenstack
2,561
defect
da234ea96b26bb56db365a7b9c698d2a9ddccb27
ddf759444823195c5fa6e8a6b91960c2abe69a41
fix(tanstack-query): propagate TPageParam generic through useInfiniteFindMany
Adds TPageParam generic to ModelInfiniteQueryOptions, ModelSuspenseInfiniteQueryOptions, and the useInfiniteFindMany/useSuspenseInfiniteFindMany interface signatures across React, Vue, and Svelte adapters, so that lastPageParam and pageParams are properly typed instead of falling back to unknown. Fixes #2426. Co-aut...
diff --git a/packages/clients/tanstack-query/src/react.ts b/packages/clients/tanstack-query/src/react.ts index e84aa7e09..a62421de1 100644 --- a/packages/clients/tanstack-query/src/react.ts +++ b/packages/clients/tanstack-query/src/react.ts @@ -119,15 +119,15 @@ export type ModelSuspenseQueryResult<T> = UseSuspenseQuer...
3
1
0
[{"id": "G0", "claim": "Constrain TPageParam to the findMany args shape (or derive it from args) and remove the `as TPageParam` casts in the React and Svelte infinite-query hooks, so callers cannot pass an incompatible page-param type without a compile-time error.", "category": "correctness", "verdict": "uncertain", "p...
null
zenstackhq__zenstack__2562
zenstackhq/zenstack
2,562
defect
da234ea96b26bb56db365a7b9c698d2a9ddccb27
b0945110165dcdfc03df1a8f64aec08f24a7f121
fix(orm): prepend DISTINCT ON fields to ORDER BY for PostgreSQL compatibility
## Summary Fixes #2529. PostgreSQL requires `DISTINCT ON` expressions to match the leftmost `ORDER BY` expressions (error `42P10`). When a `findMany` call uses `distinct` on one field and `orderBy` on a different field, the generated SQL violated this constraint. - When `orderBy` is provided but doesn't start with t...
diff --git a/packages/orm/src/client/crud/dialects/base-dialect.ts b/packages/orm/src/client/crud/dialects/base-dialect.ts index 1c7627547..c4f98be5b 100644 --- a/packages/orm/src/client/crud/dialects/base-dialect.ts +++ b/packages/orm/src/client/crud/dialects/base-dialect.ts @@ -138,19 +138,33 @@ export abstract class...
4
1
1
[{"id": "G0", "claim": "Line 170 still passes args.orderBy into buildCursorFilter while line 166 orders by effectiveOrderBy, so when distinct fields are prepended the cursor predicates no longer match the actual row order and pagination correctness can break.", "category": "correctness", "verdict": "supported", "priori...
null
zenstackhq__zenstack__2572
zenstackhq/zenstack
2,572
defect
39a0a28c5100f72dd53a9542f1f1ebf926d2a19e
e900bb6af54d13dee3767c72ea4243ae7df8a843
fix(orm): accept plain date strings in DateTime @db.Date field filters
* all Date/Datetime fields now accept plain date strings ("2007-05-23") in equality and comparison filters * ISO datetime strings still work * Date objects still work * Invalid strings are still rejected <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New F...
diff --git a/packages/orm/src/client/zod/factory.ts b/packages/orm/src/client/zod/factory.ts index 0f8b22701..3f03cad8d 100644 --- a/packages/orm/src/client/zod/factory.ts +++ b/packages/orm/src/client/zod/factory.ts @@ -62,6 +62,7 @@ type FieldInfo = { type: string; optional?: boolean; array?: boolean; ...
2
2
1
[{"id": "G0", "claim": "The schema-only safeParse test makes two unnecessary create calls that add E2E runtime overhead, and they should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Plain date strings should be supported unconditionally fo...
null
zenstackhq__zenstack__2587
zenstackhq/zenstack
2,587
defect
09b96e4ed382b98112acb37495bae50a5b167530
f962351ceb4789c0dee7ef9438afcf1d86cf677e
fix(cli): fix race condition during `push db` (#2491)
Because a hardcoded prefix creating the temporal schema file `~schema.prisma`, multiple processes running `push db` will suffer a race condition. Change the hardcoded prefix with a sort of UUID. Fix: [2491](https://github.com/zenstackhq/zenstack/issues/2491). <!-- This is an auto-generated comment: release not...
diff --git a/packages/cli/src/actions/action-utils.ts b/packages/cli/src/actions/action-utils.ts index d1f3d7948..2ef08eb7a 100644 --- a/packages/cli/src/actions/action-utils.ts +++ b/packages/cli/src/actions/action-utils.ts @@ -4,6 +4,7 @@ import { type Model, type Plugin, isDataSource, type LiteralExpr } from '@zenst...
2
1
1
[{"id": "G0", "claim": "Since strong conflict avoidance is not needed, use a shorter random id such as crypto.randomBytes(8).toString('hex') instead of a full UUID in the temp schema filename.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Introduce a CLI ...
null