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
RasaHQ__rasa__9854
RasaHQ/rasa
9,854
defect
b93fa3103644c8d3051d2f2ec0b137c23ebe7349
fd45043ccfeee023630d9433df20e1a0905fe2dc
Integrate nlu http interpreter.
**Proposed changes**: Closes #9765
diff --git a/rasa/cli/test.py b/rasa/cli/test.py index 47c65b07061d..824826d69b0a 100644 --- a/rasa/cli/test.py +++ b/rasa/cli/test.py @@ -92,7 +92,7 @@ def _print_core_test_execution_info(args: argparse.Namespace) -> None: ) -def run_core_test(args: argparse.Namespace) -> None: +async def run_core_test_as...
5
4
0
[{"id": "G0", "claim": "The docstring of run_core_test says 'Runs NLU tests.' and 'the parsed CLI arguments for rasa test nlu', which should say Core / 'rasa test core'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new parse_message docstrin...
null
RaspberryPiFoundation__blockly-samples__1176
RaspberryPiFoundation/blockly-samples
1,176
defect
69c1725b775279fcc397dc178935208d5f42b08c
c19ca9d9753d4540f4a75cb3fa2c818bcd855ffe
fix(#1174): bitmap field JsDoc and formatting
This PR fix issue #1174. Also, formatted the file by running the lint fix command. Now the field-bitmap file has no linting issue. ![image](https://user-images.githubusercontent.com/39910453/175618721-fea96746-a5f9-431c-8ed0-88dc3987a628.png)
diff --git a/plugins/field-bitmap/src/field-bitmap.js b/plugins/field-bitmap/src/field-bitmap.js index 84ddf12de..259a11ea1 100644 --- a/plugins/field-bitmap/src/field-bitmap.js +++ b/plugins/field-bitmap/src/field-bitmap.js @@ -24,7 +24,12 @@ const EMPTY_PIXEL_COLOR = 'white'; * Includes a grid of clickable pixels t...
3
2
1
[{"id": "G0", "claim": "The JsDoc type annotations should follow the Google style guide: mark non-primitive types with a leading `!`, drop the `.` in generics, and add a trailing `=` to optional parameters (e.g. `!Array<!Array<number>>=`), and fix the other parameters up similarly.", "category": "documentation", "verdi...
null
RaspberryPiFoundation__blockly-samples__1286
RaspberryPiFoundation/blockly-samples
1,286
defect
9e9246153d4089aaa1c9ad011cf5812e3c136f13
5a9184a9e6cf63983da11c564da6fb0eafafad84
fix: Update block-dynamic-connection to use JSON toolbox (#1238)
fixes #1238
diff --git a/plugins/block-dynamic-connection/test/index.js b/plugins/block-dynamic-connection/test/index.js index 6b5eca87d..f3bc7c187 100644 --- a/plugins/block-dynamic-connection/test/index.js +++ b/plugins/block-dynamic-connection/test/index.js @@ -25,8 +25,61 @@ function createWorkspace(blocklyDiv, options) { doc...
3
3
0
[{"id": "G0", "claim": "The XML toolbox block left in plugins/block-dynamic-connection/test/index.html should also be removed now that the toolbox is defined as JSON in index.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A trailing comma is...
null
RaspberryPiFoundation__blockly-samples__1296
RaspberryPiFoundation/blockly-samples
1,296
defect
66803ced40ec635233da08c1050132fdf538682e
31ac516d2d2bfa293dbe6e5c87629171cf8e3770
Chore: Update theme-highcontrast to use JSON toolbox definitions instead of xml
Fixes https://github.com/google/blockly-samples/issues/1244 In this PR I modified the index.js file for the theme-high contrast plugin to create a toolbox using JSON definitions. I also modified index.html removing the xml toolbox definition and made an edit to the inject call in index.js so that the JSON toolbox co...
diff --git a/plugins/theme-highcontrast/test/index.html b/plugins/theme-highcontrast/test/index.html index 0f9e11293..600afcf26 100644 --- a/plugins/theme-highcontrast/test/index.html +++ b/plugins/theme-highcontrast/test/index.html @@ -23,78 +23,6 @@ <body> <div id="root"></div> -<xml xmlns="https://developers.goo...
1
1
0
[{"id": "G0", "claim": "Re-enable the linebreak-style lint rule in plugins/theme-highcontrast/test/index.js by removing the added eslint-disable comment, and fix any linebreak issues, rather than disabling the rule.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
RaspberryPiFoundation__blockly-samples__1311
RaspberryPiFoundation/blockly-samples
1,311
defect
5f6afa880330b98d12ef3f887589c18ada7f11c4
d9b8bb393b69e3f446fd7003cdb60186f94f95a1
fix: keyboard navigation tests
## The changes Actual keyboard nav implementation: Adjust how it's calling a superclass function in a strange bit of monkeypatching code. This change is necessary because of the switch to ES6 classes. Test code: - Stop overriding `Blockly.utils.dom.getFastTextWidthWithSizeString`. - This is no longer accessi...
diff --git a/plugins/keyboard-navigation/src/navigation_controller.js b/plugins/keyboard-navigation/src/navigation_controller.js index f2a501e2c..3bb9812a8 100644 --- a/plugins/keyboard-navigation/src/navigation_controller.js +++ b/plugins/keyboard-navigation/src/navigation_controller.js @@ -113,7 +113,8 @@ export clas...
1
1
0
[{"id": "G0", "claim": "The added comment 'Field is the superclass of FieldColour' (and the equivalent one in the dropdown handler below) doesn't help a reader understand what's going on outside the review context and should be reworded to something like 'If we haven't already handled the shortcut, let the default Fiel...
null
RaspberryPiFoundation__blockly-samples__1551
RaspberryPiFoundation/blockly-samples
1,551
defect
c190eca57865090d9b6027ae4af7eecf425396e8
68f287a9e4706a8045fb6a12df44e4f15fe11b8c
fix: running procedure events in other workspaces
### Description When I hooked up the sharing procedures test page, I found some bugs with running the events in other workspaces. Namely: * Some of the events didn't work because we weren't round-tripping the new value (it was basing the new value on inspection, which doesn't work when instantiating into a dif...
diff --git a/plugins/block-sharable-procedures/src/events_procedure_parameter_base.ts b/plugins/block-sharable-procedures/src/events_procedure_parameter_base.ts index d2b1ae510..c05f4da0e 100644 --- a/plugins/block-sharable-procedures/src/events_procedure_parameter_base.ts +++ b/plugins/block-sharable-procedures/src/ev...
2
1
0
[{"id": "G0", "claim": "The parameter `modelId` of findMatchingParameter is misleadingly named and should be renamed (e.g. to `procedureId`) since the ID is that of the procedure model.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The event sh...
null
RaspberryPiFoundation__blockly-samples__1556
RaspberryPiFoundation/blockly-samples
1,556
defect
c190eca57865090d9b6027ae4af7eecf425396e8
a0ed400bbaa48d6fb311b008774e8737eeef3bb1
fix: create events not fired
### Description Fixed create events not being fired when dragging blocks from the flyout or deserializing. This doesn't properly order events. Ideally the procedure create event would happen before the block create event so that it would work properly with real time collaboration. But this is not possible due to ...
diff --git a/plugins/block-sharable-procedures/src/blocks.ts b/plugins/block-sharable-procedures/src/blocks.ts index 7ba0c08d1..aee1da985 100644 --- a/plugins/block-sharable-procedures/src/blocks.ts +++ b/plugins/block-sharable-procedures/src/blocks.ts @@ -10,6 +10,7 @@ import {ObservableProcedureModel} from './observa...
1
1
0
[{"id": "G0", "claim": "Fix the typo in the comment: 'consistant' should be 'consistent'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
RaspberryPiFoundation__blockly-samples__1844
RaspberryPiFoundation/blockly-samples
1,844
defect
34784e682bcdfabab55fabf33451b623b1f30658
cf8cacb5eb5c345c0ba5f5d2791c6df3e8f8395e
fix: upgrade keyboard navigation to use new clipboard API
Closes https://github.com/google/blockly-samples/issues/1837 Upgrades keyboard navigation to use the new clipboard API.
diff --git a/plugins/keyboard-navigation/package-lock.json b/plugins/keyboard-navigation/package-lock.json index 12f352ea4..1b4471e9a 100644 --- a/plugins/keyboard-navigation/package-lock.json +++ b/plugins/keyboard-navigation/package-lock.json @@ -9,7 +9,7 @@ "version": "0.4.4", "license": "Apache-2.0", ...
2
2
0
[{"id": "G0", "claim": "The bug reference in package.json says the new clipboard API will be in blockly 11, but the new API is expected in 10.2, so the bug reference should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The window.canc...
null
RaspberryPiFoundation__blockly-samples__1853
RaspberryPiFoundation/blockly-samples
1,853
defect
3e90e61278389cc8d208a0f5945206c9682031d5
ed28f72891fdc13a51b07ba93752b81634d124b0
chore: Unit testing on minimap position
**Description** Added unit tests for the positioning of the minimap in the workspace. The test covers all 8 of the workspace configurations (all permutations of LTR/RTL, Vertical/Horizontal, Start/End). I also included a test for when the scrollbar is not there.
diff --git a/plugins/workspace-minimap/src/minimap.ts b/plugins/workspace-minimap/src/minimap.ts index 732264474..c8865c068 100644 --- a/plugins/workspace-minimap/src/minimap.ts +++ b/plugins/workspace-minimap/src/minimap.ts @@ -79,6 +79,7 @@ export class Minimap { minScale: null, }, ...
4
3
1
[{"id": "G0", "claim": "The bare catch-all around setMinimapCss() silently swallows every exception and returns, and the reviewer asks which exception(s) are actually being caught there.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When the toolbox is ...
null
RaspberryPiFoundation__blockly-samples__1885
RaspberryPiFoundation/blockly-samples
1,885
defect
117469bb225e5fad11f377b33866e10753cbd7b4
98ec805da391355904bcffeebb5ade8044eaccef
fix: serialization of dynamic list blocks
Work on https://github.com/google/blockly-samples/issues/1843 Changes the serialization of the dynamic list blocks to match the serialization in core. Also makes it so the `minInputs` actually controls the minimum number of inputs. This means that we have to tear down the inputs every time and re-add them so that...
diff --git a/plugins/block-dynamic-connection/src/dynamic_if.ts b/plugins/block-dynamic-connection/src/dynamic_if.ts index 0321fade3..a9ef24272 100644 --- a/plugins/block-dynamic-connection/src/dynamic_if.ts +++ b/plugins/block-dynamic-connection/src/dynamic_if.ts @@ -19,15 +19,27 @@ interface DynamicIfMixin extends Dy...
1
1
0
[{"id": "G0", "claim": "The new single-line for loop calling this.appendValueInput(`ADD${i}`) should not be written on one line (the reviewer asks whether single-line loops are being used now, taking issue with the style).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}...
null
RaspberryPiFoundation__blockly-samples__19
RaspberryPiFoundation/blockly-samples
19
defect
ab11e1a689ca22a9dfca335b64acf0c82b70f112
9bf7100816c00a05d7c3f6bbe52699b74c9ad2a1
Client-side logic for writing to the database.
index.html: Basic UI for the Blockly workspace. index.js: Entry point for the client. Includes a change listener that detects events created on the UI and logic to send those changes to the server. WorkspaceClient.js: Class for managing events and handling event resolution. This change adds support for trackin...
diff --git a/blockly-rtc/public/WorkspaceClient.js b/blockly-rtc/public/WorkspaceClient.js new file mode 100644 index 000000000..b195398a3 --- /dev/null +++ b/blockly-rtc/public/WorkspaceClient.js @@ -0,0 +1,112 @@ +/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (t...
7
7
1
[{"id": "G0", "claim": "writeToDatabase mixes async/await with .then/.catch promise chaining and should instead use async/await inside a try/catch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the extra space after the `!` in the event-...
null
RaspberryPiFoundation__blockly-samples__1918
RaspberryPiFoundation/blockly-samples
1,918
defect
af95f135c6d0e2ebdc6cbbdad2c95cea42378516
64b7f994ec24e8e30dc65ec7f8f49c762dcf8d88
fix: caller args disconnecting shareable procedures
<!-- - Thanks for submitting code to Blockly! Please fill out the following as part of - your pull request so we can review your code more easily. --> ## The basics <!-- TODO: Verify the following, checking each box with an 'x' between the brackets: [x] --> - [X] I [validated my changes](https://deve...
diff --git a/plugins/block-shareable-procedures/src/blocks.ts b/plugins/block-shareable-procedures/src/blocks.ts index d7084bcbe..4e7e3ff9c 100644 --- a/plugins/block-shareable-procedures/src/blocks.ts +++ b/plugins/block-shareable-procedures/src/blocks.ts @@ -1003,6 +1003,7 @@ const procedureCallerUpdateShapeMixin = {...
2
2
0
[{"id": "G0", "claim": "Rename the new helper ensureArgsMapIsInitialized_ to syncArgsMap.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the commented-out '// injectOneWorkspace();' line from the test page.", "category": "maintainability"...
null
RaspberryPiFoundation__blockly-samples__20
RaspberryPiFoundation/blockly-samples
20
defect
02b90cd9dfd84b5d32fc855e7db3b0c82c1ad9bd
6d65a5386c52081ea33221ecbed44bf2452f380e
Client-side logic for querying the database.
WorkspaceClient.js: Adds logic for querying events from the database and resolving conflicts between the order of events on the server and on the client. index.js: Logic for triggering a query request and running a series of events as a result of the query response.
diff --git a/blockly-rtc/src/WorkspaceClient.js b/blockly-rtc/src/WorkspaceClient.js index 93c2c5e9d..143695243 100644 --- a/blockly-rtc/src/WorkspaceClient.js +++ b/blockly-rtc/src/WorkspaceClient.js @@ -32,6 +32,7 @@ import Blockly from 'blockly'; export default class WorkspaceClient { constructor(workspaceId) ...
4
4
0
[{"id": "G0", "claim": "The JSDoc annotations should use more specific types (record types or typedefs) instead of the generic !Object for rows and event queues.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For consistency the annotations should...
null
RaspberryPiFoundation__blockly-samples__2065
RaspberryPiFoundation/blockly-samples
2,065
defect
2124f4773483b01e7fa6032ebbb279a9498a6402
0f7ff795741981c5d439f68c429f8f7c14cfd82d
fix: resolved 15 ESLint warnings
<!-- - Thanks for submitting code to Blockly! Please fill out the following as part of - your pull request so we can review your code more easily. --> ## The basics <!-- TODO: Verify the following, checking each box with an 'x' between the brackets: [x] --> - [X] I [validated my changes](https://deve...
diff --git a/plugins/block-dynamic-connection/src/dynamic_list_create.ts b/plugins/block-dynamic-connection/src/dynamic_list_create.ts index a485983dd..469026fc1 100644 --- a/plugins/block-dynamic-connection/src/dynamic_list_create.ts +++ b/plugins/block-dynamic-connection/src/dynamic_list_create.ts @@ -125,7 +125,7 @@...
4
4
1
[{"id": "G0", "claim": "The new JSDoc should use the codebase's Array<MigrationData> syntax instead of `Array.<MigrationData>`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loadExtraState `state` type should not narrow extraState propertie...
null
RaspberryPiFoundation__blockly-samples__21
RaspberryPiFoundation/blockly-samples
21
defect
a2a70f84e7347b425ab532edf9b3572cfedf0f6e
a799c08f6dd2860a3fc67b85e212152fe5780e92
Batch events for writing to the database.
Currently, each event is written to the database as an individual entry. With this change, the client batches any available events and writes them to the database as a single entry. By writing all events to the database in a single entry this removes the need to use a transaction. Other: WorkspaceClient.js: this...
diff --git a/blockly-rtc/server/db.js b/blockly-rtc/server/db.js index afd779b8b..102255b08 100644 --- a/blockly-rtc/server/db.js +++ b/blockly-rtc/server/db.js @@ -22,14 +22,14 @@ const sqlite3 = require('sqlite3'); -const db = new sqlite3.Database('./events.sqlite', (err) => { +const db = new sqlite3.Database('....
3
3
1
[{"id": "G0", "claim": "The endWrite_ failure path could lose events: if the server received the request but the response was lost and new events were added in the meantime, the retried update would carry the same entry id with extra events and the server would throw it away, so the in-progress update should be kept as...
null
RaspberryPiFoundation__blockly-samples__216
RaspberryPiFoundation/blockly-samples
216
defect
f80c50baf2ff7f6d2459fc4fbf32dc8cfe6de7e1
d52887f4f1b92399f6e8b9e07b335e36bff3e754
Add the theme template and update create script
Add a new template for themes. Update create script to support themes, and use the following logic for naming the folder: - If it's a theme, use theme-* where * is the name of the theme. - If it's a field, use field-* where * is the name of the field. - If it's a block, use block-* where * is the name of the blo...
diff --git a/plugins/dev-create/bin/create.js b/plugins/dev-create/bin/create.js index 79e4d3a56..77642d174 100755 --- a/plugins/dev-create/bin/create.js +++ b/plugins/dev-create/bin/create.js @@ -22,7 +22,7 @@ const execSync = require('child_process').execSync; const root = process.cwd(); const scriptName = '@blockl...
2
2
1
[{"id": "G0", "claim": "The template.json file should end with a newline.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The blockly peerDependency in the theme template should be >= 3.30300123.0 rather than >=2, since the themes API changed in ...
null
RaspberryPiFoundation__blockly-samples__2232
RaspberryPiFoundation/blockly-samples
2,232
defect
e6aeee5fd2c082f37d20992b0ac1d76ad1c3454e
2dfb7b20fce3e3a94268a2ad0cb17c5bdac18443
feat: add generator tests for the text_multiline block
## The basics - [x] I [validated my changes](https://developers.google.com/blockly/guides/contribute/samples#making_and_verifying_a_change) ## The details ### Resolves Part of #2154 ### Proposed Changes Clean up imports to import from `blockly/core` wherever possible, to reduce unnecessary imports and provide examp...
diff --git a/plugins/field-multilineinput/src/blocks/textMultiline.ts b/plugins/field-multilineinput/src/blocks/textMultiline.ts index dfea2809f..831c79ed1 100644 --- a/plugins/field-multilineinput/src/blocks/textMultiline.ts +++ b/plugins/field-multilineinput/src/blocks/textMultiline.ts @@ -4,7 +4,7 @@ * SPDX-Licens...
1
1
0
[{"id": "G0", "claim": "It might be a good idea to choose a test string that triggers escaping with both types of quotes (e.g. 'Picard said, \"Beam me up!\". O'Brien made it so.') instead of the Jabberwocky string.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
RaspberryPiFoundation__blockly-samples__2309
RaspberryPiFoundation/blockly-samples
2,309
defect
c197af6c67bc989bbdb4e83a62abc08167bcbbfe
a0bffd20ef87bc9a3cbdc89b96999c49c67b0d5f
fix(migration): Ignore non-renamed modules
## The basics - [X] I [validated my changes](https://developers.google.com/blockly/guides/contribute/samples#making_and_verifying_a_change) ## The details ### Resolves Fixes #2171. ### Proposed Changes Don't create a renaming entry for modules that haven't been renamed. Add an entry to the test rena...
diff --git a/plugins/migration/bin/rename.js b/plugins/migration/bin/rename.js index cb6d3a5d1..18aa53fa7 100644 --- a/plugins/migration/bin/rename.js +++ b/plugins/migration/bin/rename.js @@ -192,8 +192,11 @@ class VersionRenamer { // moduleA.exportA -> moduleC.exportB // And we performed the module re...
2
1
0
[{"id": "G0", "claim": "Remove the debug console.log statement that the pull request added to VersionRenamer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's code needs formatting before it can be approved (\"then lgtm\").", "c...
null
RaspberryPiFoundation__blockly-samples__2351
RaspberryPiFoundation/blockly-samples
2,351
defect
337ce75ab72a74b6c9c2551f92442cbf848a5e90
872bd89c5ec2a42f77c084c815d19b261bf9d27f
feat: Allow configuration of buttons, pixel colors, and fixed field height for Bitmap field
## The basics <!-- TODO: Verify the following, checking each box with an 'x' between the brackets: [x] --> - [x] I [validated my changes](https://developers.google.com/blockly/guides/contribute/samples#making_and_verifying_a_change) ## The details ### Resolves <!-- TODO: What Github issue does this resol...
diff --git a/plugins/field-bitmap/README.md b/plugins/field-bitmap/README.md index c425b9faf..12052a3b1 100644 --- a/plugins/field-bitmap/README.md +++ b/plugins/field-bitmap/README.md @@ -20,7 +20,7 @@ npm install @blockly/field-bitmap --save ## Usage -This field accepts up to 3 parameters: +This field accepts up...
7
7
1
[{"id": "G0", "claim": "The fieldHeight documentation should be reworded to make crystal clear that it adjusts the height of the field as it appears on a block rather than the size of the pop-up editor.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
RaspberryPiFoundation__blockly-samples__260
RaspberryPiFoundation/blockly-samples
260
defect
a54796c2594082ff4913f49f0ccc92adb0e09c3e
b7b50a7434b4fed7f5db918283868f79d902664c
Add field test blocks generator, and update field-slider to use it.
Add a dev tool to generate field test blocks, for each group, generate: - A single block field - A parent block that adds the single block field as a shadow - A block with the field on it - A parent block that adds that block with the field on it as a shadow <img width="251" alt="Screen Shot 2020-05-05 at 9 59 4...
diff --git a/plugins/dev-tools/src/generateFieldTestBlocks.js b/plugins/dev-tools/src/generateFieldTestBlocks.js new file mode 100644 index 000000000..f78401a3b --- /dev/null +++ b/plugins/dev-tools/src/generateFieldTestBlocks.js @@ -0,0 +1,126 @@ +/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identif...
3
2
0
[{"id": "G0", "claim": "The JSDoc type annotation uses the deprecated dot syntax (`Array.<Object>`), which per the Closure type system docs should be moved away from.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The module should avoid `export d...
null
RaspberryPiFoundation__blockly-samples__2648
RaspberryPiFoundation/blockly-samples
2,648
defect
afce04c0048affa108d230e767105c40cfc73dde
2046766675c3b84f2f79e8b85a25fb58e14b93e4
fix: toolbox search final trigram
<!-- - Thanks for submitting code to Blockly! Please fill out the following as part of - your pull request so we can review your code more easily. --> ## The basics - [x] I [validated my changes](https://developers.google.com/blockly/guides/contribute/samples#making_and_verifying_a_change) ## The det...
diff --git a/plugins/toolbox-search/src/block_searcher.ts b/plugins/toolbox-search/src/block_searcher.ts index d04f9b53f..005974b73 100644 --- a/plugins/toolbox-search/src/block_searcher.ts +++ b/plugins/toolbox-search/src/block_searcher.ts @@ -113,7 +113,7 @@ export class BlockSearcher { if (normalizedInput.lengt...
2
2
1
[{"id": "G0", "claim": "The underscore-normalization test as written only matches the unmodified message and does not verify that underscores in the block type are normalized, so it should query 'searcher underscore block' instead.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
RaspberryPiFoundation__blockly-samples__272
RaspberryPiFoundation/blockly-samples
272
defect
c0ab54780557280f648ff138f88f0c94696ccd9d
62d4966a63ffba12636168939cba83491f7e4d74
Populate random
- Add two functions to dev-tools: `populateRandom` and `populateRandomButton`. - Document in the README. - Use in the blocks-plus-minus test page. - Rename an input in blocks-plus-minus so it won't conflict with another id on the page Points for review: - This is probably not the best way to add a button - (Edi...
diff --git a/plugins/block-plus-minus/test/index.html b/plugins/block-plus-minus/test/index.html index 26adf5c26..13b90682f 100644 --- a/plugins/block-plus-minus/test/index.html +++ b/plugins/block-plus-minus/test/index.html @@ -52,7 +52,7 @@ <h1>Blockly Plus/Minus Mutators Playground</h1> <div class="bundle">...
2
1
0
[{"id": "G0", "claim": "The reviewer asks why hasOwnProperty is called as Object.prototype.hasOwnProperty.call(...) rather than the simpler Object.hasOwnProperty(...).", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The populateRandomButton helper ...
null
RaspberryPiFoundation__blockly-samples__33
RaspberryPiFoundation/blockly-samples
33
defect
c49a2e7078dd8a3ad288310199de26f87a71bc5e
830512ba2945bdbf9f49938c9235e7f2beb2a825
Logic for recieving events via broadcasting.
websocket_handlers: new handler for listening to events broadcast by the server. When it recieves an event it is able to notify the WorkspaceClient via a callback. WorkspaceClient and index.js: Logic for trigger interactions with the server moved from index.js to WorkspaceClient.
diff --git a/blockly-rtc/server/http_server.js b/blockly-rtc/server/http_server.js index 2b3f5dfce..49cce7dcd 100644 --- a/blockly-rtc/server/http_server.js +++ b/blockly-rtc/server/http_server.js @@ -48,7 +48,7 @@ http.createServer((req, res) => { data.push(chunk); }); req.on('end', () => { - dat...
7
6
1
[{"id": "G0", "claim": "In getBroadcast the socket callback parameter should be named to match the new 'entry' terminology instead of the leftover 'rows'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The typedefs repeated across multiple files...
null
RaspberryPiFoundation__blockly-samples__345
RaspberryPiFoundation/blockly-samples
345
defect
4c34100b8623d003c97efc7c1304b2280acca138
c7707289a761aa7c358bde9f4b237dd25e86019a
Add initial functionality for continuous scrolling toolbox/flyout
Initial version of the continuous scroll toolbox. This still needs some updates but now I can do those incrementally from this base.
diff --git a/plugins/continuous-toolbox/src/ContinuousCategory.js b/plugins/continuous-toolbox/src/ContinuousCategory.js new file mode 100644 index 000000000..d122a9874 --- /dev/null +++ b/plugins/continuous-toolbox/src/ContinuousCategory.js @@ -0,0 +1,64 @@ +/** + * @license + * Copyright 2020 Google LLC + * SPDX-Lice...
8
7
0
[{"id": "G0", "claim": "createLabelDom_ should use this.cssConfig_['label'] instead of hardcoding the 'blocklyTreeLabel' class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Blockly.registry.unregister call for the toolbox item should be re...
null
RaspberryPiFoundation__blockly-samples__392
RaspberryPiFoundation/blockly-samples
392
defect
65126529589c8b1498627b4594bf517b8b4ec0c3
ba60a401794b5bf93ce160e08b83c54ab84a0ace
Editable field date
### Details Fixes #343 Adding text edit functionality to field-date plugin. - Changing base class of FieldDate from Field to FieldTextEdit - Adding option in constructor for enable/disable of text edit - Showing text editor based on whether text edit is enabled - Adding logic to handle text editor/date picker i...
diff --git a/plugins/field-date/src/field_date.js b/plugins/field-date/src/field_date.js index 9654a4112..a0a9c1d44 100644 --- a/plugins/field-date/src/field_date.js +++ b/plugins/field-date/src/field_date.js @@ -34,10 +34,11 @@ goog.require('goog.ui.DatePicker'); * @param {Function=} opt_validator A function that is...
1
1
0
[{"id": "G0", "claim": "The continuation line of the new JSDoc comment does not need to be indented, so the extra indentation on ' * editor.' should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
RaspberryPiFoundation__blockly-samples__42
RaspberryPiFoundation/blockly-samples
42
defect
f3e5fad53fb929d9e85ce56a95eb2489e002c32e
0237e0a1c3936c039157daacf63d5ea192ba52c1
Middleware for MarkerUpdates.
APIs and server functions for sending MarkerUpdates between the client and server.
diff --git a/blockly-rtc/server/http_server.js b/blockly-rtc/server/http_server.js index cf1cd095f..f5c3756e1 100644 --- a/blockly-rtc/server/http_server.js +++ b/blockly-rtc/server/http_server.js @@ -34,6 +34,12 @@ http.createServer(async (req, res) => { await queryEventsHandler_(res, parsedUrl.query.serverId); ...
3
3
0
[{"id": "G0", "claim": "The new GET endpoint should be named after clients (e.g. /api/clients/query) rather than markers, since what it requests is information about the active clients and markers are only the UI element representing them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intr...
null
RaspberryPiFoundation__blockly-samples__43
RaspberryPiFoundation/blockly-samples
43
defect
f3e5fad53fb929d9e85ce56a95eb2489e002c32e
618554d6ccb657e638438ecfc3dc7bb19a202e05
MarkerManager class.
Class for displaying markers for other users. Sends and recieves MarkerUpdates.
diff --git a/blockly-rtc/src/MarkerManager.js b/blockly-rtc/src/MarkerManager.js new file mode 100644 index 000000000..5bec23221 --- /dev/null +++ b/blockly-rtc/src/MarkerManager.js @@ -0,0 +1,149 @@ +/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); ...
10
9
3
[{"id": "G0", "claim": "getMarkerManager_ calls getMarkerManager() on the result of getWorkspace_(), which will break if getWorkspace_() returns null.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "setColour_ pops from a finite colour list, so once ...
null
RaspberryPiFoundation__blockly-samples__677
RaspberryPiFoundation/blockly-samples
677
defect
3c38ee21b5920412bb26ea6934a5306a9227984e
65f5e62c1154f4b9125b8c3ba7e1b3c59e066307
Move on block
- Adds a `BlockDragger` with `moveBlockWhileDragging` since it was taken out of core in google/blockly#4796. - Adds most of the functionality for moving a block on scroll. However, there are still some TODOs that I need to go through and fix. - As stated in the comments, insertion markers are currently super broken.
diff --git a/plugins/scroll-options/src/ScrollBlockDragger.js b/plugins/scroll-options/src/ScrollBlockDragger.js new file mode 100644 index 000000000..b06d05c53 --- /dev/null +++ b/plugins/scroll-options/src/ScrollBlockDragger.js @@ -0,0 +1,45 @@ +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifi...
2
2
0
[{"id": "G0", "claim": "Fix the lint error in ScrollBlockDragger.js (trailing whitespace on line 39, after the moveConnections call).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "onMouseWheel_ in plugins/scroll-options/src/index.js needs a jsdoc comment...
null
RaspberryPiFoundation__blockly-samples__695
RaspberryPiFoundation/blockly-samples
695
defect
8ef6d6f562e00995c3c646c3cf4c47cd9c4db7cf
1eb7c9e28d79f2806b55cb8a8c0ddacdad129d1d
Add checking for duplicates in fulfills
### Description Adds a check to type hierarchy validation to ensure that types are not being fulfilled/subtyped multiple times by the same type. The reason I added this check is because supporting multiple inheritance of the same type adds too much ambiguity (in my opinion). For example, say we want to have a ...
diff --git a/plugins/nominal-connection-checker/package-lock.json b/plugins/nominal-connection-checker/package-lock.json index 4480c6859..393aaabde 100644 --- a/plugins/nominal-connection-checker/package-lock.json +++ b/plugins/nominal-connection-checker/package-lock.json @@ -14,54 +14,41 @@ } }, "@bab...
3
3
0
[{"id": "G0", "claim": "The docstring should also state that the method logs an error for any types which include the same type multiple times in their fulfills array, so its handling of duplicates is clear from the start.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
RaspberryPiFoundation__blockly-samples__716
RaspberryPiFoundation/blockly-samples
716
defect
1c28f69035c29bc4d48171d81ebdf1d0a4470740
5bebada54643547c6e782aa549cf1a920c907826
Add ScrollMetricsManager
Add ScrollMetricsManager for scroll-options plugin that can use cached content metrics.
diff --git a/plugins/scroll-options/src/ScrollMetricsManager.js b/plugins/scroll-options/src/ScrollMetricsManager.js new file mode 100644 index 000000000..c8c467c01 --- /dev/null +++ b/plugins/scroll-options/src/ScrollMetricsManager.js @@ -0,0 +1,77 @@ +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Id...
2
2
0
[{"id": "G0", "claim": "Add a newline at the end of plugins/scroll-options/src/ScrollMetricsManager.js.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider caching all metrics in getMetrics (roughly: if calculating, this.metrics = super.getM...
null
RaspberryPiFoundation__blockly-samples__732
RaspberryPiFoundation/blockly-samples
732
defect
7c66b6b307f91b79346ab7b2908e0747e82f6da0
c517c5e3fcc7250321a2308e42236ab9c8677f59
Update continuous
- Fixes calculateBottomPadding to work with our new metrics manager. - Updates our README to include the ContinuousCategory.
diff --git a/plugins/continuous-toolbox/README.md b/plugins/continuous-toolbox/README.md index b274a845a..d17f44221 100644 --- a/plugins/continuous-toolbox/README.md +++ b/plugins/continuous-toolbox/README.md @@ -24,6 +24,7 @@ Note that this plugin uses APIs introduced in the `3.20200924.3` release of Bloc ```js im...
4
3
1
[{"id": "G0", "claim": "End users should not have to import ContinuousCategory themselves; the plugin should include the category automatically when the toolbox is included (reviewer suggests adding the import inside ContinuousToolbox instead of telling users to add it in the README).", "category": "design", "verdict":...
null
RaspberryPiFoundation__blockly-samples__775
RaspberryPiFoundation/blockly-samples
775
defect
154d0741565f76f9e4862a14dc76ac3fc55bb3a7
1fb92232c520f03ffce2ba4532eed180a34bedf8
removed opt_ prefix from optional parameters and gave them default value in plugins
fixes #667
diff --git a/plugins/block-plus-minus/src/field_minus.js b/plugins/block-plus-minus/src/field_minus.js index 9ac867294..82801a25a 100644 --- a/plugins/block-plus-minus/src/field_minus.js +++ b/plugins/block-plus-minus/src/field_minus.js @@ -13,18 +13,18 @@ import * as Blockly from 'blockly/core'; /** * Creates a m...
9
9
1
[{"id": "G0", "claim": "The `@type {Object}` annotation on the field's args in createMinusField/createPlusField should be `?(Object|undefined)` since args can be null, undefined, or an object.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "getVi...
null
RaspberryPiFoundation__blockly-samples__839
RaspberryPiFoundation/blockly-samples
839
defect
56158ba661a8756652629b5581f2ebd222b40d2d
c850239cb939add2fa06d81c149d03c6dd7fd1ab
Add the ability to configure scroll-options and gets it ready for publishing
**This removes `private: true` from package.json so the plugin will be published during next release. Please review for readiness** This PR adds the ability to configure the behavior in the scroll-options plugin. The API is documented in the README. It also takes care of details for publishing like correcting the...
diff --git a/plugins/scroll-options/README.md b/plugins/scroll-options/README.md index da40eb9df..2703c3ced 100644 --- a/plugins/scroll-options/README.md +++ b/plugins/scroll-options/README.md @@ -1,46 +1,133 @@ -# blockly-plugin-scroll-options [![Built on Blockly](https://tinyurl.com/built-on-blockly)](https://github....
6
6
2
[{"id": "G0", "claim": "The README should state the default value of each edge scroll option in the description.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The import should pull from 'blockly/core' rather than 'blockly/blockly'.", "category":...
null
RaspberryPiFoundation__blockly-samples__925
RaspberryPiFoundation/blockly-samples
925
defect
1be86c718a97f298195c491af1c6e0d481613b12
e1f0b6f7f4c510e0cdd308c8e512ad1c64ba9897
chore: update scroll options plugin
Updates the scroll options README and test page to include information on setting `wheel: true` in the options struct. This is in response to [this question](https://groups.google.com/g/blockly/c/kmt_ZdSz5q8/m/ZFRTUABTAQAJ?utm_medium=email&utm_source=footer) on the forum.
diff --git a/plugins/scroll-options/README.md b/plugins/scroll-options/README.md index cd4b1fcb9..9d21b78ae 100644 --- a/plugins/scroll-options/README.md +++ b/plugins/scroll-options/README.md @@ -48,6 +48,9 @@ const workspace = Blockly.inject('blocklyDiv', { 'blockDragger': ScrollBlockDragger, 'metricsMa...
1
1
1
[{"id": "G0", "claim": "Fix the lint errors in the newly added option blocks — the `move:{` spacing in test/index.js (and the same snippet in README.md), then the reviewer will lgtm.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
RatherRude__Elite-Dangerous-AI-Integration__135
RatherRude/Elite-Dangerous-AI-Integration
135
defect
e8443750df42a00b3d1e698202f1e4330308d917
8014480c9a2a105e69cfe756a2cb0b01ba26a51b
Plugin System
A system for 3rd party plugins. Currently supports: * Registering Actions * Registering Projections * Registering Side-Effects * Defining custom settings, including UI. * And more. See docs. Plugins are loaded from `./plugins/`, where all `*.py` files are read and checked for plugin classes. Plugins can a...
diff --git a/.gitignore b/.gitignore index e5d223bef..4b92fe6fe 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,7 @@ node_modules .angular .venv venv + +# Ignore all files in the plugins folder except HelloWorld.py +plugins/* +!plugins/HelloWorld.py \ No newline at end of file diff --git a/PLUGIN_DEVELOPMENT.m...
2
2
0
[{"id": "G0", "claim": "The plugin tabs' inner settings markup in settings-menu.component.html should be moved into a separate component, with the menu only containing the tab header and mounting a single component per page.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
RazrFalcon__pico-args__20
RazrFalcon/pico-args
20
defect
ea0a903cec09d7e6d4b91403c99d2a338606d3ae
c7487905ff6d67ceff9e5c5edcfad73f12bb9e67
Close #19: Add `short-space-opt` as optional feature
Close #19. This will add `short-space-opt` as an optional feature which allows the space between key and parameter to be left out (more details are in the readme). Let me know if there are any additional tests I should include or any changes you would like. Also, please let me know if there is a way to clean up the `cf...
diff --git a/.travis.yml b/.travis.yml index d166a53..ef4eae1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,5 @@ rust: script: - cargo test # with eq-separator feature - cargo test --no-default-features # no eq-separator feature + - cargo test --no-default-features --features short-space-opt # with onl...
5
5
2
[{"id": "G0", "claim": "The new short-space-opt value parsing (e.g. taking -w--width as a value) is very error-prone, though the reviewer concedes nothing can be done about it.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new short-space-opt parsin...
null
RcppCore__Rcpp__1184
RcppCore/Rcpp
1,184
defect
b883b035a15506fd0c23fcfd4150daf1612473c9
27a072fab690e60706b6a8bcf6b8dd2b78808396
Adding Rcpp signature attribute
This PR extends / revisits #1183 which got close for technical reasons. See #1182 for discussion motivating it. #### Checklist - [x] Code compiles correctly - [x] `R CMD check` still passes all tests - [x] Prefereably, new tests were added which fail without the change - [x] Document the changes by file in [C...
diff --git a/.codecov.yml b/.codecov.yml index b1699134e..9ec352888 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,7 +1,17 @@ -comment: - layout: "header, diff, tree, changes" - behavior: default - require_changes: false # if true: only post the comment if coverage changes - branches: null - flags: null - pa...
10
9
5
[{"id": "G0", "claim": "The new signature functionality should be covered by a number of tests that torture it (such as the tests mentioned in #1182) before the PR goes further.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks how the custom signatur...
null
RcppCore__Rcpp__1202
RcppCore/Rcpp
1,202
defect
9f29fd20fafc2b1a0dcb606144c54cf5c123aa5b
c4b1674e2f79a9bda46a908275b935bdeee83133
Remove deprecated std::(unary|binary)_function (closes #1201)
As discussed in #1201, CRAN would like us to update Rcpp to no longer trigger 'deprecated' warnings under (fairly brandnew) compilers. This PR replaces the use of `std::unary_function()` in two files and `std::binary_function()` in one. The reverse-depends check is ongoing and as not revealed any issues yet. -...
diff --git a/ChangeLog b/ChangeLog index dffaa3964..1bbafb760 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2022-03-09 Dirk Eddelbuettel <edd@debian.org> + + * DESCRIPTION (Version, Date): Roll minor version + * inst/include/Rcpp/config.h: Idem + + * inst/include/Rcpp/Language.h: To quieten compilations, r...
2
1
1
[{"id": "G0", "claim": "Consider removing the inheritance from std::unary_function/std::binary_function altogether instead of conditionally substituting std::function, since those base classes only provide typedefs that Rcpp neither uses nor passes on.", "category": "design", "verdict": "opposed", "priority": "P2", "sc...
null
RcppCore__Rcpp__1303
RcppCore/Rcpp
1,303
defect
a80381c4a14062965eea4a993da8961f279e4e30
92a0f60140b046929f010bd3bd265a8b85df46eb
Allow using variadic templates instead of pre-generated code where supported
Opening this as a draft/PoC PR for feedback on the general idea/approach before I make more changes. For users/systems with c++11 compilers, replacing the generated code in Rcpp with variadic templates could reduce the unnecessary compilation of unused overloads/operators and also remove the limitations on the numbe...
diff --git a/ChangeLog b/ChangeLog index ae324e840..bf8f7d4bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-05-23 Andrew Johnson <andrew.johnson@arjohnsonau.com> + + * Added variadic templates to be used instead of the generated code + in `Rcpp/generated` and `Rcpp/module` when comp...
5
3
1
[{"id": "G0", "claim": "The InternalFunctionWithStdFunction generated call code could be removed outright (or simplified), since the file already assumes C++11; the author asks whether that is safe and the maintainer is reluctant while pre-C++11 is still accommodated.", "category": "design", "verdict": "uncertain", "pr...
null
RcppCore__Rcpp__1388
RcppCore/Rcpp
1,388
defect
d8c084afba85a671cda587c14ca2a31213f6a742
f002e8b30b52b2cc16572afddeb0aad1f5ee25ac
use 'lgrow' helper for growing langsxps
Fixes https://github.com/RcppCore/Rcpp/issues/1386. #### Checklist - [x] Code compiles correctly - [x] `R CMD check` still passes all tests - [x] Preferably, new tests were added which fail without the change - [x] Document the changes by file in [ChangeLog](https://github.com/RcppCore/Rcpp/blob/master/ChangeL...
diff --git a/ChangeLog b/ChangeLog index eaeb7acb1..919dac4dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2025-06-02 Kevin Ushey <kevinushey@gmail.com> + + * inst/include/Rcpp.h: Avoid copy when creating Language objects + * inst/include/Rcpp/Language.h: Idem + * inst/tinytest/cpp/language.cpp: Idem + * ...
2
2
0
[{"id": "G0", "claim": "Move the lgrow.h ChangeLog entry up two lines and describe the first tinytest entry as 'new test'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new lgrow.h copyright header should also carry Kevin Ushey's name.", "cat...
null
RcppCore__Rcpp__1457
RcppCore/Rcpp
1,457
defect
7ff6ba25225c883f139f6cbf2669d164e7053827
38178a8a9b45a4e45971e99692d52cb022f016d8
Add protection against integer overflows in sugar functions
Closes #1454 #### Checklist - [x] Code compiles correctly - [x] `R CMD check` still passes all tests - [x] Preferably, new tests were added which fail without the change - [x] Document the changes by file in [ChangeLog](https://github.com/RcppCore/Rcpp/blob/master/ChangeLog)
diff --git a/inst/include/Rcpp/sugar/sugar.h b/inst/include/Rcpp/sugar/sugar.h index 0e2c2e37b..1bf160ab9 100644 --- a/inst/include/Rcpp/sugar/sugar.h +++ b/inst/include/Rcpp/sugar/sugar.h @@ -2,7 +2,8 @@ // // sugar.h: Rcpp R/C++ interface class library -- main file for Rcpp::sugar // -// Copyright (C) 2010 - 2012 ...
6
4
2
[{"id": "G0", "claim": "The fallback test file contains a stray 'define' token — `#define define safe_math__has_builtin(x) 0` — so the macro is defined under the wrong name and the fallback path is not actually exercised; it should read `#define safe_math__has_builtin(x) 0`.", "category": "correctness", "verdict": "sup...
null
RcppCore__Rcpp__1462
RcppCore/Rcpp
1,462
defect
b2f6ad8d0be085acc43b9f73304655db5962e2df
6cab64daba6d0c2a39a7c5fca8014da12ad5e3ba
Return dataptr() again to avoid getting an invalid address for empty vectors
Closes #1461. This happens because [this](https://github.com/wch/r-source/blob/a619877deecfa4ed3e05e371f8172c11b4a116ad/src/include/Defn.h#L421) returns `0x1` for empty vectors. The question is whether we should do the same check in [here](https://github.com/RcppCore/Rcpp/blob/b2f6ad8d0be085acc43b9f73304655db5962e2df/s...
diff --git a/ChangeLog b/ChangeLog index 24f115bb9..3a6208966 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2026-03-26 Iñaki Ucar <iucar@fedoraproject.org> + + * inst/include/Rcpp/internal/r_vector.h: Return null start for empty vectors + instead of an invalid pointer, which causes UB in e.g. std::copy + 20...
4
3
3
[{"id": "G0", "claim": "std::copy() may not accept a null pointer when the vector is empty, so the added null-return path may be undefined behaviour.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a unit test covering std::copy on empty vectors ...
null
RcppCore__Rcpp__1464
RcppCore/Rcpp
1,464
defect
e5b03df9db2e46aeff3a6310ee4ebcddc2a69698
5b7a1cec064ed5b8120f3fa242edb4c1b921b4f9
Fix ListOf inheritance and compatibility of NamesProxy
Closes #1463. #### Checklist - [x] Code compiles correctly - [x] `R CMD check` still passes all tests - [x] Preferably, new tests were added which fail without the change - [x] Document the changes by file in [ChangeLog](https://github.com/RcppCore/Rcpp/blob/master/ChangeLog)
diff --git a/ChangeLog b/ChangeLog index a841bc970..74f9e0f09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2026-03-27 Iñaki Ucar <iucar@fedoraproject.org> + + * inst/include/Rcpp/vector/ListOf.h: Fix inheritance + * inst/include/Rcpp/proxy/NamesProxy.h: Fix compatibility + 2026-03-26 Dirk Eddelbuettel <e...
2
2
2
[{"id": "G0", "claim": "The rewritten NamesProxy setter calls Rf_namesgets unconditionally, so an empty names attribute is now added where released Rcpp (via names<-) left names unset, failing nanotime's reverse-dependency tests; the setter should only set non-NULL values.", "category": "correctness", "verdict": "suppo...
null
RcppCore__Rcpp__164
RcppCore/Rcpp
164
defect
2cb8aeb236175337fbde9398a855e86d89a9b436
e3e812749050cf7a2874f3dd7482bcc1099c9358
Add unit tests for InternalFunction
As requested, a few unit tests. The tests that require c++11 functionality have been split into separate modules; they will only execute when PKG_CXXFLAGS contains -std=c++1[1-9]. AFAIK, all current compilers require this flag to enable c++11 functionality, so for now that's a good approximation. It's better to skip t...
diff --git a/inst/unitTests/cpp/InternalFunction.cpp b/inst/unitTests/cpp/InternalFunction.cpp new file mode 100644 index 000000000..c6d2515eb --- /dev/null +++ b/inst/unitTests/cpp/InternalFunction.cpp @@ -0,0 +1,45 @@ +// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*- +// +// InternalFunction...
4
1
0
[{"id": "G0", "claim": "The --local argument to runTests.r no longer works and may need a setwd(); the maintainer notes he currently triggers the test suite via R CMD clean instead.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The unit test's C++11 ...
null
RcppCore__Rcpp__193
RcppCore/Rcpp
193
defect
9591eac6d9d6cac36f15bbac4bb7bf10cfea5dc3
b8cadb351db6a6a7b68a62f7c1bc2ede608e623e
Attribute parse
Hi @jjallaire, actually I have a patched version in my computer for a while. Hope I didn't waste your time to investigate the issue. Please feel free to modify as needed. Resolve #192
diff --git a/R/Attributes.R b/R/Attributes.R index 7a506cbd4..1191d3ec2 100644 --- a/R/Attributes.R +++ b/R/Attributes.R @@ -340,7 +340,8 @@ areMacrosDefined <- function(names, # Scan the source files within a package for attributes and generate code # based on the attributes. -compileAttributes <- function(pkgdir ...
2
2
2
[{"id": "G0", "claim": "The scanHeaderFiles pattern should match both c/cc/cpp and h/hpp files (a union of both) rather than one or the other.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Scanning header files should happen by default when compile...
null
RcppCore__Rcpp__310
RcppCore/Rcpp
310
defect
837ad76900de29132d6d55222f33271c9c3d95be
e0718b429edeb5c3bca3b04f36b2f85c75bcdac7
Add encoding in Rcpp::String class
Encoding info in String class and getter/setter. **CE_NATIVE** is used if no encoding info provided.
diff --git a/inst/include/Rcpp/String.h b/inst/include/Rcpp/String.h index 631081a69..f52401e21 100644 --- a/inst/include/Rcpp/String.h +++ b/inst/include/Rcpp/String.h @@ -53,54 +53,74 @@ namespace Rcpp { typedef internal::const_string_proxy<STRSXP> const_StringProxy; /** default constructor */ - ...
3
1
1
[{"id": "G0", "claim": "The new `enc` member is initialized after `buffer_ready` in the constructors while being declared before it, so building the package spews about 1700 lines of -Wreorder warnings (and errors under -Werror).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
RcppCore__Rcpp__342
RcppCore/Rcpp
342
defect
cf02f4549edfe89518fe331b68f3cbd3ad8bf350
05ae762855c7c34b1661605242607c9a4ce9bb58
Add at accessors with bounds checking
I just made a copy of the operators() by making sure that bound are checked.
diff --git a/.travis.yml b/.travis.yml index 4947931b5..efdc6d4ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ language: c sudo: required +cache: false env: global: diff --git a/inst/include/Rcpp/vector/Matrix.h b/inst/include/Rcpp/vector/Matrix.h index ec07a319c..b4fa7b54c 100644 --- a/inst/inc...
6
5
1
[{"id": "G0", "claim": "The author should add a ChangeLog entry describing the change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should add one or two new unit tests for the change.", "category": "testing", "verdict": "supported", ...
null
RcppCore__Rcpp__368
RcppCore/Rcpp
368
defect
e4868b8f3918dc2f9633c25d8169b53b0a22d1ad
7025d075b4aa5c7445758add7173b2961c027d8a
Nullable object (closes #363)
This (simple) PR has been tested in pending code that will may go into [mvabund](https://cran.rstudio.com/package=mvabund) in a few days. (I may use a copy there to not have to rely on the very newest Rcpp there.) But as the feature is generally useful (and I also already spotted use cases for it in [RcppDE](https://...
diff --git a/inst/include/Rcpp.h b/inst/include/Rcpp.h index 83fe31080..020427777 100644 --- a/inst/include/Rcpp.h +++ b/inst/include/Rcpp.h @@ -64,6 +64,8 @@ #include <Rcpp/Module.h> #include <Rcpp/InternalFunction.h> +#include <Rcpp/Nullable.h> + #ifndef RCPP_NO_SUGAR #include <Rcpp/sugar/sugar.h> #include <Rc...
4
3
2
[{"id": "G0", "claim": "Add an isSet() function to Nullable so the user can poll whether the object has been set (the 'third state') without resorting to exception handling.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In operator SEXP() the call shoul...
null
RcppCore__Rcpp__397
RcppCore/Rcpp
397
defect
e7da0e7e530a97453827ee78e1a39e94ac3fdd66
c9dc0e256c5ae81de70f08d7449b99cb2da60f48
Feature/issue383 -- closes #383
this should close #383: - works on square and non-square integer and real matrices - deals with `dimnames` - will add one for strings as well, not sure I can be bothered for complex
diff --git a/ChangeLog b/ChangeLog index 55e1a361e..03abfc822 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,11 +2,33 @@ * include/Rcpp/complex.h: operator<< for Rcomplex +2015-11-10 Dirk Eddelbuettel <edd@debian.org> + + * inst/include/Rcpp/vector/Matrix.h: Added transpose for character + ma...
3
3
0
[{"id": "G0", "claim": "The dimnames-carrying block in transpose() could be replaced with Kevin's version that swaps the dimnames attribute via Rf_getAttrib/R_DimNamesSymbol guarded by Shield<SEXP> instead of DimNameProxy, PROTECT and UNPROTECT.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
RcppCore__Rcpp__417
RcppCore/Rcpp
417
defect
73c59b7474e28560ea9f8028ad32b86b658f152d
563d9683f70c873acbd284b5641e4479f7be2d68
const support for Nullable<>
cargo-culted from many other implementations of `operator SEXP() const` This came up when trying to use `const Nullable<...>&` in https://github.com/rstats-db/RMySQL/pull/90/files#r49576837 Seemed too minor to open an issue first. What would a test for this look like? CC @peternowee
diff --git a/inst/NEWS.Rd b/inst/NEWS.Rd index bea986564..694688fa8 100644 --- a/inst/NEWS.Rd +++ b/inst/NEWS.Rd @@ -3,6 +3,17 @@ \newcommand{\ghpr}{\href{https://github.com/RcppCore/Rcpp/pull/#1}{##1}} \newcommand{\ghit}{\href{https://github.com/RcppCore/Rcpp/issues/#1}{##1}} +\section{Changes in Rcpp version 0.12...
5
1
0
[{"id": "G0", "claim": "The test suite may want const and non-const variants of the Nullable test functions (to be added after this PR) so both calling forms are exercised.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The operator SEXP() should keep it...
null
RcppCore__Rcpp__425
RcppCore/Rcpp
425
defect
a8bbecefa22f3e4c034f7cfcfaa674aacb86d605
7543917736715a83abbf02d83a0b59fff4c54c7c
Sugar median with unit tests
As discussed in #424, this adds a sugar function `Rcpp::median` with corresponding unit tests.
diff --git a/inst/include/Rcpp/sugar/functions/functions.h b/inst/include/Rcpp/sugar/functions/functions.h index d93ad148b..48e76e6e8 100644 --- a/inst/include/Rcpp/sugar/functions/functions.h +++ b/inst/include/Rcpp/sugar/functions/functions.h @@ -80,5 +80,7 @@ #include <Rcpp/sugar/functions/cummin.h> #include <Rcpp...
4
4
0
[{"id": "G0", "claim": "The editor mode line in median.h is an outdated copy, and the newer formatting line should be used instead.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The copyright header's '2012 - 2013' range makes no sense for this n...
null
RcppCore__Rcpp__529
RcppCore/Rcpp
529
defect
1fb88656c6fba31a50cbf748f207126f7d68b3d4
e1d8c32357a700f18b55e4343a9bc0282805fdae
Rcpp::String ctor update(close #263)
As discussed in #263 (1) remove the string representation of encoding (I am not sure if any pkgs really use this, we might need a rev.dep); (2) use `CE_UTF8` as default encoding (not sure if this will cause problems with no-English string). @kevinushey @hadley @jjallaire
diff --git a/inst/include/Rcpp/String.h b/inst/include/Rcpp/String.h index 17434320e..4180244a0 100644 --- a/inst/include/Rcpp/String.h +++ b/inst/include/Rcpp/String.h @@ -40,7 +40,6 @@ #define RCPP_STRING_DEBUG_3(fmt, M1, M2, M3) #endif - namespace Rcpp { /** @@ -53,7 +52,7 @@ namespace Rcpp { ...
2
2
0
[{"id": "G0", "claim": "The default constructor should initialize data with Rf_mkCharCE() (explicitly setting the encoding) so the encoding is consistent with enc(CE_UTF8), even if it probably does not matter for the empty string.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
RcppCore__Rcpp__582
RcppCore/Rcpp
582
defect
88ebc36c89789c035135ca9b35dcfb316d2bce94
ee0983b20ca49408e5115a6cd1f7927ac8885abc
Fixes exception call stack for C++ exceptions
Also adds support for populating the cppstack for Rcpp::exceptions when using clang and a str method to make printing a little nicer. ``` r library(Rcpp) cppFunction('double takeLog(double val) { if (val <= 0.0) { throw std::range_error("Inadmissible value"); } return log(val); }') # R...
diff --git a/ChangeLog b/ChangeLog index 175a67980..0a22d387a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2016-11-11 Jim Hester <james.f.hester@gmail.com> + * inst/include/rcpp/exceptions.h: Return stack trace even if no file + or line is specified. Fix R calls when using Rcpp_eval. + ...
10
6
4
[{"id": "G0", "claim": "The backtick quoting of the `str.Rcpp_stack_trace` function name is an unnecessary style that adds little here and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Hard-coding `sys.call(-9)` to skip the w...
null
RcppCore__Rcpp__599
RcppCore/Rcpp
599
defect
3bdd1f2698d0ab22ab71a0be5dc6b1dcfa23b2bf
08a2cff6cec7a5ea389af29583ebad0a50aba4de
added format() methods for Date and Datetime
also rolled dev version in config.h also adds `operator<<()` which doesn't seem to get picked up by compiler, ie we get the underlying date number or seconds since epoch.
diff --git a/ChangeLog b/ChangeLog index a9ff88447..7205d4207 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,19 @@ +2016-11-27 Dirk Eddelbuettel <edd@debian.org> + + * inst/include/Rcpp/date_datetime/Date.h (format, operator<<): Added + * inst/include/Rcpp/date_datetime/Datetime.h (format, operator<<...
4
3
2
[{"id": "G0", "claim": "Drop the trailing `<< std::endl;` from the new operator<<, since the extra newline and call to flush may not be desirable in some cases.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new member operator<< is never called (ove...
null
RcppCore__Rcpp__680
RcppCore/Rcpp
680
defect
7492cff0c04a7b525ac1edceb0026dd768afbef4
5c0ef70cd68d3c8d93d5ede37bf46fe01d8421e2
Sugar function 'trimws' with unit tests (closes #679)
As described in #679, this adds a sugar version of the base R function `trimws`.
diff --git a/ChangeLog b/ChangeLog index 8b652e93b..3690ef436 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-04-22 Nathan Russell <russell.nr2012@gmail.com> + + * inst/include/Rcpp/sugar/functions/strings/trimws.h: Added sugar + function trimws with unit tests + * inst/include/Rcpp...
4
4
1
[{"id": "G0", "claim": "The trim helper functions should also accept the string length so a call to strlen() can be avoided when the length is already known, as it is for R's CHARSXP strings.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The static...
null
RcppCore__Rcpp__867
RcppCore/Rcpp
867
defect
5d5cdb85504ae6e12916d963bdd621a41730d513
1f4a57e16c0d80a6c13d090418b244b358d12a96
Switching from Rcpp_eval to Rcpp_fast_eval. close #866
@Enchufa2 This PR ports most of the `Rcpp_eval` to `Rcpp_fast_eval`. I might need a little more time to double check.
diff --git a/inst/examples/SugarPerformance/sugarBenchmarks.R b/inst/examples/SugarPerformance/sugarBenchmarks.R index ea0f35719..27de7d1a5 100755 --- a/inst/examples/SugarPerformance/sugarBenchmarks.R +++ b/inst/examples/SugarPerformance/sugarBenchmarks.R @@ -53,7 +53,7 @@ src <- sprintf( ' timer.Reset(); timer...
3
2
2
[{"id": "G0", "claim": "src/barrier.cpp was left calling Rcpp_eval instead of Rcpp_fast_eval (the switch was reverted there), so with RCPP_PROTECTED_EVAL defined Rcpp fails to install with an undefined symbol for Rcpp::Rcpp_eval.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduce...
null
RcppCore__Rcpp__977
RcppCore/Rcpp
977
defect
d04eae80562c8933a484d095309af3b47bc041f8
d86f20487939958d1bd5a754a94251c930f29854
Allow parenthesis and backslash characters inside default values
Solves #975 The argument parser method `SourceFileAttributesParser::parseArguments()` has been modified in order to allow the use of parenthesis and backslash characters inside quoted strings and character values.
diff --git a/inst/unitTests/cpp/attributes.cpp b/inst/unitTests/cpp/attributes.cpp index 8cd67ebd6..70215c32c 100644 --- a/inst/unitTests/cpp/attributes.cpp +++ b/inst/unitTests/cpp/attributes.cpp @@ -20,3 +20,18 @@ std::string parse_declaration_test(std::string msg) { // [[Rcpp::export]] std::string parse_declarat...
1
1
0
[{"id": "G0", "claim": "The `endOfArg` flag is more confusing than simply using `continue` to skip adding the comma to the current argument, so use `continue` instead unless there is a reason for the flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
React95__React95__184
React95/React95
184
defect
fd9c8ecbf179ef95795865c9d66e370618c5bbb0
cc409d3b12a3ca91e7cfd9d3e8fc527af7a14afd
Modal: Add <li> in OptionsBox
Options Box list does not contain `<li>` and this is a tech debt because screen readers and other assistive technologies depend on lists being structured properly to keep users informed of content within the lists. This PR fixes this by adding a li (named `OptionItem`) in OptionsBox. Reference: https://web.dev/li...
diff --git a/packages/core/components/Alert/__snapshots__/Alert.snap b/packages/core/components/Alert/__snapshots__/Alert.snap index 16f7756c4..bd235d382 100644 --- a/packages/core/components/Alert/__snapshots__/Alert.snap +++ b/packages/core/components/Alert/__snapshots__/Alert.snap @@ -1,7 +1,7 @@ // Jest Snapshot v...
1
1
1
[{"id": "G0", "claim": "The `data-testid=\"menu-item\"` attribute added to the Modal menu items ships with the @react95/core production bundle and could stop consumers from using that test id in their own tests, so it should be removed (M006 proposes switching the assertion to `getByText('Menu Text')` to allow this).",...
null
React95__React95__261
React95/React95
261
defect
0eecc934d487d016f6ffa80b02c0c2fa3ee2d7fa
a452b92dc03b6be58fbd03996200f3212e114333
fix(modal): update taskbar icon and text on modal change
Makes the ModalProvider state update as required for modal titles and icons to be updated in the taskbar if they're changed in the modals. Also fixes the bug that would remove all instances of a modal with the same title when one is removed. IDs were added to the modals, and used to reference removal and/or upda...
diff --git a/packages/core/components/Modal/Modal.test.tsx b/packages/core/components/Modal/Modal.test.tsx index 703c77ee4..2e4b09409 100644 --- a/packages/core/components/Modal/Modal.test.tsx +++ b/packages/core/components/Modal/Modal.test.tsx @@ -101,6 +101,8 @@ describe('<Modal />', () => { addWindows: ...
2
2
0
[{"id": "G0", "claim": "The pull request makes `removeWindows` obsolete and it is not a public API, so it should be removed (the reviewer suggests in the next minor release rather than publishing a major version for it).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
ReactTooltip__react-tooltip__559
ReactTooltip/react-tooltip
559
defect
742513c31900092cf476fe99b2edb624edc07ebb
92fcf5bc62e39c27809b280c7ae095a2a9f12857
Aphrodite JSS deprecation
Hi @Rogger794, I have replaced the **aphrodite-jss* implementation with a custom styling solution that does not require any external dependencies. Tested locally and with the **gh-pages** branch, works correctly. The unit tests have been updated accordingly. No changes in workflows or documentation. Than...
diff --git a/package-lock.json b/package-lock.json index 801ce0e6c..b96a5a123 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2278,16 +2278,6 @@ "integrity": "sha1-rglCYAspkS8NKxTsYMRejzMLYRA=", "dev": true }, - "aphrodite-jss": { - "version": "2.1.0", - "resolved": "https://r...
1
1
0
[{"id": "G0", "claim": "The new src/utils/uuid.js should use block-scoped declarations instead of var: dt and uuid as let, r as const.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ReactiveX__RxAndroid__239
ReactiveX/RxAndroid
239
defect
eb1ecfc76e11b0cec674e484e7e3aef1a9fdded7
686c0a1febc4de54c1bf7da30cc2318cb5a6849b
Lazily initialize MAIN_THREAD_SCHEDULER to avoid class loading problems in unit tests
Fixes #238.
diff --git a/rxandroid/src/main/java/rx/android/schedulers/AndroidSchedulers.java b/rxandroid/src/main/java/rx/android/schedulers/AndroidSchedulers.java index 3576fc60..ceb90e10 100644 --- a/rxandroid/src/main/java/rx/android/schedulers/AndroidSchedulers.java +++ b/rxandroid/src/main/java/rx/android/schedulers/AndroidS...
2
1
0
[{"id": "G0", "claim": "The holder's MAIN_THREAD_SCHEDULER field should be package-scoped instead of private, so mainThread() avoids one more method call through a synthetic accessor.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test change (r...
null
ReactiveX__RxAndroid__25
ReactiveX/RxAndroid
25
defect
837620c51bc3b37f3696e17021eb0849346c70cb
c11e0c2ad8482437b4360b966e75c3223709a573
Add fromSharedPreferencesChanges Observable
This is wrapper around SharedPreferences.OnSharedPreferenceChangeListener It's pretty simple and straightforward, but is useful to observe SharedPreferences changes.
diff --git a/src/main/java/rx/android/observables/AndroidObservable.java b/src/main/java/rx/android/observables/AndroidObservable.java index 7ad293de..900f6367 100644 --- a/src/main/java/rx/android/observables/AndroidObservable.java +++ b/src/main/java/rx/android/observables/AndroidObservable.java @@ -17,6 +17,7 @@ ...
3
2
0
[{"id": "G0", "claim": "The PR should also provide an overload of fromSharedPreferencesChanges that observes one specified key and emits its extracted value via an extractor function.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the misleading inde...
null
ReactiveX__RxAndroid__276
ReactiveX/RxAndroid
276
defect
9507c848b5d4e7f6311f6d550ad374c677d08cf2
580d239e4a79f6ea90329ae936722496946c44a1
Eliminate allocations by using the Handler to track scheduled actions.
Closes #275. cc @akarnokd
diff --git a/rxandroid/src/main/java/rx/android/schedulers/HandlerScheduler.java b/rxandroid/src/main/java/rx/android/schedulers/HandlerScheduler.java index 46d12f8d..51a5ab87 100644 --- a/rxandroid/src/main/java/rx/android/schedulers/HandlerScheduler.java +++ b/rxandroid/src/main/java/rx/android/schedulers/HandlerSche...
2
2
1
[{"id": "G0", "claim": "The synchronized block guarding message submission in schedule() should not be needed; the unsubscription post-check could instead be done after submitting and remove the token+message pair.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
ReactiveX__RxAndroid__294
ReactiveX/RxAndroid
294
defect
fc72d3ae29022a5f2064a7b149d81058a378294f
da5675c31e8eef8a02a28fe1584a30db64a9ded9
Add AndroidSchedulers.reset() for better testing support
Corresponds to https://github.com/ReactiveX/RxJava/pull/3986 This adds a `reset()` method to `AndroidSchedulers`, with the main benefit being improved testing support. This does slightly tweak the internal API of `AndroidSchedulers` to use a `getInstance()` approach to allow lazy init. This way we don't have to replac...
diff --git a/rxandroid/src/main/java/rx/android/schedulers/AndroidSchedulers.java b/rxandroid/src/main/java/rx/android/schedulers/AndroidSchedulers.java index b94594d2..b7d1d028 100644 --- a/rxandroid/src/main/java/rx/android/schedulers/AndroidSchedulers.java +++ b/rxandroid/src/main/java/rx/android/schedulers/AndroidS...
5
4
0
[{"id": "G0", "claim": "The new ResetSchedulersTest.java file is missing the license header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Delete the extra blank line(s) after the package declaration in ResetSchedulersTest.java.", "category": "ma...
null
ReactiveX__RxAndroid__338
ReactiveX/RxAndroid
338
defect
3fa12e9e4517f7c5d816112a34d9fd35992ed509
a7101492cfecc53966accef5336a97276ae227cd
2.x: Add lazy loading of default main Scheduler
Initial proposal to address #332 I've essentially used the same implementation as in RxJava: https://github.com/ReactiveX/RxJava/pull/4585. For the sake of common implementation, I've used RxJava's internal(?) classes `ObjectHelper` and `ExceptionHelper`. Happy to consider alternatives if we don't want this.
diff --git a/rxandroid/src/main/java/io/reactivex/android/plugins/RxAndroidPlugins.java b/rxandroid/src/main/java/io/reactivex/android/plugins/RxAndroidPlugins.java index a8607b83..54029025 100644 --- a/rxandroid/src/main/java/io/reactivex/android/plugins/RxAndroidPlugins.java +++ b/rxandroid/src/main/java/io/reactivex...
12
10
1
[{"id": "G0", "claim": "The plugin classes must not depend on RxJava internal classes: remove the ObjectHelper/ExceptionHelper imports, hand-roll the null checks, and use \"scheduler == null\" as the null-check message.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
ReactiveX__RxAndroid__347
ReactiveX/RxAndroid
347
defect
8c65ad8e68a383e4e5ecfbef93d5a35ec18915f3
e13830d8b174c4e97718260fb80aa59461c734a8
Schedule tasks with negative delays immediately as per Scheduler spec
This fixes the issue in https://github.com/ReactiveX/RxAndroid/issues/346.
diff --git a/rxandroid/src/main/java/io/reactivex/android/schedulers/HandlerScheduler.java b/rxandroid/src/main/java/io/reactivex/android/schedulers/HandlerScheduler.java index bcf628a3..27bb0004 100644 --- a/rxandroid/src/main/java/io/reactivex/android/schedulers/HandlerScheduler.java +++ b/rxandroid/src/main/java/io/...
1
1
1
[{"id": "G0", "claim": "The pull request should not remove the existing input-validation tests that assert a negative period is rejected (\"period < 0: -1\"), because their removal is unrelated to this PR.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ReactiveX__RxAndroid__53
ReactiveX/RxAndroid
53
defect
aa1f2aa844576e01c0d9279be7bd93de94a1ff5e
f33751c57f83ac56d7baf7b8cc95eafd957b8de4
Add AndroidObservable#bindView()
bindView() is a sister of bindActivity() and bindFragment(). Thanks for View.OnAttachStateChangeListener, it doesn't require any manual unsubscription. It frees developers from overriding View#onDetachFromWindow().
diff --git a/library/src/main/java/rx/android/observables/AndroidObservable.java b/library/src/main/java/rx/android/observables/AndroidObservable.java index 699e782a..4fc6e0bd 100644 --- a/library/src/main/java/rx/android/observables/AndroidObservable.java +++ b/library/src/main/java/rx/android/observables/AndroidObser...
18
17
2
[{"id": "G0", "claim": "The bindView Javadoc uses self-closing `<p />` tags, which are not valid HTML in Javadoc; each should be a single `<p>` declaration on its own line between paragraphs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ...
null
ReactiveX__RxAndroid__540
ReactiveX/RxAndroid
540
defect
b01a7e287f34459d791583a90d2725573c7a39d9
f27efeeac3a1a1456bcbe59ffa58ea93b7ba1ef9
Update to RxJava 3
Closes #538. With RxJava 3.0.0-RC2, the package names of all RxJava types were changed. This PR updates all the imports in RxAndroid accordingly. If the intention is to update RxAndroid's package names as well I'm happy to add that to this PR. This shouldn't actually be merged to 2.x, there just isn't a 3.x to...
diff --git a/rxandroid/build.gradle b/rxandroid/build.gradle index 760b9361..2a1c49df 100644 --- a/rxandroid/build.gradle +++ b/rxandroid/build.gradle @@ -36,7 +36,7 @@ android { } dependencies { - api 'io.reactivex.rxjava2:rxjava:2.2.10' + api 'io.reactivex.rxjava3:rxjava:3.0.0-RC2' testImplementation...
1
1
1
[{"id": "G0", "claim": "The library's package names should also be changed so that RxAndroid 2.x and 3.x can live side by side.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ReactiveX__RxAndroid__581
ReactiveX/RxAndroid
581
defect
f1ddbcb637a2bc3f873db204f3af9d8b01688550
df0f0c7bc52f65b8b7b1af3af84c03e47437ed52
dependencies update and replace deprecated method in tests
- update `RxJava` to 3.1.0 - update `junit` to 4.13.2 - update wrapper to 6.8.3 - update AGP to 4.2.2 - set `compileSdk` and `targetSdk` to 31 - remove unused import in tests - replace deprecated method in unit tests - remove `idleMainLooper` in `HandlerSchedulerTest` due to update has been released
diff --git a/build.gradle b/build.gradle index 1e4e1f0d..d94b3aad 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.1' + classpath 'com.android.tools.build:gradle:4.2.2' classpat...
1
1
0
[{"id": "G0", "claim": "Use a static import for idleMainLooper instead of qualifying every call with ShadowLooper, so the change touches fewer lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ReactiveX__RxAndroid__67
ReactiveX/RxAndroid
67
defect
769917cbcedf0b843cd13987e481211c648913b1
9cdde109addddf00bfb7fb413070f9855e7a7c77
Fix observeOn() invocation order.
It should be called before lift() so that the operator can observe it on the main thread. I tried to write a test but it didn't work, presumably because Robolectric doesn't have an event loop?
diff --git a/rxandroid/src/main/java/rx/android/observables/AndroidObservable.java b/rxandroid/src/main/java/rx/android/observables/AndroidObservable.java index f4223b25..ac028856 100644 --- a/rxandroid/src/main/java/rx/android/observables/AndroidObservable.java +++ b/rxandroid/src/main/java/rx/android/observables/Andr...
4
3
2
[{"id": "G0", "claim": "The pull request should have the author's tests posted to it so that these behaviours are specified as they are decided.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new TestUtil.consumeAllUiThreadTasks() helper looks the s...
null
ReactiveX__RxAndroid__70
ReactiveX/RxAndroid
70
defect
0893101ee05e85c6c9518ade9496da65fe31eee2
cb00a7b602b57ed7ad229cdb8c42fdf375ccf00b
Refactoring OperatorViewDetachedFromWindowFirst
1. Renaming to OnSubscribeViewDetachedFromWindowFirst.java 2. Adding tests to assert the desired behaviour 3. Refactoring to avoid the "instantiate and forget" approach within OnSubscribe.call(..) Signed-off-by: David Marques dpsmarques@gmail.com
diff --git a/rxandroid/src/main/java/rx/android/view/OperatorViewDetachedFromWindowFirst.java b/rxandroid/src/main/java/rx/android/view/OnSubscribeViewDetachedFromWindowFirst.java similarity index 70% rename from rxandroid/src/main/java/rx/android/view/OperatorViewDetachedFromWindowFirst.java rename to rxandroid/src/ma...
5
4
0
[{"id": "G0", "claim": "dlew questions why the class goes to the extra effort of clearing out its internal SubscriptionAdapter when it is used only with takeUntil() to complete a sequence, implying the clearing may be unnecessary.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"...
null
ReactiveX__RxAndroid__75
ReactiveX/RxAndroid
75
defect
0893101ee05e85c6c9518ade9496da65fe31eee2
0c6b60f3f43f7c47f2e51a1d1b63cfb0d7fa80fd
Added LifecycleObservable binds
This is the first half of the puzzle that is #12. It provides two main facilities: - `LifecycleObservable.bindUntilLifecycleEvent()` lets you specify an exact point in a lifecycle to unsubscribe at. - `LifecycleObservable.bindActivityLifecycle()` and `bindFragmentLifecycle()` which make a best effort guess at when you ...
diff --git a/rxandroid/src/main/java/rx/android/lifecycle/LifecycleEvent.java b/rxandroid/src/main/java/rx/android/lifecycle/LifecycleEvent.java new file mode 100644 index 00000000..5d6ca6be --- /dev/null +++ b/rxandroid/src/main/java/rx/android/lifecycle/LifecycleEvent.java @@ -0,0 +1,33 @@ +/** + * Licensed under the...
11
5
1
[{"id": "G0", "claim": "Move the fall-through IllegalStateException into a default case of the lifecycle switch so the null-check can be saved altogether (raised for both the Activity and the Fragment switch).", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
ReactiveX__RxAndroid__76
ReactiveX/RxAndroid
76
defect
0893101ee05e85c6c9518ade9496da65fe31eee2
431dc955340ad1816138415a045bbc65256f9a1e
Adding support to create self closing Observables from Cursors
An optional overriden method allows a mapper function to create instances of a type from the Cursor as the Observable iterates over it. Signed-off-by: David Marques dpsmarques@gmail.com
diff --git a/rxandroid/src/main/java/rx/android/content/ContentObservable.java b/rxandroid/src/main/java/rx/android/content/ContentObservable.java index 064c3ee9..a59245b8 100644 --- a/rxandroid/src/main/java/rx/android/content/ContentObservable.java +++ b/rxandroid/src/main/java/rx/android/content/ContentObservable.ja...
3
3
2
[{"id": "G0", "claim": "The cursor API is built on an unnecessary CursorIterableAdapter/mapper abstraction and the reviewers ask that it be dropped in favour of a plain subscribe function.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fromCursor Jav...
null
ReactiveX__RxAndroid__85
ReactiveX/RxAndroid
85
defect
f9c303e3284eb0af9e5e33b735fb1487b62bdd6b
4552c890535482d299dd3a5516c30c0265137e3c
Add actions for setting TextView text.
Takes care of https://github.com/ReactiveX/RxAndroid/issues/80
diff --git a/rxandroid/src/main/java/rx/android/view/ViewActions.java b/rxandroid/src/main/java/rx/android/view/ViewActions.java index 9ad41de8..3268654b 100644 --- a/rxandroid/src/main/java/rx/android/view/ViewActions.java +++ b/rxandroid/src/main/java/rx/android/view/ViewActions.java @@ -14,7 +14,7 @@ package rx.and...
6
4
1
[{"id": "G0", "claim": "The test file should not use a static star import (`import static org.mockito.Mockito.*`).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`times(1)` in the test verifications is Mockito's default and can be omitted.", "category": ...
null
ReactiveX__RxCpp__300
ReactiveX/RxCpp
300
defect
bb0871143b4beeb1947a7cedfa78bf3d8259a283
7ad32ad2848b8c01b44500af00214357bb4ee725
decouple amb from observable
Decoupled `amb` from observable, please review. Thank you, Grigoriy
diff --git a/Rx/v2/src/rxcpp/operators/rx-amb.hpp b/Rx/v2/src/rxcpp/operators/rx-amb.hpp index c89e91127d..b64412bd67 100644 --- a/Rx/v2/src/rxcpp/operators/rx-amb.hpp +++ b/Rx/v2/src/rxcpp/operators/rx-amb.hpp @@ -2,6 +2,40 @@ #pragma once +/*! \file rx-amb.hpp + + \brief For each item from only the first of t...
1
1
0
[{"id": "G0", "claim": "The defer helper constructs (defer_amb/defer_amb_from) that the pull request adds in rx-amb.hpp may no longer be required under the new pattern and should be removed if they are redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ReactiveX__RxCpp__314
ReactiveX/RxCpp
314
defect
224c011cd294f0bbdcc56db766715c63f479991b
386a6c772ce8a1917cec2697a2f230e7683d003b
decouple window_with_time_or_count from observable
Decoupled `window_with_time_or_count` from observable, fixed a couple of typos. Please review. Thank you, Grigoriy
diff --git a/Rx/v2/src/rxcpp/operators/rx-buffer_time_count.hpp b/Rx/v2/src/rxcpp/operators/rx-buffer_time_count.hpp index 9b30570336..aecff81043 100644 --- a/Rx/v2/src/rxcpp/operators/rx-buffer_time_count.hpp +++ b/Rx/v2/src/rxcpp/operators/rx-buffer_time_count.hpp @@ -2,7 +2,7 @@ #pragma once -/*! \file rx-buffe...
1
1
0
[{"id": "G0", "claim": "The invalid-argument trait name 'buffer_with_time_or_count_tag_invalid_t' should not contain '_tag'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ReactiveX__RxCpp__338
ReactiveX/RxCpp
338
defect
40432165a831a8e7f23197a5559916676747610d
7bbdd057a5dac038ded3bb8c2a5438978ddb43ea
decouple publish, publish_synchronized, multicast from observable
Decoupled `publish, publish_synchronized, multicast` from observable, please review. `publish_synchronized` was a bit tricky since [rx-synchronize](https://github.com/Reactive-Extensions/RxCpp/blob/master/Rx/v2/src/rxcpp/subjects/rx-synchronize.hpp#L219) references it. I added #include "publish.hpp" directives to ...
diff --git a/Rx/v2/src/rxcpp/operators/rx-amb.hpp b/Rx/v2/src/rxcpp/operators/rx-amb.hpp index 595dc4dd66..973687b894 100644 --- a/Rx/v2/src/rxcpp/operators/rx-amb.hpp +++ b/Rx/v2/src/rxcpp/operators/rx-amb.hpp @@ -40,6 +40,7 @@ #define RXCPP_OPERATORS_RX_AMB_HPP #include "../rx-includes.hpp" +#include "./rx-publis...
2
2
1
[{"id": "G0", "claim": "Restore the original include structure: add the multicast and publish includes back in rx-operators.hpp (after the tag definitions, per the follow-up) and remove the includes of multicast/publish that were added to the operator headers; alternatively keep them in the always-included set for now....
null
ReactiveX__RxCpp__356
ReactiveX/RxCpp
356
defect
35a805ef522b061d0a89f524e99134d6360f05ca
5da488a09a36e7615cbcce8fe44bf11a1e6b8acc
Rewrite repeat operator to handle 0 case correctly and not rely on magic numbers
This rewrite addresses two isssues. 1. Rx operator repeat with 0 time argument should return an empty sequence. The reasons for that: * Rx API is designed based on traditional functional programming and the fact that Iterator/Observer patterns are functional duals. Repeat function with times argument in non-lazy la...
diff --git a/Rx/v2/src/rxcpp/operators/rx-repeat.hpp b/Rx/v2/src/rxcpp/operators/rx-repeat.hpp index dcbc16170c..c30224b54e 100644 --- a/Rx/v2/src/rxcpp/operators/rx-repeat.hpp +++ b/Rx/v2/src/rxcpp/operators/rx-repeat.hpp @@ -8,7 +8,7 @@ \tparam Count the type of the counter (optional). - \param t the nu...
2
2
1
[{"id": "G0", "claim": "Add a THEN clause to the repeat(0) test to check the subscription lifetime.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the repeat count is 0, the operator should call on_completed like empty() does instead of calling not...
null
ReactiveX__RxCpp__417
ReactiveX/RxCpp
417
defect
1b2e0589f19cb34d8cd58803677701dcf2161876
973d85b3f97567c41c176f4d1700f63851b2ff3e
Add rx-merge-delay-error operator
The operator and its test is copy-pasted and modified accordingly from `merge` It should behave the same way as JavaRx `mergeDelayError()` in the terms of semantics
diff --git a/Rx/v2/src/rxcpp/operators/rx-merge_delay_error.hpp b/Rx/v2/src/rxcpp/operators/rx-merge_delay_error.hpp new file mode 100644 index 0000000000..915b381509 --- /dev/null +++ b/Rx/v2/src/rxcpp/operators/rx-merge_delay_error.hpp @@ -0,0 +1,302 @@ +// Copyright (c) Microsoft Open Technologies, Inc. All rights r...
7
6
1
[{"id": "G0", "claim": "The on_error handlers of merge_delay_error (both the inner subscriber's and the source's) should add the error to the composite_exception and emit the composite_exception via out.on_error when the last stream terminates in an error, instead of forwarding the raw error.", "category": "correctness...
null
ReactiveX__RxCpp__485
ReactiveX/RxCpp
485
defect
aac2fc97bc5fe680446afb5ae81bef0a9c0fbf8a
77a5b21ac18d4e42a8402176a9b3baf583b7414e
operators: Add ref_count(other) operator overload.
The existing `connectable_observable.ref_count()` operator calls connect on the source when it's subscribed to. Generalize this by allowing an optional parameter `other`, i.e. `observable.ref_count(connectable_observable other)` to be used as the connect target. Useful for implementing diamond graphs while ret...
diff --git a/Rx/v2/examples/doxygen/publish.cpp b/Rx/v2/examples/doxygen/publish.cpp index d34e99171e..6c348a2271 100644 --- a/Rx/v2/examples/doxygen/publish.cpp +++ b/Rx/v2/examples/doxygen/publish.cpp @@ -3,6 +3,9 @@ #include "rxcpp/rx-test.hpp" #include "catch.hpp" +#include <atomic> +#include <array> + SCENARI...
1
1
0
[{"id": "G0", "claim": "The new publish/ref_count tests in Rx/v2/test/operators/publish.cpp should follow the normal test pattern, using the test scheduler and the on.next(time, value) utilities instead of plain subscriptions.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ReactiveX__RxGo__166
ReactiveX/RxGo
166
defect
60076660493b0de093ed471b527c294527528ce2
ace7406836e495898c4c9f963d4185748737a635
Issue #148 - Implement SequenceEqual operator
PR implements SequenceEqual operator requested in #148 It includes operator code, tests and example.
diff --git a/examples/sequence_equal/sequence_equal.go b/examples/sequence_equal/sequence_equal.go new file mode 100644 index 00000000..b3fc3c9d --- /dev/null +++ b/examples/sequence_equal/sequence_equal.go @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + + "github.com/reactivex/rxgo" + "github.com/reactivex/rxgo/h...
3
2
2
[{"id": "G0", "claim": "TestStartOperator in the existing suite relies on the ordering of two mock network requests separated by only a 5 ms delay, which may cause a race condition; the author asks whether the delay should be increased to reduce the probability of overlapping executions.", "category": "testing", "verdi...
null
ReactiveX__RxGo__169
ReactiveX/RxGo
169
defect
60076660493b0de093ed471b527c294527528ce2
6ef506a5ea0623f199b037185a4337138d68d177
use ring instead of slice to protect TakeLast
This changes use ring instead of slice to protect TakeLast. avoids malloc,uses less space and faster. The original code: BenchmarkObservableTakeLast-4 20000 89050 ns/op 14529 B/op 51 allocs/op After this change: BenchmarkObservableTakeLast-4 50000 39515 ns/op 324 B/op ...
diff --git a/observable.go b/observable.go index 7946d7df..a3bcb042 100644 --- a/observable.go +++ b/observable.go @@ -1,6 +1,7 @@ package rxgo import ( + "container/ring" "sync" "time" @@ -232,7 +233,7 @@ func (o *observable) ElementAt(index uint) Single { close(out) return } - takeCount += 1...
2
2
0
[{"id": "G0", "claim": "Remove the commented-out BenchmarkObservableTakeLast code block from observable_test.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In TakeLast, replace the forward r.Next() loop with r.Move calls using the backward m...
null
ReactiveX__RxGo__199
ReactiveX/RxGo
199
defect
d24857e518fc8bccf1a9e5b31220fbcb876612ef
ad987954668f50cb1b76a0b1addb2c52bfc1acd1
Sample operator
Hi, I've implemented Sample operator + tests. I've chosen the second variant described in the documentation (that is Observable as an argument), because it is more general and the operator can be used in a broader range.
diff --git a/connectableobservable.go b/connectableobservable.go index b86f5fd5..0905f582 100644 --- a/connectableobservable.go +++ b/connectableobservable.go @@ -194,6 +194,10 @@ func (c *connectableObservable) Repeat(count int64, frequency Duration) Observab return c.observable.Repeat(count, frequency) } +func (...
2
2
1
[{"id": "G0", "claim": "In the Sample operator, the observed-item flag should be cleared after an item is emitted so a sampler tick with no new source item re-emits nothing; otherwise the example that should print only one 1 keeps printing 1.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
ReactiveX__RxGo__22
ReactiveX/RxGo
22
defect
716e8b19da82f3f7dc6680c0ca41a1f18fd48873
6dacaddcba34a44e3ec8f98929b29b2381a3a6cc
Add Repeat operator
#19 first proposal of RX "repeat create operation", we should go in discussion.
diff --git a/observable/observable.go b/observable/observable.go index ad91cf9d..31b4eebf 100644 --- a/observable/observable.go +++ b/observable/observable.go @@ -239,6 +239,38 @@ func Interval(term chan struct{}, timeout time.Duration) Observable { return Observable(source) } +// Interval creates an Observable em...
2
2
0
[{"id": "G0", "claim": "The new test function names misspell 'Repeat' as 'Repeate' (an extra 'e') in observable/observable_test.go and should be corrected.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test name TestRepeateWith0TimesOperato...
null
ReactiveX__RxGo__300
ReactiveX/RxGo
300
defect
9bae7292339001df86bc226b9657ce0ad85b49e1
d22820a235b1b240a88270cefb054b2891160e24
SendContext fix
SendContext didn't check if context is done first. Instead, in case ctx is done and channel to send has a free buffer, it chose randomly either to return false or send value to the channel. Added a test that failed randomly on previous version of SendContext. Changes to be committed: modified: item.go modif...
diff --git a/item.go b/item.go index 5f47cd42..0def3973 100644 --- a/item.go +++ b/item.go @@ -98,10 +98,15 @@ func (i Item) SendBlocking(ch chan<- Item) { // It returns a boolean to indicate whether the item was sent. func (i Item) SendContext(ctx context.Context, ch chan<- Item) bool { select { - case <-ctx.Done(...
1
1
0
[{"id": "G0", "claim": "Reword the comment on the ctx.Done() case from 'context's done channel has a priority' to 'Context's done channel has the highest priority' so it says more precisely that the done channel takes priority over a ready send.", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
ReactiveX__RxGo__57
ReactiveX/RxGo
57
defect
23f38f99d1c3fadfb560f5f7ac2fce17b9ebc03d
3d938836c9054024f833f6d1a781fe1c95bae445
49 feature request flatmap
I've prepared flatMap operator, which is consistent with current implementation. Feature request issue: #49 Feature Request: FlatMap
diff --git a/.gitignore b/.gitignore index 6f957ffe..769728aa 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,7 @@ _testmain.go # Dep directories bower_components node_modules + +# IntelliJ +.idea +*.iml diff --git a/observable/flatmap.go b/observable/flatmap.go new file mode 100644 index 00000000..954c38fc --...
2
2
1
[{"id": "G0", "claim": "The replacement of the `sub.Error == nil` guard with a reflect-based nil check in Subscribe needs a test to justify the change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs a usage example under examples/...
null
ReactiveX__RxGo__75
ReactiveX/RxGo
75
defect
7018d983d7e382ede6ecadad0641b00d1da1bd17
517f9fb49b6bff5a1cd2c140a3fdbce77a723ee4
improve test coverage and fix on error behavior
I created this pull request to improve test coverage of `create` operator, I've added to ease example writing. Besides that I corrected behavior of onerror for create operator (onerror signals the terminal state) and the example. Thanks @avelino for your help.
diff --git a/examples/flatmap/flatmap_slice.go b/examples/flatmap/flatmap_slice.go index b5ef0bb3..76ea61d7 100644 --- a/examples/flatmap/flatmap_slice.go +++ b/examples/flatmap/flatmap_slice.go @@ -13,7 +13,7 @@ func main() { <-primeSequence. FlatMap(func(primes interface{}) observable.Observable { - return o...
1
1
0
[{"id": "G0", "claim": "Run gofmt on examples/flatmap/flatmap_slice_test.go so the imports are ordered with the standard library 'testing' import before the internal rxgo imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
ReactiveX__rxjs__4733
ReactiveX/rxjs
4,733
defect
c4f44b9ac0b19d7425dcf84e5b0446df09fa70c7
48a40c8dab4af779c7ceccbd319274c33bbf0157
docs(api): Mark aliased exports
#4582 This PR marks renamed exports in the docs app and removes duplicate pages. For example `flatMap` doc is now not a separate page and is also removed from https://rxjs.dev/api/operators. It's just mentioned on https://rxjs.dev/api/operators/mergeMap as an alias for `mergeMap`. @JWO719 At the end I didn't even ha...
diff --git a/docs_app/package.json b/docs_app/package.json index f70d5b9055..fb9dc04960 100644 --- a/docs_app/package.json +++ b/docs_app/package.json @@ -23,10 +23,10 @@ "test-pwa-score": "node scripts/test-pwa-score", "deploy-production": "scripts/deploy-to-firebase.sh", "payload-size": "scripts/payloa...
3
1
1
[{"id": "G0", "claim": "Building the docs on Windows fails with \"SyntaxError: missing ) after argument list\" when node runs the node_modules/.bin/dgeni shell script, so the reviewer asked whether something in the PR was missed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduce...
null
ReactiveX__rxjs__4872
ReactiveX/rxjs
4,872
defect
79b1b95046dd226d97ae2cd258a260cee93b6d06
52e2b5f6e5ae094b41b84ba47a42529e360dd262
test(docs): add visual testing using applitools
**Description:** Hi everyone, this PR adds visual regression testing using (Applitool)[https://applitools.com/] eyes. If you are unfamiliar with Visual Regression testing, here a list of references from Applitools to learn more about it. https://applitools.com/docs/topics/overview/overview-visual-testing.html http...
diff --git a/docs_app/tests/e2e/api.e2e-spec.ts b/docs_app/tests/e2e/api.e2e-spec.ts index 9ff6625eef3..dcd157da68a 100644 --- a/docs_app/tests/e2e/api.e2e-spec.ts +++ b/docs_app/tests/e2e/api.e2e-spec.ts @@ -1,6 +1,6 @@ import { ApiPage } from './api.po'; -describe('Api pages', function() { +xdescribe('Api pages', ...
3
2
1
[{"id": "G0", "claim": "The eyes.selenium package required by the new visual-testing spec is not added to the dependency list in package.json.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Running npm run e2e fails locally with an unhandled 'error'...
null
ReagentX__imessage-exporter__703
ReagentX/imessage-exporter
703
defect
3bab21c9ddf54632135ff1ab4616114c0aa49871
6b3d6a12f915ceb380ec4b2a4e018f12ab659734
Refactor message body parsing logic
- Refactor message body parsing logic to use `parse_body()` and `apply_body()` methods
diff --git a/imessage-database/README.md b/imessage-database/README.md index 0f0f4b81..e5a39790 100644 --- a/imessage-database/README.md +++ b/imessage-database/README.md @@ -31,7 +31,9 @@ fn iter_messages() -> Result<(), TableError> { match message_result { Ok(mut message) => { /...
7
4
2
[{"id": "G0", "claim": "Tests should unwrap or propagate the parse_body() result instead of silently ignoring errors with `if let Ok(body)`, so a parsing failure surfaces the underlying MessageError instead of a confusing assertion mismatch.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i...
null
ReamLabs__ream__1090
ReamLabs/ream
1,090
defect
30ce004988cc785d3f4665dd21c6ddbe1f57ba67
b7e6bb86c3649c3159b899c8d9269b5cd1efb0b9
feat: implements caching for block and state
### What was wrong? Closes #580 ### How was it fixed? We add caching for beacon and lean block and state. ### To-Do <!-- Stay ahead of things, add list items here! --> - [x] I have read [CONTRIBUTING.md](https://github.com/ReamLabs/ream/blob/master/CONTRIBUTING.md). - [x] This PR title follows [conventional comm...
diff --git a/bin/ream/src/main.rs b/bin/ream/src/main.rs index 22e72f79c..175e75380 100644 --- a/bin/ream/src/main.rs +++ b/bin/ream/src/main.rs @@ -190,9 +190,11 @@ pub async fn run_lean_node(config: LeanNodeConfig, executor: ReamExecutor, ream_ set_lean_network_spec(Arc::new(network)); // Initialize the l...
3
3
1
[{"id": "G0", "claim": "Use the B256 alias instead of FixedBytes<32> for the cache key type in the new block/state cache fields.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Beacon and lean should have different CachedDB structs rather than on...
null
ReamLabs__ream__1215
ReamLabs/ream
1,215
defect
a34521e774a1e32165e95f26cda500e3cb580280
1d195d9d2db89241b5da01cefdd559ee537e6792
test: add SSZ test vectors
### What was wrong? Implement https://github.com/leanEthereum/leanSpec/pull/380 - Removed `TreeHash` derive from `SignedAttestation` because it's not used and it's in turn requiring `Signature` to implement `TreeHash` as well which requires custom logic but also not used. - Change `Signature::inner` from `FixedB...
diff --git a/Cargo.lock b/Cargo.lock index dee117167..68be17ab2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3660,6 +3660,7 @@ version = "0.1.0" dependencies = [ "alloy-primitives", "anyhow", + "ethereum_ssz", "ream-consensus-lean", "ream-consensus-misc", "ream-fork-choice-lean", diff --git a/crates/common/c...
6
4
1
[{"id": "G0", "claim": "The interim FixedBytes representation should be dropped and the Signature wrapper should store leansig's signature type (LeanSigSignature) directly.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "LeanSigSignature may not encode to...
null
ReamLabs__ream__1291
ReamLabs/ream
1,291
defect
58eb4e45edba5b9d5ffebee1170781c1b9557ef0
d7bdff62d10edd80001266b664f6a9bc7c574278
test: re-add SSZ test vectors
### What was wrong? Re-adding ssz test vectors after the https://github.com/leanEthereum/leanSpec/pull/435 fix in leanSpec. The vectors should now pass without any signature change in ream (pqinterop decided to update leanSpec to the format all clients are already using). ### How was it fixed? Almost the same ...
diff --git a/Cargo.lock b/Cargo.lock index 451da29bd..853054665 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3628,6 +3628,8 @@ version = "0.1.0" dependencies = [ "alloy-primitives", "anyhow", + "ethereum_ssz", + "ethereum_ssz_derive", "ream-consensus-lean", "ream-consensus-misc", "ream-fork-choice-lean", dif...
4
4
0
[{"id": "G0", "claim": "The 52-byte pubkey length check should use ensure! instead of an if/return Err block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Errors should not be blindly mapped to anyhow without context; map_err should produce a ...
null
ReamLabs__ream__166
ReamLabs/ream
166
defect
67bbdd6e803216b01248adeb5cc63408fbc71d7b
e122e845c00e3157752e0913ba1d500724cef368
feat: implement testing for process_justification_and_finalization()
Fixed out of spec beacon function and implemented test for process_justification_and_finalization() Problem: weigh_justification_and_finalization() bits where incorrectly shifted Issue: https://github.com/ReamLabs/ream/issues/160
diff --git a/crates/common/consensus/src/deneb/beacon_state.rs b/crates/common/consensus/src/deneb/beacon_state.rs index 2b81c5447..079a10ac2 100644 --- a/crates/common/consensus/src/deneb/beacon_state.rs +++ b/crates/common/consensus/src/deneb/beacon_state.rs @@ -1195,6 +1195,7 @@ impl BeaconState { if self.g...
1
1
0
[{"id": "G0", "claim": "The loop over `(1..JUSTIFICATION_BITS_LENGTH).rev()` yields u64 and forces duplicated `as usize` casts inside the loop; refactor so the casts are unnecessary, e.g. by changing JUSTIFICATION_BITS_LENGTH from a u64 const to usize (as it is only used here) or by mapping the reversed range to usize....
null
ReamLabs__ream__168
ReamLabs/ream
168
defect
c95e51ff4a89a4251c73e3124ca1d6916ca172d4
eb11fd044c2f2dc9c96789e288df75a99ff1b7a8
feat: Implemented sanity_blocks macro and testing for state_transition()
Implemented sanity_blocks macro and testing for state_transition() Spec: https://github.com/ethereum/consensus-specs/blob/8fa1aaae5eaca6d9bdcea99658e834963557c20d/tests/formats/sanity/blocks.md
diff --git a/crates/common/consensus/src/execution_engine/mock_engine.rs b/crates/common/consensus/src/execution_engine/mock_engine.rs index 49c5287e6..540c34bdb 100644 --- a/crates/common/consensus/src/execution_engine/mock_engine.rs +++ b/crates/common/consensus/src/execution_engine/mock_engine.rs @@ -7,7 +7,7 @@ use...
9
9
1
[{"id": "G0", "claim": "The MockExecutionEngine construction should be moved before the entry for loop so it is not reinitialized on every case iteration.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The else branch printing \"Found test asset\" a...
null
ReamLabs__ream__722
ReamLabs/ream
722
defect
61bcb8288fe5eb8bfb45f9932b1c7e1f11119f04
7cceba0ffbfbccbf9845311ae75fd479cfc33e46
test: added more test for validate_beacon_block
### What was wrong? Test to cover different cases for validate_beacon_block function was needed #635 ### How was it fixed? Added more tests to check other cases - [x] Test future slot block - [x] Test block is not from future slot - [x] Test validator not found - [x] Testing duplicate proposer signature ...
diff --git a/Cargo.lock b/Cargo.lock index 31ed09fd4..bce7cff49 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2600,6 +2600,7 @@ dependencies = [ "ream-storage", "serde", "serde_json", + "serial_test", "snap", "tokio", ] @@ -6329,6 +6330,15 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang...
3
2
1
[{"id": "G0", "claim": "The Makefile change that runs ream-network-manager tests separately with --test-threads=1, together with the serial_test crate added for it, is an unjustified leftover — there is no race condition — and should be removed from the PR.", "category": "design", "verdict": "supported", "priority": "P...
null
RediSearch__JRediSearch__106
RediSearch/JRediSearch
106
defect
fcb2c3298a1bbe23b60c1db328410dbac0ccbd03
6025653f7cef3334e49715fc6fd4de8d10ecfa50
Schema.toString() for better experience issue #105
fix #105
diff --git a/src/main/java/io/redisearch/Schema.java b/src/main/java/io/redisearch/Schema.java index 9a2e6f4..789b4aa 100644 --- a/src/main/java/io/redisearch/Schema.java +++ b/src/main/java/io/redisearch/Schema.java @@ -47,6 +47,11 @@ public void serializeRedisArgs(List<String> args) { args.add("NOIND...
1
1
0
[{"id": "G0", "claim": "Avoid unnecessary string concatenation of adjacent literals in the new toString() methods, e.g. writing \"Field{name='\" instead of \"Field{\" + \"name='\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
RediSearch__JRediSearch__150
RediSearch/JRediSearch
150
defect
1ab1dcb886481993d0b7454e21425f85d199c952
313650761f47e7414563da858d901057b81911fa
Support AS option
Support AS option for CREATE, SEARCH and AGGREGATE commands Reference #143
diff --git a/pom.xml b/pom.xml index 67e9468..9000bbe 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,12 @@ <artifactId>json</artifactId> <version>20210307</version> </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-slf4j-impl</artifactId> + <version>2.13.3...
7
2
0
[{"id": "G0", "claim": "FieldName should expose a fluent alias-setting method so `FieldName.of(\"first\").as(\"given\")` can be used instead of the two-argument constructor.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Delete the dead commented-out `.s...
null
RediSearch__RediSearch__6834
RediSearch/RediSearch
6,834
defect
c2731a16ca69876c32e3139b363afdd273dd44e9
f2b24773f7ab1cdee32b4324e413e14823caf770
[MOD-11407] Lower cross-language performance penalty for `RSIndexResult`
## Describe the changes in the pull request Fix the performance regression caused by https://github.com/RediSearch/RediSearch/pull/6492. In particular, avoid redundant checks across languages and minimize C->Rust FFI hops. #### Mark if applicable - [ ] This PR introduces API changes - [ ] This PR introduces ...
diff --git a/src/ext/default.c b/src/ext/default.c index 23f712874cb..266b09a254e 100644 --- a/src/ext/default.c +++ b/src/ext/default.c @@ -61,32 +61,24 @@ static double tfidfRecursive(const RSIndexResult *r, const RSDocumentMetadata *d if (r->data.tag & (RSResultData_Intersection | RSResultData_Union | RSResultDat...
4
3
0
[{"id": "G0", "claim": "The include added in src/index_result.c should use the shorter path `#include \"types_rs.h\"` instead of `#include \"redisearch_rs/headers/types_rs.h\"`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Questions whether th...
null
RediSearch__RediSearch__7723
RediSearch/RediSearch
7,723
defect
e7312a89463d4e9cd4e4487c7d31f433c09c78d1
d400e224efb2cd2e4987b6763663c9af3b084077
[2.10] [MOD-12694] [MOD-12069] Add active_coord_threads metric
backport #7546 to 2.10 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds `active_coord_threads` to multi-threading stats, sourced from the coordinator thread pool and exposed in `INFO MODULES`. > > - **Stats/Info**: > - Add `active_coord_threads` to `MultiThreadingStats` and populate it in `GlobalStats_GetMultiThrea...
diff --git a/src/concurrent_ctx.c b/src/concurrent_ctx.c index 9e2928e9eb5..577775851b3 100644 --- a/src/concurrent_ctx.c +++ b/src/concurrent_ctx.c @@ -52,6 +52,14 @@ void ConcurrentSearch_ThreadPoolRun(void (*func)(void *), void *arg, int type) { redisearch_thpool_add_work(p, func, arg, THPOOL_PRIORITY_HIGH); } ...
1
1
1
[{"id": "G0", "claim": "The unconditional call to ConcurrentSearchPool_WorkingThreadCount() can crash with an assertion failure or null pointer dereference in standalone (non-coordinator) deployments where threadpools_g is NULL, and needs a guard like the #ifdef MT_BUILD around active_worker_threads.", "category": "cor...
null