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
xtermjs__xterm.js__3702
xtermjs/xterm.js
3,702
defect
dddde8ec2310e48db60882d745b525d70f775942
21e1c5ef584737a5a27d517fbd41a5f1f2df270a
refresh overviewRuler canvas dimensions on refresh of rows
fixes https://github.com/microsoft/vscode/issues/145214
diff --git a/src/browser/Decorations/OverviewRulerRenderer.ts b/src/browser/Decorations/OverviewRulerRenderer.ts index 9cdf99caf5..8c63f5e310 100644 --- a/src/browser/Decorations/OverviewRulerRenderer.ts +++ b/src/browser/Decorations/OverviewRulerRenderer.ts @@ -49,7 +49,7 @@ export class OverviewRulerRenderer extends ...
3
3
1
[{"id": "G0", "claim": "Calling refreshCanvasDimensions from Terminal.refresh is equivalent to listening to onRenderedBufferChange inside OverviewRulerRenderer; instead expose a new onRender event on RenderService alongside onRenderedBufferChange and let the renderer listen to it.", "category": "design", "verdict": "su...
null
xtermjs__xterm.js__3811
xtermjs/xterm.js
3,811
defect
2fa125904a5677c42d8676900dc9a3a858179fa7
68952151c17f70ddac7da6af73655d341410950c
update search results `onBufferContentsChange`
fixes #3794
diff --git a/addons/xterm-addon-search/src/SearchAddon.ts b/addons/xterm-addon-search/src/SearchAddon.ts index 1eb126e5c4..b870981698 100644 --- a/addons/xterm-addon-search/src/SearchAddon.ts +++ b/addons/xterm-addon-search/src/SearchAddon.ts @@ -498,7 +498,10 @@ export class SearchAddon implements ITerminalAddon { ...
2
2
1
[{"id": "G0", "claim": "The added empty-string cache re-check (`cache[0] === ''`) will end up causing a lot of re-checking of empty rows.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The root of the issue is that the search refresh listens to the ...
null
xtermjs__xterm.js__3815
xtermjs/xterm.js
3,815
defect
3d541dd323929ff2d0aaf40636e9e38de4804662
ebe55e5b5f5453203478cf51db9a083721d59ce6
Add #rgba format
Fixes #3814
diff --git a/src/common/Color.ts b/src/common/Color.ts index a2a3cbad00..590304c913 100644 --- a/src/common/Color.ts +++ b/src/common/Color.ts @@ -95,6 +95,16 @@ export namespace color { export namespace css { export function toColor(css: string): IColor { switch (css.length) { + case 5: // #rgba + ...
1
1
1
[{"id": "G0", "claim": "The reviewer sees errors in the #rgba parsing that need to be fixed up (the digit-doubling parsing he actually meant, whose errors he then corrected and merged).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xtermjs__xterm.js__4093
xtermjs/xterm.js
4,093
defect
3acf08bc0c70b2e60510ed75bbee19290581f407
ef1b773fd706c7ba11fd2446533c6f42ccc96057
SGR-pixels mouse report
Closes #4092. TODO: - [x] fix cell to pixel offsets translation - [x] ~fix bounding box offsets (seems chrome reports mouse events slightly off the real box?)~ silly one: system actually draws pointer arrow slightly off - [x] API mouse tests - [x] vt feature docs
diff --git a/bin/test_mousemodes.js b/bin/test_mousemodes.js index 6a547ab1fd..0f12d208b9 100644 --- a/bin/test_mousemodes.js +++ b/bin/test_mousemodes.js @@ -4,7 +4,7 @@ * * Script to test different mouse modes in terminal emulators. * Tests for protocols DECSET 9, 1000, 1002, 1003 with different - * report enc...
1
1
1
[{"id": "G0", "claim": "The CSI t window/cell size pixel reports in Terminal.ts should use the scaled (device-pixel) render dimensions instead of the unscaled css-pixel ones, since scaled represents device pixels rather than css pixels.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
xtermjs__xterm.js__4618
xtermjs/xterm.js
4,618
defect
17b8247c3dc33c457e950da9f67ad137a74de069
79c1fff8531c887a877e58a872563505701f0cb6
Add IntRange type for ColorIndex
Fixes #4614
diff --git a/src/browser/Terminal.ts b/src/browser/Terminal.ts index fe19f9546e..f59570764a 100644 --- a/src/browser/Terminal.ts +++ b/src/browser/Terminal.ts @@ -35,7 +35,7 @@ import * as Strings from 'browser/LocalizableStrings'; import { AccessibilityManager } from './AccessibilityManager'; import { ITheme, IMarke...
3
3
2
[{"id": "G0", "claim": "The color-index guard should test for 0..255 instead of 0..258, and the sub-range may deserve a clearer name.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be clearer to limit ColorIndex to 0..255 and merge the fg/b...
null
xtermjs__xterm.js__4657
xtermjs/xterm.js
4,657
defect
4f41070b45cf73efd0c9a80f88491b7a2fc55342
482dad3036e35d39f6a1a6d3765ab03005b5a31f
Add cursorInactiveStyle option
fix #4566
diff --git a/addons/xterm-addon-canvas/src/CursorRenderLayer.ts b/addons/xterm-addon-canvas/src/CursorRenderLayer.ts index 19b07b5f5c..b35cdbbc7f 100644 --- a/addons/xterm-addon-canvas/src/CursorRenderLayer.ts +++ b/addons/xterm-addon-canvas/src/CursorRenderLayer.ts @@ -150,7 +150,14 @@ export class CursorRenderLayer e...
2
2
0
[{"id": "G0", "claim": "The demo's cursorInactiveStyle string options should copy cursorStyle's list, adding 'block' and using 'bar' instead of 'line' to align naming.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Special inactive-cursor CSS classes for...
null
xtermjs__xterm.js__4673
xtermjs/xterm.js
4,673
defect
6c9346011d156c7c5aafdf67b85d6dc547f6803b
39ae0f45fdee2195382e36db0f32cbeb7c747679
DOM: Render selection color instead of cell bg
Summary: - Selection cell reuse has been added to the DOM renderer - Selection bg override is now correctly set correctly - Selection elements 'pretend' to be a decoration in order to render bg Fixes #4097 ![image](https://github.com/xtermjs/xterm.js/assets/2193314/5ee12bbe-3551-49f2-b89a-8fbb19a6d38d) ![im...
diff --git a/src/browser/TestUtils.test.ts b/src/browser/TestUtils.test.ts index 2015d04637..5981a6b51f 100644 --- a/src/browser/TestUtils.test.ts +++ b/src/browser/TestUtils.test.ts @@ -529,6 +529,8 @@ export class MockThemeService implements IThemeService{ css.toColor('#ad7fa8'), css.toColor('#34e2e2'),...
2
2
0
[{"id": "G0", "claim": "The rewritten cell-merging condition block looks quite complicated and may be simplifiable (the reviewer also asks which selection state it covers that the old conditions did not).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
xtermjs__xterm.js__4703
xtermjs/xterm.js
4,703
defect
6f0a5c9f0c1ad3e25ae3cf62f758ac99695a7210
c81dfee43c718f86155fd44444eca6b86c40be1b
Use variants for underline dotted.
fix #4349
diff --git a/addons/xterm-addon-canvas/src/BaseRenderLayer.ts b/addons/xterm-addon-canvas/src/BaseRenderLayer.ts index ff29bbf1b4..91d55353eb 100644 --- a/addons/xterm-addon-canvas/src/BaseRenderLayer.ts +++ b/addons/xterm-addon-canvas/src/BaseRenderLayer.ts @@ -12,7 +12,7 @@ import { createSelectionRenderModel } from ...
4
4
0
[{"id": "G0", "claim": "The FiveKeyMap class added by this pull request in MultiKeyMap.ts is not needed and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variantOffset calculation and its packing into the cell's ext flags sh...
null
xtermjs__xterm.js__4953
xtermjs/xterm.js
4,953
defect
8e015ebf872001352c8f382364f6d58048b7800b
f1e563ad5ffe732a9709432101fec212faca8f48
Expose API method for writing to application side (#4948)
This PR adds an input method which takes data as the parameter as described in the issue. If there are any issues, you can point it out and I'll fix it. (Sorry if there's an issue, I am a beginner.) Fixes #4948.
diff --git a/src/browser/Terminal.ts b/src/browser/Terminal.ts index 0e945aa92b..6e06855a8a 100644 --- a/src/browser/Terminal.ts +++ b/src/browser/Terminal.ts @@ -1191,6 +1191,15 @@ export class Terminal extends CoreTerminal implements ITerminal { return false; } + + /** + * Input data to application s...
6
6
6
[{"id": "G0", "claim": "The input method should be moved to CoreTerminal (in common/CoreTerminal.ts) so the headless version also benefits from it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The wasUserInput flag of triggerDataEvent should be exposed...
null
xtermjs__xterm.js__5003
xtermjs/xterm.js
5,003
defect
b7b9d2762766a720fa7f148c91bec139af07ec45
b40e58bc7709c0d36122c2d78eece11c603b81ef
Support semi-colons in OSC 8 hyperlink URIs
Original code performed a simple `data.split(';')` which split on every ";" in the string. This new version treats the first ";" as the only split character, ensuring that params are properly separated from the URI.
diff --git a/src/common/InputHandler.ts b/src/common/InputHandler.ts index a4b8c64b02..3482abc7d1 100644 --- a/src/common/InputHandler.ts +++ b/src/common/InputHandler.ts @@ -2972,7 +2972,7 @@ export class InputHandler extends Disposable implements IInputHandler { * feedback. Use `OSC 8 ; ; BEL` to finish the curre...
3
3
1
[{"id": "G0", "claim": "The regexp used to split the OSC 8 arguments in setHyperlink is over-engineered and much slower than needed; replace it with a simple indexOf(';')-based approach.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OSC 8 hyperlink ...
null
xtermjs__xterm.js__5224
xtermjs/xterm.js
5,224
defect
41e8ae395937011d6bf6c7cb618b851791aed395
9aba07f8f83bac4173a0e9de54da97d4b3592629
putty-style ED2 sequence handling as terminal option
This PR is related to the problem discussed in https://github.com/xtermjs/xterm.js/issues/1727. goals: - Allow xterm.js based applications to change CSI 2 J sequence behaviour to non-canon, which is sometimes preferred by users. - Keep canon handling of CSI 2 J (clear whole screen) as default. - Alternative han...
diff --git a/src/common/InputHandler.test.ts b/src/common/InputHandler.test.ts index baae735c94..c2198b8281 100644 --- a/src/common/InputHandler.test.ts +++ b/src/common/InputHandler.test.ts @@ -438,6 +438,37 @@ describe('InputHandler', () => { inputHandler.eraseInLine(Params.fromArray([2])); assert.equal...
3
3
1
[{"id": "G0", "claim": "The blank-line detection in the ED2 handler should use BufferLine.getTrimmedLength() instead of comparing against a freshly created blank line, and the suggested rewrite also moves the markRangeDirty call before the scan.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
xtermjs__xterm.js__5334
xtermjs/xterm.js
5,334
defect
e9c547c1c6b67e9f09c24ccc007e19305f536e60
08de2e91d8eb5c14b41b65cbb1dac4401b240670
Support shadow dom in webgl renderer
Similar to what has been done in https://github.com/xtermjs/xterm.js/pull/3239, but for the webgl renderer fix #5338
diff --git a/addons/addon-webgl/src/WebglRenderer.ts b/addons/addon-webgl/src/WebglRenderer.ts index 576cdad510..e3a2d0c61f 100644 --- a/addons/addon-webgl/src/WebglRenderer.ts +++ b/addons/addon-webgl/src/WebglRenderer.ts @@ -139,7 +139,7 @@ export class WebglRenderer extends Disposable implements IRenderer { [...
6
5
0
[{"id": "G0", "claim": "The shadow-dom test helper would read better as a named `setupTests` taking an options object, since `run(false)` at the call sites is not understandable without following the symbol.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
xtermjs__xterm.js__5385
xtermjs/xterm.js
5,385
defect
4c0cf27cfc0205df624452f9657a4acaa3276a19
b53096f4a29dc11925079ef4149c4ff0b77b32bb
Fix terminal find when wrapped
Resolves: https://github.com/microsoft/vscode/issues/253544
diff --git a/addons/addon-search/src/SearchAddon.ts b/addons/addon-search/src/SearchAddon.ts index 03a4261912..8395e4373c 100644 --- a/addons/addon-search/src/SearchAddon.ts +++ b/addons/addon-search/src/SearchAddon.ts @@ -72,6 +72,7 @@ export class SearchAddon extends Disposable implements ITerminalAddon , ISearchA ...
2
1
1
[{"id": "G0", "claim": "It is not clear what issue the change fixes or how it fixes it; the author should explain the rationale.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering the wrapped-line case, i.e. that the reported resul...
null
xtermjs__xterm.js__5390
xtermjs/xterm.js
5,390
defect
4c0cf27cfc0205df624452f9657a4acaa3276a19
675b2c3a70844d4a2a655a6e54a38125000498cc
Fix scrollbar teleport after exiting alt buffer
This resolves the first issue (teleport issue) from: https://github.com/microsoft/vscode/issues/224750#issuecomment-3221966394
diff --git a/src/common/TestUtils.test.ts b/src/common/TestUtils.test.ts index 127e1f24b8..041481b536 100644 --- a/src/common/TestUtils.test.ts +++ b/src/common/TestUtils.test.ts @@ -18,8 +18,10 @@ export class MockBufferService implements IBufferService { public serviceBrand: any; public get buffer(): IBuffer { ...
2
2
1
[{"id": "G0", "claim": "Instead of firing a new public event, BufferService could listen on onBufferActivate and fire onScroll, avoiding an explicit syncScrollPosition call from activateNormalBuffer.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
xtermjs__xterm.js__5453
xtermjs/xterm.js
5,453
defect
46c510a76d76d246ad015130a7f2d52e1f4629e1
7228e2e2dc72f01cc44f8dbd453cdd2d54414012
Add synchronized output support (DEC mode 2026)
## Summary Implements synchronized output mode (DEC private mode 2026) as specified in the [VT extension](https://github.com/contour-terminal/vt-extensions/blob/master/synchronized-output.md). - **BSU** (`CSI ? 2026 h`) - Begin Synchronized Update: defers rendering - **ESU** (`CSI ? 2026 l`) - End Synchronized U...
diff --git a/src/browser/public/Terminal.ts b/src/browser/public/Terminal.ts index 3b4309437f..f6ec55d24f 100644 --- a/src/browser/public/Terminal.ts +++ b/src/browser/public/Terminal.ts @@ -123,6 +123,7 @@ export class Terminal extends Disposable implements ITerminalApi { originMode: m.origin, reverseWra...
10
9
2
[{"id": "G0", "claim": "Remove the stray extra blank line added above the RenderService class declaration.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The DEC 2026 mode comments should link to the contour-terminal vt-extensions synchronized-o...
null
xtermjs__xterm.js__5682
xtermjs/xterm.js
5,682
defect
452ee50c81e3f335ada6ad97b8a0cd2f0c804729
2843d4a43055bf1558618e5dbd23cde9c44fd4e8
Add attributesEqual and underline diff APIs
Fixes #3440
diff --git a/addons/addon-serialize/src/SerializeAddon.test.ts b/addons/addon-serialize/src/SerializeAddon.test.ts index 6e8c2ad457..4f4fd54616 100644 --- a/addons/addon-serialize/src/SerializeAddon.test.ts +++ b/addons/addon-serialize/src/SerializeAddon.test.ts @@ -116,7 +116,7 @@ describe('SerializeAddon', () => { ...
1
1
0
[{"id": "G0", "claim": "In CellData.attributesEquals the cast of `other` to `IAttributeData` to reach the underline getters is now unnecessary and reduces type safety; call the underline methods directly on `other` and drop the cast/import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
xtermjs__xterm.js__5698
xtermjs/xterm.js
5,698
defect
fd1e53c63ffbbf086fa4772e9cb1d773e4ad4cf9
beeebca1a4aa545f3460718cae41c5cdb1468eae
Fix IME input when composing in the middle of the textarea
Fixes #5456 When `screenReaderMode` is enabled, moving the caret inside existing text and then committing IME input can cause stale trailing text from the textarea's previous state to be re-sent. This PR fixes composition range tracking in two places: - At `compositionstart`, it uses `textarea.selectionStart/s...
diff --git a/src/browser/input/CompositionHelper.test.ts b/src/browser/input/CompositionHelper.test.ts index e29111e18b..94b5841afd 100644 --- a/src/browser/input/CompositionHelper.test.ts +++ b/src/browser/input/CompositionHelper.test.ts @@ -233,5 +233,31 @@ describe('CompositionHelper', () => { }, 0); ...
1
1
0
[{"id": "G0", "claim": "A comment should be added above the selectionStart/selectionEnd lines in compositionstart() explaining that the selection is used instead of textarea length to avoid conflicts with screen reader mode.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced...
null
xwiki__xwiki-commons__109
xwiki/xwiki-commons
109
defect
96ebff837056325ad8ee31e370d0c34970a8db32
cbb344d293c38e186949fbab1a457f6ed6a4d820
XCOMMONS-2042: Add a method in URLTool to convert a string in an URL object
The method should return an URL object from a given string if the string is right formatted, otherwise null.
diff --git a/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/URLTool.java b/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/URLTool.java index dbbb6644b7..4ce4a18350 100644 --- a/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/...
4
4
1
[{"id": "G0", "claim": "The javadoc of the newly added public method is missing a @since version tag.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the valid-URL test the assertEquals arguments are in the wrong order, with the actual value pas...
null
xwiki__xwiki-commons__1234
xwiki/xwiki-commons
1,234
defect
6a007965093dc08ddf18cd3582dc645c27a62a4c
a9ab0fe6391778cdd6a21bbb8f9500ee5df72bdb
XCOMMONS-3258: Introduce a cache for ServletEnvironment#getResource
# Jira URL <!-- Add the link to the corresponding JIRA issue referenced in a commit message. Unless this is a [Misc] commit, see https://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HRule:Don27tcreateunnecessaryissues --> https://jira.xwiki.org/browse/XCOMMONS-3258 # Changes ## Description ...
diff --git a/xwiki-commons-core/xwiki-commons-environment/xwiki-commons-environment-servlet/pom.xml b/xwiki-commons-core/xwiki-commons-environment/xwiki-commons-environment-servlet/pom.xml index 244aa79de1..acad85a1cd 100644 --- a/xwiki-commons-core/xwiki-commons-environment/xwiki-commons-environment-servlet/pom.xml ++...
1
1
0
[{"id": "G0", "claim": "The default maximum size of 1000 entries for the resource URL cache is too low and should be raised (to 10k).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xwiki__xwiki-commons__1262
xwiki/xwiki-commons
1,262
defect
3c8cdfdf9615f1f843ee8fa618327e290c45ae1c
6fde30fcaa8f731a06c902d5de7fbde5e1e65f19
XCOMMONS-2738: Introduce the notion of mandatory property feature
# Jira URL <!-- Add the link to the corresponding JIRA issue referenced in a commit message. Unless this is a [Misc] commit, see https://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HRule:Don27tcreateunnecessaryissues --> https://jira.xwiki.org/browse/XCOMMONS-2738 # Changes ## Description ...
diff --git a/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyFeatureMandatoryException.java b/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyFeatureMandatoryException.java new file mode 100644 index 0000000000..5ffc856d8d --- /dev/null +++ b...
8
7
2
[{"id": "G0", "claim": "PropertyFeatureMandatoryException is missing the @Unstable annotation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A dedicated exception for a missing mandatory feature is questionable — using PropertyException directly ...
null
xwiki__xwiki-commons__1325
xwiki/xwiki-commons
1,325
defect
a73aa5edecc15cfd615755a3e8e3f30f7cea590b
92bd6d3362ee651e784134c188ec7d14a961912a
XCOMMONS-3327: Provide an internal helper to safely access ClassLoader resources
# Changes ## Description <!-- Describe the main changes brought in this PR. --> The goal of this pull request is to provide an internal helpers that prevent traversal attacks when accessing resources from the classloader. # Executed Tests The pull request comes with unit tests. # Expected merging stra...
diff --git a/xwiki-commons-core/xwiki-commons-classloader/xwiki-commons-classloader-api/pom.xml b/xwiki-commons-core/xwiki-commons-classloader/xwiki-commons-classloader-api/pom.xml index b71ff34798..c3dccf23cf 100644 --- a/xwiki-commons-core/xwiki-commons-classloader/xwiki-commons-classloader-api/pom.xml +++ b/xwiki-co...
3
3
1
[{"id": "G0", "claim": "The new test's URL fields (prefixedResouceURL and inputStream twins) are never initialized in beforeEach, so the mocked stubs return null; also fix the Resouce->Resource typo in the field name.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
xwiki__xwiki-commons__148
xwiki/xwiki-commons
148
defect
8fa51709db2004a5a9e7db02806d9e84abedc11d
1672671b4848f637eed485c00d400cad0e477d77
XCOMMONS-2272: ERROR: 'Length limit reached'
add custom error listener to overwrite the default error listener which fills the standard output with expected error messages I did not write unit tests for this, thus the slightly lower coverage. I feel it to be relatively hard to write a unit test to check this and also e.g. the `warning` method on the error lis...
diff --git a/xwiki-commons-core/xwiki-commons-xml/pom.xml b/xwiki-commons-core/xwiki-commons-xml/pom.xml index 4550047a67..a93a69abd8 100644 --- a/xwiki-commons-core/xwiki-commons-xml/pom.xml +++ b/xwiki-commons-core/xwiki-commons-xml/pom.xml @@ -32,7 +32,7 @@ <packaging>jar</packaging> <description>XWiki Commons...
8
6
1
[{"id": "G0", "claim": "The fatalError logging conflicts with the logging best practice that a full stack trace is logged only for errors, so either it is a warning or an error and one must be chosen.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cl...
null
xwiki__xwiki-commons__157
xwiki/xwiki-commons
157
defect
bbbc621754cee39e2e69cafa25731a845e6820cf
df4b0a91a26f4aac6290d01d9bfc089d75ece074
XCOMMONS-901: Support both XHTML 1.0 and XHTML 5 in HtmlCleaner
* Add a new HTML_VERSION parameter to HTMLCleanerConfiguration. * Pass the HTML version in DefaultHTMLCleaner to HTMLCleaner and set the document type accordingly. * Add a tag transformation to transform `<tt>` to `<span class="monospace">`. * Add a tag transformation to replace the font filter in HTML5 as the clean...
diff --git a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLCleanerConfiguration.java b/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLCleanerConfiguration.java index 34addd60a0..5d43a81689 100644 --- a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xm...
6
2
1
[{"id": "G0", "claim": "Consider using JUnit 5 parameterized tests (@MethodSource) so the same test methods can be reused and executed with both HTML configurations, instead of duplicating them in an HTML5 subclass.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
xwiki__xwiki-commons__1675
xwiki/xwiki-commons
1,675
defect
e00d79a92f954c613e9a824e7900dd819bebaa68
620e1092428b24f762c69eb3f445298f558b9192
XCOMMONS-3594: Make a lot easier to protect against resource path traversal
# Jira URL https://jira.xwiki.org/browse/XCOMMONS-3594 # Changes ## Description <!-- Describe the main changes brought in this PR. --> The general idea is to provide as part of the Environment API the tools to properly protect against path traversal attacks. Right now, every code which manipulate resourc...
diff --git a/xwiki-commons-core/xwiki-commons-environment/xwiki-commons-environment-api/src/main/java/org/xwiki/environment/Environment.java b/xwiki-commons-core/xwiki-commons-environment/xwiki-commons-environment-api/src/main/java/org/xwiki/environment/Environment.java index 571bebccaa..f9c74d127b 100644 --- a/xwiki-c...
7
5
0
[{"id": "G0", "claim": "Resource names containing % should always be rejected regardless of the application server's URL-decoding behavior, since supporting them (via double-encoding) seems wrong, though the reviewer defers to the author on this.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": ...
null
xwiki__xwiki-commons__19
xwiki/xwiki-commons
19
defect
e6ca1571c995e0439f95c9f7eaa176b4f5cf5dfb
c06754b3b312103771eba67f5c130a6720fb83c2
[misc] updated Checkstyle version from 8.0 to 8.1 and tests in xwiki-common-tool-verification-resources to remove BaseCheckTestSupport and extend AbstractModuleTestSupport
This PR is being created because of the newer version of Checkstyle that was released -> `8.1` and also that `BaseCheckTestSupport` is now deprecated and will be removed in https://github.com/checkstyle/checkstyle/issues/4867 and by the time Checkstyle version `8.2` is released it will be removed. All those tests th...
diff --git a/pom.xml b/pom.xml index 45afdd8264..95b694cb3a 100644 --- a/pom.xml +++ b/pom.xml @@ -91,7 +91,7 @@ <izpack.version>5.0.6</izpack.version> <!-- Checkstyle --> - <checkstyle.version>8.0</checkstyle.version> + <checkstyle.version>8.1</checkstyle.version> <!-- By default Checkstyle, B...
1
1
0
[{"id": "G0", "claim": "The snapshot version in UnstableAnnotationCheckTest (the currentVersion attribute and the expected messages) didn't need to be changed from 8.1-SNAPSHOT to 8.2-SNAPSHOT because it is not the Checkstyle version, and should be reverted if the build still passes.", "category": "correctness", "verdi...
null
xwiki__xwiki-commons__306
xwiki/xwiki-commons
306
defect
b054f2257f93e0acf535a339a089fddcfd049e92
f61c0aaef3e0b9cd57a6194c1c45ce93b92dd9c5
XCOMMONS-2568: Improve comment handling in HTMLCleaner
Jira issue: https://jira.xwiki.org/browse/XCOMMONS-2568
diff --git a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java b/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java index 961b648235..075360fb08 100644 --- a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java +++ b/xw...
2
2
0
[{"id": "G0", "claim": "The comment omitting comments in restricted mode should mention that it should be removed once HTMLCleaner bug 234 is fixed, and explain the rationale more elaborately (e.g. copying the author's answer as a comment).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope...
null
xwiki__xwiki-commons__323
xwiki/xwiki-commons
323
defect
9137d7587bd431f7bb3e25a64a33b93ee3ad42e9
698f40049bf55687a500c988888cc24d283b8985
XCOMMONS-1120: JSONTool is not escaping solidus (/)
* Add custom character escapes for JSONTool that include forward slash. Jira issue: https://jira.xwiki.org/browse/XCOMMONS-1120
diff --git a/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java b/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java index fd9e94706c..d925b7c5b9 100644 --- a/xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocit...
1
1
0
[{"id": "G0", "claim": "The test method name `serializeSpecialCharacters` is not explicit enough and should be renamed to something more descriptive, e.g. `serializeWhenHTMLCharacters()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xwiki__xwiki-commons__329
xwiki/xwiki-commons
329
defect
405a9848952503d913e1a87a9b8ec298420fd175
7a1d10fc4652705c7d97ca75878a64bbd327b314
XCOMMONS-2586: XMLUtils#escapeXMLComment doesn't escape {
* Escape { * Escape > and - at the start of comments to ensure the resulting comment is valid in HTML. Note that due do how the XML metadata comments are structured, the start of a comment will never be invalid and thus the additional fixes for > and - at the start of a comment are just there to be on the safe side...
diff --git a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/XMLUtils.java b/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/XMLUtils.java index 5a6b36545f..3e67e0f27e 100644 --- a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/XMLUtils.java +++ b/xwiki-commons-core/x...
1
1
0
[{"id": "G0", "claim": "The comment about initializing with '-' should read 'It is thus better to start with' instead of the ungrammatical 'It is thus be better to start with'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
xwiki__xwiki-commons__42
xwiki/xwiki-commons
42
defect
adfefecde0c2a6bbeaa85f24bde1a0cd2949daa7
342fe1f742b5ecb9fcf954a0dcb1d986089c90e2
XWIKI-15393: Cannot style specific Panels because of limited HTML cla…
…ss attribute generated * Rewrote the convertToAlphaNumeric method from a deprecated class. See https://github.com/xwiki/xwiki-platform/pull/761
diff --git a/xwiki-commons-core/xwiki-commons-text/src/main/java/org/xwiki/text/StringUtils.java b/xwiki-commons-core/xwiki-commons-text/src/main/java/org/xwiki/text/StringUtils.java index 064362b751..60d3348871 100644 --- a/xwiki-commons-core/xwiki-commons-text/src/main/java/org/xwiki/text/StringUtils.java +++ b/xwiki...
4
4
0
[{"id": "G0", "claim": "The new public method convertToAlphaNumeric should carry the @Unstable annotation since it is public.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "convertToAlphaNumeric would be better implemented as a single-line replaceAll, e....
null
xwiki__xwiki-commons__508
xwiki/xwiki-commons
508
defect
fe4363818e3de84dc3b375b731ac82a71ce944a4
5ee36467b3684519df08adf4e516f0a5ad9342ca
Allow reusing compiled Velocity
The idea is to be able to compile and cache Velocity scripts, and then reuse that cached AST in various contexts. * https://jira.xwiki.org/browse/XCOMMONS-800 * https://jira.xwiki.org/browse/XCOMMONS-2795 Unfortunately, this comes with a breaking change: the previous way to handle Velocity scripts was a bit hack...
diff --git a/xwiki-commons-core/xwiki-commons-classloader/xwiki-commons-classloader-api/src/main/java/org/xwiki/classloader/ExtendedURLClassLoader.java b/xwiki-commons-core/xwiki-commons-classloader/xwiki-commons-classloader-api/src/main/java/org/xwiki/classloader/ExtendedURLClassLoader.java index 873f6cc673..63c0cff8d...
3
3
0
[{"id": "G0", "claim": "The new ExtendedURLClassLoader(String, URL[], ClassLoader, URLStreamHandlerFactory) constructor is missing the @Unstable annotation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new VelocityEngine.compile(String, Read...
null
xwiki__xwiki-commons__54
xwiki/xwiki-commons
54
defect
b3f34e8fe04cb2d4b71b81b087683544253c5895
2e5b6e89cc6271bcb867aab90b4e35c5fc26c33b
XCOMMONS-1528: Add support for grouped parameters in property descriptors
### Issue https://jira.xwiki.org/browse/XCOMMONS-1528 ### Changes * Create a PropertyGroups annotation to set a hierarchy of groups on a property. * Add related tests.
diff --git a/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyDescriptor.java b/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyDescriptor.java index 53339a1b21..be43c28004 100644 --- a/xwiki-commons-core/xwiki-commons-properties/src/main/java...
4
4
3
[{"id": "G0", "claim": "The new annotation should be named `PropertyGroup` rather than `PropertyGroups`, since what is passed is not several groups but a single group path given as a String[].", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of exp...
null
xwiki__xwiki-commons__547
xwiki/xwiki-commons
547
defect
7d5a907bdec6a5c6103657e021151b6fdfb2ded5
456a658d1bf3cf3a5a1073cd8c5c65ff43843e8b
XCOMMONS-2813: A compiled Velocity template should not be associated to a specific VelocityEngine
Issue: https://jira.xwiki.org/browse/XCOMMONS-2813 The point of this change is to reduce even move the dependency on the context to compile a Velocity script (it used to depend on the current skin). As a bonus, xwiki-commons now comes with a fully usable Velocity manager.
diff --git a/xwiki-commons-core/pom.xml b/xwiki-commons-core/pom.xml index 1f07568210..8d9d553b02 100644 --- a/xwiki-commons-core/pom.xml +++ b/xwiki-commons-core/pom.xml @@ -223,7 +223,31 @@ </differences> </revapi.differences> --> - + <revapi.differences...
12
5
1
[{"id": "G0", "claim": "The revapi justification in xwiki-commons-core/pom.xml misspells \"unlikely\" as \"unlikelly\" and should read \"unlikely\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "InternalVelocityEngine is registered with itself as...
null
xwiki__xwiki-commons__55
xwiki/xwiki-commons
55
defect
ab512878dea7d648faf670d58cee9f86049b5380
b632449ebbc20871746a5baf7ae6218b0d91c8ba
XCOMMONS-1530: Add support for feature parameters in property descriptors
### Issue https://jira.xwiki.org/browse/XCOMMONS-1530 ### Changes * Create a PropertyFeature annotation. * Add an feature field in the PropertyDescriptor. * Add related tests.
diff --git a/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyDescriptor.java b/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyDescriptor.java index 633870b33d..ff656e29bb 100644 --- a/xwiki-commons-core/xwiki-commons-properties/src/main/java...
2
2
2
[{"id": "G0", "claim": "The feature should be located in PropertyGroupDescriptor as a property-group concern instead of being exposed through PropertyDescriptor#getFeature().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Properties that share the same g...
null
xwiki__xwiki-commons__56
xwiki/xwiki-commons
56
defect
9c71f67748446828fee9442b52b03704c814dffc
f03bcfa4d83e4e14b3244fc2ca18097fd38c2fd3
XCOMMONS-1527: Create an HTML Displayer interface
### Issue https://jira.xwiki.org/browse/XCOMMONS-1527 ### Changes * Improve the implementation of the default HTMLDisplayerManager. * Adapt and refactor the tests.
diff --git a/xwiki-commons-core/xwiki-commons-displayer/src/main/java/org/xwiki/displayer/internal/DefaultDisplayerManager.java b/xwiki-commons-core/xwiki-commons-displayer/src/main/java/org/xwiki/displayer/internal/DefaultHTMLDisplayerManager.java similarity index 85% rename from xwiki-commons-core/xwiki-commons-displ...
1
1
0
[{"id": "G0", "claim": "The targetType/value resolution logic duplicated across the three display methods should be put in a common method, e.g. a private (or possibly public) getHTMLDisplayer(Type targetType, Object value).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
xwiki__xwiki-commons__61
xwiki/xwiki-commons
61
defect
f990724352aefa70a6c4b647df256e73abb548eb
8506c0f0d5b91d8029e4620ef8f4d93ac494f6c4
XCOMMONS-1553: Remove XWikiDOMSerializer in favor of HtmlCleaner DomSerializer
## Issue https://jira.xwiki.org/browse/XCOMMONS-1553 ## Solution * Remove XWikiDOMSerializer, use HtmlCleaner DomSerializer and fix tests accordingly.
diff --git a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/htmlcleaner/XWikiDOMSerializer.java b/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/htmlcleaner/XWikiDOMSerializer.java deleted file mode 100644 index 166e739da1..0000000000 --- a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/htmlclea...
1
1
1
[{"id": "G0", "claim": "The change makes DefaultHTMLCleaner stop reusing the context DocumentBuilder and let DomSerializer create one per clean, which will have an important performance impact (lock contention on DocumentBuilderFactory creation); the loss of performance is the only important issue with this pull reques...
null
xwiki__xwiki-commons__64
xwiki/xwiki-commons
64
defect
a1441eaf7f29bee56dda9037e2c281dcc2b6581f
0f1ac74ad415bc5c37b52c7442cb5c7e40896fb0
XCOMMONS-1558: Create a PropertyDisplayType annotation
### Issue https://jira.xwiki.org/browse/XCOMMONS-1558 ### Changes * Introduce a PropertyDisplayType annotation that we can use to specify with which type the macro parameter should be rendered. * Add the display type in the property descriptor. ### Note The idea is to put the `PropertyDisplayType` annot...
diff --git a/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyDescriptor.java b/xwiki-commons-core/xwiki-commons-properties/src/main/java/org/xwiki/properties/PropertyDescriptor.java index 5a50c76b86..d47253de92 100644 --- a/xwiki-commons-core/xwiki-commons-properties/src/main/java...
4
4
2
[{"id": "G0", "claim": "The display-type extraction code duplicated across the two extractPropertyDescriptor overloads should be put in a separate private method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PropertyDisplayType annotation ...
null
xwiki__xwiki-commons__69
xwiki/xwiki-commons
69
defect
49c177490d094b097a14b8eb37bb74e5357bbb2c
fcda487aeb243229afd6eee0e6795d73ccacc653
HTMLCleaner doesn't recognize some HTML named entity
- Fix the pattern to recognize entities - Add one more test
diff --git a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java b/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java index 159f0e2357..99ad8074b7 100644 --- a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/html/HTMLUtils.java +++ b/xw...
3
2
1
[{"id": "G0", "claim": "Add a documentation link to the grammar or source the entity-recognition pattern is based on.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The entity pattern may not cover every name the XML grammar allows (e.g. &_whateve...
null
xwiki__xwiki-commons__71
xwiki/xwiki-commons
71
defect
be698290e8542bada474113f9e2d34596e10976e
37cc899e852d354fbb22218a69c22a2163d028aa
XCOMMONS-1571: HtmlCleaner strips the leading space in value form attributes
* Create a new dedicated TagTransformation to trim all attributes but input value.
diff --git a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/DefaultHTMLCleaner.java b/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/DefaultHTMLCleaner.java index 26440619f1..920843e73f 100644 --- a/xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xw...
3
3
0
[{"id": "G0", "claim": "The comment added above setTrimAttributeValues(false) explains what the code does but not why input value attributes must keep their leading spaces, and the reviewer asks for that motivation to be explained.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
xwiki__xwiki-commons__799
xwiki/xwiki-commons
799
defect
da394c287191fbbf4104023dd94a3d88e861809d
235a52993fb03b08536baec100379141bbe7f1a2
XCOMMONS-2276: Upgrade to HtmlCleaner 2.29
# Jira URL <!-- Add the link to the corresponding JIRA issue referenced in a commit message. Unless this is a [Misc] commit, see https://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HRule:Don27tcreateunnecessaryissues --> * https://jira.xwiki.org/browse/XCOMMONS-2276 * https://jira.xwiki.org/bro...
diff --git a/xwiki-commons-core/xwiki-commons-xml/pom.xml b/xwiki-commons-core/xwiki-commons-xml/pom.xml index 3b4ed6d4dd..5b4e87021d 100644 --- a/xwiki-commons-core/xwiki-commons-xml/pom.xml +++ b/xwiki-commons-core/xwiki-commons-xml/pom.xml @@ -69,7 +69,7 @@ <dependency> <groupId>net.sourceforge.htmlclean...
7
4
2
[{"id": "G0", "claim": "Removing the cleanAmpersandEscape call (a workaround for a bad-escape bug) has to be double checked, see the discussion in PR #149.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment saying the flag is set to true bec...
null
xwiki__xwiki-commons__94
xwiki/xwiki-commons
94
defect
e2caa5b6d9ba99205799a2b3a3e89cb80ad34995
2045c2b3a926be5ede86705e4bfe94f148e9e235
XCOMMONS-1938: Upgrade to HtmlCleaner 2.24
* Keep as much as possible the entities parsed in the Document * Since HtmlCleaner doesn't allow to easily parse unicode characters, keep them translated with their character reference * Only unescape the &amp; for character references in HtmlUtils * Remove previous exception made in UnifiedHTMLDiffMana...
diff --git a/xwiki-commons-core/xwiki-commons-xml/pom.xml b/xwiki-commons-core/xwiki-commons-xml/pom.xml index 93453b12b2..adcfa8ccaa 100644 --- a/xwiki-commons-core/xwiki-commons-xml/pom.xml +++ b/xwiki-commons-core/xwiki-commons-xml/pom.xml @@ -65,7 +65,7 @@ <dependency> <groupId>net.sourceforge.htmlclean...
3
3
2
[{"id": "G0", "claim": "The test asserts the wrong thing: after parsing, the Document should hold the real unescaped content, and keeping escaped entities like &quot; in the Document is the opposite of what is wanted since escaping only makes sense in the serialized XML.", "category": "correctness", "verdict": "support...
null
xwiki__xwiki-commons__96
xwiki/xwiki-commons
96
defect
03e4a51eb638734db4c5c3f20d0f34d4c5230878
c0e54d86827732b4ead749305212ed00d5162a9e
XCOMMONS-1959: Allow to define the pool size of a GroupedJob
* Define a GroupedJobInitializer role whose purpose is to be able to specify some default configuration for the pool of GroupedJob * Define a GroupedJobInitializerManager in charge of retrieving the appropriate GroupedJobInitializer based on a JobGroupPath and to fallback on parents or default * Rewr...
diff --git a/xwiki-commons-core/xwiki-commons-job/src/main/java/org/xwiki/job/GroupedJobInitializer.java b/xwiki-commons-core/xwiki-commons-job/src/main/java/org/xwiki/job/GroupedJobInitializer.java new file mode 100644 index 0000000000..ac3a30c827 --- /dev/null +++ b/xwiki-commons-core/xwiki-commons-job/src/main/java/...
5
4
2
[{"id": "G0", "claim": "The ReadWriteSemaphore inner class is very generic and would ideally live in its own file, ideally somewhere in commons (the author asked internal rather than public API).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default...
null
xzkostyan__clickhouse-sqlalchemy__111
xzkostyan/clickhouse-sqlalchemy
111
defect
9d0d9cb2503a5968162af9f42f09d23ad16d1355
4641d17eaab4af25656d5e8066ffd23be973a0b5
TTL param for engine
Implementation for TTL ``` CREATE TABLE example_table ( d DateTime, a Int ) ENGINE = MergeTree PARTITION BY toYYYYMM(d) ORDER BY d TTL d + INTERVAL 1 MONTH [DELETE], d + INTERVAL 1 WEEK TO VOLUME 'aaa', d + INTERVAL 2 WEEK TO DISK 'bbb'; ``` Usage from clickhouse_sqlalchemy....
diff --git a/clickhouse_sqlalchemy/drivers/base.py b/clickhouse_sqlalchemy/drivers/base.py index 448531b7..424052e1 100644 --- a/clickhouse_sqlalchemy/drivers/base.py +++ b/clickhouse_sqlalchemy/drivers/base.py @@ -541,6 +541,14 @@ def visit_merge_tree(self, engine): engine.sample_by.get_expression...
2
2
0
[{"id": "G0", "claim": "The expected compiled SQL string in test_ttl_expr should put a space at the end of the line above for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reflection of the TTL clause should also be supported: add ...
null
xzkostyan__clickhouse-sqlalchemy__167
xzkostyan/clickhouse-sqlalchemy
167
defect
f1b1bf901aba6523a8ed81b61caae2b00e69ecd0
6fb2511c5032a1c1f0eefe510ee8a8d027af5793
Implement left array join
This dialect already supports `ARRAY JOIN`, but for some reason does not support `LEFT ARRAY JOIN`. I added support and covered with tests.
diff --git a/clickhouse_sqlalchemy/drivers/base.py b/clickhouse_sqlalchemy/drivers/base.py index 3e12da6e..0ea0bbda 100644 --- a/clickhouse_sqlalchemy/drivers/base.py +++ b/clickhouse_sqlalchemy/drivers/base.py @@ -248,6 +248,18 @@ def visit_array_join(self, array_join, **kwargs): ) ) + def v...
1
1
0
[{"id": "G0", "claim": "Expose the left variant through an optional `left` keyword argument on the existing `array_join` (`select(...).array_join(..., left=True)`) in addition to the separate `left_array_join` method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xzkostyan__clickhouse-sqlalchemy__184
xzkostyan/clickhouse-sqlalchemy
184
defect
78489943c0df1bbbe7ee4636b71805325577cc9c
799a171636c25b7c646ceaa7aa1abb4dadfae61c
Implement Int128, UInt128, Int256 and UInt256 types
Added support for `Int128`, `UInt128` and `Int256`, `UInt256` types. - fixes #176
diff --git a/clickhouse_sqlalchemy/drivers/base.py b/clickhouse_sqlalchemy/drivers/base.py index aa36c9e2..7781ffe0 100644 --- a/clickhouse_sqlalchemy/drivers/base.py +++ b/clickhouse_sqlalchemy/drivers/base.py @@ -22,10 +22,14 @@ # Type converters ischema_names = { + 'Int256': types.Int256, + 'Int128': types...
2
1
0
[{"id": "G0", "claim": "The build has failed and the author should make the tests green.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a required_server_version attribute to the test cases so the tests are skipped on server versions that do not sup...
null
xzkostyan__clickhouse-sqlalchemy__322
xzkostyan/clickhouse-sqlalchemy
322
defect
b62512f18c460347536b4b1a24a333bc041998ca
0ba3db391fe6d3e5371facb04bf12eeb01490d80
feat: add query_id from execution_options for native driver
<!-- Link to relevant issues or previous PRs, one per line. Use "fixes" to automatically close an issue. --> - fixes #321 <!-- Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to each box below. If only docs were changed, these aren't relevant and can be removed. --> Checklist: - ...
diff --git a/clickhouse_sqlalchemy/drivers/native/connector.py b/clickhouse_sqlalchemy/drivers/native/connector.py index 01481efa..94f4624a 100644 --- a/clickhouse_sqlalchemy/drivers/native/connector.py +++ b/clickhouse_sqlalchemy/drivers/native/connector.py @@ -138,7 +138,8 @@ def _prepare(self, context=None): ...
1
1
0
[{"id": "G0", "claim": "The `import uuid` added inside test_set_query_id should be placed at the top of the file, and the flake8 violations (including the over-long f-string line) fixed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xzkostyan__clickhouse-sqlalchemy__33
xzkostyan/clickhouse-sqlalchemy
33
defect
b77fc74f8e01c829c202f02dc660a49b094fd5e1
4f82089d235a1345a40acdbc3cb605cd52715a27
Column type to return Enum instead of NullType
Currently when using ``` e = sa.create_engine(...) md = sa.MetaData(bind=e) md.reflect() ``` warnings are logged due to unrecognized types. This occurs due to `Enum8`/`Enum16` being improperly instantiated, without their options. And in fact, the `DESCRIBE TABLE` calls returns the following: ``` DESCRIBE TA...
diff --git a/.gitignore b/.gitignore index 72364f99..9e003408 100644 --- a/.gitignore +++ b/.gitignore @@ -87,3 +87,6 @@ ENV/ # Rope project settings .ropeproject + +# PyCharm project settings +.idea/ diff --git a/clickhouse_sqlalchemy/drivers/base.py b/clickhouse_sqlalchemy/drivers/base.py index 5367d21a..5b24ab0b...
4
3
1
[{"id": "G0", "claim": "Parsing enum options by replacing '=' with ':' is not completely bulletproof, because enum options containing an equal sign in their name would be incorrectly changed by the replace call; the author also updated the parsing and added an enum test for the reflection test case.", "category": "corr...
null
xzkostyan__clickhouse-sqlalchemy__52
xzkostyan/clickhouse-sqlalchemy
52
defect
3609d30f48af7be867a55c87ac24bf50bc1a5b18
da040bfbcbbc3cd64e96de5819e2818c80af37b9
Add native IPv4 and IPv6 types support
This PR adds IPv4 and IPv6 support in sqlalchemy, following the work done in clickhouse-driver. Note that as no release of clickhouse-driver with IP support is available in pip yet, travis will fail for now. Nonetheless all tests are passing on my computer on python 3.6 and 2.7 (with clickhouse 19.3.3+). I have a...
diff --git a/.travis.yml b/.travis.yml index 38e5dcb5..5f0802db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ env: + - VERSION=19.3.5 - VERSION=18.14.9 language: python python: diff --git a/clickhouse_sqlalchemy/drivers/base.py b/clickhouse_sqlalchemy/drivers/base.py index 74269773..2b9197dc 100644 ...
2
2
0
[{"id": "G0", "claim": "Use the existing compat helper (compat.text_type) instead of the Python-2-only builtin unicode() in the new IPv4/IPv6 bind processors.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Bump the clickhouse_driver requirement ...
null
yaa110__rust-iptables__1
yaa110/rust-iptables
1
defect
fc5a01863eb4dab1d7ed1a78b10e2ca46a26d562
e2cf67cae136b733dad350080a3c58de01c2a8bd
Add `execute`, `get_policy` and `set_policy`
While using this library I noticed that I lacked direct access to the iptables-instance and getting/setting the policy on a chain. Functions I added: * `execute`: a very thin wrapper around `run`, only specifying the table, leaving the rest to the user. Making `run` public might be an option, too. * `ge...
diff --git a/src/lib.rs b/src/lib.rs index 1043cd2..89dd8b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,6 +32,25 @@ use nix::fcntl::{flock, FlockArg}; use std::vec::Vec; use std::ffi::OsStr; +// List of built-in chains taken from: man 8 iptables +const BUILTIN_CHAINS_FILTER: &'static [&'static str] = &["INPUT",...
4
3
2
[{"id": "G0", "claim": "The new `execute`, `get_policy` and `set_policy` functions should get tests in the iptables_test.rs files.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test must not change the system's current iptables settings, and must e...
null
yaa110__rust-iptables__3
yaa110/rust-iptables
3
defect
b918836826fb719e256e5cb4048a36fd7f3da829
049d5d7a823d179c84b06dbff2fa73eed07cc581
Allow quoted parameters in rules
This PR adds a `SplitQuoted` trait which adds the `split_quoted` function to `str`. This function allows to split a string on spaces, but keeping double-quoted parts intact. E.g.: this is "a test" string will be split as ["this", "is", "a test", "string"]. Double-quotes are removed, since they will ...
diff --git a/Cargo.toml b/Cargo.toml index c3bec1e..e056e8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,6 @@ license = "MIT" name = "iptables" [dependencies] +lazy_static = "0.2.8" regex = "0.2" nix = "0.7.0" diff --git a/src/lib.rs b/src/lib.rs index a38bd53..439d25d 100644 --- a/src/lib.rs +++ b/src/l...
2
1
1
[{"id": "G0", "claim": "It would be better to use the `String::replace` method instead of `trim_matches` to remove the `\"` characters from the split parameters.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Single quotation marks (`'`) should be handled ...
null
yaacov__node-modbus-serial__33
yaacov/node-modbus-serial
33
defect
cb74be241548d520d6463994ae6555d460a8a19c
48c642ac1a90fddd9f73a4aa6726228e43d766df
Add transaction dictionary, to replace the object current state vars.
Add transaction support for transaction id field in the ModbusTCP packet. Issue: https://github.com/yaacov/node-modbus-serial/issues/31
diff --git a/index.js b/index.js index 472578e3..0b6ff480 100644 --- a/index.js +++ b/index.js @@ -124,8 +124,10 @@ function _readFC16(data, next) { * @private */ function _writeBufferToPort(buffer) { + var transaction = this._transactions[this._transactionId] + this._port.write(buffer); - this._timeout...
2
2
1
[{"id": "G0", "claim": "Each request needs its own timeout: storing one shared _timeoutHandle on the ModbusRTU instance means concurrent transactions overwrite and cancel each other's timeout handles, so a request can emit a timeout after its response was already handled.", "category": "correctness", "verdict": "suppor...
null
yaacov__node-modbus-serial__519
yaacov/node-modbus-serial
519
defect
b57f3388d22596409fed8c6411f384fbaed0c933
7bf3a198bea319fdc97173deb92f0edcfdb1e119
Allow to pass socket options to TCP client
Hi @yaacov thank you for the lib. It's been super useful While doing some debugging I've made some changes to the lib and decided to create a PR. Here are the changes: 1) allows to pass socket opts (link to docs: https://nodejs.org/api/net.html#new-netsocketoptions) to the TCP client. When creating `new Socket(...
diff --git a/.eslintrc.json b/.eslintrc.json index eccfe200..f6ffd750 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,7 +4,7 @@ "es6": true }, "parserOptions": { - "ecmaVersion": 2017 + "ecmaVersion": 2020 }, "extends": "eslint:recommended", "rules": { diff --git a...
2
2
1
[{"id": "G0", "claim": "The commented-out `# .vscode/` entry (with its comment line) that the pull request added to .gitignore could be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CI fails on node v14 because AbortController was only...
null
yaahc__displaydoc__2
yaahc/displaydoc
2
defect
1380203182c6e310c6e48db438334974ae57a579
913d7a15f32e3a06b3400ac0d9173411fb2f983a
Theoretically become no_std compatible
closes #1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..73cdf80 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,81 @@ +on: [push, pull_request] + +name: Continuous integration + +jobs: + check: + name: Check + runs-on: ubuntu-latest + strategy: + matri...
1
1
1
[{"id": "G0", "claim": "The no_std compile test should follow the serde-rs/json pattern with a single nightly-gated test marked `#[rustversion::attr(not(nightly), ignore)]` so that it appears as ignored on non-nightly rather than silently passing.", "category": "testing", "verdict": "supported", "priority": "P1", "scop...
null
yaahc__displaydoc__21
yaahc/displaydoc
21
defect
c2ed956184ec317e58a2cd5188181e25453212f5
acddb3cb63219fc90a2085c13a949d254c067908
fix compile errors in no_std crates linked with std crates
fixes #20
diff --git a/Cargo.toml b/Cargo.toml index d47c2f5..2dfc323 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "displaydoc" -version = "0.1.6" +version = "0.1.7" authors = ["Jane Lusby <jlusby@yaah.dev>"] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/src/expand.rs b/src/expand....
1
1
1
[{"id": "G0", "claim": "Check whether rustc rejects having multiple `extern crate std;` in a single scope when multiple structs derive Display in one module; if it does not, the change looks good.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yaahc__displaydoc__22
yaahc/displaydoc
22
defect
8100ec5b59f922dd59bab2e41bb8b8c4fb816985
d21bcc4fa635659f5b181aec54a1c8ac0025bb0c
Panic when encountering unsupported multi-line comments
Hello! We ran into an issue where we had a doc-comment that looked something like this: ``` /// There was an issue with the forbnicator. /// The request was: {0} Frob(String), ``` We learned that hard ware that `displaydoc` only picks the first comment, and then saw https://github.com/yaahc/displaydoc/issues...
diff --git a/src/attr.rs b/src/attr.rs index 8c69a76..c7ce80c 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -18,6 +18,14 @@ impl ToTokens for Display { } pub fn display(attrs: &[Attribute]) -> Result<Option<Display>> { + let num_doc_attrs = attrs + .iter() + .filter(|attr| attr.path.is_ident("doc")...
4
3
2
[{"id": "G0", "claim": "The existing happy-path test fails because of the new panic on multi-line doc comments, and the maintainer asks the author to go fix the test.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add an equivalent trybuild compile test...
null
yaahc__displaydoc__31
yaahc/displaydoc
31
defect
194718c6d44f22e7a6a6d49717e730b7c47af054
f3b14a95e2b117d3eddfd0f6d8f991db5a8201fd
Add #[displaydoc] attribute
This makes it possible to have doc comments that do not contain things like `{0}` or have to be formatted a certain way. h/t @mystor for the idea
diff --git a/src/attr.rs b/src/attr.rs index 8e45525..e145935 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -54,6 +54,21 @@ impl AttrsHelper { } pub(crate) fn display(&self, attrs: &[Attribute]) -> Result<Option<Display>> { + let displaydoc_attr = attrs.iter().find(|attr| attr.path.is_ident("displayd...
1
1
0
[{"id": "G0", "claim": "The new paragraph documenting the `#[displaydoc(\"...\")]` attribute should also be added to the README, since the README and the lib.rs root crate docs are supposed to be identical — but if they are not set up that way, the author can ignore this.", "category": "documentation", "verdict": "supp...
null
yabwe__medium-editor__1025
yabwe/medium-editor
1,025
defect
2b26331bf261ba7e16af5d5cf114e0d33a823053
45103b76d20c88a1b0cd02a721e6abcc8064d9b6
Fix 1014 - Convert spaces to %20 in links if linkValidation is true for the anchor extension
Converts all instances of spaces to url friendly %20 if linkValidation for anchors is enabled. Example in screenshot mirrors same test case from the issue. ![image](https://cloud.githubusercontent.com/assets/7939025/14068660/68e7c15a-f458-11e5-910f-73eab1e820fb.png) Fixes #1014
diff --git a/spec/anchor.spec.js b/spec/anchor.spec.js index 4bed23c62..ae0eb7cef 100644 --- a/spec/anchor.spec.js +++ b/spec/anchor.spec.js @@ -329,6 +329,42 @@ describe('Anchor Button TestCase', function () { expect(link).not.toBeNull(); expect(link.href).toBe(validUrl.toLowerCase()); ...
2
2
0
[{"id": "G0", "claim": "It would be worth using encodeURI in the anchor extension's URL handling instead of only replacing whitespace, so all characters that need escaping are taken care of.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc...
null
yabwe__medium-editor__1050
yabwe/medium-editor
1,050
defect
23f599921f65edc7626b123c0c0fe31e7c68f54c
a9230740c00416326948608599f42582f4f0f5ea
Fix #1047 - Add 'positionedToolbar' custom event
This PR fixes #1047 where clicking on an anchor preview when using the `showWhenToolbarIsVisible` option doesn't edit the link but instead navigates away from the page. The issue was rooted with the toolbar manually calling into the anchor-preview's `hidePreview` event whenever the toolbar was being updated. This flo...
diff --git a/CUSTOM-EVENTS.md b/CUSTOM-EVENTS.md index d70ff5c64..e1c5fed1f 100644 --- a/CUSTOM-EVENTS.md +++ b/CUSTOM-EVENTS.md @@ -23,6 +23,7 @@ If you need to override the editor's bult-in behavior, try overriding the built- - [Toolbar Custom Events](#toolbar-custom-events) - [`hideToolbar`](#hidetoolbar) - [...
1
1
0
[{"id": "G0", "claim": "Fix the typo \"happene\" in the new positionedToolbar documentation paragraph in CUSTOM-EVENTS.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yabwe__medium-editor__1143
yabwe/medium-editor
1,143
defect
d57e4b22f4bf684e4e688654c0bc56b701d70b48
a357a6793fd05b1c395023cff72891a7fcdb0fac
Make linkValidation allow hash links
| Q | A | | --- | --- | | Bug fix? | no | | New feature? | yes | | BC breaks? | no | | Deprecations? | no | | New tests added? | yes | | Fixed tickets | | | License | MIT | ### Description Allows hash links, e.g. `#fragment-identifier`, when `linkValidation` is set to `true`. This was brought up in this discussion: h...
diff --git a/spec/anchor.spec.js b/spec/anchor.spec.js index 188a87875..8e9a42515 100644 --- a/spec/anchor.spec.js +++ b/spec/anchor.spec.js @@ -329,6 +329,24 @@ describe('Anchor Button TestCase', function () { expect(link).not.toBeNull(); expect(link.href).toBe(validUrl.toLowerCase()); ...
2
2
1
[{"id": "G0", "claim": "An extra blank line should be added before and after this assertion so spacing between the test assertions is consistent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The urlSchemeRegex should also allow a plain '#' wit...
null
yabwe__medium-editor__1152
yabwe/medium-editor
1,152
defect
d57e4b22f4bf684e4e688654c0bc56b701d70b48
a5ea3df92424fecf42b149d6d30a06f44ae2ce8c
Fix #224 and #857 - toolbar in absolute container
| Q | A | | --- | --- | | Bug fix? | yes | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | New tests added? | not needed | | Fixed tickets | #224, #857 | | License | MIT | ### Description Fix positioning of a toolbar and an anchor preview when `elementsContainer` has `position: absolute` or `positio...
diff --git a/demo/absolute-container.html b/demo/absolute-container.html new file mode 100644 index 000000000..175c432f7 --- /dev/null +++ b/demo/absolute-container.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="UTF-8"> + <title>medium editor | demo</title> + <link rel="stylesheet" hre...
2
2
0
[{"id": "G0", "claim": "In toolbar.js the top scroll adjustment could be computed inside the existing elementsContainerAbsolute branch (a single topAdjustment variable), removing one if-condition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "I...
null
yabwe__medium-editor__374
yabwe/medium-editor
374
defect
edf08ba48c80b92e9865da0ba14f35ff18cd40ed
4ddfe90e65753c21d491b4e78e1713b7d8ed2413
Bugfix: ignore delayed/throttled functions when editor disabled
Currently, calling `deactivate()` when there's something waiting to be called because of `setTimeout()` or `throttle()` can lead to exceptions, because most methods assume the editor is active at the time of calling. This can lead to errors like: ``` Uncaught TypeError: Cannot read property 'classList' of undefined ...
diff --git a/spec/activate.spec.js b/spec/activate.spec.js index a5a878a03..9abe67be1 100644 --- a/spec/activate.spec.js +++ b/spec/activate.spec.js @@ -62,6 +62,31 @@ describe('Activate/Deactivate TestCase', function () { expect(editor.events.length).toBe(0); }); + it('should abort any p...
1
1
0
[{"id": "G0", "claim": "Add a comment explaining whether the 600 ms tick in the test is an arbitrary value or a purposefully chosen time.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yabwe__medium-editor__382
yabwe/medium-editor
382
defect
e7080940fce685d2b45962fce40cbf10eb0c135e
561484af3a10f23a7ed85c37912cf475c25bf0ad
Protect header (h1, h2, etc) tags from common actions
This addresses several cases where header tags are destroyed or extended unexpectedly. FIX: Hitting the delete key on empty paragraph before the header, deletes header ![screen recording 2015-01-23 at 05 11 pm](https://cloud.githubusercontent.com/assets/438574/5963840/ad78322a-a7bd-11e4-8bc9-c34cce0144fc.gif) FIX: Hi...
diff --git a/dist/js/medium-editor.js b/dist/js/medium-editor.js index d0b671b25..8832ab645 100644 --- a/dist/js/medium-editor.js +++ b/dist/js/medium-editor.js @@ -180,6 +180,36 @@ else if (typeof define === 'function' && define.amd) { return html; } + /** + * Find the caret position within an ...
1
1
1
[{"id": "G0", "claim": "nextElementSibling can be null when the element has no next sibling, so accessing its tagName without a guard may throw.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yabwe__medium-editor__397
yabwe/medium-editor
397
defect
e917938c04ecdf37d77f92ce00c3de0440d699e5
31cfa188091f186c364c7a702f2831b41a43981e
Image drag&drop support
Image drag and drop support using HTML5 FileReader API, with custom styles when the editor is hovered and CSS animation when the image is loading. Tested on lastest Chrome and Firefox
diff --git a/src/js/medium-editor.js b/src/js/medium-editor.js index ed12690cc..376c0c8c0 100755 --- a/src/js/medium-editor.js +++ b/src/js/medium-editor.js @@ -270,6 +270,7 @@ if (typeof module === 'object') { disableAnchorForm: false, disablePlaceholders: false, elementsContaine...
2
1
1
[{"id": "G0", "claim": "Perhaps Date.getTime() should be used instead of Math.random() as the uniqueId generator for the inserted image placeholder.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The build is failing, apparently because of JSLint issues ...
null
yabwe__medium-editor__568
yabwe/medium-editor
568
defect
031bbb102e90b3a6a7460893cdcc067fbba30821
bceb97be231b412fa823092b7abb8b51071a989e
fix anchor preview
Hello, Here is a fix for the preview anchor. If a tag is present in the a tag, the preview of the anchor fail. You can reproduce by create an anchor in the editor and then put a bold on it via the toolbar. This way the 'b' tag is in the 'a' tag and the preview fails. I put a test on the target to check if we hover a ...
diff --git a/demo/index.html b/demo/index.html index baf25a253..165bbce5b 100644 --- a/demo/index.html +++ b/demo/index.html @@ -23,7 +23,7 @@ <div id="container"> <h1>Medium Editor</h1> <div class="editable"> - <p>My father’s family name being <a href="https://en.wikipedia.org/wiki/Pi...
4
4
3
[{"id": "G0", "claim": "The fix handles an anchor one level up but not links nested under multiple tags (bold and italic and underline) because it only checks event.target.parentNode; find the closest 'a' ancestor instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
yabwe__medium-editor__616
yabwe/medium-editor
616
defect
67171e1360bac0f341297372321ce0670a735200
7023980bc2fb9003642016098a1d96f505c33772
Fix cursor position for list
The behavior was really strange... I've tested it on Chrome on Windows, can someone try it on Chrome & Safari on Mac for example. To reproduce: 1. start from an empty content 2. write some text 3. add a new line 4. select the written text 5. create a list 6. the cursor must be positionned right after your written tex...
diff --git a/dist/js/medium-editor.js b/dist/js/medium-editor.js index 417044a1d..10425ebf3 100644 --- a/dist/js/medium-editor.js +++ b/dist/js/medium-editor.js @@ -800,12 +800,25 @@ var Util; return false; }, - cleanListDOM: function (element) { - if (element.tagName.toLowerCa...
2
2
0
[{"id": "G0", "claim": "Util has two redundant unwrap helpers, so the unwrapElement() helper should be deleted and the code changed to use unwrap() instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The cursor-moving chunk added to cleanL...
null
yabwe__medium-editor__633
yabwe/medium-editor
633
defect
cf188f7f9bf9de8c580367498b89b774f2c7b09e
a4c1c5372e67ad8771d6e764838847f2d64e2c4f
Create extension helper methods
This PR adds some helper methods to all extensions, including accessors into MediumEditor methods + properties. There are also some minor changes to cleanup tests and remove unneeded defaults from extensions. - `.on()` + `.off()` -> helpers that call directly into `MediumEditor.on()` + `MediumEditor.off()` - `.subscri...
diff --git a/spec/extension.spec.js b/spec/extension.spec.js index 427ff8430..94f340094 100644 --- a/spec/extension.spec.js +++ b/spec/extension.spec.js @@ -82,6 +82,66 @@ describe('Extensions TestCase', function () { expect(ext2.me instanceof MediumEditor).toBeTruthy(); }); + it('should ...
3
2
0
[{"id": "G0", "claim": "Name the passThroughHelpers forEach callback's argument `methodName` directly instead of keeping `helper` plus a redundant `var methodName = helper;` copy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a short commen...
null
yabwe__medium-editor__670
yabwe/medium-editor
670
defect
89ed849f4065bc24a78779bd0b943a90be9f8515
4cbeb16ec03a840d4d5021891e5a5be1f3230c73
Expose button default config (replace MediumEditor.statics.ButtonsData)
Before version 5.0.0, the set of default button configuration was exposed via `MediumEditor.statics.ButtonsData`. This contained all the config options to differentiate the various built-in MediumEditor buttons (ie `bold`, `italic`, `underline`, etc.) To give users the ability to access the data, but still align with...
diff --git a/spec/buttons.spec.js b/spec/buttons.spec.js index ba4193d72..3853f6a5d 100644 --- a/spec/buttons.spec.js +++ b/spec/buttons.spec.js @@ -1,6 +1,6 @@ /*global MediumEditor, describe, it, expect, spyOn, AnchorForm, afterEach, beforeEach, jasmine, fireEvent, setupTestHelpers, - selectElement...
1
1
1
[{"id": "G0", "claim": "The new Button constructor behavior (initializing from a built-in button name or a config object) has no test coverage in the specs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yabwe__medium-editor__675
yabwe/medium-editor
675
defect
b5a40ef06699c0d91765fc000c082d5e88d61135
1c7e76ca082d1a293c8006eefa6a3ce98f663672
Justify behaviour
I tried to solve https://github.com/yabwe/medium-editor/issues/595; I figured out the the problem in chrome was about `br`, tried to solve it saving the text before, replacing witouth `<br>`s and replacing it the formatting again with them. I was not able to make test. Ask me anything if needed, thank you so much for ...
diff --git a/src/js/core.js b/src/js/core.js index cb03a802e..eeea59cc8 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -1,7 +1,7 @@ /*global Util, ButtonsData, Selection, Extension, - extensionDefaults, Toolbar, Events, editorDefaults, - DefaultButton, AnchorExtension, FontSizeExtension, - AnchorPreviewD...
5
5
3
[{"id": "G0", "claim": "The pull request's indentation-only whitespace changes pollute the diff and should be avoided/restored.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added comment misspells 'all' as 'alle'.", "category": "documentat...
null
yabwe__medium-editor__677
yabwe/medium-editor
677
defect
51f6b3e00872863945e6b75b86293f9903379534
58a1ec7e26bc12e787e0d9ca4b1be5b2e7e50139
Custom Button Options + Deprecate Header Options
This PR solves two button-related issues in one. 1. The `firstHeader` and `secondHeader` options were not ideal as options on MediumEditor. They also restricted the amount of header buttons that could be easily configured. 2. Making small tweaks to existing buttons required the creation of a new Extension which would ...
diff --git a/README.md b/README.md index e4ce8c39a..2a0041d31 100644 --- a/README.md +++ b/README.md @@ -93,15 +93,17 @@ MediumEditor also supports textarea. If you provide a textarea element, the scri ### Core options * __activeButtonClass__: CSS class added to active buttons in the toolbar. Default: `'medium-editor...
1
1
0
[{"id": "G0", "claim": "The README's attrs example uses 'data-header-type', which looks tied to header buttons; it should use a neutral example so the custom-attributes documentation isn't misleading.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yabwe__medium-editor__700
yabwe/medium-editor
700
defect
1a84b3963d53ce9d794d5db63d728e9dfcf360e8
a308c1f3905604b05d35b9d0510c7dda803fb7e2
Creating a link should create only one anchor if possible
When selecting text across inline element boundaries, the built-in browser createLink command will create 2 or more anchor tags. This is a weird behavior that the user will find strange when they go to delete or modify one of the anchor tags and find that their changes don't affect the other adjacent tags that appear t...
diff --git a/spec/anchor.spec.js b/spec/anchor.spec.js index 18df47bd9..10557bbcb 100644 --- a/spec/anchor.spec.js +++ b/spec/anchor.spec.js @@ -73,6 +73,65 @@ describe('Anchor Button TestCase', function () { expect(this.el.innerHTML).toBe('<a href="test">lorem ipsum</a>'); }); + it('shou...
5
3
0
[{"id": "G0", "claim": "Add a description comment to every method added in Util so it is clear what the methods do and how they are supposed to be used.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the existing Util.getTopBlockContainer() in...
null
yabwe__medium-editor__703
yabwe/medium-editor
703
defect
1a84b3963d53ce9d794d5db63d728e9dfcf360e8
fe594674060d923edfee906922724c4ac6b00881
Ensure all extra attributes are removed on destroy
Fix #702
diff --git a/spec/setup.spec.js b/spec/setup.spec.js index bc4e2eb00..84cd0bfbc 100644 --- a/spec/setup.spec.js +++ b/spec/setup.spec.js @@ -31,6 +31,10 @@ describe('Setup/Destroy TestCase', function () { spyOn(MediumEditor.prototype, 'setup').and.callThrough(); editor.setup(); ex...
2
2
0
[{"id": "G0", "claim": "The setup test should also check that the spellcheck and contentEditable attributes are present, not just the four attributes it currently asserts.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of asserting the five know...
null
yabwe__medium-editor__727
yabwe/medium-editor
727
defect
d960f1559082ea212214c07c6d3fd78996723d19
1f237b9e06f180c59e8dd8422e91eb4148fc97b9
keyboard commands alt key support
Hello, I added `alt` key option for keyboard commands and the ability to toggle `h1` `h2` `h3` headers using shortcuts. Thank you! :smiley: Dominic
diff --git a/README.md b/README.md index 94d41bf6c..fbb952fce 100644 --- a/README.md +++ b/README.md @@ -354,19 +354,22 @@ var editor = new MediumEditor('.editable', { command: 'bold', key: 'B', meta: true, - shift: false + shift: false, +...
4
4
2
[{"id": "G0", "claim": "The new h1/h2/h3 keyboard commands should call the built-in append-h1/append-h2/append-h3 actions (which execAction already routes to formatBlock), making the new formatBlock branch added to core.js unnecessary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
yabwe__medium-editor__752
yabwe/medium-editor
752
defect
5304015b2d6d538e9e907243fabc30f6122706f8
43af2f3ae927374c6ef79939968cf5ac0993a77c
Fix #751 - issue with finding anchor when clicking anchor button
This fixes #751 When the user clicks the 'anchor' button, we attempt to find an existing anchor within the selection. If there is one, we 'unlink' that anchor, otherwise we display the anchor form an allow them to create a link. There was a bug in the code that tries to find the existing link. It was incorrectly l...
diff --git a/spec/anchor.spec.js b/spec/anchor.spec.js index eaa5125f6..c613b40ac 100644 --- a/spec/anchor.spec.js +++ b/spec/anchor.spec.js @@ -1,8 +1,7 @@ /*global MediumEditor, describe, it, expect, spyOn, afterEach, beforeEach, selectElementContents, jasmine, fireEvent, Util, setupTestHelpers, - se...
1
1
1
[{"id": "G0", "claim": "The new anchor detection should also handle the case where the start container of the selection is the anchor tag.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yabwe__medium-editor__904
yabwe/medium-editor
904
defect
5ae7356f6d3318e3ef6feed81f8ff150704e4cba
cf1a9e28f6c8c26dc9e4758e6fc89ecd418a7f01
Fix issue with image-only selections
Currently, medium-editor does not sufficiently handle exporting/importing selections that contain only an image (it's kind of supported in some browsers, but completely busted in IE). Images are a specific problem because: 1. `<img>` elements are not text-nodes _(the code only handled selections that span 1 or more tex...
diff --git a/spec/anchor.spec.js b/spec/anchor.spec.js index db1f60487..752245cc2 100644 --- a/spec/anchor.spec.js +++ b/spec/anchor.spec.js @@ -556,8 +556,8 @@ describe('Anchor Button TestCase', function () { }); // https://github.com/yabwe/medium-editor/issues/803 - it('should update link o...
2
1
0
[{"id": "G0", "claim": "The large single `if (node.nodeType <= 3) {` block in importSelection should be replaced with an early `if (node.nodeType > 3) { continue; }` guard.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The image/link selection ...
null
yabwe__medium-editor__941
yabwe/medium-editor
941
defect
cd3e5a06c416a56ba73a9144f1bd58fd27792e52
ad9b0caec211a08f5d90d57426a4f43ca490c30d
Fix for infinite loop AND gruntContribJasmine that errors out
- The main bug I found was that the editor goes into an infinite loop when there is any `node.nodeType > 3` . In my particular use case I had some comments in the html (`node.nodeType === 8`) and it just bounced back and forth between the continue statement and the conditional. My solution was to pop the node off the ...
diff --git a/spec/selection.spec.js b/spec/selection.spec.js index 2497ddbdb..14f453ba9 100644 --- a/spec/selection.spec.js +++ b/spec/selection.spec.js @@ -138,6 +138,20 @@ describe('MediumEditor.selection TestCase', function () { expect(exportedSelection).toEqual(MediumEditor.selection.exportSelection(th...
1
1
1
[{"id": "G0", "claim": "The new line assigns the function reference `nodeStack.pop` instead of calling it, i.e. it should be `nodeStack.pop()`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
yabwe__medium-editor__950
yabwe/medium-editor
950
defect
c1523f2e1839d40b1633f618de416c2e06369b32
e1f9d0f694a28dfc21d79d4660ed69e3657c0aba
handled enter event for empty h2/h3 tag 🔨
This fixes #924
diff --git a/spec/content.spec.js b/spec/content.spec.js index fdc24b2d4..97438afd8 100644 --- a/spec/content.spec.js +++ b/spec/content.spec.js @@ -434,6 +434,45 @@ describe('Content TestCase', function () { expect(evt.preventDefault).toHaveBeenCalled(); }); + + it('should prevent new li...
2
2
0
[{"id": "G0", "claim": "The new `!this.options.disableDoubleReturn` check should be merged into the existing outer `else if (MediumEditor.util.isKey(event, MediumEditor.util.keyCode.ENTER))` condition instead of being a nested if.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
yabwe__medium-editor__987
yabwe/medium-editor
987
defect
b88ae9a40174ac12109830aec438280e0096e571
8f482b8089df565ec8182545d16c8cc86cc5eb8f
handle extra space when space already exists 🚧
Fix for #982 . Changes includes a test case which reproduces the bug filed in #982 .
diff --git a/spec/content.spec.js b/spec/content.spec.js index 655cf328b..49823ace7 100644 --- a/spec/content.spec.js +++ b/spec/content.spec.js @@ -166,6 +166,25 @@ describe('Content TestCase', function () { expect(evt.preventDefault).toHaveBeenCalled(); }); + + it('should prevent more s...
1
1
0
[{"id": "G0", "claim": "Add a comment in the new space-key test that links to the issue the test replicates.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yahoo__Oak__102
yahoo/Oak
102
defect
639f02e38657aacfb0867ee16dc6292be299ed56
e68aaeaeef3147e3a39d27870075782cfa6a8494
Introduce a new API which does not expose the internal ByteBuffers by default
<!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
diff --git a/benchmarks/synchrobench/src/main/java/com/oath/oak/OffHeapList.java b/benchmarks/synchrobench/src/main/java/com/oath/oak/OffHeapList.java index ae7105915..7350dae6b 100644 --- a/benchmarks/synchrobench/src/main/java/com/oath/oak/OffHeapList.java +++ b/benchmarks/synchrobench/src/main/java/com/oath/oak/OffH...
19
17
7
[{"id": "G0", "claim": "Add a note that Block's two buffer fields reference the same underlying byte[].", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep explicit per-class imports in MyBuffer instead of the wildcard import com.oath.oak.*.", "ca...
null
yahoo__Oak__126
yahoo/Oak
126
defect
41c706a2f7c2c0ebd860ad554ff550c7cdedcc99
87a72bdeb447d23337fc211a31c959ccea720c10
Moving all memory management related out of ValueUtils
<!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
diff --git a/benchmarks/synchrobench/run.sh b/benchmarks/synchrobench/run.sh index 17248ef7..4f71b53e 100755 --- a/benchmarks/synchrobench/run.sh +++ b/benchmarks/synchrobench/run.sh @@ -40,7 +40,7 @@ declare -A heap_limit=( declare -A direct_limit=( ["oak"]="24g" ["offheap-list"]="24g" - ["skip-list"]="0g" + ...
3
3
0
[{"id": "G0", "claim": "The header-initializing overload `initHeader(long headerAddress, int dataLength, int version)` should be renamed to `initFreeHeader()` to say what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In release(), the ...
null
yahoo__Oak__147
yahoo/Oak
147
defect
60fa7ce6020eebcb2eeddbbe6b4ccc2fbbb9881f
890e5542e6a5d28458a4e558c3f7dccfda4160ba
buffer overlap and fragmentation due to race condition in Block.allocate
Fail eagerly on allocated size comparison to prevent overlap and fragmentation due to race condition. I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its...
diff --git a/core/src/main/java/com/yahoo/oak/Block.java b/core/src/main/java/com/yahoo/oak/Block.java index 0e8cffbaa..3585f8f1f 100644 --- a/core/src/main/java/com/yahoo/oak/Block.java +++ b/core/src/main/java/com/yahoo/oak/Block.java @@ -37,9 +37,19 @@ void setID(int id) { // Block manages its linear allocation...
6
6
3
[{"id": "G0", "claim": "Block.allocate's non-atomic getAndAdd followed by a conditional rollback decrement can interleave so two threads receive overlapping offsets in the same block, causing buffer overlap and fragmentation.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"...
null
yahoo__Oak__150
yahoo/Oak
150
defect
60fa7ce6020eebcb2eeddbbe6b4ccc2fbbb9881f
afab82ae62d8797ff806b114d6e7231c339ca7e8
added float serializer implementation and test
<!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner. * related to #138...
diff --git a/core/src/main/java/com/yahoo/oak/common/floatnum/OakFloatComparator.java b/core/src/main/java/com/yahoo/oak/common/floatnum/OakFloatComparator.java new file mode 100644 index 000000000..6813e5032 --- /dev/null +++ b/core/src/main/java/com/yahoo/oak/common/floatnum/OakFloatComparator.java @@ -0,0 +1,27 @@ +...
6
6
3
[{"id": "G0", "claim": "The long OakMapBuilder construction line in testBuildIntFloat should be made shorter.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should also check the new float comparator, not only the serializers.", "category": "test...
null
yahoo__Oak__151
yahoo/Oak
151
defect
60fa7ce6020eebcb2eeddbbe6b4ccc2fbbb9881f
17c939beb8547a487f0c3e1ed5d988b7daf917de
Elimination of all ByteBuffer Usage (for Java 8) #132
resolving issue #132 removing bytebuffer and replacing them with access though Unsafe <!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authorit...
diff --git a/benchmarks/synchrobench/src/main/java/com/yahoo/oak/synchrobench/MyBuffer.java b/benchmarks/synchrobench/src/main/java/com/yahoo/oak/synchrobench/MyBuffer.java index 060a086ef..9e19c763c 100644 --- a/benchmarks/synchrobench/src/main/java/com/yahoo/oak/synchrobench/MyBuffer.java +++ b/benchmarks/synchrobenc...
35
29
1
[{"id": "G0", "claim": "Slice's setBuffer() method needs to be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Block's new getter getmemAdress() should be renamed to getMemAddress().", "category": "maintainability", "verdict": "supported...
null
yahoo__Oak__159
yahoo/Oak
159
defect
9de4de0dba8549969c6068ecf6a3060eb3a929ba
592aacb55e4eaaf0325ed753ead540a27b93c7aa
Make UnsafeUtils public
This PR merges the changes in 0.2.3.1 to master. <!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on...
diff --git a/core/src/main/java/com/yahoo/oak/BasicChunk.java b/core/src/main/java/com/yahoo/oak/BasicChunk.java index c9242a342..bbf75f9fa 100644 --- a/core/src/main/java/com/yahoo/oak/BasicChunk.java +++ b/core/src/main/java/com/yahoo/oak/BasicChunk.java @@ -130,7 +130,7 @@ void normalize() { state.compareAn...
1
1
0
[{"id": "G0", "claim": "Since DirectUtils is now public, its usage and the Java-version requirement should be documented with comments on the class and a short mention in the README.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yahoo__Oak__182
yahoo/Oak
182
defect
9e8d79c7924f243ccab3aeae5ce5a50503df8bb0
ed53f9e91dc817eea9a0c5c86ebb4a8ef5762c6b
Added iterator support to HashChunk
<!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
diff --git a/core/src/main/java/com/yahoo/oak/BasicChunk.java b/core/src/main/java/com/yahoo/oak/BasicChunk.java index a8b1c75a..a9bd3afc 100644 --- a/core/src/main/java/com/yahoo/oak/BasicChunk.java +++ b/core/src/main/java/com/yahoo/oak/BasicChunk.java @@ -19,6 +19,7 @@ enum State { RELEASED } + st...
15
13
1
[{"id": "G0", "claim": "The NONE_NEXT constant should not live in BasicChunk since HashChunk does not use it; something else (e.g. a dedicated HashChunk constant) should be invented for the iterator end marker.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
yahoo__Oak__37
yahoo/Oak
37
defect
02fd1244af77078563b17dcf4f295f61b7b91d91
bc46c123606b03ad48195d67a84d6eceb4293520
Let's start code review
Hi All, Although there are many things that can be done with the Oak code and also specifically regarding this pull request, I would like to cut it somehow here and commit. Please code review keeping in mind that this is not the final point. Thanks, Anastasia <!-- The following line must be included in your...
diff --git a/core/src/main/java/com/oath/oak/Chunk.java b/core/src/main/java/com/oath/oak/Chunk.java index 9cf04c8e9..b0b950b06 100644 --- a/core/src/main/java/com/oath/oak/Chunk.java +++ b/core/src/main/java/com/oath/oak/Chunk.java @@ -6,6 +6,7 @@ package com.oath.oak; +import com.oath.oak.NativeAllocator.OakNati...
43
34
0
[{"id": "G0", "claim": "The null-key check added in the iterator's next() is redundant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The public static Slice class used outside the memory allocator should be moved to a different file.", "catego...
null
yahoo__Oak__48
yahoo/Oak
48
defect
d3691702b54010ff0b67ca9b3a3190dc9b903b64
f2fe84422258db3df16ec9f9e08cedc6921380cd
Add StreamIterators
Please take a look on suggestion for additional type of iterators. <!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make ...
diff --git a/core/src/main/java/com/oath/oak/Chunk.java b/core/src/main/java/com/oath/oak/Chunk.java index 3e7bd1087..0bcb0a86a 100644 --- a/core/src/main/java/com/oath/oak/Chunk.java +++ b/core/src/main/java/com/oath/oak/Chunk.java @@ -6,7 +6,6 @@ package com.oath.oak; -import com.oath.oak.NativeAllocator.OakNati...
23
18
3
[{"id": "G0", "claim": "The OakComparator comment should also note that a ByteBuffer position shouldn't be changed inside comparator methods.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added OakRValueBufferImpl.setHandle should proba...
null
yahoo__Oak__64
yahoo/Oak
64
defect
56f89970c7d4d06bd6a450d00c2632f465554812
f216cf5a8e3c8b91281f760692f2d2da91c92f6f
Removing ThreadLocal from ThreadIndexCalculator
Removing usage of ThreadLocal from ThreadIndexCalculator. The tests are passing. Synchrobench zero-copy gets-only benchmark show a small 5% performance improvement. <!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in ...
diff --git a/core/src/main/java/com/oath/oak/ThreadIndexCalculator.java b/core/src/main/java/com/oath/oak/ThreadIndexCalculator.java index 509d11dd4..07a6d3fa9 100644 --- a/core/src/main/java/com/oath/oak/ThreadIndexCalculator.java +++ b/core/src/main/java/com/oath/oak/ThreadIndexCalculator.java @@ -1,41 +1,62 @@ pa...
1
1
1
[{"id": "G0", "claim": "releaseIndex should throw an exception so that bugs in which a thread releases its index twice can be quickly identified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
yahoo__Oak__69
yahoo/Oak
69
defect
b9f1807a3430734a61ef17afa9ff98a079381ffe
ad9b7a1865621a22c56c1d98f49509410590acbb
CORRECTNESS: Making OAK robust to changes of the buffer byte order by the user
Making OAK robust to changes of the buffer byte order by the user * Fix endianness in conversion between int array and long. Separate two different cases that were using the same method incorrectly. * The version is now written to the buffer in the ValueUtils class, instead of in the NovaManager class. * Memory...
diff --git a/core/src/main/java/com/oath/oak/Chunk.java b/core/src/main/java/com/oath/oak/Chunk.java index fe4aaff30..4307c5c72 100644 --- a/core/src/main/java/com/oath/oak/Chunk.java +++ b/core/src/main/java/com/oath/oak/Chunk.java @@ -17,9 +17,6 @@ import static com.oath.oak.ValueUtils.INVALID_VERSION; import sta...
7
4
0
[{"id": "G0", "claim": "The names of the new helper methods should not include \"reverse\" (and should not use it with the opposite meaning), since the name is confusing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added longToIntsN...
null
yahoo__Oak__85
yahoo/Oak
85
defect
5b3b44cefedac8386675e6594bc68df3891a5064
8bb498c55b7137fd7a91c4db409d9ad7aecc47e2
Introduce a new unsafe interface
And cleanup the safe interface from unsafe methods <!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution ...
diff --git a/core/src/main/java/com/oath/oak/OakRBuffer.java b/core/src/main/java/com/oath/oak/OakRBuffer.java index d659e92eb..170e6cfd1 100644 --- a/core/src/main/java/com/oath/oak/OakRBuffer.java +++ b/core/src/main/java/com/oath/oak/OakRBuffer.java @@ -133,13 +133,4 @@ public interface OakRBuffer { * @return ...
16
7
1
[{"id": "G0", "claim": "The implementations should mark the boundary between the OakRBuffer methods and the OakUnsafeRef methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getByteBuffer() implementation should chain the getKeyBuffer().a...
null
yahoo__Oak__92
yahoo/Oak
92
defect
2c5d814862f36fa00d0b62a915a565d4a4fb0f1b
d2d60f18d0d55749b517d7fd169eeccf34d2854d
BUGFIX: buffer limit set incorrectly in OakRKeyBuffer.getByteBuffer()
* In addition, add teadDown() function to OakNativeMemoryAllocatorTest to revert the BlocksPool size. <!-- The following line must be included in your pull request --> I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I ha...
diff --git a/core/src/main/java/com/oath/oak/NativeAllocator/BlocksPool.java b/core/src/main/java/com/oath/oak/NativeAllocator/BlocksPool.java index 3b1b1182f..69f513a06 100644 --- a/core/src/main/java/com/oath/oak/NativeAllocator/BlocksPool.java +++ b/core/src/main/java/com/oath/oak/NativeAllocator/BlocksPool.java @@ ...
3
2
0
[{"id": "G0", "claim": "Setting the limit in getByteBuffer() appears redundant since Block's getBufferForThread() method already sets it, so setting the position to skip the headerSize should be enough.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "asRe...
null
yahoo__TensorFlowOnSpark__123
yahoo/TensorFlowOnSpark
123
defect
7cfc8048243a9f8c83d515cd3456f712884087fd
55924410ba56d703e83043d87508977a70c7817e
Unit/Integration Tests
First pass to set up infrastructure w/ some basic tests. Note: this includes a minor update to `reservation.py` to handle a corner case.
diff --git a/tensorflowonspark/reservation.py b/tensorflowonspark/reservation.py index 3167c921..d41d8370 100644 --- a/tensorflowonspark/reservation.py +++ b/tensorflowonspark/reservation.py @@ -17,6 +17,7 @@ from . import util BUFSIZE = 1024 +MAX_RETRIES = 3 class Reservations: @@ -51,7 +52,7 @@ def receive(s...
1
1
0
[{"id": "G0", "claim": "Provide a simple shell script (assuming SPARK_HOME is given) for setting up the environment and running the tests instead of only manual instructions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yahoojapan__yosegi__58
yahoojapan/yosegi
58
defect
8684596af2139d531b5afce700f30a1be5e1778e
a5cf99a6dbce739f5c17a2204131a3902b6bd318
Yosegi-48 Add a unit test to the message.formatter.json.
### What is the necessity of this update? What is updated? Added a unit test. And fix bugs that don't pass unit tests ### How did you do the test? (Not required for updating documents)
diff --git a/src/main/java/jp/co/yahoo/yosegi/message/formatter/json/JacksonMessageWriter.java b/src/main/java/jp/co/yahoo/yosegi/message/formatter/json/JacksonMessageWriter.java index 69cb285a..a5276710 100644 --- a/src/main/java/jp/co/yahoo/yosegi/message/formatter/json/JacksonMessageWriter.java +++ b/src/main/java/j...
5
3
0
[{"id": "G0", "claim": "The test parser stub should make containsKey return true when the key is \"key1\", since getAllKey() returns \"key1\"; the reviewer asks whether returning false for every key is intended.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
yakovkhalinsky__backblaze-b2__54
yakovkhalinsky/backblaze-b2
54
defect
50ed1103791044598bba61f75c586b47acd11ace
ec6f81554ecb8258312271d508eff58e6b392b68
Camel-case filename in uploadFile.
Fixes #43.
diff --git a/README.md b/README.md index f89d1c9..e2e0c9c 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ b2.getUploadUrl(bucketId); // returns promise b2.uploadFile({ uploadUrl: 'uploadUrl', uploadAuthToken: 'uploadAuthToken', - filename: 'filename', + fileName: 'fileName', mime: '', ...
1
1
0
[{"id": "G0", "claim": "The new typeof ternary could be reduced to `utils.getUrlEncodedFileName(args.fileName || args.filename)`, since `||` would choose the string '0' anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
yamadashy__repomix__1001
yamadashy/repomix
1,001
defect
38f31e969b8785efe7db4515c629d1216e5754d2
90ffa5b68212f3585e7e3f6f139083ff32819b2e
feat(skill): Improve skill generation for remote repositories
## Summary This PR improves the `--skill-generate` feature when used with `--remote`: 1. **Fix project name generation**: Previously, the project name was incorrectly derived from the temp directory name (e.g., "Repomix HPkbgH"). Now it correctly uses the repository name from the URL (e.g., "Vite" for `https://github...
diff --git a/src/cli/actions/remoteAction.ts b/src/cli/actions/remoteAction.ts index 6cb32ee83..b02bd7647 100644 --- a/src/cli/actions/remoteAction.ts +++ b/src/cli/actions/remoteAction.ts @@ -7,7 +7,7 @@ import { downloadGitHubArchive, isArchiveDownloadSupported } from '../../core/gi import { getRemoteRefs } from '.....
13
5
1
[{"id": "G0", "claim": "If extractRepoName fails to match and returns the full URL, the Title Case conversion would still work but the generated project name might be unexpected; consider handling malformed URLs.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1",...
null
yamadashy__repomix__1007
yamadashy/repomix
1,007
defect
a022d89413956e231c6a66d6b8ab784f61f4e66d
72b27e4c9f2be25b75ad3a842aac8395ad626b7b
fix(file): remove jschardet confidence check for encoding detection
## Summary Remove the `confidence < 0.2` check that was causing valid UTF-8/ASCII files to be incorrectly skipped. ### Changes - Remove jschardet confidence check from encoding error detection - Only skip files with actual decode errors (U+FFFD replacement characters) - Use `TextDecoder('utf-8', { fatal: true })` to ...
diff --git a/src/core/file/fileRead.ts b/src/core/file/fileRead.ts index 122d7ac5b..a48625455 100644 --- a/src/core/file/fileRead.ts +++ b/src/core/file/fileRead.ts @@ -43,16 +43,15 @@ export const readRawFile = async (filePath: string, maxFileSize: number): Promis return { content: null, skippedReason: 'binary-...
2
2
1
[{"id": "G0", "claim": "Skipping on `content.includes('\\uFFFD')` will incorrectly skip valid files that legitimately contain U+FFFD characters; UTF-8 files should be validated with a fatal decoder to distinguish invalid byte sequences from legitimate U+FFFD before skipping.", "category": "correctness", "verdict": "sup...
null
yamadashy__repomix__1008
yamadashy/repomix
1,008
defect
20ed7b35d9d28a417e8d7fe2f14dee79e78bb099
d1d5adc65dc714e95704d127cbc6f8ebddde122a
test(skill,mcp): improve test coverage for writeSkillOutput and fileSystemReadFileTool
Add comprehensive tests to improve code coverage from 89.81% to 90.28%. ### Changes **writeSkillOutput.ts** (63.88% → 100%): - Add test for `techStack` file writing - Add tests for EPERM/EACCES error handling - Add test for generic error handling - Add test for non-Error object handling **fileSystemReadFileTool.ts...
diff --git a/tests/core/skill/writeSkillOutput.test.ts b/tests/core/skill/writeSkillOutput.test.ts index e5e6e3864e..4a03dd7bd1 100644 --- a/tests/core/skill/writeSkillOutput.test.ts +++ b/tests/core/skill/writeSkillOutput.test.ts @@ -1,6 +1,7 @@ import path from 'node:path'; import { describe, expect, test, vi } fro...
7
3
1
[{"id": "G0", "claim": "vi.clearAllMocks() only clears call history and not mock implementations, which can let one test's mock setup pollute another, so beforeEach should revert to vi.resetAllMocks() to keep tests isolated.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id...
null
yamadashy__repomix__1022
yamadashy/repomix
1,022
defect
7b3e7fd77f594a147a82414c343a3cfb460f77e7
9ce1969ef0b692ab8e51b6b66553f225392dc27c
feat(cli): Add --skill-output and --force options for non-interactive skill generation
Add two new CLI options to enable non-interactive skill generation for CI/CD pipelines and automation scripts (addresses #1012): - `--skill-output <path>`: Specify skill output directory path directly, skipping the interactive location prompt - `-f, --force`: Skip all confirmation prompts (currently: skill directory o...
diff --git a/src/cli/actions/defaultAction.ts b/src/cli/actions/defaultAction.ts index 3c1536bec..5d6701c03 100644 --- a/src/cli/actions/defaultAction.ts +++ b/src/cli/actions/defaultAction.ts @@ -15,7 +15,7 @@ import { logger } from '../../shared/logger.js'; import { splitPatterns } from '../../shared/patternUtils.js...
14
4
2
[{"id": "G0", "claim": "remoteAction should add explicit validation that --skill-output and --force require --skill-generate, matching defaultAction, so misuse gives a consistent, helpful error instead of being silently ignored.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced...
null
yamadashy__repomix__1024
yamadashy/repomix
1,024
defect
7b3e7fd77f594a147a82414c343a3cfb460f77e7
614985bdc8e8bfcce5d50bc54cfb111e95d836d0
feat(tree): add multi-root directory labels
When packing multiple directories, the directory tree output now shows labeled sections like [cli]/, [config]/ to clarify which files belong to which root directory. - Add FilesByRoot interface and generateTreeStringWithRoots function - Update output pipeline to pass file-to-root mapping - Add unit tests for new t...
diff --git a/src/core/file/fileTreeGenerate.ts b/src/core/file/fileTreeGenerate.ts index 437613b8c0..18418aeec8 100644 --- a/src/core/file/fileTreeGenerate.ts +++ b/src/core/file/fileTreeGenerate.ts @@ -113,3 +113,76 @@ export const generateTreeStringWithLineCounts = ( const tree = generateFileTree(files, emptyDirPa...
5
5
2
[{"id": "G0", "claim": "generateTreeStringWithRoots and generateTreeStringWithRootsAndLineCounts duplicate their multi-root section-building logic, and the duplication should be removed by extracting a shared internal helper that takes a treeToString callback.", "category": "maintainability", "verdict": "supported", "p...
null
yamadashy__repomix__1078
yamadashy/repomix
1,078
defect
f7c68b52a4e9e2a476477b81b22be259b4ebe713
a211382a6fc38a3feea8890e4f75820f398eb8fc
fix: add timeout and disable terminal prompts for remote git commands
Prevents indefinite hangs when accessing inaccessible repositories (non-existent, private, or requiring auth). Changes: - Set `GIT_TERMINAL_PROMPT=0` to fail fast instead of waiting for credentials - Add 30s timeout to remote git operations Fixes #1077
diff --git a/src/core/git/gitCommand.ts b/src/core/git/gitCommand.ts index 1fe0db160..56d050ca1 100644 --- a/src/core/git/gitCommand.ts +++ b/src/core/git/gitCommand.ts @@ -7,6 +7,9 @@ import { logger } from '../../shared/logger.js'; const execFileAsync = promisify(execFile); +const GIT_REMOTE_TIMEOUT = 30000; +co...
2
2
1
[{"id": "G0", "claim": "The remote command options (timeout + env) should be defined once as a shared module-level gitRemoteOpts constant and reused for all remote git calls, instead of inline objects in execLsRemote and a local remoteOpts constant in execGitShallowClone.", "category": "maintainability", "verdict": "su...
null
yamadashy__repomix__1088
yamadashy/repomix
1,088
defect
b0d02a545d241133cd6309c3316efcd8be2ad3d1
760cb5dbfdef64ad65bbf8d85ce47917bb8d8c48
fix(cli): remove hardcoded white color from CLI output
Remove `pc.white()` calls from cliReport.ts to use the terminal's default foreground color instead. This fixes visibility issues on light-themed terminals like Solarized Light where white text becomes unreadable against a light background. Closes #1057 Light mode <img width="622" height="644" alt="image" sr...
diff --git a/src/cli/cliReport.ts b/src/cli/cliReport.ts index d0a27c347..6f3bbffae 100644 --- a/src/cli/cliReport.ts +++ b/src/cli/cliReport.ts @@ -75,22 +75,22 @@ export const reportSummary = ( `${packResult.suspiciousFilesResults.length.toLocaleString()} suspicious file(s) detected and excluded`, ); ...
1
1
0
[{"id": "G0", "claim": "For consistency and readability, the index numbers in the list outputs should be padded (e.g. with padEnd) so that lists with 10 or more items stay aligned.", "category": "readability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
yamadashy__repomix__1095
yamadashy/repomix
1,095
defect
a82958130132b79df2606f474999ca7fc8137199
15cf6ff98dff0608062fd28294e6c53853eda6d5
fix(security): Add --receive-pack to git URL validation
Add `--receive-pack` parameter to the list of blocked dangerous git parameters in `validateGitUrl` function. This parameter, like `--upload-pack`, can be used to execute arbitrary binaries and poses a security risk. This change aligns with security practices used in other git libraries. ## Changes - Added `--receive...
diff --git a/src/core/git/gitCommand.ts b/src/core/git/gitCommand.ts index 64db463d6a..2929583315 100644 --- a/src/core/git/gitCommand.ts +++ b/src/core/git/gitCommand.ts @@ -190,7 +190,13 @@ export const execGitLog = async ( * @throws {RepomixError} If the URL is invalid or contains potentially dangerous parameters ...
3
2
0
[{"id": "G0", "claim": "The security tests should use test.each to make them data-driven, so that --config and --exec, which are currently untested, are covered alongside --upload-pack and --receive-pack.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null