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
yegor256__takes__982
yegor256/takes
982
defect
18c485c524e225efbf726b5caadfc1c68fa0bdac
950349a3b158a413d10135d08e26dc1ecfc23d2b
For #968. Removing Guava's code.
For #968 - Updated cactoos-matchers to 0.15 - Replaced Guava's code on cactoos - Replaced static matchers on cactoos-matchers - Updated puzzle
diff --git a/pom.xml b/pom.xml index c76d9a6ad4..24976f8c67 100644 --- a/pom.xml +++ b/pom.xml @@ -192,7 +192,7 @@ SOFTWARE. <dependency> <groupId>org.llorllale</groupId> <artifactId>cactoos-matchers</artifactId> - <version>0.11</version> + <version>0.15</version> <scope>test</scope>...
2
1
0
[{"id": "G0", "claim": "Remove the rvm 2.2.2-to-2.6.0 bump in .travis.yml from this pull request because it was not part of the task, and wait for #981.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Travis CI run has failing tests and the author sho...
null
yegor256__takes__989
yegor256/takes
989
defect
49a235504e36c9a7c8254a0e6eedcac30f98b4b9
75bced89e0b0247cc5c506d1b742e79fd7be2b77
For #990: Added support for keeping trailing slashes in FkRegex.
For: #990 - Added a fluent setter for disabling the removal of the trailing slash `new FkRegEx().setRemoveTrailingSlash(false)` - Removing the trailing slash is still the default - Extended FkRegex component test
diff --git a/src/main/java/org/takes/facets/fork/FkRegex.java b/src/main/java/org/takes/facets/fork/FkRegex.java index 6199a0bce9..f1c7fedc3b 100644 --- a/src/main/java/org/takes/facets/fork/FkRegex.java +++ b/src/main/java/org/takes/facets/fork/FkRegex.java @@ -94,6 +94,11 @@ public final class FkRegex implements Fork...
4
3
1
[{"id": "G0", "claim": "The multi-line if condition in FkRegex.route() is indented at the wrong level (12 instead of 16); the reviewer asks that the indentation be corrected (use 4 spaces per level).", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The keep...
null
yellowstonegames__SquidLib__104
yellowstonegames/SquidLib
104
defect
9dde59841d92d894ffec01d5c31632d36d8ed9a9
6c572736a0a32eab5d9cd4ac5583cbb76eac111e
Support scrolling in ButtonsPanel...
(see hgamesdev.blogspot.fr for an example) + Generalize GroupCombinedPanel#fillBG so that it can fill the foreground too + detail in SquidTags + add @GwtIncompatible on methods of RNG that are + fix that some method of SquidInput that weren't forwarding the return value of their delegate + fix an off by one in tint met...
diff --git a/squidlib-util/src/main/java/squidpony/SquidTags.java b/squidlib-util/src/main/java/squidpony/SquidTags.java index e7b5871e20..a30ec9f055 100644 --- a/squidlib-util/src/main/java/squidpony/SquidTags.java +++ b/squidlib-util/src/main/java/squidpony/SquidTags.java @@ -7,7 +7,9 @@ * * <p> * Tags used ar...
2
1
0
[{"id": "G0", "claim": "The shuffle-related methods this PR marks @GwtIncompatible may not actually be GWT 2.7.0-incompatible, since GWT 2.7.0 (released over a year earlier) should support the methods used and its documentation may overclaim, so the annotation needs verification once GWT testing is set up locally.", "c...
null
yeoman__generator-webapp__333
yeoman/generator-webapp
333
defect
c7b40975eef444b2b4878603ad66be18924b3735
9c3fcc1cbea191c0e7cee810b646823dcf9b735f
made jQuery optional
When Bootstrap is not selected, added a prompt to optionally disclude jQuery (well, include jQuery, default yes). I've started too many projects with `yo gulp-webapp && bower uninstall --save jquery && gulp wiredep`!
diff --git a/app/index.js b/app/index.js index 3b96538e..899c6c78 100644 --- a/app/index.js +++ b/app/index.js @@ -75,7 +75,20 @@ module.exports = yeoman.generators.Base.extend({ this.includeBootstrap = hasFeature('includeBootstrap'); this.includeModernizr = hasFeature('includeModernizr'); - done()...
3
3
0
[{"id": "G0", "claim": "Style the added jQuery prompt code according to the project's style guide: use spaces inside parentheses and before function parentheses (`if (!this.includeBootstrap) {`, `else if (this.includeJQuery) {`, `function (`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
yeoman__generator-webapp__621
yeoman/generator-webapp
621
defect
4c92473c986a7eb3b4532e88abc0c1bc414a4c17
5f61a87e9deaea1a201cb316ead5156a5490e53c
Adopting Bootstrap 4 as option
Hi together, please accept my pull request. I added an additional choice for Bootstrap v3 or v4. Bootstrap 3 is treated as 'legacyBootstrap'. Everything Bootstrap 3 related is wrapped in applicable conditions, that can be safely removed once we decide to drop Boostrap 3. Thank you!
diff --git a/app/index.js b/app/index.js index 6c04b15e..912f501a 100644 --- a/app/index.js +++ b/app/index.js @@ -75,6 +75,20 @@ module.exports = generators.Base.extend({ value: 'includeModernizr', checked: true }] + }, { + type: 'list', + name: 'legacyBootstrap', + message: ...
2
2
1
[{"id": "G0", "claim": "The space after `h1` should be moved inside the `if` statement so that legacyBootstrap scaffolds `<h1>` without a double space.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's tests should be fixed so th...
null
yeoman__generator-webapp__733
yeoman/generator-webapp
733
defect
682b3f03491c7379f003fa1cb586b708f7eb6f47
bf503c1f3e75aceea1321287bc3ae7b6d1beadf8
Upgraded dependencies in the project generated
Fix #732
diff --git a/app/templates/_package.json b/app/templates/_package.json index 739ec51e..2e48023a 100644 --- a/app/templates/_package.json +++ b/app/templates/_package.json @@ -4,39 +4,50 @@ "node": ">=4" }, "devDependencies": { - "autoprefixer": "^7.1.2", - "babel-core": "^6.4.0", - "babel-preset-es2...
4
2
1
[{"id": "G0", "claim": "Dependencies in the generated package.json template should be kept in alphabetical order, because package managers reorder them and a user adding a package would cause an unnecessary diff; a tool like sort-package-json (for dependencies only) could be used instead.", "category": "maintainability...
null
yeoman__yo__227
yeoman/yo
227
defect
813c37641c928431260e908ef1b5723c0f18afab
bd5c1f4f2a2255dbbaed1a988ddf56e206e01a0a
add menu clear global config
This pull request is part of https://github.com/yeoman/generator/pull/688 It adds a new menu entry to clear the global config from the command line. ![screen shot 2014-10-31 at 00 04 25](https://cloud.githubusercontent.com/assets/1393946/4853753/1cd030b8-6089-11e4-9ed4-d70dead84ba2.png)
diff --git a/test/yoyo.js b/test/yoyo.js index 2d7619df..628b335a 100644 --- a/test/yoyo.js +++ b/test/yoyo.js @@ -66,6 +66,9 @@ describe('yo yo', function () { }); cb(); }); + helpers.stub(yoyo.prototype, '_readGlobalConfigFile', function () { + return {}; + }); ...
10
10
0
[{"id": "G0", "claim": "Use the user-home package for the global config path instead of hand-rolling the Windows/Unix home-directory lookup.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The insight analytics call is commented out; either uncom...
null
yeoman__yo__36
yeoman/yo
36
defect
f62c74e8a8cb2d60e9953c01d62fb9c96c6cbec8
07b78a7e3fd6a11e5e7396b8c01787159e4e9524
yo yo, may i help you?
Here's our man, yo, being all helpful and stuff. (#34) Just a start! Anyone who has time to take a look and go, "Whoa dude, no," please do :) ![](http://i.imgur.com/Uq4GDKo.png)
diff --git a/bin/yo b/bin/yo index f54bfbfb..ca6ccc93 100755 --- a/bin/yo +++ b/bin/yo @@ -57,6 +57,10 @@ function init() { // lookup for every namespaces, within the environments.paths and lookups env.lookup('*:*'); + if (cmd === 'yo') { + return require('./yoyo')(env); + } + if (!cmd && opts.help) { ...
10
8
3
[{"id": "G0", "claim": "The 'File an issue on GitHub' choice should link to https://github.com/yeoman/yeoman/blob/master/contributing.md#issue-submission instead of the issues list.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unneeded `var ...
null
yeoman__yo__52
yeoman/yo
52
defect
8f7f5baaa1fe2c55b052fa0d0dedcc412be5ec7e
c1caed6cfe8a9cf7e9a6ecd7f93a472095a5c04f
Display generator versions in `yo yo`
Fixes #39 This is how it looks: ![screenshot from 2013-07-05 23 06 47](https://f.cloud.github.com/assets/9906/755603/303d5f70-e5b7-11e2-9753-7595d3e40b77.png) @stephenplusplus Could you review this and give your opinion? I'm not sure the way I modified the test is the best.
diff --git a/bin/yoyo.js b/bin/yoyo.js index 641bc559..7776d5b6 100644 --- a/bin/yoyo.js +++ b/bin/yoyo.js @@ -218,6 +218,7 @@ yoyo.prototype.findGenerators = function findGenerators() { } var pkg = JSON.parse(self.readFileAsString(generatorPath)); + pkg.namespace = generator.namespace; self...
4
3
0
[{"id": "G0", "claim": "The version suffix in the generator list should drop the `v` prefix and be rendered in gray, including the parentheses.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `version` variable declared in the generator mapping is unu...
null
yeoman__yo__624
yeoman/yo
624
defect
fbb341e77783121331a0138c63230b6be355e95c
481d8cbe32ad1b415e005512bdea066374686f0a
Add --local-only option
## Purpose of this pull request? - [ ] Documentation update - [ ] Bug fix - [x] Enhancement - [ ] Other, please explain: ## What changes did you make? Added the `--local-only` CLI option, discussed [here](https://github.com/yeoman/environment/pull/113) ## Is there anything you'd like reviewers to focus...
diff --git a/lib/cli.js b/lib/cli.js index bd8caee6..292438d5 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -125,7 +125,7 @@ function init() { }); // Lookup for every namespaces, within the environments.paths and lookups - env.lookup(() => { + env.lookup(firstCmd.opts.localOnly || false, () => { const gene...
1
1
0
[{"id": "G0", "claim": "Fix the indentation of the `--generators` line in lib/usage.txt, which has a stray tab character between the flag name and its description.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
yeqown__go-qrcode__136
yeqown/go-qrcode
136
defect
c94423893b0db35a2a73f7d6cb98e2351fe03003
c3334a95949e25168d6867d2f60bad2f7f53388e
Implement a Mininum Version for QR Code generation
Sometimes theres a legal requirement for a minimum version of a QR Code
diff --git a/.issues/go.mod b/.issues/go.mod index 78c7095..557d33b 100644 --- a/.issues/go.mod +++ b/.issues/go.mod @@ -3,7 +3,9 @@ module issues go 1.19 require ( - github.com/yeqown/go-qrcode/v2 v2.2.2 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e + github.com/yeqown/go-qrcode/v2 v2.2.5 + githu...
1
1
1
[{"id": "G0", "claim": "Keep the go version in go.work at 1.19 and do not upgrade it to 1.20 in this pull request.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yeslogic__fathom__388
yeslogic/fathom
388
defect
53dcccdb8758d17170e6f0ba589048b9c59833b2
6a642c449d2054b38d64e8611ece6b9d3da0e4cc
Fix clippy lints
Thought it was about time I fixed these clippy lints. Seemed to uncover a bunch of reasonable issues even the there are some lints I’m a bit wary of.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf385415e..05528f26a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,20 +44,20 @@ jobs: - name: Run cargo fmt run: nix develop .#${{ matrix.rust-toolchain }} --command cargo fmt - # cargo-clippy: - # ...
2
2
0
[{"id": "G0", "claim": "Instead of adding an inline #[allow(clippy::len_without_is_empty)] on Telescope::len, disable that clippy lint (presumably at the crate level).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of adding an inline #[...
null
yeti-platform__yeti__1021
yeti-platform/yeti
1,021
defect
ac17abde9d157d1421b3e9f974e7edbf37c47198
cb71b248b1b58817b8086a4eb24f299fac61bacc
Introduce search aliases (fixes #1001)
This PR introduces search aliases. The API can now be provided extra fields to also check for regex matches (useful when e.g. filtering for `name` but also `alias` in Malware entities) Missing: - [x] Tests
diff --git a/.github/workflows/feedtest.yml b/.github/workflows/feedtest.yml index 4b70e37fe..73e2103f8 100644 --- a/.github/workflows/feedtest.yml +++ b/.github/workflows/feedtest.yml @@ -26,7 +26,7 @@ jobs: os: [ubuntu-latest] python-version: ["3.10"] steps: - - uses: actions/checkout@v3 + ...
1
1
1
[{"id": "G0", "claim": "The new search-alias functionality needs a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yeti-platform__yeti__1137
yeti-platform/yeti
1,137
defect
a389eee7c7e3e39f26102e8417659f1818adcb0e
657cdc407c3d92393180c630c6a6d1ab0de8a318
Add Support for Exports Read/Writing From S3 Buckets
### Purpose One of the things I have been working towards is a stateless deploy of `yeti` in order to deploy several replicas of the celery runner and api containers. The biggest blocker for this is that a shared volumes between several containers is an anti-pattern and not supported on the cluster I am deploying to. ...
diff --git a/core/clients/persistient_storage/__init__.py b/core/clients/persistient_storage/__init__.py new file mode 100644 index 000000000..00dc989ba --- /dev/null +++ b/core/clients/persistient_storage/__init__.py @@ -0,0 +1,29 @@ +import os +import importlib +import inspect +from typing import Type + +from core.cl...
9
9
3
[{"id": "G0", "claim": "The reviewer asks that client selection not rely on the empty-prefix LocalStorageClient being excluded from load_client_classes and on class ordering, since \"\".startswith(\"\") matches every path.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
yeti-platform__yeti__1140
yeti-platform/yeti
1,140
defect
a389eee7c7e3e39f26102e8417659f1818adcb0e
67617534628c9c33f6cf0b5194ae69a108859b8a
Add Yeti Package to create several objects defined as json
This PR brings Yeti Package to easily create a bundle of mixed yeti objects. It supports: * all observable types and will create generic type with a tag * all available entities and indicators * link between defined objects Here's one example: ```json { "timestamp": "2024-09-24T08:31:29.312Z", "sour...
diff --git a/core/schemas/package.py b/core/schemas/package.py new file mode 100644 index 000000000..739eb7faf --- /dev/null +++ b/core/schemas/package.py @@ -0,0 +1,276 @@ +import json +from datetime import datetime, timezone +from typing import Any, ClassVar, Dict, List, Optional, Tuple + +from pydantic import BaseMo...
6
5
1
[{"id": "G0", "claim": "The timestamp attribute should settle on one type, ideally a python datetime, instead of being declared as str | int.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "YetiPackage should have a docstring detailing what its attributes...
null
yeti-platform__yeti__1175
yeti-platform/yeti
1,175
defect
ea55afa9eeedf5f120181d4afe3214969a81f896
a1c2320781131c55cd4ee94fb38dc5d4dbca5989
Lazy validation
This PR updates observables validation and make it lazy. This means: * An invalid observable can be created and saved. * An invalid observable can be loaded from a previously invalid database document To correctly distinguish valid versus invalid observables, a new attributes has been added to the model `is_vali...
diff --git a/core/database_arango.py b/core/database_arango.py index e7aa17613..b816e133a 100644 --- a/core/database_arango.py +++ b/core/database_arango.py @@ -1098,7 +1098,7 @@ def filter( aql_args["@collection"] = colname logging.debug(f"aql_string: {aql_string}, aql_args: {aql_args}") doc...
1
1
0
[{"id": "G0", "claim": "In the is_valid computed field, the code should call self.validator(self.value) instead of self.__class__.validator(self.value).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
yeti-platform__yeti__1201
yeti-platform/yeti
1,201
defect
4b2ec71c5491cb63a4a69e7abc1981d6488b7495
07081ea66615818beff5095be53d3fc41272205d
TimelineLog
This PR introduces tracking of changes in objects across time. * A new schema containing timestamps, actors, and details of the changes is created in a new collection * A new API endpoint is to retrieve this information, based on an object ID
diff --git a/core/database_arango.py b/core/database_arango.py index f196a3734..8392f70e8 100644 --- a/core/database_arango.py +++ b/core/database_arango.py @@ -679,6 +679,8 @@ def clear_tags(self): while job.status() != "done": time.sleep(ASYNC_JOB_WAIT_TIME) + self._tags = {} + ...
2
1
1
[{"id": "G0", "claim": "The documentation should state that a timeline lookup path includes the collection name like `entities/{id}`, since the OpenAPI spec may otherwise confuse users and clients generated from it.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ...
null
yeti-platform__yeti__612
yeti-platform/yeti
612
defect
4a359b1d9422df0102407733222feacb5bd1d9a8
f080dee7ed2a3720ddcf6355c62b6de1c756d0e4
Quick fix and new plugin feed for VirusTotal APIv3
- Missing parentheses added to support python3 in the test folder - Quick fix to avoid UnicodeDecodeError - Adding a new feed plugin to support VirusTotal API v3
diff --git a/core/config/config.py b/core/config/config.py index 93a2ea926..a8fad2e38 100644 --- a/core/config/config.py +++ b/core/config/config.py @@ -17,7 +17,7 @@ class Config: def __init__(self): config = ConfigParser(allow_no_value=True) - config.read(os.path.join(YETI_ROOT, "yeti.conf")) +...
2
1
0
[{"id": "G0", "claim": "analyze() should not convert the item to JSON and read it back; access the data by key on the item like a dict.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hash could be taken directly from the data instead of extracting it...
null
yeti-platform__yeti__881
yeti-platform/yeti
881
defect
7f2dbca2550dd795b253d82f9d7ee1d2f489a1b8
d0ec6d368e02ab17e748da43ffed168190873267
Add docker image observable, fixes #867
This PR implements https://github.com/yeti-platform/yeti/issues/867 for yeti backend
diff --git a/core/schemas/observable.py b/core/schemas/observable.py index f2cf3d8e5..86539c6f8 100644 --- a/core/schemas/observable.py +++ b/core/schemas/observable.py @@ -6,11 +6,10 @@ from typing import ClassVar, Literal import validators -from pydantic import BaseModel, Field - from core import database_arango...
1
1
1
[{"id": "G0", "claim": "The new docker-image test method is misnamed `test_create_command_line`, duplicating the existing command-line test method directly above it, and should be renamed to `test_create_docker_image` as the suggestion block requests.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
yeti-platform__yeti__925
yeti-platform/yeti
925
defect
49a0b1b8cfa58295863e830f11781576507e7d10
5d2be57b8c7fab94c90dba42dd7323926b971643
Feat: Adds the ability to authenticate with a third-party OIDC provider
Companion frontend PR: https://github.com/yeti-platform/yeti-feeds-frontend/pull/85
diff --git a/core/web/apiv2/auth.py b/core/web/apiv2/auth.py index 979f18940..6d961742f 100644 --- a/core/web/apiv2/auth.py +++ b/core/web/apiv2/auth.py @@ -1,10 +1,16 @@ import datetime -from fastapi import APIRouter, Depends, HTTPException, Security, Response -from fastapi import status -from fastapi.security impo...
5
4
3
[{"id": "G0", "claim": "Reviewer asks whether calls to get_oauth_client should be allowed to handle exceptions, noting that no fields from the configuration are checked (at least not empty) in the method.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
yeti-platform__yeti__957
yeti-platform/yeti
957
defect
98e2904490a709b7fae2a94285a23df3326e4907
6c22dd4490b657b5fb2c8fa9d96f0d90e80ade7e
Implement user account observable
This PR implements user account observabled based on STIX definition.
diff --git a/core/schemas/observable.py b/core/schemas/observable.py index 9c4f84c33..6bf8cd968 100644 --- a/core/schemas/observable.py +++ b/core/schemas/observable.py @@ -38,6 +38,7 @@ class ObservableType(str, Enum): tlsh = "tlsh" url = "url" user_agent = "user_agent" + user_account = "user_account...
1
1
1
[{"id": "G0", "claim": "The docstring says `value` is the username of the account but nothing ties it to the STIX fields, so a check should be added that `value` corresponds to (ideally is identical to) `account_login`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yeti-platform__yeti__970
yeti-platform/yeti
970
defect
1f0ae2fb4790f78f376f9bd549a4d1aa983abae4
373e3f87eea1ced97be477eb6adfb9aa26f55553
Fix: Adjust unicity indexes in Observables collection
fixes #969
diff --git a/core/database_arango.py b/core/database_arango.py index 251f2b241..220a9ef4d 100644 --- a/core/database_arango.py +++ b/core/database_arango.py @@ -89,7 +89,7 @@ def connect( }, ) self.db.collection("observables").add_persistent_index( - fields=["value"], unique=Tr...
1
1
0
[{"id": "G0", "claim": "The added line should use PEP8 spacing after the comma in the index fields list: fields=[\"value\", \"type\"], unique=True.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
yeti-platform__yeti__988
yeti-platform/yeti
988
defect
7fc65135390e05d453b25b847402d3f0b7fd6fca
c8c9e5ad1ca84cd3109789a350fabb7bc3b56689
Feat: Add support for running Censys queries via analytics
This allows Yeti users to add Censys queries as indicators, which will then be ran through the Censys API every 24 hours, tagging the identified IP addresses in Yeti. This will allow for infrastructure tracking/hunting directly from within Yeti.
diff --git a/core/schemas/indicator.py b/core/schemas/indicator.py index eb7e5cd4b..168e40f0e 100644 --- a/core/schemas/indicator.py +++ b/core/schemas/indicator.py @@ -117,6 +117,7 @@ class QueryType(str, Enum): osquery = "osquery" sql = "sql" splunk = "splunk" + censys = "censys" class Query(In...
5
5
2
[{"id": "G0", "claim": "The query_censys parameter should be type-annotated as CensysHosts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "run() should check that the Censys api_key and secret config settings are set and bail with a log warning ...
null
yewstack__yew__1266
yewstack/yew
1,266
defect
f5ae8afb1958ca8ad63313de7761e71bb5356473
6a9934c926a293092305f8cc393f4ae5d23caaa4
Implement dynamic tags
## Description Provides an implementation of dynamic tags. Fixes #1049 ### Checklist: - [x] I have ran `./ci/run_stable_checks.sh` - [x] I have performed a self-review of my own code - [x] I have added tests that prove my fix is effective or that my feature works -->
diff --git a/yew-macro/src/html_tree/html_dashed_name.rs b/yew-macro/src/html_tree/html_dashed_name.rs index f6b894fddf3..322707083be 100644 --- a/yew-macro/src/html_tree/html_dashed_name.rs +++ b/yew-macro/src/html_tree/html_dashed_name.rs @@ -9,7 +9,7 @@ use syn::ext::IdentExt; use syn::parse::{Parse, ParseStream, R...
10
10
3
[{"id": "G0", "claim": "The special-cased 'key' check in HtmlTagOpen::peek gives unhelpful error messages for tags that look like attribute assignments, and the check should arguably be done in the parse method so it can return a proper error message.", "category": "design", "verdict": "supported", "priority": "P2", "s...
null
yewstack__yew__1730
yewstack/yew
1,730
defect
3a5037a1cf542f4af8b3b020322458b7a958bfb8
c3d49d9e4c1a5335c7a48703b6b7dd939627f9bd
Fix duplicate `with props` error messages.
#### Description <!-- Please include a summary of the change. --> Sorry wrong issue (oops) – actually fixes #1631 <!-- replace with issue number or remove if not applicable --> #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [ ] I have run `cargo make pr-flow` - [x] I have rev...
diff --git a/packages/yew-macro/src/props/component.rs b/packages/yew-macro/src/props/component.rs index 48086790ede..f360c914133 100644 --- a/packages/yew-macro/src/props/component.rs +++ b/packages/yew-macro/src/props/component.rs @@ -38,6 +38,12 @@ impl Parse for WithProps { while !input.is_empty() { ...
1
1
1
[{"id": "G0", "claim": "The span of the new duplicate `with <props>` error should cover `with p1`, not just `with`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yewstack__yew__1756
yewstack/yew
1,756
defect
b074b4b87d62b65147547bba8407f1d74df8de4c
af1eb2db6f23fa50bb9c74a45a1f090fc1db163c
Generic functional components
#### Description Implements parsing and expansion for generic `#[function_component]` components. Fixes #1739 #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [x] I have run `cargo make pr-flow` - [x] I have reviewed my own code - [x] I have added tests <!-- If this is a b...
diff --git a/docs/concepts/function-components/attribute.md b/docs/concepts/function-components/attribute.md index 4dd99078eae..aa7262df48b 100644 --- a/docs/concepts/function-components/attribute.md +++ b/docs/concepts/function-components/attribute.md @@ -3,14 +3,14 @@ title: #[function_component] description: The #[...
6
5
0
[{"id": "G0", "claim": "The \"pass\" tests should be updated so they bring as few members as possible into scope, to keep the macro code hygienic.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lifetime error message should read \"function component...
null
yewstack__yew__1859
yewstack/yew
1,859
defect
112507c4309bf9dca41d8fcee31ab6ecd4d164c7
351465908ed15f8e9812b44e963117a9599002d6
Fix router example
#### Description <!-- Please include a summary of the change. --> Fixes #1857 #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [ ] I have run `cargo make pr-flow` - [x] I have reviewed my own code - [ ] I have added tests <!-- If this is a bug fix, these tests will fail if...
diff --git a/packages/yew-router/src/macro_helpers.rs b/packages/yew-router/src/macro_helpers.rs index 1af3e073d7d..a0380590147 100644 --- a/packages/yew-router/src/macro_helpers.rs +++ b/packages/yew-router/src/macro_helpers.rs @@ -1,4 +1,4 @@ -use crate::utils::{base_url, build_path_with_base}; +use crate::utils::{ba...
1
1
0
[{"id": "G0", "claim": "The base-handling logic added to build_router in packages/yew-router/src/macro_helpers.rs is convoluted and hard to verify, and should be simplified into a more easily verifiable form (refactored soon).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
yewstack__yew__2024
yewstack/yew
2,024
defect
7a55441daed1b154df47077133e377120a23de75
e2ef5875c1cbf4bba2099b47a26cf2d56ca21362
Add "struct update" syntax to pass props to component (`..props` instead of `with props`)
#### Description Update macros to use struct-update inspired syntax for props rather than `with`. Now, you can write the following: ``` let user = yew::Props(...) <Comp name="Josh" ..user /> ``` <!-- Please include a summary of the change. --> Fixes #1636 <!-- replace with issue number or remove if ...
diff --git a/packages/yew-macro/src/html_tree/html_component.rs b/packages/yew-macro/src/html_tree/html_component.rs index f2431ace48b..358fb9d20e9 100644 --- a/packages/yew-macro/src/html_tree/html_component.rs +++ b/packages/yew-macro/src/html_tree/html_component.rs @@ -68,14 +68,11 @@ impl Parse for HtmlComponent { ...
9
9
2
[{"id": "G0", "claim": "The `mod kw { syn::custom_keyword!(with); }` block in component.rs is now unused by the PR's rewritten parser and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper `is_implicitly_converted` is name...
null
yewstack__yew__2109
yewstack/yew
2,109
defect
77b46bfa407fd8ff5da098f42fa838ff4e3995ed
337a018db611c2a8da3a289f59c39cee984a15bf
Add set_if_neq for UseStateHandle
#### Description Added a `set_neq` method for `UseStateHandle` that will only cause a re render when value is different than already set Fixes #2104 #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [x] I have run `cargo make pr-flow` - [x] I have reviewed my own code - [x] I hav...
diff --git a/packages/yew/src/functional/hooks/use_state.rs b/packages/yew/src/functional/hooks/use_state.rs index bd6d5b116bf..e320b9f4fa6 100644 --- a/packages/yew/src/functional/hooks/use_state.rs +++ b/packages/yew/src/functional/hooks/use_state.rs @@ -76,9 +76,21 @@ impl<T: fmt::Debug> fmt::Debug for UseStateHandl...
4
2
1
[{"id": "G0", "claim": "The docs should briefly explain what set_neq is for and the T: PartialEq trait bound required to use it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The method should be renamed from set_neq to set_if_neq (since set_neq ...
null
yewstack__yew__2665
yewstack/yew
2,665
defect
64e2582fda832af4c38cdafc4b4fd8e708d0da81
c586efa392c73bbfbb8f5c283a77e66be4822bef
Block props update during hydration
#### Description <!-- Please include a summary of the change. --> Fixes #2664 This pull request delays any prop updates until the end of hydration and still allows next sibling refs to be synced to child components. #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [x] I have...
diff --git a/packages/yew/src/html/component/lifecycle.rs b/packages/yew/src/html/component/lifecycle.rs index 517c123d341..f7be83300ea 100644 --- a/packages/yew/src/html/component/lifecycle.rs +++ b/packages/yew/src/html/component/lifecycle.rs @@ -198,7 +198,7 @@ where }; if self.context.props != p...
7
5
2
[{"id": "G0", "claim": "Caching props in pending_props while !has_rendered appears to mess up the order in which properties arrive: a later PropsUpdateRunner scheduled from state.pending_props.take() may carry the old, outdated props and eventually override newly set ones.", "category": "correctness", "verdict": "suppo...
null
yewstack__yew__2705
yewstack/yew
2,705
defect
e68060afa7421149f2d6aacace67c65c33e81fe5
ac4cc1655604e5358f0c25658fef1205c02d67dd
Dont shift on normal props updates
#### Description Shifting an element will remove focus from it which we don't need or want, so don't do that on a normal props update. ~~I left it on the hydration update because I'm not 100% sure what it's doing in that case.~~ Note, we might want to preserve focus more generally, since this edge case is also re...
diff --git a/packages/yew/src/dom_bundle/bcomp.rs b/packages/yew/src/dom_bundle/bcomp.rs index fb7dec3ba97..0710174e7f8 100644 --- a/packages/yew/src/dom_bundle/bcomp.rs +++ b/packages/yew/src/dom_bundle/bcomp.rs @@ -47,7 +47,7 @@ impl ReconcileTarget for BComp { fn shift(&self, next_parent: &Element, next_sibling...
2
2
2
[{"id": "G0", "claim": "Removing the shift calls in PropsUpdateRunner causes a regression where a child component rendered without its parent being re-rendered appears in an outdated place, and Yew should instead skip shifting only when BTag already has the same next sibling.", "category": "correctness", "verdict": "su...
null
yewstack__yew__2729
yewstack/yew
2,729
defect
72726573323447382d051ebc52a9358d474f8826
38092c08c19bacd61776fbd6439b2f24e7239c7d
Redo properties, take 2
#### Description This PR is a follow up to #2369, based on the pattern described in https://github.com/yewstack/yew/pull/2369#issuecomment-1152806908. It solves the blocker towards inherited props by replacing the manual builder steps tracking the state of the builder (required props) with a trait-guided solution, b...
diff --git a/packages/yew-macro/src/derive_props/builder.rs b/packages/yew-macro/src/derive_props/builder.rs index 7298b38a9dd..b6adb82fc9e 100644 --- a/packages/yew-macro/src/derive_props/builder.rs +++ b/packages/yew-macro/src/derive_props/builder.rs @@ -7,17 +7,17 @@ use proc_macro2::{Ident, Span}; use quote::{f...
3
3
0
[{"id": "G0", "claim": "The macro-only module in properties.rs should follow the `__macro` naming convention used for macro-only items and also be marked `#[doc(hidden)]`, instead of being named `macro_export` without the attribute.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
yewstack__yew__2842
yewstack/yew
2,842
defect
72213eec08cdb90801060dae66c7a63350c891ad
609e3c5e68c34783575cc86d8afaf3bce8cefc2b
Add VNode::from_html_unchecked
#### Description Add method: ``` impl VNode { fn from_html_unchecked(html: &str) -> Self { ... } } ``` Fixes #2841 #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [x] I have reviewed my own code - [x] I have added tests <!-- If this is a bug fix, these tests will ...
diff --git a/packages/yew/Cargo.toml b/packages/yew/Cargo.toml index 5652a613b74..5e55ada77c6 100644 --- a/packages/yew/Cargo.toml +++ b/packages/yew/Cargo.toml @@ -34,6 +34,7 @@ serde = { version = "1", features = ["derive"] } tokio = { version = "1.19", features = ["sync"] } tokio-stream = { version = "0.1.9", feat...
4
2
1
[{"id": "G0", "claim": "The author's test from_raw_html_works fails: the VNode built by from_raw_html(\"<div>c</div>\") does not compare equal to the equivalent html! {<><div>{\"c\"}</div></>} vnode even though their debug output looks identical, and it is not understood why.", "category": "correctness", "verdict": "un...
null
yewstack__yew__2851
yewstack/yew
2,851
defect
7c12a6bf32a66bae14fdf74e6394bfe91d088ec1
bebe093cc9eef7db93b3d3dd781771acbb74e04f
Add old props to fn changed()
Add old properties to the function arguments of fn changed() of components. #### Description Fixes #2724 #### Checklist - [x] I have reviewed my own code - [ ] I have added tests
diff --git a/examples/boids/src/simulation.rs b/examples/boids/src/simulation.rs index 6f74703b917..ff47a28a98f 100644 --- a/examples/boids/src/simulation.rs +++ b/examples/boids/src/simulation.rs @@ -25,7 +25,6 @@ pub struct Props { pub struct Simulation { boids: Vec<Boid>, interval: Interval, - settings...
2
2
0
[{"id": "G0", "claim": "The clone of self.context.props is unnecessary; old_props should be obtained with std::mem::replace(&mut self.context.props, props) to avoid it.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also upda...
null
yewstack__yew__2886
yewstack/yew
2,886
defect
73d9c04782b5bb6103ac82431396970b5893fc31
e6e846c946ef2dbda83417c69f5dbba2b55f2367
Fix issues with tuples in closing tag
#### Description This PR: - Fix issues with tuples in closing tag - Adds test cases for opening tag - Cleans up parsing code for components Fixes #2225 #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [x] I have reviewed my own code - [x] I have added tests <!-- If this ...
diff --git a/packages/yew-macro/tests/html_macro/generic-component-pass.rs b/packages/yew-macro/tests/html_macro/generic-component-pass.rs index 49d88cb56b8..e520923e473 100644 --- a/packages/yew-macro/tests/html_macro/generic-component-pass.rs +++ b/packages/yew-macro/tests/html_macro/generic-component-pass.rs @@ -77,...
1
1
1
[{"id": "G0", "claim": "Also add a test that uses a non-self-closing closing tag (`<Generic<(u8, bool)> ></Generic<(u8, bool)>>`), since the original bug report showed different behaviour for that case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yewstack__yew__3187
yewstack/yew
3,187
defect
46343bbd868d3a20d835c0ec9dcf13730ed9af96
a1277faadd32cbf3dc6282da61cc818d8ee04326
Encode Path Parameters in `yew-router`
## Description This PR fixes #3182, extended information on the bug can be found within the issue by @ColonelThirtyTwo. The fix makes an amendment to the `routable_derive` macro in the `yew-router` and `yew-router-macro` crates by automatically escaping URL parameters. I've added [`urlencoding`](https://crates...
diff --git a/Cargo.lock b/Cargo.lock index 1ddcbdc72c0..64191e484a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2917,6 +2917,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "urlencoding" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8db7427f93...
5
3
3
[{"id": "G0", "claim": "Encoding should not be applied when generating a route for a remainder path matcher (*), because escaping the captured remainder would prevent constructing routes like /external/a/b/c/d with Link.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id...
null
yewstack__yew__3376
yewstack/yew
3,376
defect
a9ab085e74ca8e83923d7337f300103221182f66
8103e4f62ae8294fb7d21a1ae1051c068b3654b1
Update signature of use_prepared_state/use_transitive_state
#### Description Update signature of use_prepared_state and use_transitive_state to take deps before closure. Fixes https://github.com/yewstack/yew/issues/3371 Ref https://github.com/yewstack/yew/pull/3372#pullrequestreview-1574098501 #### Checklist <!-- For further details, please read CONTRIBUTING.md -->...
diff --git a/examples/simple_ssr/src/lib.rs b/examples/simple_ssr/src/lib.rs index 1204af904ec..8611b7c0cf9 100644 --- a/examples/simple_ssr/src/lib.rs +++ b/examples/simple_ssr/src/lib.rs @@ -18,7 +18,7 @@ async fn fetch_uuid() -> Uuid { #[function_component] fn Content() -> HtmlResult { - let uuid = use_prepar...
4
3
3
[{"id": "G0", "claim": "The blessed use_prepared_state-fail.stderr no longer asserts that a return type is required for the closure: the PR's parse reordering makes the closure-without-return-type invocations (lines 8 and 21) fail with 'expected closure' on the deps argument instead, so the 'You must specify a return t...
null
yewstack__yew__3398
yewstack/yew
3,398
defect
73f4bb91cfa7e631c5a84cc9e4bab9f6fba075bf
471f2590654b5b32e349c227b037cc83bf0b82e0
Remove special handing of struct fields of type `Option` in `derive(Properties)`
#### Description <!-- Please include a summary of the change. --> Fixes #3395 #### Checklist <!-- For further details, please read CONTRIBUTING.md --> - [x] I have reviewed my own code - [x] I have added tests (not sure if a new test is needed after removing a feature) <!-- If this is a bug fix, thes...
diff --git a/packages/yew-macro/src/derive_props/field.rs b/packages/yew-macro/src/derive_props/field.rs index 4f8fd9186c9..37dc28c8bc3 100644 --- a/packages/yew-macro/src/derive_props/field.rs +++ b/packages/yew-macro/src/derive_props/field.rs @@ -5,10 +5,7 @@ use proc_macro2::{Ident, Span}; use quote::{format_ident,...
3
3
2
[{"id": "G0", "claim": "Converting a plain `T` into `Some::<T>` (via `impl<T> IntoPropValue<Option<T>> for T`) should still work — asked as a question whether it still does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The removed generic-props te...
null
yewstack__yew__3431
yewstack/yew
3,431
defect
194a1e60594ce315a101b1dc36c58e967c37f37a
5282d96f7d4ee83fff5a748e0b343e4fb4394c96
Make Html (VNode) cheap to clone
#### Description I tried to do this change a few times this year but couldn't make it works. There was always something blocking me somewhere in the code that was just too complicated to solve. But now, it seems that Yew has evolved so much that this change is now easy to do! [edit: actually it wasn't :sweat:] I'...
diff --git a/examples/futures/src/markdown.rs b/examples/futures/src/markdown.rs index 5c85b7a55e4..afdad6bf98f 100644 --- a/examples/futures/src/markdown.rs +++ b/examples/futures/src/markdown.rs @@ -1,5 +1,7 @@ /// Original author of this code is [Nathan Ringo](https://github.com/remexre) /// Source: https://github...
2
1
1
[{"id": "G0", "claim": "The current benchmark results do not reflect the improvements in this pull request, so a benchmark demonstrating the performance difference before and after this pull request should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", ...
null
yewstack__yew__3498
yewstack/yew
3,498
defect
d790e1beab825d2c7936108f9050bfc8f2760217
1133944211036fca8c18d3e20edb0121e3cbf678
Add for-loops to `html!`
#### Description <!-- Please include a summary of the change. --> 1. Adds the following syntax: ```rs html! { for x in 0 .. 10 { <span>{x}</span> } } ``` 2. Disallows top-level `{for x}`, i.e. the following is no longer valid: ```rs html! { for x } ``` To disambiguate it and the new for loops,...
diff --git a/examples/function_router/src/components/pagination.rs b/examples/function_router/src/components/pagination.rs index d9b779e27c6..693bda5e72a 100644 --- a/examples/function_router/src/components/pagination.rs +++ b/examples/function_router/src/components/pagination.rs @@ -84,7 +84,11 @@ pub fn RenderLinks(p...
4
2
2
[{"id": "G0", "claim": "An ordinary for-loop should not be supported in html!, since it is unclear what an expression like `break x` inside the loop would mean.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Blocking break and continue in html! would also ...
null
yewstack__yew__3509
yewstack/yew
3,509
defect
8d2cfdee69fa69625d36ca784a0644e5dd0d5334
2e8573125566efa772b9a3a9ad4846643257b74b
Dynamic Prop Labels
#### Description Partially implements features from discussion #3477. This PR adds Dynamic Prop Labels, so that anyone can write their favorite attributes like [HTMX's `hx-on:click`](https://htmx.org/attributes/hx-on/): ```rust html! { <div "hx-on:click"="alert('Clicked!')">{ "Click" }</div> <div { "hx-o...
diff --git a/packages/yew-macro/src/html_tree/html_element.rs b/packages/yew-macro/src/html_tree/html_element.rs index ee588305de6..4830a0a48e6 100644 --- a/packages/yew-macro/src/html_tree/html_element.rs +++ b/packages/yew-macro/src/html_tree/html_element.rs @@ -4,10 +4,10 @@ use quote::{quote, quote_spanned, ToToken...
7
5
2
[{"id": "G0", "claim": "The pull request does not compile on the supported Rust 1.64.0 toolchain because it uses Result::is_ok_and.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs both passing and failing tests for the dynamic ...
null
yewstack__yew__3725
yewstack/yew
3,725
defect
15ac51c399c27b6932357037fce32ddb24f24531
5bcfd0e2ec8d697f7bb7a9b2d890ec831d59d5d6
yew-router: Dynamic basename.
#### Description 1. Currently, if `basename` changes, the URL isn't updated and the old `basename` is persisted until the next navigation. With this PR, `basename` changes take effect immediately. 2. Currently, if `basename` is initially `Some`, the URL may lack the `basename` until the next nagvigation. With this ...
diff --git a/packages/yew-router/src/lib.rs b/packages/yew-router/src/lib.rs index 1cf262e21d8..efb6e7841df 100644 --- a/packages/yew-router/src/lib.rs +++ b/packages/yew-router/src/lib.rs @@ -88,6 +88,10 @@ pub mod history { AnyHistory, BrowserHistory, HashHistory, History, HistoryError, HistoryResult, Locati...
4
3
1
[{"id": "G0", "claim": "Setting a `use_state` value from the function component body is wrong and can trigger an infinite loop, so the basename-migration logic may need to live in a `use_effect`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `p...
null
yewstack__yew__3876
yewstack/yew
3,876
defect
fd96a9abca2cdaec269167ffe089fb37388f6001
036a92c19590d83851e201298e554fd8da3c49c5
fix: hydration panic on camelCased elements
#### Description Fixes #3871 This fixes hydration panics on non-lowercase dynamic elements. #### Checklist - [ ] I have reviewed my own code - [x] I have added tests
diff --git a/packages/yew/src/dom_bundle/btag/mod.rs b/packages/yew/src/dom_bundle/btag/mod.rs index 0c2a2710a3f..f52a742fcb1 100644 --- a/packages/yew/src/dom_bundle/btag/mod.rs +++ b/packages/yew/src/dom_bundle/btag/mod.rs @@ -365,14 +365,17 @@ mod feat_hydration { ); let el = node.dyn_into:...
1
1
1
[{"id": "G0", "claim": "The hydration tag-name check should compare element tags case-insensitively only when the parent namespace is None or the HTML namespace, and case-sensitively otherwise, because createElement is case-insensitive/HTML-only while createElementNS is case-sensitive; the current check (comparing exac...
null
yewstack__yew__3879
yewstack/yew
3,879
defect
fd96a9abca2cdaec269167ffe089fb37388f6001
d4c6dfbfe2a2332557e45bba31ae7be7c9676ebe
website: make tutorial testable
#### Description This PR implements a test assembler in `tools/website-test` enabled by a special flag in a doc file. Its usage is documented in website/README.md. While joining the code blocks, it'll verify the coherence of diff blocks, solving the problem of the tutorial getting "out of touch with reality" ####...
diff --git a/Cargo.lock b/Cargo.lock index 3f2ac480170..82ffc88dc16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3902,7 +3902,9 @@ dependencies = [ "derive_more", "glob", "gloo", + "gloo-net 0.6.0", "js-sys", + "serde", "tokio", "wasm-bindgen", "wasm-bindgen-futures", diff --git a/tools/website-test/Cargo...
2
1
1
[{"id": "G0", "claim": "The README's Testing section tells readers to run `cargo run website-test`, which fails with \"error: a bin target must be available for `cargo run`\"; the command should be `cargo make website-test`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
yewstack__yew__3890
yewstack/yew
3,890
defect
93e862b1d05925983861bd80ea037ed92bebda10
d04f0391a781716bebb0b5f8f3cfd2de2fa4f84a
fix dependency not working with rustc 1.78
@its-the-shrimp website-tools had rustverion = 1.81 and we use the MSRV 1.78 everywhere else I think this inconsistency messed with package version selection and it made it nearly impossible select the right packages versions for some rustc versions. ( try `cargo +1.78 clippy --all-targets --all-features --works...
diff --git a/Cargo.lock b/Cargo.lock index 816211b1de3..3273cbf28b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -689,9 +689,9 @@ dependencies = [ [[package]] name = "divan" -version = "0.1.17" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0583193020b29b03682d8d3...
1
1
0
[{"id": "G0", "claim": "The manual rposition-based trailing-whitespace trimming in should_combine_code_blocks could be replaced with a simple trim_end call for now, as the performance cost is not terrible.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yewstack__yew__3945
yewstack/yew
3,945
defect
71e24b7e811cde10974f6f35f9743df93f173459
d5d40bb73d18b2756e649b1f483f8005ec46a9ef
Optimization in use_reducer
#### Description Yew currently provides two versions of the reducer hook: * `use_reducer`: This hook always causes a re-render when an action is dispatched. * `use_reducer_eq`: This hook avoids the re-render if the new state is the same as the old state. However, the state now has to implement `PartialEq`. I ...
diff --git a/packages/yew/src/functional/hooks/use_reducer.rs b/packages/yew/src/functional/hooks/use_reducer.rs index db81c38179d..23a41608460 100644 --- a/packages/yew/src/functional/hooks/use_reducer.rs +++ b/packages/yew/src/functional/hooks/use_reducer.rs @@ -224,7 +224,12 @@ where let...
2
2
1
[{"id": "G0", "claim": "The docs must be changed because skipping the re-render when the reducer reuses the `Rc` breaks `use_reducer`'s documented promise that the hook will always trigger a re-render upon receiving an action, which is a breaking change.", "category": "documentation", "verdict": "supported", "priority"...
null
yewstack__yew__4044
yewstack/yew
4,044
defect
457d1d6dbc4c155627f02615a3770c9cbbc7ec62
6f2cd3e4a8672ca34f0d6dc29481c288ea2851b4
feat: add scheduler::flush() to replace sleep(Duration::ZERO) in tests
#### Description a small part of #2679 #### Checklist - [x] I have reviewed my own code
diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml index f65da730e48..ffc64693d84 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main-checks.yml @@ -103,8 +103,8 @@ jobs: - name: Run tests - yew run: | cd packages/yew - CHROMEDR...
3
2
0
[{"id": "G0", "claim": "The manually implemented `Future` for `Flush` could be implemented more simply with `std::future::poll_fn`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cfg attribute lines above the browser-target flush() should be...
null
yewstack__yew__4046
yewstack/yew
4,046
defect
457d1d6dbc4c155627f02615a3770c9cbbc7ec62
2bc7ee264197b1808514829b911e9f6d9c1a08ce
feat: add SSR e2e hydration tests for simple_ssr and ssr_router
Adds end-to-end hydration tests for SSR examples (`simple_ssr`, `ssr_router`) using `wasm-bindgen-test` as the browser test runner. This is a pure-Rust E2E testing approach that requires no non-Rust dependencies like Playwright, Cypress, or Selenium. (There were a lot of past discussion on e2e frameworks. My impress...
diff --git a/.github/workflows/main-checks.yml b/.github/workflows/main-checks.yml index f65da730e48..8a6ef68ae1c 100644 --- a/.github/workflows/main-checks.yml +++ b/.github/workflows/main-checks.yml @@ -6,6 +6,8 @@ on: - ".github/workflows/main-checks.yml" - "ci/**" - "packages/**/*" + - "ex...
6
6
1
[{"id": "G0", "claim": "The fetch monkey-patching utility is used nowhere in this PR and might read better as a JS snippet, so it should be justified or dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Child.kill() may not be sufficient t...
null
yewstack__yew__881
yewstack/yew
881
defect
a4423122de9377eff5c2f8bea178b9f00548af0e
854eb0167467289567c65ef4e4d4d22066381d87
Add `default` value for properties (takes a function instead of an expression)
Fix #775 Similar to #879 , but default values are specified by paths to functions, instead of expressions: ```rust #[derive(Clone, Properties)] struct MyProps { #[props(default = "default_value")] value: u32, #[props(default = "always_true")] enabled: bool } fn default_value() -> u32 { ...
diff --git a/crates/macro/src/derive_props/field.rs b/crates/macro/src/derive_props/field.rs index ef3e470d8b9..7029dab4a44 100644 --- a/crates/macro/src/derive_props/field.rs +++ b/crates/macro/src/derive_props/field.rs @@ -1,23 +1,35 @@ use super::generics::GenericArguments; use proc_macro2::{Ident, Span}; -use quo...
3
2
0
[{"id": "G0", "claim": "When a default function returns the wrong type, the macro's generated code produces a misleading compiler error (a wrong 'help: try using a conversion method' suggestion), which may be unavoidable as in serde's prior art but should at least be mentioned in the feature's documentation.", "categor...
null
yfinkelstein__node-zookeeper__212
yfinkelstein/node-zookeeper
212
defect
b265dd0d89b9eb02e25282fd62028b0e70546d3f
adff114a795035f1e828c602e8022877fbfd9957
Move constants to separate file
<!--- Provide a general summary of your changes in the Title above --> ## Description Moves constants to separate file. Now one can import only constants if needed. ## Motivation and Context Implements #205 ## How Has This Been Tested? `npm test` - all green ## Types of changes <!--- What types of chan...
diff --git a/README.md b/README.md index cc8cd728..d3cdf190 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Overview +# node-zookeeper + +## Overview _node-zookeeper - A Node.js client for Apache Zookeeper._ @@ -6,28 +8,36 @@ This module is implemented on top of the ZooKeeper C API; consult the [ZK Refer...
2
1
1
[{"id": "G0", "claim": "The examples must import both the constants and the promise-based client separately - as written, examples/wrapper.js exposes the callback-based client while the example code uses the Promisified API, and the code crashes on `client.w_get` in electleader.", "category": "correctness", "verdict": ...
null
yfinkelstein__node-zookeeper__230
yfinkelstein/node-zookeeper
230
defect
4ee944114215a70406cb635dfe3c7c1de9deffe3
f06d948ebc171be5658575ef1615c25718d08198
fix bug "expected 3 arguments"
Fix bug in method "add_auth". `Error: expected 3 arguments`
diff --git a/README.md b/README.md index 394d8f2d..4fb865a5 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ Check out the code in the [examples](./examples) folder: master,workers, tasks a * (note the trailing `_`) * `a_set_acl(path, version, acl, void_cb)` * `a_get_acl(path, acl_cb)` -* `add_auth(schem...
1
1
1
[{"id": "G0", "claim": "The pull request should also add a unit test (if possible), or example code that will show the effects of the currently missing third parameter of add_auth.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yfinkelstein__node-zookeeper__349
yfinkelstein/node-zookeeper
349
defect
9b11a5ed6c59c74c3c6b8e34f00ea0419baeaf59
135e9d221fb12e211ffdd771f7f7e3f23e85774b
Accept both perm and perms in acl objects
Accept both perm and perms while creating an acl object ## Description Accept both perm and perms in acl objects while setting acl for a zookeeper node ## Motivation and Context get_acl returns acl objects with **perms** key, while set_acl accepts only **perm** key, these need to be consistent, so updated the c...
diff --git a/lib/typedeclarations.d.ts b/lib/typedeclarations.d.ts index e4bfccc9..e8db40d0 100644 --- a/lib/typedeclarations.d.ts +++ b/lib/typedeclarations.d.ts @@ -627,6 +627,14 @@ declare module "index" { * ACL object */ type aclObject = { + perms: number; + scheme: string; + auth: string; +}; +/** + ...
2
1
1
[{"id": "G0", "claim": "Handle the \"perm\" and \"perms\" variation in the JavaScript code instead of in the C++ AddOn code, by changing the PR to something similar to the linked comparison branch.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider ...
null
yggdrasil-network__yggdrasil-go__1033
yggdrasil-network/yggdrasil-go
1,033
defect
1345960d5f71bd726bc3d7c1bdb044f7034907a5
c7ea223a9a1b045ab00572a6407243f01a6a91b3
Update to experimental ironwood
Updates to the current `experimental` branch of ironwood, with the associated API changes. Not included is any admin functions to get bloom filters (which ironwood's `Debug` exposes, and which we should probably make available for debugging purposes).
diff --git a/cmd/yggdrasilctl/main.go b/cmd/yggdrasilctl/main.go index 656df8c81..3c191c879 100644 --- a/cmd/yggdrasilctl/main.go +++ b/cmd/yggdrasilctl/main.go @@ -189,41 +189,40 @@ func run() int { } table.Render() - case "getdht": - var resp admin.GetDHTResponse + case "gettree": + var resp admin.GetTreeRe...
1
1
0
[{"id": "G0", "claim": "The commented-out lines in various places can probably be deleted if they are no longer useful.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yggdrasil-network__yggdrasil-go__864
yggdrasil-network/yggdrasil-go
864
defect
87e936195ebaa1d11475d6fb3a73958c654be977
71b9409c449d073ce3f4efd2228d7a89f2f824ba
Move `src/mobile` into main repository
It is a pain to have to maintain `yggdrasil-extras` separately so it seems like it is probably logical at this point to fold this code into the main repository now that it is only a single package and not several. Then I can delete `yggdrasil-extras` altogether. If we want to `./build` from here then we need `go.mod...
diff --git a/build b/build index 583bf610e..c932cb18a 100755 --- a/build +++ b/build @@ -33,15 +33,17 @@ fi if [ $IOS ]; then echo "Building framework for iOS" go get golang.org/x/mobile/bind - gomobile bind -target ios -tags mobile -o Yggdrasil.framework -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \ - gi...
1
1
1
[{"id": "G0", "claim": "Mobile bindings should not live under `src/mobile` in the main repository — move them to `contrib/mobile` with their own build script so the main `./build` script no longer carries `gomobile` support.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ygwyg__MAHORAGA__26
ygwyg/MAHORAGA
26
defect
503cde59c47aa752345d4ee036554eefcbc54012
f76c7c6a4b4570113871c5638c9c46ea5433c74e
PR1: fix alarm timing, premarket detection, and position research
**Disclaimer: both code and description below is LLM generated** # PR: Alarm loop correctness + Alpaca-driven market timing + configurable premarket windows ## Overview This PR improves the durability and correctness of the core `alarm()` scheduling loop by: - Driving premarket/open detection off the Alpaca mar...
diff --git a/agent-config.example.json b/agent-config.example.json index e2f78fcb..2e5b4725 100644 --- a/agent-config.example.json +++ b/agent-config.example.json @@ -1,6 +1,8 @@ { "data_poll_interval_ms": 30000, "analyst_interval_ms": 120000, + "premarket_plan_window_minutes": 5, + "market_open_execute_window...
4
4
0
[{"id": "G0", "claim": "The nested config spread in state hydration could cause issues if stored.config contains fields not in DEFAULT_STATE.config, and a simpler two-step merge would be clearer.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
yhirose__cpp-httplib__1073
yhirose/cpp-httplib
1,073
defect
c7554ccac267f2dc8714886d965186157705eea1
b85a7d18200116a64ad96c4556d45e82b8fc1ea2
support custom ssl ctx configuration for SSLServer
In some conditions, users need to set custom options for ssl_ctx to meet security requirements. Therefore, a constructor is added to SSLServer to support users to customize ssl_ctx during SSLServer construction.
diff --git a/httplib.h b/httplib.h index 47ed620c3c..1443385c78 100644 --- a/httplib.h +++ b/httplib.h @@ -1364,6 +1364,9 @@ class SSLServer : public Server { SSLServer(X509 *cert, EVP_PKEY *private_key, X509_STORE *client_ca_cert_store = nullptr); + SSLServer( + const std::function<bool(SSL_CTX...
2
2
0
[{"id": "G0", "claim": "Change the new SSLServer constructor's setup_ssl_ctx_callback signature to take the context by reference (`const std::function<bool(SSL_CTX &ssl_ctx)> &`) instead of `SSL_CTX *ssl_ctx`, in both the class declaration and the definition.", "category": "design", "verdict": "supported", "priority": ...
null
yhirose__cpp-httplib__1261
yhirose/cpp-httplib
1,261
defect
696239d6e1fa93d5a5ea8b37fac1a55c2da162fc
41f584652ca716f8c70aaa1e00e6efc6867152b0
Accept large data transfer over SSL
I found that the HTTP client cannot send the large request body when SSL is enabled. In `SSL_write` and `SSL_read` the `size_t` type is cast to `int` hence the threshold is 2GiB. This pull request fixes this problem by replacing them with `SSL_*_ex` functions and accepts large data transfers over SSL. The change...
diff --git a/httplib.h b/httplib.h index c7ecf74a45..d2cb3e243e 100644 --- a/httplib.h +++ b/httplib.h @@ -7221,11 +7221,13 @@ inline bool SSLSocketStream::is_writable() const { } inline ssize_t SSLSocketStream::read(char *ptr, size_t size) { + size_t readbytes = 0; if (SSL_pending(ssl_) > 0) { - return SSL_...
6
5
3
[{"id": "G0", "claim": "The LargeDataTransfer test's memcmp assertions should use EXPECT_EQ on the memcmp return value instead of wrapping it in EXPECT_TRUE(memcmp(...) == 0), for both the server-side and the client-side comparison.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "in...
null
yhirose__cpp-httplib__1321
yhirose/cpp-httplib
1,321
defect
5e6f973b99a001a68e52bfca254e42135ad3f4e0
72d3f4896a46a9b820fbb6955d738fac0f31b371
Use std::exception_ptr
See #1318. By passing an exception to the user with std::exception_ptr, library users will be able to handle the exception using a custom exception class. Example: ```c++ class UserException : public std::runtime_error{ void method1(){ // Print stack traces, etc. } }; class AnotherLibraryDefinedE...
diff --git a/httplib.h b/httplib.h index 1c4db98510..111276aff7 100644 --- a/httplib.h +++ b/httplib.h @@ -616,7 +616,7 @@ class Server { using Handler = std::function<void(const Request &, Response &)>; using ExceptionHandler = - std::function<void(const Request &, Response &, std::exception &e)>; + ...
6
3
2
[{"id": "G0", "claim": "Because requests are served on multiple threads, the std::current_exception() call added in process_request may not return an exception pointer for the exception e being handled.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "L...
null
yhirose__cpp-httplib__1579
yhirose/cpp-httplib
1,579
defect
698a1e51ecc6450b19757169736b173730c1d440
81c9fdf1058a9972dfa4eaf1226baa106b7169bd
Load in-memory CA certificates
Implement `ClientImpl::create_ca_cert_store` and its helper `load_ca_cert_store`. Two test cases are also added for loading certs from file(`test/ca-bundle.crt`) and embedded string. Close #1471
diff --git a/httplib.h b/httplib.h index ae32939781..054d09f700 100644 --- a/httplib.h +++ b/httplib.h @@ -1118,6 +1118,7 @@ class ClientImpl { void set_ca_cert_path(const std::string &ca_cert_file_path, const std::string &ca_cert_dir_path = std::string()); void set_ca_cert_store(X509_STO...
2
2
0
[{"id": "G0", "claim": "The declaration could use just `auto` instead of `auto *` for `itmp` for consistency in httplib.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new error handling could be written as normal C++ instead of the immedi...
null
yhirose__cpp-httplib__1741
yhirose/cpp-httplib
1,741
defect
37f8dc43829994e6cb2d1b78136cab320da8e546
a0fe0ae83394c5280d44f5d34fc1e0f70dd2ba81
ThreadPool: optional limit for jobs queue
For very busy servers, the internal jobs queue where accepted sockets are enqueued can grow without limit. This is a problem for two reasons: - queueing too much work causes the server to respond with huge latency, resulting in repetead timeouts on the clients; it is definitely better to reject the connection early,...
diff --git a/README.md b/README.md index 4340fa33a0..37564f4407 100644 --- a/README.md +++ b/README.md @@ -433,6 +433,17 @@ If you want to set the thread count at runtime, there is no convenient way... Bu svr.new_task_queue = [] { return new ThreadPool(12); }; ``` +You can also provide an optional parameter to limi...
5
5
3
[{"id": "G0", "claim": "The README should explain the return value of the enqueue method and a unit test should be added in test/test.cc right after TaskQueueTest.IncreaseAtomicInteger.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The IncreaseAt...
null
yhirose__cpp-httplib__2046
yhirose/cpp-httplib
2,046
defect
8aad481c69938eefc1e9f7100aefa79967697851
a2255b1ad5d31c23f3b5de5b2c6c6835d419a481
Fix check for URI length to prevent incorrect HTTP 414 errors
This fixes a bug where the full stream's length, including POST data, is checked instead of just the URI. This results in false `414 URI Too Long` errors. The fix is to check only the URI part of the first line of the stream.
diff --git a/httplib.h b/httplib.h index eb592d2e7a..443bbe5b14 100644 --- a/httplib.h +++ b/httplib.h @@ -7162,8 +7162,15 @@ Server::process_request(Stream &strm, const std::string &remote_addr, #endif #endif + auto req_line = line_reader.ptr(); + + // Extract URI from the request line + std::string method, uri...
2
2
1
[{"id": "G0", "claim": "The pull request should add at least one unit test for the changed URI-length behaviour in test/test.cc.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added request-line parsing duplicates what parse_request_line() already d...
null
yhirose__cpp-httplib__2268
yhirose/cpp-httplib
2,268
defect
4b2b851dbb91f9d6c2299976b5d03f7c5c1a312d
47b9efaea884c0baf285922c19c26d5bf364f7a6
Add Client methods with both content provider and receiver
Add most `Post` overloads for `Client`, with both content provider and content receiver. * Result Post(const std::string &path, size_t content_length, ContentProvider content_provider, const std::string &content_type, ContentReceiver content_receiver, UploadProgress progress = nullptr) * Result Post(const std::stri...
diff --git a/httplib.h b/httplib.h index 8411c8c93b..06909d5c17 100644 --- a/httplib.h +++ b/httplib.h @@ -1421,14 +1421,18 @@ class ClientImpl { Result Post(const std::string &path, const char *body, size_t content_length, const std::string &content_type, UploadProgress progress = nullptr); Result Post(const std...
2
2
1
[{"id": "G0", "claim": "The pull request creates another two POST-specific implementations instead of folding receiver support into the existing internal send path, and the maintainer asks to rename send_with_content_provider to send_with_content_provider_and_receiver, add the receiver support to it, and add the same m...
null
yhirose__cpp-httplib__2300
yhirose/cpp-httplib
2,300
defect
c795ad1c326b4b63ef2da40befd5fcaf8b74e1bd
fc080dddb97212203512d5a4931bf7ccb22ac682
Replace httpbin.org with httpcan.org
Because of the recent httpbin.org outages that are failing the proxy tests, I replaced the calls to a rust-based clone called httpcan.org. Another contender is the Go-based httpbingo.org service, but they do not support Brotli or SHA-512 digests. The only difference is in the auth digest, they return the algorithm as p...
diff --git a/README.md b/README.md index b595b63ab6..9c64a17656 100644 --- a/README.md +++ b/README.md @@ -1012,7 +1012,7 @@ cli.set_proxy_bearer_token_auth("pass"); ### Range ```cpp -httplib::Client cli("httpbin.org"); +httplib::Client cli("httpcan.org"); auto res = cli.Get("/range/32", { httplib::make_range...
2
1
1
[{"id": "G0", "claim": "The DigestAuthTest.FromHTTPWatch_Online test reports an error after the switch to httpcan.org and needs to be looked at and fixed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why the PR disabled (commente...
null
yhirose__cpp-httplib__845
yhirose/cpp-httplib
845
defect
ae6cf70bc459ffc0f0f4c710b6c050f3b5d60cf2
288f61e5275e2f84708932dce5f1f3e18fdf35e5
Add exception handler
This pull request adds the option to handle C++ exceptions caused by user handlers when routing. This allows users to react to exceptions globally by logging them and restarting safely. This may be used over try/catch's within the handlers to avoid repetition in error messages: an API might return the same error messag...
diff --git a/README.md b/README.md index 952a757dd3..5b5650490a 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,16 @@ svr.set_error_handler([](const auto& req, auto& res) { }); ``` +### Exception handler + +```cpp +svr.set_error_handler([](const auto& req, auto& res) { + res.status = 500; + res.set_content(...
6
6
5
[{"id": "G0", "claim": "The new exception-handler feature should come with a unit test in test/test.cc and a brief usage example on README before it can be reviewed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The README exception-handler example's l...
null
yhirose__cpp-httplib__921
yhirose/cpp-httplib
921
defect
c58b00580ee66a248c2ef20334bb84319ccde310
fc660b135342f19c1d09f52c69baf4300fbeb4bb
Fix client.cc code, since res.error() without operator overloading…
I have tried the example client.cc but wasn't compiling with latest Xcode, I had to add operator overloading to make it work.
diff --git a/httplib.h b/httplib.h index fff0bc49c7..4bda43cd99 100644 --- a/httplib.h +++ b/httplib.h @@ -804,6 +804,12 @@ enum class Error { Compression, }; +std::ostream& operator << (std::ostream& os, const Error& obj) +{ + os << static_cast<std::underlying_type<Error>::type>(obj); + return os; +} + clas...
2
2
2
[{"id": "G0", "claim": "A unit test should be provided for the new operator<< method before the review starts.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The operator<< definition added to httplib.h should have the inline keyword at the beginning of...
null
yichuan-w__LEANN__282
yichuan-w/LEANN
282
defect
9a15f10db098dbcdc97bd89e3cab378422b5cd53
625e4c29932c8096c5ef3ad6e18c3744f21cd46d
feat: add MiniMax provider support
## Summary - Add MiniMax as a new LLM provider with OpenAI-compatible API integration - Support two models: **MiniMax-M2.5** (default) and **MiniMax-M2.5-highspeed** - Both models support **204,800 tokens** context window ## Changes - `packages/leann-core/src/leann/settings.py` — Add `resolve_minimax_api_key()` and `r...
diff --git a/packages/leann-core/src/leann/chat.py b/packages/leann-core/src/leann/chat.py index 0ceb8d57..0206a0ee 100644 --- a/packages/leann-core/src/leann/chat.py +++ b/packages/leann-core/src/leann/chat.py @@ -15,6 +15,8 @@ from .settings import ( resolve_anthropic_api_key, resolve_anthropic_base_url, +...
1
1
1
[{"id": "G0", "claim": "The pull request's code fails the format CI checks (ruff lint/format issues in tests/test_minimax_provider.py) and those formatting issues should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yigit__android-priority-jobqueue__152
yigit/android-priority-jobqueue
152
defect
c203793f8d27ba84c5ba5a147fa4212859463830
c042bed758face34d7a817bef7574929fac84ed2
Add ThreadFactory interface to provide a way to create workers
Right now JobManager takes care of creating new workers by manually creating new instances of `Thread`. This PR gives the ability ti provide a `ThreadFactory` during JobManager's configuration to create custom `Thread` implementation to be used as workers.
diff --git a/jobqueue/src/main/java/com/birbit/android/jobqueue/ConsumerManager.java b/jobqueue/src/main/java/com/birbit/android/jobqueue/ConsumerManager.java index 1a0f5ed6..3d8d9169 100644 --- a/jobqueue/src/main/java/com/birbit/android/jobqueue/ConsumerManager.java +++ b/jobqueue/src/main/java/com/birbit/android/job...
7
6
2
[{"id": "G0", "claim": "The pull request should use java.util.concurrent.ThreadFactory instead of introducing its own custom WorkerFactory interface.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Configuration's accessor for the worker factory should be...
null
yl2chen__cidranger__7
yl2chen/cidranger
7
defect
9a60958aefdb9b748d6c16a014230f93020911e4
8c56974d0513150f1d1022d8ecaa8eee52b1f9c5
Add new CoveredNetworks option
* Search by CIDR rather than just by IP. Signed-off-by: Rob Adams <readams@readams.net>
diff --git a/brute.go b/brute.go index 622e80f..8da7425 100644 --- a/brute.go +++ b/brute.go @@ -87,6 +87,24 @@ func (b *bruteRanger) ContainingNetworks(ip net.IP) ([]RangerEntry, error) { return results, nil } +// CoveredNetworks returns the list of RangerEntry(s) the given ipnet +// covers. That is, the network...
2
1
1
[{"id": "G0", "claim": "CoveredNetworks only tests that the entry's network IP lies inside the search network, so e.g. 192.168.0.0/15 is wrongly returned as covered by 192.168.0.0/16; the check should compare masks, encapsulated in a Network-level ContainsNetwork function, with a test case for 192.168.0.0/15 vs 192.168...
null
ymahlau__fdtdx__210
ymahlau/fdtdx
210
defect
b95713afab8952f630839b20a1cdd9f8006f4b72
5e39bae089537e67b6d6208124bc0cfa282e30d9
improved unitful where
Imprvoed unitful where function, tackles issue https://github.com/ymahlau/fdtdx/issues/191
diff --git a/src/fdtdx/functional/numpy.py b/src/fdtdx/functional/numpy.py index 3364150f..4ce26c66 100644 --- a/src/fdtdx/functional/numpy.py +++ b/src/fdtdx/functional/numpy.py @@ -1416,7 +1416,14 @@ def where( assert condition.unit.dim == {} and condition.unit.scale == 0, f"Invalid condition input: {condition}"...
4
4
3
[{"id": "G0", "claim": "The np.ndarray branch of the unitful where should test 'any' instead of 'all', since inputs may include python floats/ints/bools that the 'all' check would leave to the TypeError fallback.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
ymahlau__fdtdx__217
ymahlau/fdtdx
217
defect
a393cbf0e43ac9d68ecc4b4a27a29d31d6d029ed
05efd6b137dab2cce808e7dd3c3afc41b5c10de0
refactored GaussianPulseProfile by adding fdtdx.WaveCharacter
For #90, updated the `GaussianPulseProfile` class to use `WaveCharacter` for both the spectral width and center frequency.
diff --git a/src/fdtdx/objects/sources/profile.py b/src/fdtdx/objects/sources/profile.py index ce00061d..2a1e6283 100644 --- a/src/fdtdx/objects/sources/profile.py +++ b/src/fdtdx/objects/sources/profile.py @@ -5,6 +5,7 @@ import jax.numpy as jnp from fdtdx.core.jax.pytrees import TreeClass, autoinit, frozen_field ...
3
3
2
[{"id": "G0", "claim": "Add a post-init check that the spectral_width does not contain a phase shift.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add test cases that initialize GaussianPulseProfile, test that get_amplitude actually runs through, ...
null
ymahlau__fdtdx__258
ymahlau/fdtdx
258
defect
3d8b7419260c62b294c3bf55be39ff873b958679
05a94af1564fe8e0dd1c8e2af61b2bef0f17e8d1
fixed jitted progressbar and added tests
resolves #85 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the simulation progress bar to run via host `io_callback` at XLA execution time so it works under `jax.jit`/`grad`/`vmap` and always reaches 100%. Replaced the context manager with step/close callbacks and wired them in...
diff --git a/src/fdtdx/core/progress.py b/src/fdtdx/core/progress.py index ad9e4499..86601bd6 100644 --- a/src/fdtdx/core/progress.py +++ b/src/fdtdx/core/progress.py @@ -102,7 +102,7 @@ def __exit__(self, *_) -> None: self._bar.close() self._bar = None - # Host-side update (called by io_...
2
2
1
[{"id": "G0", "claim": "The test intended to validate show_progress=True under jax.jit never calls its jitted wrapper, so it does not actually cover the traced code path.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR only disables the progress b...
null
ymahlau__fdtdx__304
ymahlau/fdtdx
304
defect
3a3c9d0fa0a7a4b53d7ee8b78975d40abd245d0c
5d01d3715d339be008dab0b92a0d33a949c9218b
Error check when objects are placed outside of simulation volume
resolves #259 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Stricter validation of object placement and size within the simulation volume, with clearer error reporting for invalid or unresolved bounds. * More robust handling of unresolved pl...
diff --git a/src/fdtdx/config.py b/src/fdtdx/config.py index 50e7e6c9..20f38844 100644 --- a/src/fdtdx/config.py +++ b/src/fdtdx/config.py @@ -8,7 +8,7 @@ from fdtdx import constants from fdtdx.core.jax.pytrees import TreeClass, autoinit, field, frozen_field from fdtdx.interfaces.recorder import Recorder -from fdtdx...
5
4
3
[{"id": "G0", "claim": "The out-of-bounds checks validate against config.grid_shape, which is derived from max_travel_distance (c·time/resolution) instead of the actual simulation volume's per-axis grid size, so the checks essentially never fire for long simulations, falsely flag valid placements for short ones, and wr...
null
ymattw__ydiff__72
ymattw/ydiff
72
defect
a1a33a52b7c0f14cf1ec9e99e9e2bb365645cf50
220b71853fa8a756c77b1afbd6ac0485e5e0e35b
Implement --wrap flag
Which causes long lines to be nicely wrapped in side-by-side mode. To be used primarily with `-s -w0`.
diff --git a/cdiff.py b/cdiff.py index 6bdd8e6..6bfe086 100755 --- a/cdiff.py +++ b/cdiff.py @@ -59,7 +59,6 @@ def next(obj): 'lightcyan' : '\x1b[1;36m', } - # Keys for revision control probe, diff and log with diff VCS_INFO = { 'Git': { @@ -84,6 +83,87 @@ def colorize(text, start_color, end_color='r...
5
4
0
[{"id": "G0", "claim": "The reviewer asks that the redundant color-sequence optimization be kept out of this change and made separately, so the changeset stays minimal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The reviewer asks whether the new --wrap ...
null
ymtdzzz__otel-tui__243
ymtdzzz/otel-tui
243
defect
2da809d79c70016c268b29be44aef546dc12bfad
381e97af4ed58a35549856258b482b6841b1e4db
fix: use ISO-ish format, add ms and TZ to log timestamps
Uses `ms` precision in the list of logs, also uses an ISO3601-ish format (probably should use a consistent format everywhere?)
diff --git a/tuiexporter/internal/telemetry/store.go b/tuiexporter/internal/telemetry/store.go index b0afdbc..8fd643e 100644 --- a/tuiexporter/internal/telemetry/store.go +++ b/tuiexporter/internal/telemetry/store.go @@ -130,7 +130,7 @@ func (l *LogData) GetServiceName() string { } func (l *LogData) GetTimestampTex...
1
1
1
[{"id": "G0", "claim": "The timestamp format change broke the existing tests, and the reviewer asks to fix them, saying it should be enough to just update the expected values.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
ymtdzzz__otel-tui__257
ymtdzzz/otel-tui
257
defect
5a2e442c6d7fbd435f2d1bf1ec9e41b70a9ca745
1a836b39bf10f98d627a02de0f904aab304dbb21
feat: pretty-print JSON in log body pane
related: #255 ![image](https://github.com/user-attachments/assets/5762e58b-96a9-485a-bd36-27c96a7b92a5) - pretty-print JSON in log body pane - resizable log body pane by pressing `ctrl+k`, `ctrl+j`
diff --git a/tuiexporter/internal/json/json.go b/tuiexporter/internal/json/json.go new file mode 100644 index 0000000..2b63d83 --- /dev/null +++ b/tuiexporter/internal/json/json.go @@ -0,0 +1,17 @@ +package json + +import ( + "bytes" + "encoding/json" +) + +func PrettyJSON(s string) string { + if !json.Valid([]byte(s))...
2
2
1
[{"id": "G0", "claim": "Reinstate the removed `selected != nil` check and update `resolved` via `selected.GetResolvedBody()` before pretty-printing, since its removal left `resolved` without the guarded assignment.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
ymtdzzz__otel-tui__294
ymtdzzz/otel-tui
294
defect
30c5eea42a0f896d6c1b2834f962f2449c9412ed
a807b9f924cae707e52fb12e966679ec59a28e0e
feat: suppress stdout/err and add `--debug-log` option
This PR suppresses all stdout/stderr output from OpenTelemetry Collector components by default, and adds a `--debug-log` option to redirect logs to a file (`/tmp/otel-tui.log`). It also fixes an issue where the application required pressing Ctrl+C twice to exit. This change addresses cases like #289, where unexpect...
diff --git a/README.md b/README.md index 03745a6..68316ed 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,9 @@ Usage: otel-tui [flags] Flags: + --debug-log Enable debug log output to file (/tmp/otel-tui.log) --enable-zipkin Enable the zipkin receiver + --from-json-...
1
1
0
[{"id": "G0", "claim": "The opened debug log file handle is never closed, which may cause a resource leak when debug logging is enabled; ensure it is closed appropriately, e.g. during application shutdown.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ymtdzzz__otel-tui__380
ymtdzzz/otel-tui
380
defect
b1ea2ace17aa0ac05c76b4804e4a1fdd33fb4d0d
84dda93389d746432d339ce115c72494c2ced0f5
Supports AUTH_TOKEN env for testing
This is helpful for testing projects like envoy gateway. e.g. Run with `AUTH_TOKEN=fake otel-tui` ```bash curl localhost:4318/v1/traces -H "Content-Type: application/json" -d '{"resourceSpans":[]}' curl localhost:4318/v1/traces -H "Content-Type: application/json" -H "Authorization: Bearer fake" -d '{"resource...
diff --git a/components.go b/components.go index 9826ad6..8ae1d44 100644 --- a/components.go +++ b/components.go @@ -3,6 +3,7 @@ package main import ( + "github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension" "github.com/open-telemetry/opentelemetry-collector-contrib/receive...
1
1
0
[{"id": "G0", "claim": "The `//nolint:unused` directives on `collectorCommand.preRunE` and `collectorCommand.runE` in main.go are unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yoavbls__pretty-ts-errors__17
yoavbls/pretty-ts-errors
17
defect
3c43cad87196c6d0f6fcacdb535fac92d4eb5c42
0483f908b442c48880a0064856834c63c7031361
fix: special characters in object literals
Fixes #13 Please let me know if there is any guidelines to follow for contribution @yoavbls
diff --git a/src/format/formatDiagnosticMessage.ts b/src/format/formatDiagnosticMessage.ts index 2235adf..95c658b 100644 --- a/src/format/formatDiagnosticMessage.ts +++ b/src/format/formatDiagnosticMessage.ts @@ -15,10 +15,19 @@ const formatTypeOrModuleBlock = (_: string, prefix: string, code: string) => : code ...
1
1
1
[{"id": "G0", "claim": "The PR's objectLiteralRegex is too comprehensive for returning an unstyled code block, so object-literal cases like '{ 'abc*bc': string; }' should be handled like all the other replaces (formatted, not unstyled) — probably via the optional '.' in the type regexes, which can match the wrong closi...
null
yokecd__yoke__125
yokecd/yoke
125
defect
e65a2eed2c56552930b020a4bafec8d6c5194bb4
eec5197561bb86d9f095f3226479dca0455b18d3
new: add guard against no output or nil resource
Fixes #116 ## Changes - new: ensure the stages are not empty when `yoke takeoff` - ref: add a little handy task to build cli (can be removed)
diff --git a/Taskfile.yml b/Taskfile.yml index 34482752..51391001 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -55,3 +55,7 @@ tasks: redis: cmds: - GOOS=wasip1 GOARCH=wasm go build -o redis.wasm ./examples/redis + + build-cli: # Handy for contributers + cmds: + - go build ./cmd/yoke \ No newl...
3
3
3
[{"id": "G0", "claim": "A test for the new empty/invalid-resource error behaviour should be added at cmd/yoke/main_test.go, which is currently missing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test should assert the exact error with requir...
null
yokecd__yoke__162
yokecd/yoke
162
defect
74130989653d7b54749aa1c75aefe476857918ad
bb9fd02aea293a86a802fb77d97627ab4d550d2e
YokeCD add multistage Support
flights can order resource creation using stages. This PR adds support for the stages mechanism to YokeCD. It attempts* to stagger resource creation by adding appropriate argocd sync-wave annotations which should mimic the behaviour `yoke takeoff`. \* if the flight creates resources with the sync-wave annotati...
diff --git a/cmd/yokecd/main.go b/cmd/yokecd/main.go index f4b927e8..bcf9c29a 100644 --- a/cmd/yokecd/main.go +++ b/cmd/yokecd/main.go @@ -15,7 +15,6 @@ import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - "k8s.io/apimachinery/pkg/util/yaml" "k8s.io/client-go/...
4
3
3
[{"id": "G0", "claim": "Indexing resource.GetAnnotations() to look up the sync-wave annotation could panic when a resource has no annotations map; guard on a non-nil map instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A simple unit test with...
null
yokecd__yoke__177
yokecd/yoke
177
defect
1eb57b452c4e128559b1875bbe311ef06352346d
fa12f3cf73177c6fee92b5f958bb8ae6fe6851fe
yokecd, yokecd-installer: add support for YAML/JSON value files in input parameters + Docker auth secret
Closes #172 As discussed on Discord, this change allows a few new options for input parameters. I've tested this with combination of YAML and JSON files, YAML files also seem to properly support YAML anchors, including the `<<: *anchor` syntax. The overrides with `input.map` also seem to work well. I also docume...
diff --git a/cmd/yokecd-installer/main.go b/cmd/yokecd-installer/main.go index 2930466c..4b12b14c 100644 --- a/cmd/yokecd-installer/main.go +++ b/cmd/yokecd-installer/main.go @@ -28,9 +28,10 @@ func main() { } type Values struct { - Image string `json:"image"` - Version string `json:"version"` - A...
3
3
1
[{"id": "G0", "claim": "The final if/else in parseInput that returns string(bytes) is unnecessary and should be simplified.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new code in parseInput should use `any` instead of `interface{}` for consistenc...
null
yokecd__yoke__179
yokecd/yoke
179
defect
fc4fc1d9d0bbec65d844f80f0a1f90068b0b95fb
e72cfcdcdb6117563ef59d164562a40e980aab47
yokecd: add support for JSON path keys in input map
Docs update here: https://github.com/yokecd/docs/pull/6
diff --git a/cmd/yokecd/config.go b/cmd/yokecd/config.go index f74d5d62..f494bea7 100644 --- a/cmd/yokecd/config.go +++ b/cmd/yokecd/config.go @@ -16,6 +16,7 @@ import ( "github.com/yokecd/yoke/internal" "dario.cat/mergo" + "github.com/tidwall/sjson" ) type Ref struct { @@ -134,9 +135,26 @@ func parseInput(pa...
1
1
1
[{"id": "G0", "claim": "String-valued map entries are set verbatim rather than interpreted, so booleans, numeric types and structured values supplied as strings (as ArgoCD sends them) end up as JSON strings; the reviewer suggests trying to unmarshal each value as JSON and using it when it parses, falling back to the ra...
null
yorkie-team__yorkie__1000
yorkie-team/yorkie
1,000
defect
b77c25af00b23de9e65d61f0a97628471d348d75
d78f6ffaa23cae91ae0247cf2961873de3e8a80a
Add consistency test for ClientInfo update failure in PushPull
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: This PR adds a consistency test for the scenario where updating `ClientInfo` fails during `PushPull`. **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`...
diff --git a/server/packs/packs.go b/server/packs/packs.go index ce76a3f9c..cbea66007 100644 --- a/server/packs/packs.go +++ b/server/packs/packs.go @@ -20,6 +20,7 @@ package packs import ( "context" + "errors" "fmt" "strconv" gotime "time" @@ -37,6 +38,10 @@ import ( "github.com/yorkie-team/yorkie/server/...
1
1
0
[{"id": "G0", "claim": "The exported variable ErrCheckpointTest should carry a doc comment, as the revive linter flags the missing comment and the build check fails.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yorkie-team__yorkie__1051
yorkie-team/yorkie
1,051
defect
fac4779865ee408b200cc2dc6d3fb6a9d795b6ea
0e820e72a48014f28e304131fe6727a239c55037
Introduce cmap for distributing mutexes per documents
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Introduce cmap for distributing mutexes per documents This commit modifies how subscription and unsubscription requests are handled by distributing the Mutex per documents. Previously, all requests competed for a single Mutex ...
diff --git a/pkg/cmap/cmap.go b/pkg/cmap/cmap.go new file mode 100644 index 000000000..e047f3b47 --- /dev/null +++ b/pkg/cmap/cmap.go @@ -0,0 +1,122 @@ +/* + * Copyright 2024 The Yorkie Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file ex...
28
7
0
[{"id": "G0", "claim": "The new closed field on Subscription should be explicitly initialized in NewSubscription.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The getter retry loop in the concurrent set-and-get test has no deadline and could run i...
null
yorkie-team__yorkie__1096
yorkie-team/yorkie
1,096
defect
608c7e4e42550b5b828d8a03608ea0f2a14061d8
9723c80672435c4c29dd7f4b8fd627bf8f203edd
Improve Version Vector Handling for Legacy SDK and Snapshots
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: 1. Add `{actorID:lamport}` to accumulate VV when VV is empty in applyChange - Changes with VV length of 0 were created from legacy SDK (v0.5.2 or below) - In legacy SDK, we added lamport to VV to ensure information could ...
diff --git a/pkg/document/change/id.go b/pkg/document/change/id.go index de83e4541..518e27409 100644 --- a/pkg/document/change/id.go +++ b/pkg/document/change/id.go @@ -106,6 +106,9 @@ func (id ID) SyncClocks(other ID) ID { newID := NewID(id.clientSeq, InitialServerSeq, lamport, id.actorID, id.versionVector.Max(oth...
2
2
0
[{"id": "G0", "claim": "Within the snapshot-threshold loop in the new gc test, `err` is re-declared with `:=` and shadows the outer `err`, which can lead to overlooked errors; use `=` to assign to the existing variable instead (at both loop sites).", "category": "maintainability", "verdict": "supported", "priority": "P...
null
yorkie-team__yorkie__1133
yorkie-team/yorkie
1,133
defect
3bd66ce2a1863b44e52fe9c64b3acea8c36fb8ee
e0f87653df67c6fbf93ac8b87d37cd7f6112c471
Extract `pkg/webhook` package from `rpc/auth` package
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: This commit extracts webhook functionality from `rpc/auth` into `pkg/webhook` package to enable reuse in `DocEvent` handling. This change also simplifies TTL management by unifying `unauthTTL` and `authTTL`, while preventing ca...
diff --git a/cmd/yorkie/server.go b/cmd/yorkie/server.go index 54ea63094..f8673fd60 100644 --- a/cmd/yorkie/server.go +++ b/cmd/yorkie/server.go @@ -48,8 +48,7 @@ var ( mongoPingTimeout time.Duration authWebhookMaxWaitInterval time.Duration - authWebhookCacheAuthTTL time.Duration - authWebhookCacheUnauth...
4
2
1
[{"id": "G0", "claim": "In server/backend/config.go Validate(), the error message still references the old flag name \"--auth-webhook-cache-auth-ttl\" and should be updated to \"--auth-webhook-cache-ttl\" to match the new unified field.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
yorkie-team__yorkie__1134
yorkie-team/yorkie
1,134
defect
a1e187a633e4faaec1dfe7eb7f7cd329e49f7836
5fd68ca8df445b493d962d4fe5e040e124bd836f
Add HMAC Signing Support for Webhook Client Security
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: - This PR introduce HMAC signing for requests in webhook client - If an HMAC key is set in the client's options, it will be used for signing the webhook requests. - The signature will be inserted into the request header as `X-Sig...
diff --git a/pkg/webhook/client.go b/pkg/webhook/client.go index d717ffd17..bba4fc06b 100644 --- a/pkg/webhook/client.go +++ b/pkg/webhook/client.go @@ -20,6 +20,9 @@ package webhook import ( "bytes" "context" + "crypto/hmac" + "crypto/sha256" + "encoding/hex" "encoding/json" "errors" "fmt" @@ -51,6 +54,8 @@...
11
3
1
[{"id": "G0", "claim": "Use constant-time comparison (hmac.Equal) instead of a direct string comparison when verifying the signature, to avoid timing attacks.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider storing the signing key in a more sec...
null
yorkie-team__yorkie__1142
yorkie-team/yorkie
1,142
defect
acf3f3d991adb535a83b61b27db4e795ad38e0e1
871dcc7d7a16129ba163ea01192fa9729792efb8
Add Request Timing Controls for Auth Webhook Client
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: This PR adds `MinWaitInterval` and `RequestTimeout` configurations for the auth webhook client to enhance control over the timing and reliability of authentication requests. **Which issue(s) this PR fixes**: <!-- *Automa...
diff --git a/cmd/yorkie/server.go b/cmd/yorkie/server.go index 4e5ef04e4..911f6faec 100644 --- a/cmd/yorkie/server.go +++ b/cmd/yorkie/server.go @@ -48,6 +48,8 @@ var ( mongoPingTimeout time.Duration authWebhookMaxWaitInterval time.Duration + authWebhookMinWaitInterval time.Duration + authWebhookRequestTime...
16
5
1
[{"id": "G0", "claim": "handleWebhookResponse accesses fields of res without checking for nil, which would panic if res is nil; add a nil check before the switch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "newDelayServer uses real time delays, w...
null
yorkie-team__yorkie__1170
yorkie-team/yorkie
1,170
defect
2fd75beb15087ff8b2a302f0ca323f39b2298182
dc2a8807bf579b7669ee337fcb03ac15f96032d8
Update VersionVector Operations for In-Place Comparison
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: The `Min()` and `Max()` functions have been updated to operate in-place, which allows us to simplify our version vector comparison logic. Refactored the code to use the in-place `Min()` method instead of `database.FindMinVersionV...
diff --git a/pkg/document/time/version_vector.go b/pkg/document/time/version_vector.go index 212a778b4..4c2c9687e 100644 --- a/pkg/document/time/version_vector.go +++ b/pkg/document/time/version_vector.go @@ -140,9 +140,7 @@ func (v VersionVector) Min(other *VersionVector) VersionVector { for key, value := range v ...
2
2
2
[{"id": "G0", "claim": "Passing &vvi.VersionVector directly in the UpdateAndFindMinSyncedVersionVector loops of server/backend/database/memory/database.go and server/backend/database/mongo/client.go triggers the gosec G601 implicit memory aliasing lint (build-check failures); make a local copy (or equivalent) of the ve...
null
yorkie-team__yorkie__1224
yorkie-team/yorkie
1,224
defect
51331ce845dafd5999e1e5a1543c08bc6c0b1451
9d70cd21abc9c353762e6a79bec77ab3e8779448
Add concurrency sync benchmark test
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Add concurrency sync benchmark test This commit added benchmark tests to evaluate performance during concurrent synchronization with multiple clients. It also improved benchmark utilities for streamlined setup of servers, cl...
diff --git a/test/bench/sync_only_load_bench_test.go b/test/bench/sync_only_load_bench_test.go new file mode 100644 index 000000000..2f4a4d1cb --- /dev/null +++ b/test/bench/sync_only_load_bench_test.go @@ -0,0 +1,153 @@ +//go:build bench + +/* + * Copyright 2025 The Yorkie Authors. All rights reserved. + * + * License...
10
3
3
[{"id": "G0", "claim": "initializeClientAndDocForLoadTest should close the client connection when Activate or Attach fails instead of leaving it open on the error paths.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "startLoadTestServer should return ...
null
yorkie-team__yorkie__1230
yorkie-team/yorkie
1,230
defect
91ed6acb58204287e71a4442a327fedf1bd1aa41
f82b19336278ee7afeac9f10cc8451975d058fa6
Replace cache to use hashicorp/golang-lru/v2
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Replace cache to use hashicorp/golang-lru/v2 **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes # ...
diff --git a/go.mod b/go.mod index e048121c1..917479dab 100644 --- a/go.mod +++ b/go.mod @@ -48,6 +48,7 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 ...
1
1
0
[{"id": "G0", "claim": "The import block in server/rpc/interceptors/yorkie.go is not properly formatted according to Go standards (the goimports build check fails on it) and should be reformatted with goimports.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yorkie-team__yorkie__1245
yorkie-team/yorkie
1,245
defect
e45d3331021997f5f5f77227661229b912b98b28
d88b9ba0b5b521a42f15b4ee7ef2f931b4127660
Revise benchmark code
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Revise benchmark code **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes # **Special notes for y...
diff --git a/client/client.go b/client/client.go index ae3a3a971..17798c52f 100644 --- a/client/client.go +++ b/client/client.go @@ -153,6 +153,7 @@ func New(opts ...Option) (*Client, error) { var clientOptions []connect.ClientOption interceptor := NewAuthInterceptor(options.APIKey, options.Token) clientOptions =...
1
1
0
[{"id": "G0", "claim": "The newly added gzip compression of outgoing requests is unconditional; consider making it configurable via an option, since some environments might need to disable compression.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yorkie-team__yorkie__1257
yorkie-team/yorkie
1,257
defect
529c27541d8bfbd130c6a55799befc15095fba19
fe7230ccd4e7e6931fd15e7ce462827778faa8a6
Remove logical clock from presence only changes
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Remove logical clock from presence only changes Refined the logical clock update policy: - For changes that include operations, both the checkpoint and logical clock are updated. - For presence-only changes, only the chec...
diff --git a/pkg/document/change/context.go b/pkg/document/change/context.go index 05aa22c46..85a32f157 100644 --- a/pkg/document/change/context.go +++ b/pkg/document/change/context.go @@ -27,7 +27,8 @@ import ( // Each time we add an operation, a new time ticket is issued. // Finally, returns a Change after the modi...
7
1
0
[{"id": "G0", "claim": "Next() with excludeLogicalClock returns an ID without versionVector, so using such an ID as the receiver of SyncClocks/SetVersionVector can panic on a nil map; initialise the map (or guard SyncClocks).", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"},...
null
yorkie-team__yorkie__1294
yorkie-team/yorkie
1,294
defect
b6f627cf930e8c9203e0ba496f3196f80d702764
fc2f20c2b700a754c82b89c6aabd8c0f77d05c11
Separate correction logic in RegisterGCPair for editing and build
<!-- Thanks for sending a pull request! --> #### What this PR does / why we need it? This PR introduces a separation of the correction logic in the `RegisterGCPair` function based on the operational mode: editing and build mode. The size correction logic should only apply when a node is deleted during document edi...
diff --git a/pkg/document/crdt/root.go b/pkg/document/crdt/root.go index e9d09c09a..0948b7ea3 100644 --- a/pkg/document/crdt/root.go +++ b/pkg/document/crdt/root.go @@ -235,15 +235,6 @@ func (r *Root) RegisterGCPair(pair GCPair) { size := pair.Child.DataSize() r.docSize.GC.Add(size) - r.docSize.Live.Sub(size) - -...
3
2
1
[{"id": "G0", "claim": "The size-adjustment logic (`diff.Sub(size)` and the conditional `diff.Meta` increment) is duplicated across several operation implementations and should be encapsulated into a helper or a mode flag on RegisterGCPair to reduce repetition and ensure consistency.", "category": "maintainability", "v...
null
yorkie-team__yorkie__1307
yorkie-team/yorkie
1,307
defect
fcaa0bcb4d7bae8a8df174af3b82e26943fc27ae
ea861bab6063c40ecf81680f9eb1f4cd38824c65
Invalidate snapshot cache on compaction and purging
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Invalidate snapshot cache on compaction and purging **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fi...
diff --git a/server/documents/documents.go b/server/documents/documents.go index 18fc4da24..311eaf32a 100644 --- a/server/documents/documents.go +++ b/server/documents/documents.go @@ -60,9 +60,6 @@ var ( // ErrDocumentAlreadyExists is returned when the document already exists. ErrDocumentAlreadyExists = errors.N...
3
2
0
[{"id": "G0", "claim": "Purge should return the package-defined ErrDocumentNotRemoved instead of creating a new formatted error for the not-removed case, for consistency of error handling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider ...
null
yorkie-team__yorkie__1321
yorkie-team/yorkie
1,321
defect
94293a9b77da121dbabc7a88f5436c17eb6b78ff
3aa9a6863669f7e94041bc0cbd7b4d533884a2eb
Fix race condition by initializing server_seq with setOnInsert
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Fix race condition by initializing server_seq with setOnInsert Previously, server_seq was initialized after a successful upsert. This introduced a race condition where another routine could update the same document between i...
diff --git a/server/packs/pushpull.go b/server/packs/pushpull.go index 573d413ef..f74c49129 100644 --- a/server/packs/pushpull.go +++ b/server/packs/pushpull.go @@ -43,8 +43,8 @@ func DocKey(projectID types.ID, docKey key.Key) sync.Key { } // DocPushKey generates a sync key for pushing changes to the document. -fun...
3
1
0
[{"id": "G0", "claim": "Release the doc-push lock with defer in AttachDocument so it is guaranteed to be unlocked even if FindOrCreateDocInfo panics; the manual Unlock on the success and error branches can leave the mutex locked on a panic path, potentially blocking subsequent writers.", "category": "correctness", "ver...
null
yorkie-team__yorkie__1388
yorkie-team/yorkie
1,388
defect
48dcdb835ce22869f384c60a60e85787ec54b8c5
13878703098752044b057d704bc746c0e37857d0
Refactor actorID encoding from hex to Base64 for efficiency
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: Replace actorID from hex to Base64 **- about VersionVector** To reduce the size of serialized VersionVectors, the actorID encoding format has been changed from hex string to base64. Since actorIDs are used as keys in VersionVec...
diff --git a/api/converter/from_pb.go b/api/converter/from_pb.go index 8f3f203b0..ae42d754e 100644 --- a/api/converter/from_pb.go +++ b/api/converter/from_pb.go @@ -192,9 +192,8 @@ func FromVersionVector(pbVersionVector *api.VersionVector) (time.VersionVector, if pbVersionVector == nil { return versionVector, nil ...
2
2
1
[{"id": "G0", "claim": "ActorIDFromBase64 returns ErrInvalidHexString for Base64 decode failures, which is misleading since the function handles Base64, not hex, and its error handling is inconsistently wrapped.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
yorkie-team__yorkie__1395
yorkie-team/yorkie
1,395
defect
48dcdb835ce22869f384c60a60e85787ec54b8c5
75bf67220b8c335143f1827423ccb5fae12de346
Resolve convergence issues in Array.Move and Array.Set
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: This commit addresses convergence issues caused by `Array.MoveAfter` and `Array.Set` operations. To ensure correct tracking of moved elements, a new `movedFrom` field of type `*RGATreeListNode` is introduced in `RGATreeListNode`...
diff --git a/pkg/document/crdt/array.go b/pkg/document/crdt/array.go index 76c8845b9..a1899aea2 100644 --- a/pkg/document/crdt/array.go +++ b/pkg/document/crdt/array.go @@ -34,7 +34,7 @@ type Array struct { func NewArray(elements *RGATreeList, createdAt *time.Ticket, value ...[]Element) *Array { if len(value) == 1 {...
5
2
1
[{"id": "G0", "claim": "The error return value of InsertAfter inside RGATreeList.Set is not checked, so if insertion fails the code would still proceed to delete the original element, resulting in data loss.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
yorkie-team__yorkie__1415
yorkie-team/yorkie
1,415
defect
c8608237322f028eb6e9484d3e2657ff58625301
096234f5672674422df1123710d039d74a400342
Add MoveFront/MoveLast and port array tests from JS SDK
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: This PR ports array-related tests from `yorkie-js-sdk/packages/sdk/test/integration/array_test.ts` to the Go SDK. It includes various insert/delete/move operations using Document-based approach. The following changes are ...
diff --git a/pkg/document/crdt/array_test.go b/pkg/document/crdt/array_test.go index 324f2035b..77381fc40 100644 --- a/pkg/document/crdt/array_test.go +++ b/pkg/document/crdt/array_test.go @@ -21,7 +21,11 @@ import ( "github.com/stretchr/testify/assert" + "github.com/yorkie-team/yorkie/pkg/document" "github.com...
3
2
0
[{"id": "G0", "claim": "MoveFront could panic when called on an empty array because p.Get(0) returns nil and CreatedAt() is then called on it; a guard returning early on p.Len() == 0 was suggested.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The er...
null
yorkie-team__yorkie__1425
yorkie-team/yorkie
1,425
defect
6d758009b8830c83cdb8982ab227991603ddbe4b
3981613846d290c0fb3340dabd4fad519d20a80e
Prevent project secret key from granting full user access
<!-- Thanks for sending a pull request! --> **What this PR does / why we need it**: <h3>Issue</h3> <ul> <li><strong>Problem</strong>: When Admin A (owner of Project B) uses the secret key of Project B, they are unintentionally granted access to other projects they own.</li> <li><strong>Cause</strong>: The cur...
diff --git a/api/types/user.go b/api/types/user.go index 0908a8d6d..b198ea426 100644 --- a/api/types/user.go +++ b/api/types/user.go @@ -19,6 +19,17 @@ package types import "time" +// AccessScope is the scope of access for a user. +type AccessScope string + +const ( + // AccessScopeAdmin is the full administrative...
4
3
2
[{"id": "G0", "claim": "The project-mismatch error message discloses both project names and should be replaced with a generic access-denied message to reduce information disclosure.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetProjectWithAuth shou...
null