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
sapphiredev__utilities__166
sapphiredev/utilities
166
defect
d4982ed61703ddfba4174766ee013a7088006a06
2f7a1050d24870f89e32760a4528265cc8d57c14
fix(snowflake): fixed snowflake generating duplicate IDs
fixes #154
diff --git a/packages/snowflake/package.json b/packages/snowflake/package.json index 4b03fd7d40..92a6aa89b2 100644 --- a/packages/snowflake/package.json +++ b/packages/snowflake/package.json @@ -19,7 +19,7 @@ "test": "jest", "lint": "eslint src tests --ext ts --fix -c ../../.eslintrc", "build": "rollup -c", - ...
1
1
0
[{"id": "G0", "claim": "The test's snowflake-generate calls do not need .toString(), so the redundant toString calls should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sapphiredev__utilities__168
sapphiredev/utilities
168
defect
9b57a2911aab6e995bcf0c93175622a1060a43d0
5a03a8757ff603356ad414a1706f43be7c4acc32
feat(utilities): add empty array to 'isNullishOrEmpty'
Normally if you pass [] to isNullishOrEmpty it returns false but i fixed it in this PR
diff --git a/packages/utilities/src/lib/isNullOrUndefinedOrEmpty.ts b/packages/utilities/src/lib/isNullOrUndefinedOrEmpty.ts index b363b9f4dc..720c160df2 100644 --- a/packages/utilities/src/lib/isNullOrUndefinedOrEmpty.ts +++ b/packages/utilities/src/lib/isNullOrUndefinedOrEmpty.ts @@ -2,9 +2,9 @@ import { isNullOrUnde...
1
1
0
[{"id": "G0", "claim": "The implementation of isNullOrUndefinedOrEmpty should be replaced with the suggested one-liner `return isNullOrUndefined(value) || Reflect.get(value, 'length') === 0;` instead of the three-clause `value === '' || (Array.isArray(value) && !value.length) || isNullOrUndefined(value)` form.", "categ...
null
sapphiredev__utilities__274
sapphiredev/utilities
274
defect
97694f79d9c6b63fe0a614f03d9d77ad2aa0a7a5
b0e1589254392b05b29103d182321516d2b10f49
feat(package): add @sapphire/result package
Fixes #273 Copies Result code from both framework and Lexure and exposes both `Result` and `Maybe` into it's own package. See issue for more details.
diff --git a/.all-contributorsrc b/.all-contributorsrc index 26ef4383c5..b2d1763ee6 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -15,6 +15,7 @@ "packages/phisherman/README.md", "packages/prettier-config/README.md", "packages/ratelimits/README.md", + "packages/results/README.md", "packages/...
2
1
0
[{"id": "G0", "claim": "Typescript isn't happy without the strong Function type here — is there any way around using the eslint-disabled Function type?", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reorder the new Parsers.ts module so the exported functio...
null
sapphiredev__utilities__413
sapphiredev/utilities
413
defect
04967b311e04197bf17adc45f25d75746919ebe2
2ee45b0c0d7cf62e8cd6d729e5cb703c370e9f19
feat(utilities): add getDeepObjectKeys
Function I wrote for work and I figured I should port it over, improve the types and write unit tests for it
diff --git a/packages/utilities/src/index.ts b/packages/utilities/src/index.ts index e0be944afa..47bf2a6d59 100644 --- a/packages/utilities/src/index.ts +++ b/packages/utilities/src/index.ts @@ -12,6 +12,7 @@ export * from './lib/filterNullAndUndefinedAndEmpty'; export { filterNullAndUndefinedAndEmpty as filterNullish...
2
2
1
[{"id": "G0", "claim": "getDeepObjectKeys should also support a top-level array passed as `obj`, not only arrays nested inside objects.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The implementation should use a private generator function that yi...
null
sapphiredev__utilities__458
sapphiredev/utilities
458
defect
f224a82d25a398271a5f5f970808a19fd96d9d4e
74324f7a71fb722078b00bf6a0d8427366f28b5a
feat: add `join` and `joinRaw`
A little utility `lexure` had that we didn't. Most useful for https://github.com/sapphiredev/framework/pull/531.
diff --git a/packages/lexure/src/index.ts b/packages/lexure/src/index.ts index 9d3772a362..f88c2852cb 100644 --- a/packages/lexure/src/index.ts +++ b/packages/lexure/src/index.ts @@ -10,3 +10,4 @@ export * from './lib/parser/ParserResult'; export * from './lib/parser/strategies/EmptyStrategy'; export * from './lib/pa...
2
1
0
[{"id": "G0", "claim": "Replace the indexed loop in joinRaw with a for-of loop over all parameters.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Replace the indexed loop in join with a for-of loop over all parameters.", "category": "maintainabil...
null
sapphiredev__utilities__462
sapphiredev/utilities
462
defect
f224a82d25a398271a5f5f970808a19fd96d9d4e
798a6bebceeb7f54afc6f8c787dec3f852411a65
refactor: split `@sapphire/time-utilities` into 4 sub-packages
Closes https://github.com/sapphiredev/utilities/issues/449 `Tl;Dr`: Separates `@sapphire/time-utilities` into 4 packages which are mentioned below. To-Do: - [x] `@sapphire/cron` - [x] `@sapphire/duration` - [x] `@sapphire/timer-manager` - [x] `@sapphire/timestamp`
diff --git a/packages/cron/.cliff-jumperrc.yml b/packages/cron/.cliff-jumperrc.yml new file mode 100644 index 0000000000..dcc07650ab --- /dev/null +++ b/packages/cron/.cliff-jumperrc.yml @@ -0,0 +1,3 @@ +name: cron +org: sapphire +packagePath: packages/cron diff --git a/packages/cron/.typedoc-json-parserrc.yml b/packag...
4
4
2
[{"id": "G0", "claim": "The new packages' versions should start at 1.0.0 instead of the lerna-era 0.0.0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The keyword '@sapphire/time-utilities' in the new packages' package.json files should be replaced...
null
sapphiredev__utilities__471
sapphiredev/utilities
471
defect
dc08606a97154e47c65536123ac5f8b1262f7bd2
65e2c39759b26a5854cf2ad7238567a38e787693
feat(utilities): add `objectEntries` function
Resolves #455
diff --git a/packages/utilities/src/index.ts b/packages/utilities/src/index.ts index 47bf2a6d59..ee527eb7b2 100644 --- a/packages/utilities/src/index.ts +++ b/packages/utilities/src/index.ts @@ -32,6 +32,7 @@ export * from './lib/makeObject'; export * from './lib/mergeDefault'; export * from './lib/mergeObjects'; ex...
2
1
1
[{"id": "G0", "claim": "The tests should assert the input type and cover readonly objects.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Two generic typings (an all-keys type and an all-values type) should be added to the utility-types file and used in...
null
sapphiredev__utilities__472
sapphiredev/utilities
472
defect
dc08606a97154e47c65536123ac5f8b1262f7bd2
da045202e503a721a1585c278235e2669643d0dd
feat(utilities): add `objectKeys` function
Resolves #457
diff --git a/packages/utilities/src/index.ts b/packages/utilities/src/index.ts index 47bf2a6d59..2554212dd4 100644 --- a/packages/utilities/src/index.ts +++ b/packages/utilities/src/index.ts @@ -32,6 +32,7 @@ export * from './lib/makeObject'; export * from './lib/mergeDefault'; export * from './lib/mergeObjects'; ex...
2
2
1
[{"id": "G0", "claim": "The tests should assert the types involved and additionally cover readonly objects.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "objectKeys' return type should special-case ArrayLike inputs as number[] instead of (keyof T)[].",...
null
sapphiredev__utilities__474
sapphiredev/utilities
474
defect
dc08606a97154e47c65536123ac5f8b1262f7bd2
ce375eff5ec2d9d9aa32d579abfa234b8d4e033e
feat(utilities): add `objectValues` function
Resolves #456
diff --git a/packages/utilities/src/index.ts b/packages/utilities/src/index.ts index 47bf2a6d59..7f7a9b12a7 100644 --- a/packages/utilities/src/index.ts +++ b/packages/utilities/src/index.ts @@ -32,6 +32,7 @@ export * from './lib/makeObject'; export * from './lib/mergeDefault'; export * from './lib/mergeObjects'; ex...
2
2
1
[{"id": "G0", "claim": "The tests should type-assert the expect() call with a type argument (e.g. expect<'Hello' | 420>(...)) and use `as const` sources so readonly inputs are covered, while `expected` itself does not need `as const` and the type argument should be free of readonly types.", "category": "testing", "verd...
null
sapphiredev__utilities__498
sapphiredev/utilities
498
defect
22e508d13108301d21e108e6a961b9fab60cd94d
4dcd3c3b6bd38aebef4229e17addacf36ecaaf8c
refactor(utilities): improve `codeBlock` and `inlineCodeBlock`
Now, these functions are more similar to their sister functions in DiscordJS in terms of typing while retaining the additional safety checks that Sapphire has always provided.
diff --git a/packages/utilities/src/lib/codeBlock.ts b/packages/utilities/src/lib/codeBlock.ts index cebdb3525d..8b9b371f4a 100644 --- a/packages/utilities/src/lib/codeBlock.ts +++ b/packages/utilities/src/lib/codeBlock.ts @@ -1,14 +1,27 @@ const zws = String.fromCharCode(8203); /** - * Wraps text in a markdown cod...
1
1
0
[{"id": "G0", "claim": "The final return's branch handling content that is not a string may be impossible since the `typeof content === 'string'` check earlier in the function already covers the string case, making the branch redundant.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
sapphiredev__utilities__502
sapphiredev/utilities
502
defect
4c349bf6b3577ad85a1895f90c775c92c4016fa3
7cb2968505a46e00ffa37b5784f1b2d3315f0b19
feat: add `@sapphire/bitfield` package
## TODO - [x] Write tests - [x] Write README - [x] Add references to the new package in the rest of the repo
diff --git a/.all-contributorsrc b/.all-contributorsrc index 6825c4f564..5fe10bf2be 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5,6 +5,7 @@ "repoHost": "https://github.com", "files": [ "packages/async-queue/README.md", + "packages/bitfield/README.md", "packages/cron/README.md", "package...
19
15
1
[{"id": "G0", "claim": "The TypeError thrown when the first flag value is neither a number nor a bigint should have a better error message, such as 'A bitfield can only use numbers or bigints for its values'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
sapphiredev__utilities__531
sapphiredev/utilities
531
defect
c6b55b59528027c6b373880d6c6d5429c9956ead
d56e79fb238cc1083a93f4b2344c12cdb90a2f0a
feat(snowflake): added `Snowflake.compare`
Useful for sorting structures by snowflakes, also does string length comparison when both values are strings to avoid false positives, as `a < b` (as both strings) will do an alphabetical order sort rather than a number sort.
diff --git a/packages/snowflake/src/lib/Snowflake.ts b/packages/snowflake/src/lib/Snowflake.ts index b19dafc5fa..dd1bf4a5a2 100644 --- a/packages/snowflake/src/lib/Snowflake.ts +++ b/packages/snowflake/src/lib/Snowflake.ts @@ -106,6 +106,29 @@ export class Snowflake { public timestampFrom(id: string | bigint): number...
1
1
1
[{"id": "G0", "claim": "The `@example` in the `Snowflake.compare` JSDoc is invalid JavaScript (`ids.sort(a, b) => Snowflake.compare(a, b)`), and favna requests it be written as `ids.sort(Snowflake.compare)` instead.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sapphiredev__utilities__595
sapphiredev/utilities
595
defect
859150c8d531cf4ed09cdbff11c0b2a23c9b3a04
f1947d5bc8539da4f0870fe92aa2d68cd03aa279
feat(snowflake): expose `processId` and `workerId`
This PR also switches `#private` properties to symbol properties for higher performance. Also added missing tests to near 100% coverage.
diff --git a/packages/snowflake/src/lib/Snowflake.ts b/packages/snowflake/src/lib/Snowflake.ts index 197b2680f4..31ac67149e 100644 --- a/packages/snowflake/src/lib/Snowflake.ts +++ b/packages/snowflake/src/lib/Snowflake.ts @@ -1,5 +1,7 @@ -const ProcessId = 1n; -const WorkerId = 0n; +const IncrementSymbol = Symbol('@sa...
2
2
0
[{"id": "G0", "claim": "The symbol description strings should be '@sapphire/snowflake.<name>' rather than '@sapphire/snowflake:snowflake.<name>'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Symbol-based private properties can be reverted ...
null
sartography__SpiffWorkflow__217
sartography/SpiffWorkflow
217
defect
776b2724255a51f9cb9497ff922768fdc80b03da
1ee4f220f7f5a2a4cb3f797fbfe0c581a8fa5115
external dependencies
Allows you to check which dependencies exist after adding one or more files to the BPMN parser.
diff --git a/SpiffWorkflow/bpmn/parser/BpmnParser.py b/SpiffWorkflow/bpmn/parser/BpmnParser.py index 1733c5777..ee54b7af0 100644 --- a/SpiffWorkflow/bpmn/parser/BpmnParser.py +++ b/SpiffWorkflow/bpmn/parser/BpmnParser.py @@ -87,6 +87,7 @@ def __init__(self): self.process_parsers = {} self.process_pars...
2
1
0
[{"id": "G0", "claim": "Multiple call activities (or business rules) referencing the same element may put duplicate entries into the dependencies list, and a set was suggested for the dependencies instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
sartography__SpiffWorkflow__227
sartography/SpiffWorkflow
227
defect
bc23623da90f7dfb626143ca098c149135e6170a
f87c00ff5cbf321a893ddd2a692f7aeb317a066b
Store service task response in task data
Supports storing the response of a service task in task data. An optional `resultVariable` attribute is supported for naming the task data key. If one is not specified a variable name will be constructed based off the spec name. Tested via the front end, which after running a sample diagram to hit bamboohr: ``` Eve...
diff --git a/SpiffWorkflow/bpmn/PythonScriptEngine.py b/SpiffWorkflow/bpmn/PythonScriptEngine.py index 1997c0bed..2f13998d9 100644 --- a/SpiffWorkflow/bpmn/PythonScriptEngine.py +++ b/SpiffWorkflow/bpmn/PythonScriptEngine.py @@ -150,12 +150,11 @@ def available_service_task_external_methods(self): called from s...
2
2
1
[{"id": "G0", "claim": "The fallback task-data key interpolates task_spec.name unnormalized, and since BPMN names/ids can contain dashes or spaces the reviewer asks whether it needs to be normalized.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
sartography__SpiffWorkflow__288
sartography/SpiffWorkflow
288
defect
a156378e129287abd3c274990e1b5e3efe5ee956
71d5cafeae314c181b0f62cd2c99dea1ede2c09c
Allow for other PythonScriptEngine environments besides task data
~Opening this as a draft while I test more and work on back end integration to start to gather feedback on the approach. Names and new public apis might be tweaked along the way.~ Edit: ready for review. The current usage of task data to track the environment for the PythonScriptEngine is convenient but does lend it...
diff --git a/SpiffWorkflow/bpmn/PythonScriptEngine.py b/SpiffWorkflow/bpmn/PythonScriptEngine.py index 38279a1d..25a4704c 100644 --- a/SpiffWorkflow/bpmn/PythonScriptEngine.py +++ b/SpiffWorkflow/bpmn/PythonScriptEngine.py @@ -4,6 +4,7 @@ import sys import traceback +from .PythonScriptEngineEnvironment import TaskD...
2
2
1
[{"id": "G0", "claim": "The pull request should not keep Box: give users the option of not using it (the default should do nothing beyond executing/evaluating with task data in the context), and deprecate Box, providing it only if consumers need/want it.", "category": "design", "verdict": "supported", "priority": "P1",...
null
sartography__SpiffWorkflow__298
sartography/SpiffWorkflow
298
defect
c2fc9d22821f05e2c9b207e900af33f878d7141f
8db17c2b7747407353bde256dbd052ee1d7346e2
Data stores
Adds support for data stores, which are represented by a node that is a sibling of the process node. Consumers of the library need to provide a class that should be instantiated when the data store node is parsed, as well as a custom converter for the data store. An example data store is implemented for the tests that ...
diff --git a/SpiffWorkflow/bpmn/parser/BpmnParser.py b/SpiffWorkflow/bpmn/parser/BpmnParser.py index ff70bc91..ddccb9b8 100644 --- a/SpiffWorkflow/bpmn/parser/BpmnParser.py +++ b/SpiffWorkflow/bpmn/parser/BpmnParser.py @@ -27,6 +27,7 @@ from .ValidationException import ValidationException from ..specs.BpmnProcessSp...
1
1
1
[{"id": "G0", "claim": "BpmnDataStoreSpecification should inherit from BpmnDataSpecification, and the copy method it no longer has leaves the class with no clear reason to exist.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sartography__SpiffWorkflow__315
sartography/SpiffWorkflow
315
defect
162a1c5f56cf12fc589a1e368704c0819bfcc0cd
7e368ee4bf3acfcd10117da04c6c20f2dbef95bd
Feature/new task states
This adds two new task states: - An `ERROR` state - A `STARTED` state that can be used to indicate task execution is being managed outside spiff When a task is run, it should return `True` on successful completion, `False` if something went wrong but it was handled elsewhere,or `None` if it hasn't finished. By de...
diff --git a/SpiffWorkflow/bpmn/PythonScriptEngine.py b/SpiffWorkflow/bpmn/PythonScriptEngine.py index 882d76bd..6e9550d4 100644 --- a/SpiffWorkflow/bpmn/PythonScriptEngine.py +++ b/SpiffWorkflow/bpmn/PythonScriptEngine.py @@ -1,13 +1,11 @@ # -*- coding: utf-8 -*- import ast -import copy import sys import traceback...
1
1
0
[{"id": "G0", "claim": "The first part of the new comment block in Task.run (written when the code set the state to WAITING) may now be irrelevant and should be reviewed or updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
saschagrunert__indextree__110
saschagrunert/indextree
110
defect
822960f834654ee21db085fc7e080c541abb68da
03474666d48197a3db24ca8ef11be6202aa81a86
Improvements and a new `tree!` macro
Made some refactors that I forgot to do in a previous PR, turned the project into a workspace and added a proc macro crate that implements the `tree!` macro. Although, the macro is usable and would make testing `indextree` less prone to errors, I should add a lot of tests for the macro in order to be sure it works c...
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..a882442c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 4 diff --git a/.rustfmt.toml b/.rustfmt.toml index c9524ed2..911149d9 100644 ...
4
2
1
[{"id": "G0", "claim": "It would be good to replace the recursive IndexNode::parse implementation in indextree-macros with a stack-based solution to avoid recursion-efficiency concerns.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request m...
null
saschagrunert__indextree__13
saschagrunert/indextree
13
defect
021f3382a67a0bf8fa73c55e77c72b2e253ce8c0
aead41f6dc9a397158962dcff204cc25f11d2c43
Make rayon optional
Added a `par_iter` feature and removed `Sync` bounds where they are not needed. I also formatted the code with rustfmt, but can remove the commit if you think this is unnecessary.
diff --git a/Cargo.toml b/Cargo.toml index ae6abf45..d79a0fdc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,8 +17,13 @@ appveyor = { repository = "saschagrunert/indextree", branch = "master", service [features] deser = [ "serde", "serde_derive" ] +par_iter = ["rayon"] [dependencies] serde = { version = "^1", ...
1
1
1
[{"id": "G0", "claim": "The travis and appveyor CI configs should be changed to also build and test with the new `par_iter` feature.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
saschagrunert__indextree__77
saschagrunert/indextree
77
defect
ba5cf7af462cab5929bb6d1066265ff7d0ec6edc
9fa49706991bb7feb684e68a5bb09f43e4f21218
Add iter_mut on arena
Added a way to retreive a mutable iterator on nodes.
diff --git a/src/arena.rs b/src/arena.rs index ff6a18f2..26debc82 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -214,6 +214,10 @@ impl<T> Arena<T> { self.nodes.iter() } + pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Node<T>> { + self.nodes.iter_mut() + } + pub(crate) fn fr...
2
1
0
[{"id": "G0", "claim": "Add a doc comment for the new iter_mut method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the failing CI: clippy reports a needless-borrow error at src/id.rs:1023 (id.ancestors(&arena)) under -D warnings.", "categor...
null
saschagrunert__indextree__8
saschagrunert/indextree
8
defect
2e37ff37b19f4bf1e19451d64c835a96cc41b268
3ce8449989d656b824865d539ac2f130d0b9e734
Implement Arena::{get, get_mut, find}
I'd prefer to implement `Iterator` but I haven't been able to figure out how to implement that yet. --- The associated functions `get` and `get_mut` allow consuming code to retrieve a node without panicking if an invalid ID is given. `find` is the part of `Iterator` that I am after, if you'd like that in a sep...
diff --git a/src/lib.rs b/src/lib.rs index 7cc4476e..89128467 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,6 +98,27 @@ impl<T> Arena<T> { pub fn is_empty(&self) -> bool { self.count() == 0 } + + #[inline] + pub fn get(&self, id: NodeId) -> Option<&Node<T>> { + self.nodes.get(id.index)...
4
4
2
[{"id": "G0", "claim": "Arena should expose an `iter` API (returning `self.nodes.iter()`) so consumers can iterate over all nodes without making `nodes` public.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new Arena::{get, get_mut} methods should h...
null
saschagrunert__indextree__85
saschagrunert/indextree
85
defect
096740509c8f54361c6c354a5795f2f075c8d3e7
53ac0d19757aac43c465a3caaaf8eac65bc644ff
Add Arena::{with_capacity, capacity, reserve, clear}
Closes #84
diff --git a/src/arena.rs b/src/arena.rs index 9c7f0d49..d14a5ecc 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -39,6 +39,15 @@ impl<T> Arena<T> { pub fn new() -> Arena<T> { Self::default() } + + /// Creates a new empty `Arena` with enough capacity to store `n` nodes. + pub fn with_capaci...
1
1
1
[{"id": "G0", "claim": "Can you please add a bunch of test cases for the new API (Arena::with_capacity and Arena::clear) added by this pull request?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sashabaranov__go-openai__1028
sashabaranov/go-openai
1,028
defect
c125ae2ad7b239355161c7f4260a3743ec0c182b
6525e48a1f68de7a238165a0b882a7d651edc688
fix: properly unmarshal JSON schema in ChatCompletionResponseFormatJSONSchema.schema
When handling the response format for ChatCompletionResponseFormatJSONSchema, the field response_format.json_schema.schema fails to unmarshal properly Issue: #1027
diff --git a/chat.go b/chat.go index c8a3e81b3..b4a0ad90f 100644 --- a/chat.go +++ b/chat.go @@ -5,6 +5,8 @@ import ( "encoding/json" "errors" "net/http" + + "github.com/sashabaranov/go-openai/jsonschema" ) // Chat message role defined by the OpenAI API. @@ -221,6 +223,31 @@ type ChatCompletionResponseFormatJ...
3
1
1
[{"id": "G0", "claim": "Unmarshalling JSON containing a json_schema fails with \"json: cannot unmarshal object into Go struct field ChatCompletionResponseFormatJSONSchema.response_format.json_schema.schema of type openai.JSONSchema\" because the Schema field is typed as the interface JSONSchema, which Go's unmarshaler ...
null
sashabaranov__go-openai__184
sashabaranov/go-openai
184
defect
d529d13ba15d31928a414f83f9ae9730d0a9223b
646a0af15da553020100e6aa065b8a3f980da64c
fix: stream return EOF when openai return error
fix #173
diff --git a/chat_stream.go b/chat_stream.go index 26e964c38..58baf9648 100644 --- a/chat_stream.go +++ b/chat_stream.go @@ -5,6 +5,7 @@ import ( "bytes" "context" "encoding/json" + "fmt" "io" "net/http" ) @@ -44,16 +45,24 @@ func (stream *ChatCompletionStream) Recv() (response ChatCompletionStreamRespons ...
3
3
1
[{"id": "G0", "claim": "The completion stream's Recv should also wrap the unmarshalled error response when the response body holds an error, the way the chat stream does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated error-handling l...
null
sashabaranov__go-openai__813
sashabaranov/go-openai
813
defect
581da2f12d52617368bdfe2625f5b0ef1dd32758
68ee2284d1d1cdd33615cc57552c8db1b38dc1d2
feat: Support Structured Outputs
Support Structured Outputs https://platform.openai.com/docs/guides/structured-outputs/introduction
diff --git a/api_integration_test.go b/api_integration_test.go index f34685188..a487f588a 100644 --- a/api_integration_test.go +++ b/api_integration_test.go @@ -4,6 +4,7 @@ package openai_test import ( "context" + "encoding/json" "errors" "io" "os" @@ -178,3 +179,63 @@ func TestAPIError(t *testing.T) { t....
3
1
1
[{"id": "G0", "claim": "The maintainer asks that tests be added for the new structured-outputs feature, both integration and unit tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The maintainer believes ChatCompletionResponse also needs to be updat...
null
sashabaranov__go-openai__817
sashabaranov/go-openai
817
defect
623074c14a110b97d9a7aac7896bbdccf335257f
88fddbe4c23f7535dfb22d50447f3cf6904287fb
fix: fullURL endpoint generation
fix: generation azure fullURL #794 feat: Use setters pattern for fullURL method #636
diff --git a/api_internal_test.go b/api_internal_test.go index a590ec9ab..09677968a 100644 --- a/api_internal_test.go +++ b/api_internal_test.go @@ -112,6 +112,7 @@ func TestAzureFullURL(t *testing.T) { Name string BaseURL string AzureModelMapper map[string]string + Suffix strin...
2
2
0
[{"id": "G0", "claim": "In edits.go (and, per the reply, in some other files as well) the newRequest/fullURL call should be formatted with one argument per line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hard-to-follow block in fullURL ...
null
sashabaranov__go-openai__819
sashabaranov/go-openai
819
defect
6439e1fcc93fc5175accf5d51358e45fa5ea9099
8b49a3652c807ccf7232865c296f2f0e2d56b290
Improve handling of JSON Schema in OpenAI API Response Context
* add: jsonschema.Unmarshal * add: jsonschema.Validate * add: jsonschema.GenerateSchemaForType * update: openai.ChatCompletionResponseFormatJSONSchema
diff --git a/api_integration_test.go b/api_integration_test.go index a487f588a..744c21a03 100644 --- a/api_integration_test.go +++ b/api_integration_test.go @@ -4,7 +4,6 @@ package openai_test import ( "context" - "encoding/json" "errors" "io" "os" @@ -190,6 +189,14 @@ func TestChatCompletionResponseFormat_J...
10
9
1
[{"id": "G0", "claim": "The exported constructor `Warp` is a typo and should be named `Wrap`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A `GenerateSchemaForType` function would be an even better name/API than `Warp` for turning a Go type in...
null
sashabaranov__go-openai__843
sashabaranov/go-openai
843
defect
c37cf9ab5b887fe0195d3cc6240780e9b1928a04
aa92cfe1d61691b5fb73f65544518ed0bf6fe9a1
depricated model GPT3Ada changed to GPT3Babbage002
**Describe the change** Model GPT3Ada is deprecated, so changed to GPT3Babbage002 in examples,tests and in Readme. **Describe your solution** deprecated model is changed and used the GPT3Babbage002 model
diff --git a/README.md b/README.md index 0d6aafa40..b3ebc1471 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ func main() { ctx := context.Background() req := openai.CompletionRequest{ - Model: openai.GPT3Ada, + Model: openai.GPT3Babbage002, MaxTokens: 5, Prompt: "Lorem ipsum", } @...
1
1
0
[{"id": "G0", "claim": "test.mp3, auto-created by the test suite, was committed to the repo and should be removed, or better, gitignored/generated in a temp dir instead of locally.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sashabaranov__go-openai__852
sashabaranov/go-openai
852
defect
194a03e763f0d71333a6088bf613a35f65c50447
f1be751a825c53949e516df9183558326e80cf99
fix: jsonschema integer validation
**Describe the change** Fix the jsonschema validation failed failure on the integer field. **Provide OpenAI documentation link** **Describe your solution** Follow the #837 instruction. Because go unmarshalls all numbers as float64, we should check the value is an integer. **Tests** Add `jsonschema.Integer...
diff --git a/jsonschema/validate.go b/jsonschema/validate.go index f14ffd4c4..49f9b8859 100644 --- a/jsonschema/validate.go +++ b/jsonschema/validate.go @@ -36,6 +36,10 @@ func Validate(schema Definition, data any) bool { _, ok := data.(bool) return ok case Integer: + // Golang unmarshals all numbers as float6...
1
1
0
[{"id": "G0", "claim": "The test's result1, result2 and result3 struct variables should be inlined at their use sites instead of being declared separately.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sashabaranov__go-openai__881
sashabaranov/go-openai
881
defect
9fe2c6ce1f5b756cd172ae9a7786beea69b2956f
22cf414b4be89a38eb702b13c27be1de6bcef74d
Handling for non-json response
**Describe the change** Since the original error response is included in the body field of openai.RequestError, even when the response is not in JSON format, it would be more appropriate to return openai.RequestError directly, rather than returning an errorString. This approach ensures that the original error details ...
diff --git a/client.go b/client.go index 1e228a097..ed8595e0b 100644 --- a/client.go +++ b/client.go @@ -289,9 +289,6 @@ func (c *Client) handleErrorResp(resp *http.Response) error { if err != nil { return fmt.Errorf("error, reading response body: %w", err) } - if !strings.HasPrefix(resp.Header.Get("Content-Type...
1
1
1
[{"id": "G0", "claim": "The expected error text for the 413 non-JSON case is misleading, and the change no longer preserves the response body data in the error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sashabaranov__go-openai__882
sashabaranov/go-openai
882
defect
9fe2c6ce1f5b756cd172ae9a7786beea69b2956f
520c829db6341ed0f4e5ef0d5eadcf9710b79ea4
add chatcompletion stream delta refusal and logprobs
**Describe the change** Like #844, In ChatCompletionStream.delta the refusal and logprobs field is missing **Provide OpenAI documentation link** [Provide a relevant API doc from https://platform.openai.com/docs/api-reference](https://platform.openai.com/docs/api-reference/chat/streaming#chat/streaming-choices) ...
diff --git a/chat_stream.go b/chat_stream.go index f43d01834..d04a314f9 100644 --- a/chat_stream.go +++ b/chat_stream.go @@ -10,13 +10,33 @@ type ChatCompletionStreamChoiceDelta struct { Role string `json:"role,omitempty"` FunctionCall *FunctionCall `json:"function_call,omitempty"` ToolCalls []T...
2
2
2
[{"id": "G0", "claim": "The streamed-choice Logprobs field should not be a slice, since the OpenAI doc says logprobs is an 'object or null', and an integration test covering these details was also asked for.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
sashabaranov__go-openai__885
sashabaranov/go-openai
885
defect
3672c0dec601f89037d8d54e7df653d7df1f0c83
5a57be1d7531d525411b0428f31c747bf7b2b919
Updated checkPromptType function to handle prompt list in completions
**Describe the change** The checkPromptType function has been updated to support validation of []interface{} slices, ensuring that each element in the slice is of type string. Currently if list of string is provided in prompt field ErrCompletionRequestPromptTypeNotSupported error is returned. Example: for this com...
diff --git a/completion.go b/completion.go index 84ef2ad26..70274c59d 100644 --- a/completion.go +++ b/completion.go @@ -161,7 +161,17 @@ func checkEndpointSupportsModel(endpoint, model string) bool { func checkPromptType(prompt any) bool { _, isString := prompt.(string) _, isStringSlice := prompt.([]string) - ret...
1
1
0
[{"id": "G0", "claim": "The new []interface{} handling in checkPromptType is too nested and should be rewritten as a less nested version with early returns, as in the linked Go playground example.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sashabaranov__go-openai__925
sashabaranov/go-openai
925
defect
2054db016c335136eba471aebf49cc78981dd502
52738616d5a40e80c3688c6cc5e3ec1bf786f79c
Add support for reasoning_content field in chat completion messages for DeepSeek R1
feat: Add support for reasoning_content field in chat completion messages This PR adds support for the `reasoning_content` field in the ChatCompletionMessage struct to accommodate models that return their reasoning process separately from the main content. This feature is particularly useful for: - DeepSeek R1 mo...
diff --git a/chat.go b/chat.go index ce24fa34a..ac712378b 100644 --- a/chat.go +++ b/chat.go @@ -103,6 +103,12 @@ type ChatCompletionMessage struct { // - https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb Name string `json:"name,omitempty"` + // This property is ...
4
3
1
[{"id": "G0", "claim": "The reviewer asks the author to point to the OpenAI API reference for the reasoning_content field or to clarify that the field is currently only supported by DeepSeek.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull...
null
sashabaranov__go-openai__930
sashabaranov/go-openai
930
defect
45aa99607be0b4c225af57c36fb5cff7328957de
24e00aaaf6a36f1322f99a3abcf1ee67f6da4313
Add support for O3-mini
- Add support for the o3 mini set of models, including tests that match the constraints in OpenAI's API docs (https://platform.openai.com/docs/models#o3-mini).
diff --git a/chat.go b/chat.go index 8ea7238fe..16e81e020 100644 --- a/chat.go +++ b/chat.go @@ -396,6 +396,10 @@ func (c *Client) CreateChatCompletion( return } + if err = validateRequestForO3Models(request); err != nil { + return + } + req, err := c.newRequest( ctx, http.MethodPost, diff --git a/chat_...
4
3
1
[{"id": "G0", "claim": "Mark the ErrO1BetaLimitations* errors as deprecated and introduce a single set of errors and a single validation function, since the O3 checks currently duplicate the O1 ones.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
sashabaranov__go-openai__994
sashabaranov/go-openai
994
defect
6181facea7e6e5525b6b8da42205d7cce822c249
84f6d7b20d6382e20db2cfd6ce2d27161a3527ed
update image api *os.File to io.Reader
The image-related API has been changed from *os.File to io.Reader to make it more general. At the same time, the default application/octet-stream has been removed to avoid errors caused by OpenAI requiring PNG format input. This is my first pull request, and I may not have done it well, so please provide feedback.
diff --git a/image.go b/image.go index 577d7db95..2991c3392 100644 --- a/image.go +++ b/image.go @@ -3,8 +3,8 @@ package openai import ( "bytes" "context" + "io" "net/http" - "os" "strconv" ) @@ -84,13 +84,13 @@ func (c *Client) CreateImage(ctx context.Context, request ImageRequest) (respons // ImageEdit...
4
3
1
[{"id": "G0", "claim": "The empty filename passed by the image API calls should be conditionally omitted from the Content-Disposition header to avoid issues with downstream consumers, or documentation should clarify that an empty filename is acceptable and how it is handled.", "category": "documentation", "verdict": "s...
null
sashabaranov__go-openai__999
sashabaranov/go-openai
999
defect
4d2e7ab29d7bf853c740e9e63187fed960e6b0b4
d0cfb0aa6a8bec800830740b689f416dd392cdff
test: enhance error accumulator and form builder tests, add marshaller tests
**Describe the change** enhance error accumulator and form builder tests, add marshaller tests **Describe your solution** added some edge case tests to improve test coverage Issue: #997
diff --git a/internal/error_accumulator_test.go b/internal/error_accumulator_test.go index d48f28177..3fa9d7714 100644 --- a/internal/error_accumulator_test.go +++ b/internal/error_accumulator_test.go @@ -1,41 +1,32 @@ package openai_test import ( - "bytes" - "errors" "testing" - utils "github.com/sashabaranov/...
4
1
0
[{"id": "G0", "claim": "The code references errors.New but does not import the 'errors' package, which may result in a compilation failure; please add 'import \"errors\"' to the import block.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Consider...
null
sass__sass__4040
sass/sass
4,040
defect
2454cb9b8e252b6644bc1a22840532e225f63d6b
379bf2a007af83718117d40851666fa7c1be81a1
Mark bogus combinators and moz-document as obsolete
See #3340 [skip dart-sass] [skip sass-embedded]
diff --git a/spec/deprecations.yaml b/spec/deprecations.yaml index a651b137a6..2c0bb498e5 100644 --- a/spec/deprecations.yaml +++ b/spec/deprecations.yaml @@ -33,6 +33,7 @@ moz-document: dart-sass: status: active deprecated: 1.7.2 + obsolete: 2.0.0 relative-canonical: description: Imports using re...
2
2
2
[{"id": "G0", "claim": "The pull request needs `npm run sync-deprecations` run to update the JS API docs, and CI should have failed since it should be comparing the checksums.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "bogus-combinators's `statu...
null
sassman__cargo-codesign-rs__22
sassman/cargo-codesign-rs
22
defect
3d762f85f3a9291806331ef1bb32479133465a3f
04d2ae5bec6914e7914d387564dbbdc0a624cc80
feat: auto-add private key to `.gitignore` on keygen
- [x] Add `update_gitignore` function to `src/keygen.rs` - [x] Call `update_gitignore` from `cmd_keygen` in `src/main.rs` with status messages - [x] Add prominent security warning: NEVER commit private key to git or share it - [x] Add tests in `tests/keygen.rs` for the new `.gitignore` logic - [x] Run `cargo fmt` to fi...
diff --git a/src/keygen.rs b/src/keygen.rs index 089cc64..b589342 100644 --- a/src/keygen.rs +++ b/src/keygen.rs @@ -1,6 +1,8 @@ use base64::{engine::general_purpose::STANDARD, Engine}; use ed25519_dalek::SigningKey; use rand_core::OsRng; +use std::io::Write; +use std::path::Path; pub fn generate_keypair() -> Res...
2
2
0
[{"id": "G0", "claim": "The keygen output should also include a prominent note that the user should NEVER check their private key into git or share it with anyone.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs a `cargo fmt` pass...
null
satmihir__fair__37
satmihir/fair
37
defect
813f845e1a53b17ff65db9c062e36ec943c06551
ce11008a73fd97fcd882e03c821ef768ed9d1609
feat: Add logging functionality with logger package and err logs
## Description Exposing a new logging mechanism via `logger` package. Fixes #35 ## Type of change - [ ] Bug fix - [x] New feature - [ ] Breaking change - [x] Documentation update ## Checklist - [x] I have performed a self-review of my code - [x] I have commented my code where necessary - [x] I have up...
diff --git a/README.md b/README.md index 54a82f8..d7e42b2 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,18 @@ trk, err := trkB.BuildWithConfig(conf) defer trk.Close() ``` +## Logging +Fair provides logs present which by default are disabled. +package `logger` exposes an interface with `GetLogger` and `SetLo...
3
2
0
[{"id": "G0", "claim": "The Logger interface should also expose a `Println` method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tracker's error log calls should use %v rather than %s, since err is an object, not a string.", "category": "maintainab...
null
satmihir__fair__63
satmihir/fair
63
defect
26ca5a77e1bdbf2d475216278cd7f0730ea9c5b7
1110f0991a722c85836c1ceb3a413decffa23cb0
(bugfix): don't allow zero value(s) for `tolerableBadRequestsPerBadFlow`
## Description This PR resolves #31. Fixes panic in GenerateTunedStructureConfig when tolerableBadRequestsPerBadFlow=0 by returning an error instead of computing with infinity. Added validation with test coverage and updated all callers to handle the error. Fixes # (issue) ## Type of change - [x] Bug fix ...
diff --git a/.gitignore b/.gitignore index 6f72f89..7e5f64f 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,6 @@ go.work.sum # env file .env + +.codanna +.fastembed_cache diff --git a/README.md b/README.md index 069bbca..2ae6668 100644 --- a/README.md +++ b/README.md @@ -132,10 +132,16 @@ You can use the `Gen...
1
1
0
[{"id": "G0", "claim": "Use log.Fatalf with the standard logger of the library instead of panic when generating the default config fails.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
satococoa__wtp__100
satococoa/wtp
100
defect
3600d4d30eafc388fbc61456c624a714fbc76fc7
0d0782a6a9e8608cc653294b736c28227afba976
feat(shell): auto-cd to newly created worktree after add
## Summary - extend shell hooks (bash/zsh/fish) to handle wtp add - in interactive TTY sessions, run wtp add ... --quiet and cd to the created path on success - keep non-TTY behavior unchanged (no auto-cd) - update docs and hook tests for add auto-cd behavior Closes #90 <!-- This is an auto-generated comment: release...
diff --git a/README.md b/README.md index 90779f7..7361144 100644 --- a/README.md +++ b/README.md @@ -295,8 +295,9 @@ hooks: No manual setup required. Homebrew installs a tiny bootstrapper that runs `wtp shell-init <shell>` the first time you press `TAB` after typing `wtp`. That -lazy call gives you both tab complet...
2
2
2
[{"id": "G0", "claim": "The bash, zsh and fish hooks should bypass the add auto-cd when help output is requested (`--help`/`-h`), since `wtp add --help` succeeds and prints multi-line help to stdout that would otherwise be cd'ed to as a directory, suppressing the help output.", "category": "correctness", "verdict": "su...
null
satococoa__wtp__23
satococoa/wtp
23
defect
df781257573c3eec92cf16ae8db86fe8e9cc2503
e616b466319c1cf32cce87551965a8c78d8c5a24
feat: add lazy shell-init bootstrapper
## Summary - add lazy shell-init bootstrapper to Homebrew completions for bash, zsh, fish - document shell-init workflow for Homebrew and go install users, update guidance - refresh shell integration error messaging and tests to match new setup ## Testing - go test ./... <!-- This is an auto-generated comment: relea...
diff --git a/.goreleaser.yml b/.goreleaser.yml index 73f739a..4c54c24 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -88,7 +88,82 @@ brews: - name: git install: | bin.install "wtp" - generate_completions_from_executable(bin/"wtp", "completion") + + (bash_completion/"wtp").write <<~'E...
5
1
1
[{"id": "G0", "claim": "In the bash bootstrapper, the fallback to 'wtp completion' for backward compatibility creates a maintenance burden with two code paths and should be documented or slated for removal.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
satococoa__wtp__33
satococoa/wtp
33
defect
780af9def1938d36967a3403ae2a1591ddc8546e
0e236915fe0c28c2a215c7b06ae897f811ee5d14
fix: prevent removing current worktree
## Summary - block `wtp remove` from deleting the worktree that contains the current directory - add an explicit error explaining how to switch worktrees before retrying the removal - extend unit coverage for the new guard and supporting error helper ## Testing - go test ./... *(fails: permission-based fixtures expect...
diff --git a/cmd/wtp/remove.go b/cmd/wtp/remove.go index 906a6b9..8c67941 100644 --- a/cmd/wtp/remove.go +++ b/cmd/wtp/remove.go @@ -133,7 +133,7 @@ func removeCommandWithCommandExecutor( _ *cli.Command, w io.Writer, executor command.Executor, - _ string, + cwd string, worktreeName string, force, withBranch, ...
3
2
1
[{"id": "G0", "claim": "The isPathWithin call guarding removal has its arguments reversed and should be called as isPathWithin(absCwd, absTargetPath) so the guard checks whether the current working directory is within the target worktree path.", "category": "correctness", "verdict": "supported", "priority": "P3", "scop...
null
satococoa__wtp__99
satococoa/wtp
99
defect
663bc63189c07fb2d6bff6fdee721232ad21478e
3600d4d30eafc388fbc61456c624a714fbc76fc7
feat: add --quiet flag for wtp add
## Summary - add --quiet (-q) to wtp add - in quiet mode, print only the created absolute worktree path to stdout - send hook/exec progress and warnings to stderr in quiet mode - add unit/e2e coverage for the quiet output contract Closes #91 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> #...
diff --git a/README.md b/README.md index 194b4cd..90779f7 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,9 @@ wtp add -b hotfix/urgent abc1234 # → Useful for bootstrap steps (supports interactive commands when TTY is available) wtp add -b feature/new-feature --exec "npm test" +# Script-friendly output: print...
6
3
2
[{"id": "G0", "claim": "In quiet mode the `--exec` child command runs with `Interactive: true`, so a TTY-bound executor writes the command's output directly to os.Stdout/os.Stderr, bypassing statusWriter and leaking non-path output onto stdout in violation of the path-only quiet contract.", "category": "correctness", "...
null
saucelabs__node-saucelabs__101
saucelabs/node-saucelabs
101
defect
dd51c304a255eb6a89259e16f83d72bcd812dacb
bb01f0052656a3b61c9fb6c6d3a5aec4926bcb33
Always pull latest Sauce Connect version if not specified otherwise
Fallback to hardcoded version in case the API call fails. Closes #93
diff --git a/src/constants.js b/src/constants.js index ceff2420..06a06cf6 100644 --- a/src/constants.js +++ b/src/constants.js @@ -5,6 +5,7 @@ import { version } from '../package.json' export const DEFAULT_SAUCE_CONNECT_VERSION = '4.6.2' export const SAUCE_CONNECT_BASE = 'https://saucelabs.com/downloads' +export co...
1
1
0
[{"id": "G0", "claim": "The two local constants in _getLatestSauceConnectVersion should not be declared as consts because they are never modified.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
saucelabs__node-saucelabs__106
saucelabs/node-saucelabs
106
defect
56ac56d23bc7559fb504b10b5dfdc3eb7ce0a94d
ef69cb544d0f174b008c9b1da894ba10f96c0bdd
Show err response body for createJob API
For `createJob` API, it explains why it failed in response body. But when calling this API in node-saucelabs, it only outputs `err.message`. It's not enough to figure out which part is wrong with current implementation. I only added `err.response.body` for `createJob` API cause it will be deprecated in the future. Hope...
diff --git a/apis/testrunner.json b/apis/testrunner.json index 6bf8538a..07bbef0f 100644 --- a/apis/testrunner.json +++ b/apis/testrunner.json @@ -168,6 +168,16 @@ } } } + }, + "422": { + "description": "invalid parameters", + "content...
1
1
0
[{"id": "G0", "claim": "Tying the error-response-body behavior to the special createJob endpoint feels odd; the error response should be shown for other endpoints too.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
saucelabs__node-saucelabs__140
saucelabs/node-saucelabs
140
defect
9c9f90ca8fa0030d236c697b43a28324b85b3e6f
fb3611913a79d5e225c6055af32cfe2e86966f70
SC default version update
### Description - Upgrade the default SC version to 4.8.0 - Clean up SC API (removing SC options that are either outdated or scheduled for deprecation). - Fix tests flakiness by adding `tunnelPool` to e2e tests to prevent concurrent tests to interfere with each other by shutting down "colliding" tunnels. This works ...
diff --git a/e2e/sc.test.js b/e2e/sc.test.js index 15d029da..b019232d 100644 --- a/e2e/sc.test.js +++ b/e2e/sc.test.js @@ -26,6 +26,8 @@ test('should be able to run Sauce Connect', async () => { const api = new SauceLabs() const sc = await api.startSauceConnect({ logger: console.log.bind(console), + ...
4
3
2
[{"id": "G0", "claim": "The pull request deletes Sauce Connect CLI options (e.g. 'doctor') without first deprecating them; they should be deprecated rather than removed outright.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The e2e test should carry a ...
null
saucelabs__node-saucelabs__20
saucelabs/node-saucelabs
20
defect
f0c9d4d6b8850021b7c590e5aa0756b9bc55d6f0
483b6d1a7291d271e46cad2274512898d9fb9a87
Added Support For Corporate Proxy
Added https proxy support to makeRequest() - A proxy will be utilized if the user has one defined on their system. Also added HttpsProxyAgent as a dependency.
diff --git a/lib/SauceLabs.js b/lib/SauceLabs.js index 40aab90c..e2a08385 100644 --- a/lib/SauceLabs.js +++ b/lib/SauceLabs.js @@ -2,6 +2,8 @@ var crypto = require('crypto'); var https = require('https'); var querystring = require('querystring'); var utils = require('./utils'); +var HttpsProxyAgent ...
5
5
2
[{"id": "G0", "claim": "The three uses of process.env.https_proxy should be converted to process.env.HTTPS_PROXY, the standard convention for environment variable names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Documentation for the new pr...
null
saucelabs__node-saucelabs__265
saucelabs/node-saucelabs
265
defect
d916ab1c36a02a43ab38ca0a81968ffa86ef043f
6283bec47e27fd938ae264741052279da0dbf774
sc5 support resolves #240
# One-line summary Upgrade to [Sauce Connect 5](https://docs.saucelabs.com/secure-connections/sauce-connect-5/). This is a breaking change. > Issue : #240 ## Description Sauce Connect 5 is the latest and supported version of Sauce Connect. This update provides support for Sauce Connect 5, and removes support...
diff --git a/README.md b/README.md index 4d8d3695..4669c6d0 100644 --- a/README.md +++ b/README.md @@ -104,12 +104,12 @@ or start Sauce Connect Proxy in EU datacenter: # start Sauce Connect tunnel for eu-central-1 region $ sl sc --region eu --tunnel-name "my-tunnel" # run a specific Sauce Connect version -$ sl sc --...
4
2
0
[{"id": "G0", "claim": "Use a `process.platform.startsWith('win')` condition instead of the exact `process.platform == 'win32'` comparison for the Windows check in getPlatform().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Provide an easy way...
null
saucelabs__node-saucelabs__68
saucelabs/node-saucelabs
68
defect
7f0f06293e12dadedb73089634d25869b5ba6550
c1c35e32fa936cf310e6e215ba54788f8a6d3746
feat(request): support proxy option
this allows to pass in a proxy to be used via options. It essentially mimics the behavior of passing in the username/accesskey either via ENVs or options. Moreover this used to be available in v1 and now with the PR shouldn't be a breaking change any longer.
diff --git a/README.md b/README.md index cb7351c7..cf542e8e 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,15 @@ Default: `false` ## Usage -All accessible API commands with descriptions can be found [here](docs/interface.md). In order to route requests through a proxy set `HTTP_PROXY`, `HTTPS_PROXY` or `NO_PR...
2
1
1
[{"id": "G0", "claim": "Add the new proxy parameter to the CLI_PARAMS list in src/constants.js so the option is also visible in the CLI tool.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a documentation example showing how to set the proxy via envi...
null
saucelabs__node-saucelabs__80
saucelabs/node-saucelabs
80
defect
9e7bc659d0d9e8f2b80b326ef75be07929736727
95770aee6af40ef19f515c91d1244c67fcfdccc7
fix proxy functionality
**Summary** This PR, when finished would fix the proxy option and not rely on HTTP_PROXY as that was used by request and not got. This fix will allow you to do something like: ```bash sl -p http://my.proxy.com:8080 getCurrentUserFull ``` as well as something like this via Node: ```node const api = new SauceLa...
diff --git a/package.json b/package.json index 4b899c35..1f66f17f 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "change-case": "^4.1.1", "got": "^10.6.0", "hash.js": "^1.1.7", + "tunnel": "0.0.6", "yargs": "^15.3.1" }, "devDependencies": { diff --git a/src/cli.js b/src/cli....
3
3
1
[{"id": "G0", "claim": "Remove the commented-out assertion line ('// await expect(requestOptions.agent).toEqual(proxy)') from the proxy options test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a default property to the CLI args so the pr...
null
saucelabs__node-saucelabs__81
saucelabs/node-saucelabs
81
defect
fb387b8f24825f2382e3782bfd14761a32653f0a
d15b6c51e5b7178bf4aacbe811affc8d29e73a38
Add support for Sauce Connect Proxy
Currently users would need two packages: `saucelabs` and [`sauce-connect-launcher`](https://www.npmjs.com/package/sauce-connect-launcher) to access all Sauce Platform capabilities. This PR adds support to start and stop a Sauce Connect Proxy tunnel to simplify usage. Users can from now on just this NPM package if they ...
diff --git a/README.md b/README.md index 652d0b5d..5eaf02be 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # Node Sauce Labs [![Build Status](https://travis-ci.org/saucelabs/node-saucelabs.svg?branch=master)](https://travis-ci.org/saucelabs/node-saucelabs) -Wrapper around all Sauce Labs REST APIs for [Node...
4
1
0
[{"id": "G0", "claim": "The Sauce Connect version 4.5.4 is hardcoded in src/constants.js; the author should find a way to download the latest version automatically instead.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README example should b...
null
saucelabs__node-saucelabs__96
saucelabs/node-saucelabs
96
defect
a42229ee08ca6c0d0fc898147281072dd68f7211
91096e647b09a4617d8d69bc3c22ed6121bd9c9a
Support custom header
- request headers can be set by using `headers` option. - set default headers
diff --git a/src/constants.js b/src/constants.js index 5ee9f5ea..96de6cef 100644 --- a/src/constants.js +++ b/src/constants.js @@ -69,7 +69,8 @@ export const DEFAULT_OPTIONS = { key: process.env.SAUCE_ACCESS_KEY, headless: false, region: 'us', - proxy: process.env.HTTPS_PROXY || process.env.HTTP_PROXY...
4
4
1
[{"id": "G0", "claim": "The new default headers entry in DEFAULT_OPTIONS should use the capitalized 'User-Agent' key and the default value should follow the format <PACKAGE_NAME>/<PACKAGE_VERSION> (<LANGUAGE> <PLATFORM>), e.g. 'saucelabs/v3.4.2 (nodejs mac)'.", "category": "design", "verdict": "supported", "priority": ...
null
saucelabs__saucerest-java__130
saucelabs/saucerest-java
130
defect
ed8d793f05c661b3eb804939de0952887e9ca685
0ca1b1f105586b604c922e31893a07504b43e324
Refactor assets fetching, add missing asset endpoints and clean up code
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. ---> Overhaul asset fet...
diff --git a/CONTRUBUTING.md b/CONTRIBUTING.md similarity index 100% rename from CONTRUBUTING.md rename to CONTRIBUTING.md diff --git a/README.md b/README.md index 61dcdc13..d232063d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A Java client for Sauce Labs’s REST API. Using this client you can update Job i...
17
16
2
[{"id": "G0", "claim": "The empty NotAuthorized constructor's braces should be on separate lines, consistent with the rest of the code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If the JSON returns a null automation_backend, comparing autom...
null
saucelabs__saucerest-java__162
saucelabs/saucerest-java
162
defect
de94e88d0f3aad8ea731b9e089e1cfe33260273f
05bb0f80cee0d629374d7ba5c3b2a40d5c7a5bf9
Resolve #161.
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. ---> This resolves #161...
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8f65a3ff..725671cf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,8 +1,8 @@ name: "Code Scanning - Action" on: - push: - pull_request: + push: [master, 1.1.0_mast...
2
2
0
[{"id": "G0", "claim": "As a future improvement, find a way to avoid passing HTTP methods as strings (e.g. the \"GET\" literal the new setConnection overload passes) and use a strongly typed enum instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
saucelabs__saucerest-java__88
saucelabs/saucerest-java
88
defect
536c89bbe0e90617319e02a061e04db831b60db3
cb128221f6d015fdff887e64eb5f47b743c059b7
Add Asset fetch methods which raise Exceptions. Close #57.
Currently, failures when fetching resources are transparent. This is good when running tests as a REST API problem won't break a build, but it means that any issues that occur go un-noticed. This change adds `downloadXOrThrow` methods which raise either `SauceException.NotAuthorized`, `FileNotFound` or `IOExceptio...
diff --git a/README.md b/README.md index 717275b5..e91a4ab2 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,19 @@ Assets are downloaded by providing a job ID and the location to save the asset t Filenames are set automatically to `job_idyyyyMMdd_HHmmSS.ext`, where yyyyMMdd_HHmmSS is the retrieval timestamp and ...
2
2
0
[{"id": "G0", "claim": "The README code examples use the path `/var.tmp` where it should be `/var/tmp`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The methods should eventually be renamed so that the exception-throwing variants are the default...
null
saulpw__visidata__2349
saulpw/visidata
2,349
defect
e9e8ef88849e75420017d42cbe250c778d822c10
76f1874727ad63e401483d915c066b82ef384198
[ping-] fix open-ping sheet opening
Currently, `open-ping` does nothing after the user inputs an IP/hostname. That's because the user input is passed to `openSource()`, and then treated like a file that does not exist: https://github.com/saulpw/visidata/blob/e9e8ef88849e75420017d42cbe250c778d822c10/visidata/_open.py#L93 This PR fixes that by removing...
diff --git a/visidata/features/ping.py b/visidata/features/ping.py index 5ec93610e..53725d8aa 100644 --- a/visidata/features/ping.py +++ b/visidata/features/ping.py @@ -13,6 +13,12 @@ def new_ping(vd, p): pingsheet = PingSheet(p.given, source=p.given) return PingStatsSheet("traceroute_"+pingsheet.name, source...
2
2
2
[{"id": "G0", "claim": "Include at least `push` and `input` strings in the open-ping execstr, since that is how the menu system knows the command takes input and pushes a new sheet.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move `open_ping` to the V...
null
saulpw__visidata__2417
saulpw/visidata
2,417
defect
448318d9974ddcde378e9ae6d53167188cc27ae7
1988303234a838697303be5e196c85b9d50af439
[aggr-] allow ranking rows by key column
This PR adds a `rank` aggregator that returns a list, and a command `addcol-rank`, which adds a new column with the rank of each row. Ranks are calculated by comparing key columns. It also fixes a bug in `memo-aggregate` where long output takes an extremely long time to show up in the statusbar. For example: `seq ...
diff --git a/visidata/aggregators.py b/visidata/aggregators.py index 51e0d9d12..d42880ded 100644 --- a/visidata/aggregators.py +++ b/visidata/aggregators.py @@ -3,8 +3,9 @@ import functools import collections import statistics +import itertools -from visidata import Progress, Sheet, Column, ColumnsSheet, VisiData ...
6
3
1
[{"id": "G0", "claim": "It needs to be confirmed that ranking handles mixed-type values acceptably via the standard approach of converting the column to a known type, so unconvertible values become sortable TypedWrappers.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "...
null
saulpw__visidata__2667
saulpw/visidata
2,667
defect
6b0a78a7b62fcc75fde37377143a0866aa114e7a
36cf84e498767fa0b254ffc9e773fd9761ab92e6
[cliptext-] clipstr() to width 1: truncate chars having width > 1
Let's say we have a sheet with full-width characters, like あ, ![normal](https://github.com/user-attachments/assets/cb7f1bb7-7a53-418a-9410-ddd61e7815ea) `clipstr()` currently causes a problem: if we change a column to width 1, each cell's first character is drawn with its full width, causing columns to be misaligned....
diff --git a/visidata/cliptext.py b/visidata/cliptext.py index a505b0325..d5de0e279 100644 --- a/visidata/cliptext.py +++ b/visidata/cliptext.py @@ -148,7 +148,16 @@ def _clipstr(s, dispw, trunch='', oddspacech='', combch='', modch=''): return '', 0 if dispw == 1: - return s[0], 1 + w_s = ...
4
4
2
[{"id": "G0", "claim": "The dispw==1 branch of _clipstr() should not need a for-loop; two cases (return s[0] if dispwidth(s[0]) == 1, else return '', 0) should suffice.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "VisiData's wcwidth implementation is w...
null
saulpw__visidata__2861
saulpw/visidata
2,861
defect
d4999149259ddf7544ec272757a018525f897104
51cb2fe9398bdae3e4a453a199ab1ceaff7c35ab
feature: highlight patterns like vim's hlsearch
This is a draft of a feature to highlight substrings within a column, or in every column. It looks like this, highlighting `\d+` in the `SKU` column, and highlighting `cat` everywhere. <img width="953" height="145" alt="highlight" src="https://github.com/user-attachments/assets/6cee32ab-f081-456c-bc50-ddd76e683b4a" ...
diff --git a/visidata/basesheet.py b/visidata/basesheet.py index 9a0c41f8b..78d638871 100644 --- a/visidata/basesheet.py +++ b/visidata/basesheet.py @@ -108,6 +108,7 @@ class BaseSheet(DrawablePane): defer = False # False for not deferring changes until save guide = '' # default to show in si...
8
7
5
[{"id": "G0", "claim": "There is no way to clear the highlighting once set; provide a command/binding for it (e.g. Ctrl+L).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The special cases where matches are at the edge of the cell or screen should e...
null
saulpw__visidata__2908
saulpw/visidata
2,908
defect
5b22d8546df383e6c45f1249195104a7dc99a812
033cc4665a0716a4cfbaa05e831d6413345acac1
[statusbar-] make lstatus_max truncation preserve vd markup
This PR supersedes #2877. The problem described there is that `truncateMiddle()` duplicates substrings, and does not properly handle visidata's internal markup. To demonstrate, do `vd --disp_lstatus_max=50 sample_data/benchmark.csv`. The status bar shows `1›benchmark…u_active]1›benchmark|`, repeating`1›benchmark`. The...
diff --git a/visidata/cliptext.py b/visidata/cliptext.py index 852b3b763..28dece2c7 100644 --- a/visidata/cliptext.py +++ b/visidata/cliptext.py @@ -391,6 +391,66 @@ def clipstr_middle(s, n=10, truncator='…'): return res, dispwidth(res) return s, dispwidth(s) +def clip_markup_middle(s:str, w:int): + ...
3
2
0
[{"id": "G0", "claim": "The `import re` statement this pull request adds to visidata/statusbar.py is an extra import and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The iterchunks import added to visidata/statusbar.py is no...
null
savoirfairelinux__num2words__171
savoirfairelinux/num2words
171
defect
b492530cfaf7f73142cadca0569156c95554b22b
15426ae0179204a5789198a53bba0329d3c1e0c1
add support for Japanese (JA)
### Changes proposed in this pull request: * Add support for JA ### Status - [x] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change ```python import num2words num2words.num2words(123456, lang='ja') num2words.num2words(123456, lang='ja', reading=True) num2words.num2words(-5,...
diff --git a/README.rst b/README.rst index 27fcf6c4..fb77a1bf 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ There's only one function to use:: >>> num2words(42, lang='fr') quarante-deux -Besides the numerical argument, there's two optional arguments. +Besides the numerical argument, there are t...
5
5
2
[{"id": "G0", "claim": "The author should not forget to update README.rst and to implement as many automatic tests as he can for the Japanese support.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code is failing on Python 2, probably for Unicode-r...
null
savoirfairelinux__num2words__196
savoirfairelinux/num2words
196
defect
c71d99cddf99318e4a59b78a88946fd1922f367b
fc4878781160ba2dd3f2c8fd9fe1a8d66ea8f0d7
Very naive to_currency implementation for NL
## Fixes # by... ### Changes proposed in this pull request: This is attempt at #159. It's very naive and only works for EUR but it's better than nothing. ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress)
diff --git a/num2words/base.py b/num2words/base.py index 61b81b0b0..3b990e349 100644 --- a/num2words/base.py +++ b/num2words/base.py @@ -195,9 +195,6 @@ def verify_ordinal(self, value): if not abs(value) == value: raise TypeError(self.errmsg_negord % value) - def set_wordnums(self): - ...
2
1
0
[{"id": "G0", "claim": "Fix the extra spaces in the hanging-indent formatting the pull request added in num2words/lang_NL.py (over-indented string continuations and closing parentheses).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The plurali...
null
savoirfairelinux__num2words__207
savoirfairelinux/num2words
207
defect
411a92a4feeedfcaf77ed9ef507e8abfae1c835d
d4da71cc6409dc8b26b42118c12d6b818a0af96e
Add support for Serbian (Latin)
### Changes proposed in this pull request: Add support for Serbian (Latin) Adds support for local currency RSD, EUR and RUB ### Status - [x] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change Just run the tests. I included tests for RUB, EUR and RSD. Tried to cover all the...
diff --git a/num2words/__init__.py b/num2words/__init__.py index 2cc88dad..a833080c 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -45,6 +45,7 @@ from . import lang_NL from . import lang_UK from . import lang_SL +from . import lang_SR from . import lang_TH CONVERTER_CLASSES = { @@ -68,6 +69,7 ...
2
1
0
[{"id": "G0", "claim": "Refactor the currency handling into `_currency_units_verbose`/`_currency_fractions_verbose` helpers so lang_SR does not have to override the whole `to_currency` method.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Update README....
null
savoirfairelinux__num2words__211
savoirfairelinux/num2words
211
defect
411a92a4feeedfcaf77ed9ef507e8abfae1c835d
6824d02512a4c3ac9201e1d2006695ab05ffac97
Add USD currency support to RU language
### Changes proposed in this pull request: Add support USD currency for RU language ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change Run tests
diff --git a/num2words/lang_RU.py b/num2words/lang_RU.py index 6461b3535..c4983414f 100644 --- a/num2words/lang_RU.py +++ b/num2words/lang_RU.py @@ -103,6 +103,9 @@ class Num2Word_RU(Num2Word_Base): 'EUR': ( ('евро', 'евро', 'евро'), ('цент', 'цента', 'центов') ), + 'USD': ( + ...
1
1
1
[{"id": "G0", "claim": "The CI is failing because a test line the pull request added in tests/test_ru.py is longer than 79 characters; splitting it should fix the problem.", "category": "maintainability", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
savoirfairelinux__num2words__212
savoirfairelinux/num2words
212
defect
411a92a4feeedfcaf77ed9ef507e8abfae1c835d
88b101251736b397cad645a58c83453beeaf7c11
Implemented to_ordinal for RU
## Fixes # by... ### Changes proposed in this pull request: * Implemented to_ordinal for RU * Added test cases for this ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change Just run tests
diff --git a/num2words/lang_RU.py b/num2words/lang_RU.py index 6461b353..e4bb47d6 100644 --- a/num2words/lang_RU.py +++ b/num2words/lang_RU.py @@ -108,6 +108,27 @@ class Num2Word_RU(Num2Word_Base): def setup(self): self.negword = "минус" self.pointword = "запятая" + self.ords = {"ноль":...
3
3
2
[{"id": "G0", "claim": "More tests should be added so that the lines of num2words/lang_RU.py left uncovered by the new to_ordinal implementation are covered.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The debug print() statements left in to_ordinal ...
null
savoirfairelinux__num2words__213
savoirfairelinux/num2words
213
defect
dc733cfa1b191a0ead7ae35051f98f1ab963cf46
e3f6ddd192dd5fba11ce7aad97874afd6822f7c1
Correction of german ordinals.
The ordinals for very big numbers (million and up) were incorrect. For the german speakers: Incorrect (old): Millionenste / Billiardenste Correct (new): Millionste / Billardste
diff --git a/num2words/lang_DE.py b/num2words/lang_DE.py index 79099dc06..ca993bb75 100644 --- a/num2words/lang_DE.py +++ b/num2words/lang_DE.py @@ -70,9 +70,9 @@ def setup(self): "ert": "erts", "end": "ends", "ion": "ions", - "nen": ...
1
1
0
[{"id": "G0", "claim": "A test should be added covering the corrected German ordinal suffixes in num2words/lang_DE.py.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
savoirfairelinux__num2words__215
savoirfairelinux/num2words
215
defect
dc733cfa1b191a0ead7ae35051f98f1ab963cf46
0ad1572a9b7c1f642b4893b2c8cb3fbeea97fa40
Romanian support
## Fixes #206 ### Changes proposed in this pull request: * Add support for Romanian language ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change * Run unit tests * from bash run with language option `ro` e.g. `num2words 52.43 -l ro` ### Additional notes...
diff --git a/num2words/__init__.py b/num2words/__init__.py index 2cc88dad..46f24e96 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -30,6 +30,7 @@ from . import lang_LT from . import lang_LV from . import lang_PL +from . import lang_RO from . import lang_RU from . import lang_ID from . import la...
3
3
2
[{"id": "G0", "claim": "The README.rst list of supported languages should also be updated to include Romanian, since the PR adds the 'ro' language.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "num2words(22000, lang='ro') returns 'douăzeci și doi...
null
savoirfairelinux__num2words__219
savoirfairelinux/num2words
219
defect
ca61c77f3bd866f1c43220e3fe6115d99de48c4b
1ea9f2d1aef5d092ba24ea1ea669016e5268d146
Add: Korean support
### Changes proposed in this pull request: * Support for Korean language (#209) ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change Run the test cases in `tests/test_ko.py`
diff --git a/README.rst b/README.rst index 86a80023d..859f6e393 100644 --- a/README.rst +++ b/README.rst @@ -92,6 +92,7 @@ Besides the numerical argument, there are two main optional arguments. * ``id`` (Indonesian) * ``it`` (Italian) * ``ja`` (Japanese) +* ``ko`` (Korean) * ``lt`` (Lithuanian) * ``lv`` (Latvian) ...
2
2
1
[{"id": "G0", "claim": "Remove the commented-out set_mid_numwords/set_low_numwords code block from num2words/lang_KO.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a couple of tests covering the lines of num2words/lang_KO.py missing cove...
null
savoirfairelinux__num2words__228
savoirfairelinux/num2words
228
defect
58613e0a18ad51e5372b22b59e2d304e958a3ec3
4a0b323fa94f26bea82d5188eddd9539bb6539b3
Extend Polish names + typos; power of thousand names not inserted when value is 0
## Fixes # by Marek Madejski ### Changes proposed in this pull request: - typos in Polish names of 900 ("dziewięćset") and 10**27 (long scale - "kwadryliard") - expanded PL names up to decilliard (10**63 - long scale,) - words for power of thousand are no longer inserted if said power is 0 (e.g. in Polish: 1_00...
diff --git a/num2words/lang_CZ.py b/num2words/lang_CZ.py index 0a290494..7cfa1f6c 100644 --- a/num2words/lang_CZ.py +++ b/num2words/lang_CZ.py @@ -130,6 +130,10 @@ def _int2word(self, n): i = len(chunks) for x in chunks: i -= 1 + + if x == 0: + continue + ...
2
2
1
[{"id": "G0", "claim": "The PR author should make the changes PEP8-compliant and add tests covering the proposed lang_PL.py changes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The very large test number at tests/test_pl.py line 73 makes the line too...
null
savoirfairelinux__num2words__243
savoirfairelinux/num2words
243
defect
eef5b03593f77b30fcedafdfd2fa86893f391f98
8f55308735a797e8bfe743cfc055a76a01641cb8
add kannada language support
## Fixes # by... ### Changes proposed in this pull request: Adds Kannada language support. ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress)
diff --git a/num2words/__init__.py b/num2words/__init__.py index 6df724c0..87041318 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (c) 2003, Taro Ogawa. All Rights Reserved. # Copyright (c) 2013, Savoir-faire Linux inc. All Rights Reserved. @@ -...
5
4
3
[{"id": "G0", "claim": "The test_cli.py tests fail on the CI environments other than py36, and the author asks the maintainer for guidance on what is wrong.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "num2words() is missing the conditional that converts...
null
savoirfairelinux__num2words__352
savoirfairelinux/num2words
352
defect
400917aa89af6f8e36c4693bc92cc52553e572d6
219c2a5eb4efc77b8bfd7db918e64a4a21c11d02
added swedish language including test cases
## Fixes # by... ### Changes proposed in this pull request: * add swedish language support ### Status - [ X] READY - [ ] HOLD - [] WIP (Work-In-Progress) ### How to verify this change *Check if words look reasonable? Compare to Norweigan.* ### Additional notes *Swedish rules are very similar t...
diff --git a/num2words/__init__.py b/num2words/__init__.py index 931d28af..a8c47370 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -22,8 +22,8 @@ lang_FR_BE, lang_FR_CH, lang_FR_DZ, lang_HE, lang_HU, lang_ID, lang_IT, lang_JA, lang_KN, lang_KO, lang_KZ, lang_LT, lang_L...
2
2
1
[{"id": "G0", "claim": "erozqba asked peternordstrom to add tests for the lines of num2words/lang_SV.py that are not covered (the untested branches around line 98), because the PR cannot be merged while coverage decreases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
savoirfairelinux__num2words__503
savoirfairelinux/num2words
503
defect
3ef32f0c59ea7f1874ac27f948f0d45cd791e7e9
8d0814d6f1efabd41037eb2a50b193e47f554879
Adding genders for Russian language
## Fixes # by Khramtsov Dmitry ### Changes proposed in this pull request: * adding gender for Russian language. Now we can pass gender='f' or 'm' or 'n' and the number will be in appropriate form ### Status - [X] READY - [ ] HOLD - [ ] WIP (Work-In-Progress) ### How to verify this change [here](http...
diff --git a/num2words/lang_RU.py b/num2words/lang_RU.py index b521cfed..b87f9b9d 100644 --- a/num2words/lang_RU.py +++ b/num2words/lang_RU.py @@ -20,66 +20,78 @@ from .base import Num2Word_Base from .utils import get_digits, splitbyx -ZERO = ('ноль',) - -ONES_FEMININE = { - 1: ('одна',), - 2: ('две',), - ...
3
3
1
[{"id": "G0", "claim": "The gender parameter of _int2word should keep a default and remain backwards compatible, so old callers passing the former boolean feminine argument (e.g. feminine=True) do not break.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
savoirfairelinux__num2words__506
savoirfairelinux/num2words
506
defect
3ef32f0c59ea7f1874ac27f948f0d45cd791e7e9
0532aaed9e00851bc1d3721cf70e2f1176dd873a
Lang By Added
### Changes proposed in this pull request: Belarusian Language added ### Status READY ### How to verify this change Tests are written, but should be checked by another person ### Additional notes Small change in RU section for currency BYN
diff --git a/README.rst b/README.rst index c24bb099..e8102f76 100644 --- a/README.rst +++ b/README.rst @@ -79,6 +79,7 @@ Besides the numerical argument, there are two main optional arguments. * ``am`` (Amharic) * ``ar`` (Arabic) * ``az`` (Azerbaijani) +* ``by`` (Belarusian) * ``cz`` (Czech) * ``de`` (German) * ``...
14
11
11
[{"id": "G0", "claim": "TENS[6] is misspelled and should read 'шаснаццаць' instead of 'шастнаццаць'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TENS[7] is misspelled and should read 'сямнаццаць' instead of 'семнаццаць'.", "category": "correctnes...
null
savoirfairelinux__num2words__56
savoirfairelinux/num2words
56
defect
f7f1ba45834c007c2559b1f45ec8b6143c134b81
bd1f4faf1d1a1e80bc8843874754c2da8c3d7688
Italian support
As discussed with same license as other part of the project.
diff --git a/num2words/__init__.py b/num2words/__init__.py index 6de57a23..7f878d42 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -32,6 +32,7 @@ from . import lang_DK from . import lang_PT_BR from . import lang_HE +from . import lang_IT CONVERTER_CLASSES = { 'en': lang_EN.Num2Word_EN(), @...
2
2
2
[{"id": "G0", "claim": "The LANG_MODULE mapping in num2words/__init__.py has invalid Python syntax (missing comma between the 'he' and 'it' entries), and the reviewer asks that it be fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pull req...
null
savoirfairelinux__num2words__72
savoirfairelinux/num2words
72
defect
eb465df78aa2be40876335231b42fe6030326a5d
7f3f65d9f4c794d293242271d099e00c84298555
Support Arabic
Add Arabic support: ``` >>> from num2words import num2words >>> num2words(42, lang="ar") 'اثنين وأربعين' >>> ```
diff --git a/README.rst b/README.rst index a3808e74..606b1ca8 100644 --- a/README.rst +++ b/README.rst @@ -45,6 +45,7 @@ Besides the numerical argument, there's two optional arguments. **lang:** The language in which to convert the number. Supported values are: * ``en`` (English, default) +* ``ar`` (Arabic) * ``fr...
4
4
4
[{"id": "G0", "claim": "The encoding problem for Python 2.7 should be fixed (a coding declaration added to num2words/lang_AR.py).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests for Arabic like those existing for the other languages inside the ...
null
savoirfairelinux__num2words__84
savoirfairelinux/num2words
84
defect
39356b495d4fa9e6f40c536e2fa94328ef218fb8
a659e63eb5ab813fa0de6328285dba92d8fb6d80
TR translation
TR translation of num2word reading all cardinals and ordinals up to 10**21-1
diff --git a/num2words/__init__.py b/num2words/__init__.py index 69ad8dbf..58eabfbe 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -37,6 +37,7 @@ from . import lang_ES_VE from . import lang_ES_CO from . import lang_VN +from . import lang_TR CONVERTER_CLASSES = { @@ -60,7 +61,8 @@ 'pt_BR'...
3
2
0
[{"id": "G0", "claim": "Use English variable names in num2words/lang_TR.py to make collaboration easier for future contributors.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Turkish number output appears to be missing white spaces between ...
null
sbstp__attohttpc__157
sbstp/attohttpc
157
defect
ad7d00de56eb0db14ffd9394062eeeb599dd9f43
db3806271becb6ad66191094db626c3796f55ab4
Apply rustfmt
This pull request proposes to format codes with `rustfmt`.
diff --git a/.github/workflows/.#ci.yml b/.github/workflows/.#ci.yml new file mode 120000 index 0000000..c10d6cd --- /dev/null +++ b/.github/workflows/.#ci.yml @@ -0,0 +1 @@ +masa@masa-NUC12WSHi7.24580:1705762727 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73ba06f....
2
2
1
[{"id": "G0", "claim": "The pull request adds a stray file .github/workflows/.#ci.yml whose only content looks like an accidentally pasted prompt string, and it should not be part of the change.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
sbstp__attohttpc__68
sbstp/attohttpc
68
defect
464c682f3abd533f2847fc294074178feb54e14b
5b119cb33aae0aedefe89dff1122b107cea401ba
Optional multipart support
I used the `multipart` crate for this, which doesn't seem to have been updated in over a year. However, there aren't any outstanding issues, and I couldn't find any other synchronous implementation that's not tied to a specific HTTP stack.
diff --git a/Cargo.toml b/Cargo.toml index b497983..f59dd44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,8 @@ serde_json = { version = "1", optional = true } serde_urlencoded = { version = "0.6", optional = true } webpki = { version = "0.21", optional = true } webpki-roots = { version = "0.19", optional = t...
3
3
2
[{"id": "G0", "claim": "Multipart input should be borrowed instead of allocated, at least until the Multipart struct is built (MultipartFile holding &str/&[u8] and MultipartBuilder holding borrowed text and files).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
scalar-labs__scalardb__2896
scalar-labs/scalardb
2,896
defect
2c10b36fb69efd9bc8428ea2effb10bc65d84bfe
f242c348230c6b0d16a2859f4b782733ffd67348
Add JDBC database permission test
## Description This PR adds a permission test for major JDBC databases, specifically MySQL, PostgreSQL, Oracle, and SQL Server under ScalarDB. To check what permissions are required for all ScalarDB operations, all DistributedStorage and DistributedStorageAdmin methods are tested. This is a third step of the permiss...
diff --git a/.github/workflows/permission-check.yaml b/.github/workflows/permission-check.yaml index bd56dbeaa3..0eced7fd1f 100644 --- a/.github/workflows/permission-check.yaml +++ b/.github/workflows/permission-check.yaml @@ -114,3 +114,500 @@ jobs: with: name: dynamo_permission_integration_test_re...
4
1
0
[{"id": "G0", "claim": "The if-else-if structure selecting behavior by RDB engine is duplicated across getCreateUserSql, getDropUserSql and getGrantPermissionStatements and should be refactored, e.g. with a Strategy-pattern interface for database-specific privilege management selected in the constructor, to avoid code ...
null
scalar-labs__scalardb__3117
scalar-labs/scalardb
3,117
defect
7a43860274d270197fed45f1ed87e929a19ebf99
444c969312c5b123b408da567b00a2009d2e29f1
Deprecate `--log-success` argument and introduce new replacement option `--enable-log-success`
## Description This PR deprecates an existing CLI argument `--log-success` and introduces a new one `--enable-log-success` to improve clarity and consistency in command-line usage. The change ensures backward compatibility while guiding users toward the updated argument name. The change is applied based on PR rev...
diff --git a/data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommand.java b/data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommand.java index 73f40b0577..bb3aa613c2 100755 --- a/data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/da...
3
3
0
[{"id": "G0", "claim": "The call_withBothLogSuccessAndEnableLogSuccess_shouldThrowException test can be made more focused by removing the unnecessary --config, --namespace, --table and --max-threads arguments, since only --file is required for parsing.", "category": "testing", "verdict": "supported", "priority": "P2", ...
null
scalar-labs__scalardb__3204
scalar-labs/scalardb
3,204
defect
7f9d80ed7f7e0c9d8a0161c90e0ec37c52c6b143
ab7e018c0e07640247c9313885f7431ffa673611
Add isConsistentVirtualTableReadGuaranteed() to StorageInfo
## Description This PR introduces a new method `isConsistentVirtualTableReadGuaranteed()` method to the `StorageInfo` interface to indicate whether a storage guarantees consistent reads for virtual tables. Implementation: - **Cassandra**: Returns `false` (doesn't support virtual tables) - **Cosmos DB**: Returns...
diff --git a/core/src/main/java/com/scalar/db/api/DistributedStorageAdmin.java b/core/src/main/java/com/scalar/db/api/DistributedStorageAdmin.java index bcc16eb30c..a45c69e317 100644 --- a/core/src/main/java/com/scalar/db/api/DistributedStorageAdmin.java +++ b/core/src/main/java/com/scalar/db/api/DistributedStorageAdmi...
7
6
1
[{"id": "G0", "claim": "With the new consistentVirtualTableRead field, StorageInfoImpl's equals() and hashCode() should include the field to keep their contract, and toString() should be updated for debuggability.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
scalar-labs__scalardb__3304
scalar-labs/scalardb
3,304
defect
faf7b075c27e5c6e8eededf9f7f0c2d5c1da7806
d7590ed3160647a8f42e4619fc4db60cdc7defc6
Add batch execution support in mutate operations in JDBC adapter
## Description This PR adds batch execution support in `mutate` operations to improve performance when executing multiple mutations. Note that mutations are grouped by SQL and executed in batches, which may result in a different execution order than the original order of mutations passed to `mutate()`. ## Rela...
diff --git a/core/src/main/java/com/scalar/db/storage/jdbc/ConditionalMutator.java b/core/src/main/java/com/scalar/db/storage/jdbc/ConditionalMutationQuery.java similarity index 64% rename from core/src/main/java/com/scalar/db/storage/jdbc/ConditionalMutator.java rename to core/src/main/java/com/scalar/db/storage/jdbc/...
8
3
2
[{"id": "G0", "claim": "Because mutations are grouped by SQL for batching and non-batchable ones run last, the execution order may differ from the original order of the list passed to mutate(), so multiple mutations targeting the same record(s) can behave unexpectedly; this reordering should be explicitly documented or...
null
scalar-labs__scalardb__3340
scalar-labs/scalardb
3,340
defect
31b80884eb77dbf2a1a226fdcb6c21ebce503f91
269528e4b2f494302d6f8b7301ec933218aa8ab8
Update permission requirements test due to policy revision
## Description So far, ScalarDB permission requirements were based on the assumption that the database user used by ScalarDB could execute any administrative and CRUD operations on any database user. This meant quite elevated permissions were required for some databases. This catered to the use case of having a Scal...
diff --git a/.github/workflows/ci-all-java-temurin-versions.yaml b/.github/workflows/ci-all-java-temurin-versions.yaml new file mode 100644 index 0000000000..6d25ab0bc7 --- /dev/null +++ b/.github/workflows/ci-all-java-temurin-versions.yaml @@ -0,0 +1,60 @@ +name: CI with all Temurin Java versions +# This CI runs all t...
6
2
1
[{"id": "G0", "claim": "The SQL Server setup script hardcodes the 2022-latest Docker image and a hardcoded version check, so all SQL Server versions (2017, 2019, 2022) would run against the 2022 image and the symlink logic would not work as intended for 2017; the setup should use the %VERSION% placeholder.", "category"...
null
scalar-labs__scalardb__3450
scalar-labs/scalardb
3,450
defect
e9c64420c3d75a1c65799d04ebb2855b8e3f7c7d
e1a18aeadfd053c0f72b6e5735de533cd96bac23
Update dropColumnFromTable not to delete index when unsupported
## Description The current `dropColumnFromTable` can delete an index even if it is unsupported with the backend storage. It is because the index deletion process is included in `CommonDistributedStorageAdmin`. This PR fixes the issue by moving the index deletion process from `CommonDistributedStorageAdmin` to eac...
diff --git a/core/src/main/java/com/scalar/db/common/CommonDistributedStorageAdmin.java b/core/src/main/java/com/scalar/db/common/CommonDistributedStorageAdmin.java index b52a9126c7..ba250010ab 100644 --- a/core/src/main/java/com/scalar/db/common/CommonDistributedStorageAdmin.java +++ b/core/src/main/java/com/scalar/db...
4
2
0
[{"id": "G0", "claim": "currentTableMetadata in JdbcAdmin.dropColumnFromTable could be null if the table doesn't exist, causing a NullPointerException; add a null check right after it is fetched for robustness and consistency with the Cassandra implementation.", "category": "correctness", "verdict": "opposed", "priorit...
null
scalar-labs__scalardb__3481
scalar-labs/scalardb
3,481
defect
54c8e6fd1d1c943dedb3c785607bff6d35f1c107
0f7fb0e14a3ce1f7052955858b7f01a7fc3d9ebf
Shorten JDBC index names exceeding 63 characters using SHA-256 hash
## Description When creating secondary indexes, the generated index names can exceed the maximum identifier length of certain databases. For example, the index name format `index_{namespace}_{table}_{column}` can easily exceed PostgreSQL's 63-character limit with long namespace, table, or column names. PostgreSQL si...
diff --git a/core/src/integration-test/java/com/scalar/db/storage/jdbc/JdbcAdminIntegrationTest.java b/core/src/integration-test/java/com/scalar/db/storage/jdbc/JdbcAdminIntegrationTest.java index 9b41df3f03..878ac1b769 100644 --- a/core/src/integration-test/java/com/scalar/db/storage/jdbc/JdbcAdminIntegrationTest.java...
13
9
1
[{"id": "G0", "claim": "The dropIndex fallback retries with the original name even when getIndexName did not shorten anything, executing the same DROP statement twice and losing the original exception; it should check originalName.equals(indexName) and rethrow before the fallback, as renameIndexInternal does.", "catego...
null
scalar__scalar__8844
scalar/scalar
8,844
defect
b440f15ea4452cc7a812bbeac4c2e22f47c1418e
783603cf7487d70382035281169a2c2c4d69d05e
chore: replace zod with the custom validator library
Fixes: #8182 Trying to remove zod from the api-reference bundle... ## Checklist - [x] I explained why the change is needed. - [x] I added a changeset. <!-- pnpm changeset --> - [x] I added tests. - [ ] I updated the documentation. <!-- Use semantic PR titles: fix(api-client): crashes when API r...
diff --git a/packages/agent-chat/package.json b/packages/agent-chat/package.json index 4555bc6a5f4..e81694b0cab 100644 --- a/packages/agent-chat/package.json +++ b/packages/agent-chat/package.json @@ -57,6 +57,8 @@ "@scalar/openapi-types": "workspace:*", "@scalar/themes": "workspace:*", "@scalar/types": ...
8
7
2
[{"id": "G0", "claim": "Coercing the colorMode union always yields a literal, so `savedColorMode ?? initialColorMode` never reaches initialColorMode for first-time users and the 'respects initialColorMode option' tests would fail.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
scalar__scalar__8967
scalar/scalar
8,967
defect
40ff5600f4b7ba5dd765d0d29beb5eb0932e5399
703a658bc439b7b8a016be075fab39a79e018e43
feat(server-side-rendering): add unhead SSR head rendering
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Problem `@scalar/server-side-rendering` rendered the API reference HTML, but did not install a server head manager during SSR, so head metadata generated by `@scalar/api-reference` (for example via `metaData`) was not rendered into the server HTML. ## Solution - Installed Unhea...
diff --git a/.changeset/slimy-lobsters-doubt.md b/.changeset/slimy-lobsters-doubt.md new file mode 100644 index 00000000000..a1a5f540cef --- /dev/null +++ b/.changeset/slimy-lobsters-doubt.md @@ -0,0 +1,5 @@ +--- +'@scalar/server-side-rendering': patch +--- + +Integrate Unhead server-side head rendering in SSR output s...
1
1
1
[{"id": "G0", "claim": "The `head.htmlAttrs || ' lang=\"en\"'` fallback silently drops `lang=\"en\"` whenever Unhead produces any html attributes without `lang`; set `htmlAttrs: { lang: 'en' }` in the `createHead` init so Unhead merges it properly, matching the defensive merging already done for body attrs.", "category...
null
scalar__scalar__8984
scalar/scalar
8,984
defect
5eeff8463f61eab8e5c1e6e08d36d36a642f5daf
15b1f7eb684a60352b437df9449f32d8b9c3573a
fix(workspace-store): unable to select scopes when using preferredSecurityScheme
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Summary Fixes OAuth2 scope selection not working when using `preferredSecurityScheme` configuration option. ## Problem When `preferredSecurityScheme` is configured in the authentication settings, the security selection is computed on-the-fly by `getSelectedSecurity()` but **not...
diff --git a/.changeset/fix-oauth2-scopes-preferred-scheme.md b/.changeset/fix-oauth2-scopes-preferred-scheme.md new file mode 100644 index 00000000000..cba85aeca5e --- /dev/null +++ b/.changeset/fix-oauth2-scopes-preferred-scheme.md @@ -0,0 +1,9 @@ +--- +'@scalar/workspace-store': patch +--- + +fix: initialize selecti...
2
2
0
[{"id": "G0", "claim": "Reuse the existing default-security helper (getDefaultSecurity) here instead of hand-building a requirement, so the initialization keeps the same logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The initialization ad...
null
scalar__scalar__9035
scalar/scalar
9,035
defect
0e551392b33547d706e3fd0016b824ff237644fe
297f8aa8bd05e79eda98e06dd90b9f9be2fc8187
feat(proxy): forward selected forbidden headers via `X-Scalar-*` when proxying
Fixes: #9022 ## Checklist - [x] I explained why the change is needed. - [X] I added a changeset. <!-- pnpm changeset --> - [x] I added tests. - [ ] I updated the documentation. <!-- Use semantic PR titles: fix(api-client): crashes when API returns null ^ ^ ^ | | ...
diff --git a/.changeset/sour-weeks-ask.md b/.changeset/sour-weeks-ask.md new file mode 100644 index 00000000000..dece6288aab --- /dev/null +++ b/.changeset/sour-weeks-ask.md @@ -0,0 +1,8 @@ +--- +'@scalar/workspace-store': patch +'@scalar/helpers': patch +--- + +fix: forward `Date` request header via `X-Scalar-Date` wh...
5
5
1
[{"id": "G0", "claim": "Rewrite the forbidden-header handling to keep an array of those headers and iterate over it, instead of adding a separate if/else block for every single one, in both buildRequest and the Go proxy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
scalar__scalar__9054
scalar/scalar
9,054
defect
8384764c4dd664a6566ee4326e0ae6eadac2cb4f
315b64031225510ef16bda300054df832538d119
fix(workspace-store): build multipart body from schema object examples
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Problem `multipart/form-data` requests generated from schema-only examples could fall back to a JSON raw body before any user interaction. When the generated example was object-shaped (for example `{ "image": "@filename" }`), `buildRequestBody` did not treat it as form data and ...
diff --git a/.changeset/bright-lamps-film.md b/.changeset/bright-lamps-film.md new file mode 100644 index 00000000000..c29a919f2d4 --- /dev/null +++ b/.changeset/bright-lamps-film.md @@ -0,0 +1,5 @@ +--- +'@scalar/workspace-store': patch +--- + +fix multipart/form-data request body generation for schema-derived object ...
1
1
1
[{"id": "G0", "claim": "The new multipart/form-data object guard (typeof 'object' && !Array.isArray) also matches File and Blob instances, so a raw File example produces { mode: 'formdata', value: [] } instead of falling through to the raw file handler; the suggested fix is to use the isObject helper, which excludes no...
null
scalar__scalar__9055
scalar/scalar
9,055
defect
ddb3613e4f75c2f65fa54b6087402d1eb21a284f
3c195d40bb433a094caa7e9d1997dbbe6b6b76c9
fix(api-client): expand query params in object
## Problem When a query parameter has `type: object` with nested properties, the api-client displayed it as a single row instead of expanding the individual properties. ## Solution Object-type query parameters are now expanded into one row per property, matching how tools like Postman handle this. The expansion ...
diff --git a/.changeset/neat-queries-expand.md b/.changeset/neat-queries-expand.md new file mode 100644 index 00000000000..6d4db15b196 --- /dev/null +++ b/.changeset/neat-queries-expand.md @@ -0,0 +1,6 @@ +--- +'@scalar/api-client': patch +'@scalar/workspace-store': patch +--- + +fix(api-client): expand object query pa...
5
5
1
[{"id": "G0", "claim": "The locally defined getValueAtPath in create-parameter-rows.ts should be replaced by the existing getValueAtPath helper from @scalar/helpers/object/get-value-at-path.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loc...
null
scalar__scalar__9062
scalar/scalar
9,062
defect
8bcf8bf52a0da667d44eeec08648e3b1da044f97
12a130bf4fa3f23b94abe5d6036f348c3e25d4c2
feat(api-client): show inline errors in command palette instead of silent disable
## Checklist - [x] I explained why the change is needed. - [x] I added a changeset. <!-- pnpm changeset --> - [x] I added tests. - [ ] I updated the documentation. <!-- Use semantic PR titles: fix(api-client): crashes when API returns null ^ ^ ^ | | | | | ...
diff --git a/.changeset/fluffy-birds-kiss.md b/.changeset/fluffy-birds-kiss.md new file mode 100644 index 00000000000..7ab7e66e83e --- /dev/null +++ b/.changeset/fluffy-birds-kiss.md @@ -0,0 +1,5 @@ +--- +'@scalar/api-client': minor +--- + +feat: show inline errors in command palette instead of silent disable diff --gi...
2
2
0
[{"id": "G0", "claim": "The changeset should bump @scalar/api-client as a patch release instead of minor.", "category": "release", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inline-error behaviour should also be added for all command palette forms, or else be deferred t...
null
scalar__scalar__9063
scalar/scalar
9,063
defect
8bcf8bf52a0da667d44eeec08648e3b1da044f97
3067f24292961da293056af54eff6c0aa23102d9
feat(api-client): beautiful changelogs for api-client
<img width="1034" height="662" alt="image" src="https://github.com/user-attachments/assets/e7bd57d3-fccb-4f34-b914-967051c73ad9" /> # <img width="1034" height="662" alt="image" src="https://github.com/user-attachments/assets/3777c593-a979-4939-b774-d64c2a4f2d10" /> # <img width="1034" height="662" alt="image"...
diff --git a/.changeset/add-compare-versions-helper.md b/.changeset/add-compare-versions-helper.md new file mode 100644 index 00000000000..721d892afd5 --- /dev/null +++ b/.changeset/add-compare-versions-helper.md @@ -0,0 +1,5 @@ +--- +'@scalar/helpers': patch +--- + +feat(helpers): add a small dependency-free `compareV...
8
6
4
[{"id": "G0", "claim": "The pull request should be reduced to generating the changelogs into CHANGELOG.md and projects/scalar-app/CHANGELOG.MD, with the feed generated docs-side and only consumed by the client app.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
scalar__scalar__9100
scalar/scalar
9,100
defect
82f71b0ecac6fff2bd6c94838bf116cefcf2d550
32225c1a369c12bb0f8145c249cef61be24ee5ec
ci(api-client): on release, deploy main to cloudflare
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Problem `deploy-api-client` only deploys pull request previews right now, so release commits on `main` do not publish a main-branch Cloudflare Pages deployment for the API client. ## Solution - Expand the job-level `if` condition to also run when the workflow is on `main` and t...
diff --git a/.changeset/loose-bears-swim.md b/.changeset/loose-bears-swim.md new file mode 100644 index 00000000000..c9e4bb9f4ce --- /dev/null +++ b/.changeset/loose-bears-swim.md @@ -0,0 +1,5 @@ +--- +'scalar-app': patch +--- + +chore: minor change to trigger preview ci diff --git a/.github/workflows/ci.yml b/.github/...
2
2
1
[{"id": "G0", "claim": "The deploy job's `if` condition (`github.event_name == 'workflow_call'`) will always be false because in a reusable workflow `github.event_name` reflects the caller's event, preventing all PR preview and main-branch deployments from running.", "category": "correctness", "verdict": "supported", "...
null
scalar__scalar__9105
scalar/scalar
9,105
defect
99cf642f9fc5201d92338f1e84d0f260f58aa066
fb40b51885777fe3e6573107dc2e5e6b3aed9936
fix(scalar-app): use the correct scalar api url
## Problem Previously I had grabbed the wrong services URL. ## Solution Bruno informed me of the correct API URL. I have updated it in github ## Checklist - [x] I explained why the change is needed. - [x] I added a changeset. <!-- pnpm changeset --> - [ ] I added tests. - [ ] I updated the documentati...
diff --git a/.changeset/kind-knives-serve.md b/.changeset/kind-knives-serve.md new file mode 100644 index 00000000000..dfcc32a50a5 --- /dev/null +++ b/.changeset/kind-knives-serve.md @@ -0,0 +1,5 @@ +--- +'scalar-app': patch +--- + +fix: api url diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08e...
1
1
1
[{"id": "G0", "claim": "The CI workflow still sources the renamed VITE_API_URL from the old vars.SERVICES_URL GitHub variable, which may inject the wrong URL at build time; it should reference vars.API_URL if that variable holds the correct value.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
scalar__scalar__9118
scalar/scalar
9,118
defect
206f039a621c6d8f6fa63cbd311a779cb5c0494b
2f63b5a93de83acd8bc9cbf1308f183729d3e5bd
test(scalar-app): add playwright e2e and CI gate
This change adds browser end-to-end coverage for the Scalar web app, wires it into CI the same way other Playwright jobs run in the playwright-runner image, and fixes small gaps needed for stable navigation and local/Docker dev. ## Checklist - [x] I explained why the change is needed. - [ ] I added a changeset. ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0206bc4df2c..3f0ce578e74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -388,6 +388,51 @@ jobs: > [!IMPORTANT] > These tests include snapshots that may need to be updated if there are intentional ch...
1
1
1
[{"id": "G0", "claim": "The event handler navigates to route name `operation.settings`, but no such route is defined in routes.ts, so dispatching a `ui:navigate` event with `{ page: 'operation', path: 'settings' }` will cause a Vue Router navigation failure at runtime.", "category": "correctness", "verdict": "supported...
null
scalar__scalar__9134
scalar/scalar
9,134
defect
286992ceb66dcfa0ac7bef4be95bc79b71433cc0
31bfd3c7182713ed3fae54cd6221ec01843e0558
fix(api-client): request body content types, openapi extras, mime labels, and "other" without auto Content-Type
The request body dropdown lists built-in types first, then any additional media types from the OpenAPI operation. Labels use the MIME essence (no `charset` in the label). The **Other** option is available again for a raw body: it does **not** add an automatic `Content-Type` header (users can set one manually). Code sni...
diff --git a/.changeset/silver-otters-knock.md b/.changeset/silver-otters-knock.md new file mode 100644 index 00000000000..bbd4fcb8401 --- /dev/null +++ b/.changeset/silver-otters-knock.md @@ -0,0 +1,11 @@ +--- +'@scalar/api-client': patch +'@scalar/helpers': patch +'@scalar/workspace-store': patch +--- + +fix(api-clie...
1
1
1
[{"id": "G0", "claim": "The new getDefaultHeaders in the workspace-store normalizes default header names to lowercase, so when includeDefaultHeaders is true the HAR request (and the code snippets built from it) gets names like 'content-type' and 'accept' instead of the conventional casing (Content-Type, Accept, User-Ag...
null
scalar__scalar__9142
scalar/scalar
9,142
defect
9068d047cf93f2e89d889ed29b601f43f6692c96
1093610f889aae1fe0b0e3901c90aab73cbff100
fix(workspace-store): `x-internal`/`x-scalar-ignore` on $ref wrapper schemas
## Summary - Hidden schemas were still rendering in the sidebar when `x-internal` / `x-scalar-ignore` were set as siblings of `$ref` on a wrapper schema. - `getResolvedRef` returns only the dereferenced `$ref-value` content, so the existing check missed the wrapper's siblings. Now we check the wrapper *and* the resolv...
diff --git a/.changeset/fix-9114-x-internal-on-ref-wrapper.md b/.changeset/fix-9114-x-internal-on-ref-wrapper.md new file mode 100644 index 00000000000..c3fd0a03fac --- /dev/null +++ b/.changeset/fix-9114-x-internal-on-ref-wrapper.md @@ -0,0 +1,5 @@ +--- +'@scalar/workspace-store': patch +--- + +fix(workspace-store): r...
1
1
0
[{"id": "G0", "claim": "The biome-ignore lint/suspicious/useGuardForIn directive in traverse-schemas.ts is now unnecessary and its explanation inaccurate, because the PR moved the Object.hasOwn check into a standalone guard clause before the deref, so the suppression should be removed.", "category": "maintainability", ...
null