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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
WillSewell__pusher-http-rust__20 | WillSewell/pusher-http-rust | 20 | defect | d7b9b931052437c94fec4b52d925b69a4d6e0cfa | 0e98e6a1490e64d250e91913176f512dd13a4c36 | Remove mutable reference requirement | Since the underlying client doesn't need to be `mut` requiring the `&mut` complicates the usage of having a single Pusher client in a more complex program.
This PR closes #12 by removing the `mut` requirement.
Additionally, `rustfmt` was executed on the changed files in order to match the rust recommended style ... | diff --git a/README.md b/README.md
index fdac168..dad8eb6 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ use futures::executor::block_on;
fn main(){
// initializes a Pusher object with your app credentials
- let mut pusher = PusherBuilder::new("APP_ID", "KEY", "SECRET").finalize();
+ let pusher = Push... | 3 | 3 | 0 | [{"id": "G0", "claim": "The rustfmt formatting changes are mixed into this PR's commits, making it hard to review; they should be reverted here and instead run against the whole repo in a separate commit or separate PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
WinMerge__winmerge__1611 | WinMerge/winmerge | 1,611 | defect | c9ee099324fbdd61ef562fef2f6924887f0fcc66 | 4abadb0d3d6f970cb292f75b4e9e737dfdab21cd | Add auto-reload modified files option | This PR adds an "Auto-reload modified files:" combobox to the General category of the Options dialog.

”Only on window activated" means that the file will be reloaded only when the WinMerge window is acti... | diff --git a/Src/DirWatcher.cpp b/Src/DirWatcher.cpp
new file mode 100644
index 00000000000..098b4b59b9a
--- /dev/null
+++ b/Src/DirWatcher.cpp
@@ -0,0 +1,318 @@
+/*
+ * @file DirWatcher.cpp
+ *
+ * @brief Implementation for DirWatcher
+ */
+
+#include "pch.h"
+#include "DirWatcher.h"
+#include <process.h>
+#include "... | 2 | 1 | 0 | [{"id": "G0", "claim": "DirWatcher::DirWatcherThreadProc is poorly documented: fewer than 2% comments for a function of 164 lines.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The local variable `result` in DirWatcher::exitThread() is assigned (... | null |
WinMerge__winmerge__3222 | WinMerge/winmerge | 3,222 | defect | dca28b1a568a87e1a019179fe9a192f04d66aa73 | df9fb84d79cd95304b3f926c6fd01e7218b22b2e | Make replace and replaceWithList case-insensitive | Make `replace` and `replaceWithList` perform case-insensitive search and replacement. | diff --git a/Src/FilterEngine/FilterExpressionNodes.cpp b/Src/FilterEngine/FilterExpressionNodes.cpp
index e2c33da0d34..1435f548c23 100644
--- a/Src/FilterEngine/FilterExpressionNodes.cpp
+++ b/Src/FilterEngine/FilterExpressionNodes.cpp
@@ -51,6 +51,23 @@ static std::optional<std::string> getAsString(const ValueType& v... | 4 | 3 | 2 | [{"id": "G0", "claim": "The replaceFn lambda captures the local 'regex' by reference and is passed to applyToScalarOrArray, so calling it after the regex object is destroyed would cause undefined behavior; the regex should be captured by value or via a shared_ptr.", "category": "correctness", "verdict": "supported", "p... | null |
WinterYukky__gorm-extra-clause-plugin__97 | WinterYukky/gorm-extra-clause-plugin | 97 | defect | 8b54adfd66683c90de4bc7a1d9d7488587732a51 | b5121b45bd82a7dc9b699c8eae6a34e1327c2a91 | Support materialized CTEs incl. test | - Based on https://github.com/WinterYukky/gorm-extra-clause-plugin/pull/72
- Fixed implementation, added tests
- Updated readme
- Based branch on current main
Also created PR in the fork in case you want to go that route: https://github.com/incident-io/gorm-extra-clause-plugin/pull/1 | diff --git a/README.md b/README.md
index fa705d9..a1f80db 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,12 @@ db.Clauses(exclause.With{CTEs: []exclause.CTE{{Name: "cte", Columns: []string{"i
// WITH RECURSIVE `cte` AS (SELECT * FROM `users`) SELECT * FROM `cte`
db.Clauses(exclause.With{Recursive: true, CTEs: ... | 2 | 2 | 2 | [{"id": "G0", "claim": "Materialized should not be a bool on the With clause but a per-CTE three-state option (unspecified / MATERIALIZED / NOT MATERIALIZED) on the CTE struct, so that NOT MATERIALIZED is supported.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
WireGuard__wgctrl-go__16 | WireGuard/wgctrl-go | 16 | defect | 89ec2561f2658b562d135a082c8795435e09b906 | ea28382d517efcb5b5b442aa3edcad8e75bcbaf8 | Fixed endianness on IPv4 and iPv6 struct packing | Relates to #15.
This changes how you pack the structs for v4 and v6 addresses. Since some fields must be represented as BigEndian and some other as LittleEndian. I'm not sure if this is the proper way or if there was a way to keep your unsafe pointer method and still get to the same output.
You tell me. | diff --git a/internal/wgnl/configure_linux.go b/internal/wgnl/configure_linux.go
index 6e0315b..464d0b4 100644
--- a/internal/wgnl/configure_linux.go
+++ b/internal/wgnl/configure_linux.go
@@ -3,9 +3,10 @@
package wgnl
import (
+ "bytes"
+ "encoding/binary"
"fmt"
"net"
- "unsafe"
"github.com/mdlayher/netlin... | 4 | 4 | 2 | [{"id": "G0", "claim": "The manually packed IPv6 sockaddr writes the family field with binary.LittleEndian, which won't be correct on big endian architectures; the reviewer suggests using nlenc.NativeEndian() for the endian-specific fields.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope":... | null |
WithAutonomi__self_encryption__195 | WithAutonomi/self_encryption | 195 | defect | 987989b23e96505ac31a2f8369b27ce74fd6fe0a | e1b09399cb894a2e4f2fe6476623fb25381f730f | fix/self_encryptor: don't ignore create_mapping error | <!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/maidsafe/self_encryption/195)
<!-- Reviewable:end -->
| diff --git a/examples/basic_encryptor.rs b/examples/basic_encryptor.rs
index 40f174804..21497e9a9 100644
--- a/examples/basic_encryptor.rs
+++ b/examples/basic_encryptor.rs
@@ -21,7 +21,7 @@
// https://github.com/maidsafe/QA/blob/master/Documentation/Rust%20Lint%20Checks.md
#![forbid(bad_style, exceeding_bitshifts, m... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the `deprecated` lint from the `#![deny(...)]` attribute in benches/lib.rs as part of this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
WithAutonomi__self_encryption__248 | WithAutonomi/self_encryption | 248 | defect | a9caae86490051bfc152540ff155ca3999801e2f | a4b53cc33c7584065cb69d114c9ffc9616e4814f | Update deps | Closes #140. | diff --git a/.travis.yml b/.travis.yml
index 7a1cc4e71..3f392f141 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,8 +14,7 @@ cache:
before_script:
- curl -sSL https://github.com/maidsafe/QA/raw/master/travis/cargo_install.sh > cargo_install.sh
- bash cargo_install.sh cargo-prune;
- - rustup component add rust... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tests switched to `let mut rng = rand::thread_rng();` (in three_min_chunks_minus_one, multiple_writes and the write test at line ~1105) should use the seeded rng from test_helpers instead — `let mut rng = new_test_rng();` — as suggested for each occurrence and asked generally in the review."... | null |
WithAutonomi__self_encryption__266 | WithAutonomi/self_encryption | 266 | defect | 28508f190ab3bc48ad4ecbb9941f23ceae378e43 | 0fad35ec3998cad4ed841c9f53d570fe596b8a39 | feat/threaded: Use Arc/mutex throughout | josh: Uses Arc/Mutex instead of Rc/RefCell to make the lib ready for multithreaded approach and being consumed by an async/await lib | diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 806a7844d..96602715a 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -12,7 +12,7 @@ env:
jobs:
tests:
- name: Rustfmt-Clippy
+ name: "Checks/Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/ch... | 5 | 1 | 0 | [{"id": "G0", "claim": "The commented-out code on the Encryptor struct definition should be uncommented so it is consistent with the other definitions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The awaits/async added in the test code (e.g. ... | null |
WithAutonomi__self_encryption__410 | WithAutonomi/self_encryption | 410 | defect | 5d0112cdb8bb8c42d21de24ee4134abdfee3f823 | 8efb545625fbaf03b2526a3dfb10197fcdae7e0a | feat(data_map): add backward compatibility for serialization | Add support for deserializing old DataMap format (tuple struct) while maintaining the new struct format. This ensures compatibility with existing serialized data in the network.
- Add custom Serialize/Deserialize implementations
- Support both old array format and new struct format for JSON
- Add version byte (1) ... | diff --git a/Cargo.toml b/Cargo.toml
index d5dd1bd39..0096fbdad 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,6 +55,7 @@ features = ["rt"]
criterion = "0.5.1"
docopt = "~0.9.0"
clap = { version = "4.4", features = ["derive"] }
+serde_json = "1.0"
[dev-dependencies.tokio]
version = "1.34.0"
diff --git a/src/dat... | 1 | 1 | 1 | [{"id": "G0", "claim": "It is unclear whether the added tests reflect the current recursive datamap usage in the autonomi client, and whether the old recursive datamap is actually made backward compatible this way or whether the autonomi client must carry out extra backward-compatible work itself.", "category": "design... | null |
WithSecureLabs__chainsaw__228 | WithSecureLabs/chainsaw | 228 | defect | ca4402dba4ca5bb22290c2eb9e56989415c0a26c | 565c9bda6de254f5a28c44c0cfb39c456d73c187 | Add analyse gaps subcommand for detecting selective evtx record deletion | Adds an `analyse gaps` subcommand that flags two indicators of evtx record tampering inside a single file.
The first is RecordID gaps. Per-channel `EventRecordID` values are normally monotonically increasing, so a hole inside one evtx file (not at a log-rotation boundary) is the fingerprint left by tools that surgical... | diff --git a/README.md b/README.md
index baf844f..152568b 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,7 @@ Chainsaw provides a powerful ‘first-response’ capability to quickly identify
- [Analysis](#analysis)
- [Shimcache](#shimcache)
- [SRUM (System Resource Usage Monitor)](#srum-system-resource-us... | 6 | 6 | 2 | [{"id": "G0", "claim": "The `if entries.is_empty()` check in build_report is redundant because a channel is never created with an empty array.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The per-entry map should not store the datetime twice; it would ... | null |
WizTelemetry__whizard__171 | WizTelemetry/whizard | 171 | defect | 6eb1c712738745544437340138aee5328edf880b | b6cb959bf05c4bbc2f03c83d1a74670f5b4e3abb | add tenant selector in store | Signed-off-by: frezes <zhangjunhao@kubesphere.io>
### What this PR does / why we need it:
Add a tenant selector to the store component so that other services can share storage and isolate data. The store no longer reads all data from the storage. | diff --git a/pkg/controllers/monitoring/resources/store/statefulset.go b/pkg/controllers/monitoring/resources/store/statefulset.go
index 7f496c34..6a2e181d 100644
--- a/pkg/controllers/monitoring/resources/store/statefulset.go
+++ b/pkg/controllers/monitoring/resources/store/statefulset.go
@@ -3,7 +3,9 @@ package store... | 1 | 1 | 1 | [{"id": "G0", "claim": "The code builds the tenant list from the tenant CR's name, while the ingester CR uses the tenant CR's spec.tenant, so the two may be inconsistent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
WizTelemetry__whizard__556 | WizTelemetry/whizard | 556 | defect | 42e1a62890a5622a132f1b6364cd18fca26c0538 | 3e63281a752589531731915a3f5ed6c1a14899a7 | update go mod module, add SSPL License, and remove unnecessary files | - Update go mod module `github.com/kubesphere/whizard` to `github.com/WhizardTelemetry/whizard`
- Add SSPL License
- Remove unnecessary nesting: pkg/controllers/~monitoring~
- Remove unnecessary files | diff --git a/LICENSE-Community.txt b/LICENSE-Community.txt
new file mode 100644
index 00000000..23c9ccbe
--- /dev/null
+++ b/LICENSE-Community.txt
@@ -0,0 +1,557 @@
+ Server Side Public License
+ VERSION 1, OCTOBER 16, 2018
+
+ Copyright © 2018 MongoDB, Inc.
+
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Asks whether the functionality of the removed informerFactory.Start call is already covered by mgr.Start.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's CI failed (the suite test renamed out of pkg/controll... | null |
WordPress__gutenberg__68056 | WordPress/gutenberg | 68,056 | defect | 99d9a71c91c41a0cab4aa966c97bee3834ab1ee1 | e56906321288f9bde8df5a627dd4e588a151bd89 | SlotFill: unify registry and fill implementation | Unification of both `SlotFill` registries (context providers) into one that handles both types. The two types of `Slot` are distinguished by a `type: 'children'` or `type: 'portal'` field.
Also the `Fill` component is now only one. It looks at the type of the currently registered slot and conditionally renders a por... | diff --git a/packages/block-editor/src/components/link-control/test/index.js b/packages/block-editor/src/components/link-control/test/index.js
index bd97fec4ba0073..d64e72f6a50e63 100644
--- a/packages/block-editor/src/components/link-control/test/index.js
+++ b/packages/block-editor/src/components/link-control/test/in... | 8 | 2 | 0 | [{"id": "G0", "claim": "Remove the `options` parameter from the link-control test `render` helper altogether, wrapping only with `SlotFillProvider`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `useObservableValueWithSelector` helper s... | null |
WordPress__gutenberg__70615 | WordPress/gutenberg | 70,615 | defect | 452c28f4846a571c06c13793546c95ea8a3c89ee | 45df95c5ec8fa52c50f3eced4816283457346a79 | Fix: properly merged schema during `mergeSchemas` part in `getBlockContentSchemaFromTransforms` | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
<!-- Link this PR to its associated issue with an appropriate keyword: Closes, See, Follow up to, etc. -->
Closes #70612
<!-- In a few w... | diff --git a/packages/blocks/src/api/raw-handling/test/utils.js b/packages/blocks/src/api/raw-handling/test/utils.js
index d02d8e7d0602be..96175ee54a8b26 100644
--- a/packages/blocks/src/api/raw-handling/test/utils.js
+++ b/packages/blocks/src/api/raw-handling/test/utils.js
@@ -191,4 +191,40 @@ describe( 'getBlockConte... | 6 | 6 | 4 | [{"id": "G0", "claim": "The PR's fix has no tests replicating the bug it fixes, and unit-test coverage should be added to packages/blocks/src/api/raw-handling/test/utils.js showing the changes resolve the issue.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
WordPress__gutenberg__73959 | WordPress/gutenberg | 73,959 | defect | 96f35c0c2f4f8ec8bf7f9d0cc2541a6b9096faa1 | e335b1e5a7057eea9402fabf44a22c67e346a9dc | Add custom CSS support for individual block instances | Closes #56127
Extends the existing block-type-level custom CSS feature from Global Styles to work at the individual block instance level. Users can now add custom CSS to any block via the Advanced panel in the block inspector.
<img width="1292" height="512" alt="image" src="https://github.com/user-attachments/ass... | diff --git a/lib/block-supports/custom-css.php b/lib/block-supports/custom-css.php
new file mode 100644
index 00000000000000..99a0c9b31900f2
--- /dev/null
+++ b/lib/block-supports/custom-css.php
@@ -0,0 +1,114 @@
+<?php
+/**
+ * Custom CSS block support.
+ *
+ * @package gutenberg
+ */
+
+/**
+ * Stores the custom CSS ... | 19 | 17 | 5 | [{"id": "G0", "claim": "Making these helper methods public should be evaluated, and append_to_selector need not be public at all since it is not used anywhere outside the class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use wp_unique_id_from_values ... | null |
WordPress__gutenberg__77186 | WordPress/gutenberg | 77,186 | defect | 8d1fdba90c05d0135b6724777f0827af1514661a | d36c4b102dd2efb6d47154cebca2af363bb97869 | Navigation Link: Preserve custom labels during link updates | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
<!-- Link this PR to its associated issue with an appropriate keyword: Closes, See, Follow up to, etc. -->
Closes : #77169
Reserve cust... | diff --git a/packages/block-library/src/navigation-link/shared/test/use-handle-link-change.test.js b/packages/block-library/src/navigation-link/shared/test/use-handle-link-change.test.js
index b42c871a67c4a0..2f68f12b8d8f1d 100644
--- a/packages/block-library/src/navigation-link/shared/test/use-handle-link-change.test.... | 2 | 2 | 2 | [{"id": "G0", "claim": "The regression test that the PR description says was added is missing from the pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Changing both the title and the link leaves the title unapplied, because the title is onl... | null |
WordPress__gutenberg__77425 | WordPress/gutenberg | 77,425 | defect | 1ed1905685337792c8ed1a58a7f2f157fbd3c8b9 | 73560db549c921089f0284ae047ed6ee23866f3f | Migrate native tests to workspace | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
<!-- Link this PR to its associated issue with an appropriate keyword: Closes, See, Follow up to, etc. -->
Part of https://github.com/WordP... | diff --git a/package-lock.json b/package-lock.json
index 161a005bd7fa37..70831c289d0fd9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,6 +15,7 @@
"storybook",
"test/e2e",
"test/integration",
+ "test/native",
"test/performance",
"test/storybook-playwright",
"test/unit",
@@... | 8 | 8 | 4 | [{"id": "G0", "claim": "test/native/package.json should declare glob in devDependencies because jest.config.js requires it and otherwise the workspace only works via a phantom dependency on the root install.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
WordPress__gutenberg__77521 | WordPress/gutenberg | 77,521 | defect | 574f0d6828fe13f21eba4bd8bd80b60393ad7edb | c66f1e21b26cb8f72512dc24f8f8c2d45cec91ea | feat: Enhance Connectors page on read-only file system | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
<!-- Link this PR to its associated issue with an appropriate keyword: Closes, See, Follow up to, etc. -->
Closes #77352
<!-- In a few ... | diff --git a/lib/experimental/connectors/default-connectors.php b/lib/experimental/connectors/default-connectors.php
index 2d08f162738004..0f61f6c554146a 100644
--- a/lib/experimental/connectors/default-connectors.php
+++ b/lib/experimental/connectors/default-connectors.php
@@ -552,7 +552,14 @@ function _gutenberg_get_... | 5 | 3 | 0 | [{"id": "G0", "claim": "The `function_exists('wp_is_file_mod_allowed')` guard is unnecessary (the function has existed since WP 4.8) and the notice check should instead use `current_user_can('install_plugins')` so it also covers users whose `install_plugins` capability has been removed.", "category": "correctness", "ve... | null |
WordPress__gutenberg__77558 | WordPress/gutenberg | 77,558 | defect | 87ffdd0950a8098024c711dc15a32b6fc8909615 | 1dc05c3a2bc1657fd3b14b3e044be2c24d5c6b11 | docgen: Automatic documentation handle for TypeScript overloads | ## What?
Closes https://github.com/WordPress/gutenberg/issues/77457
Updates `@wordpress/docgen` to support extracting JSDoc descriptions from TypeScript function overload signatures.
## Why?
When a function uses TypeScript overloads, the JSDoc comment is placed on the first overload signature — not on the i... | diff --git a/packages/blocks/README.md b/packages/blocks/README.md
index 8c277868a03321..1e0fe8b5f7dba7 100644
--- a/packages/blocks/README.md
+++ b/packages/blocks/README.md
@@ -607,7 +607,31 @@ _Parameters_
### registerBlockType
-Undocumented declaration.
+Registers a new block provided a unique name and an obje... | 6 | 5 | 4 | [{"id": "G0", "claim": "Returning the first JSDoc-bearing node can make generated docs infer parameter/return types from the first overload signature rather than the exported implementation (e.g. registerBlockType showing BlockConfiguration<...> instead of string | BlockConfiguration<...>); consider decoupling where co... | null |
WordPress__gutenberg__77575 | WordPress/gutenberg | 77,575 | defect | a91510eeec84b317be39b89526772b0f00abe5d2 | 67b60e73990d48953090db079bb6ed0b615d657a | VisuallyHidden: Recommend @wordpress/ui and migrate usages | ## What?
Update the `VisuallyHidden` guidance to recommend `@wordpress/ui`, then migrate the remaining runtime usages over to that package.
## Why?
`VisuallyHidden` is part of the migration away from legacy `@wordpress/components` exports. This branch aligns the lint rule, Storybook guidance, and package depen... | diff --git a/package-lock.json b/package-lock.json
index 5c63b041838917..6bfd79dee96620 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -57855,6 +57855,7 @@
"@wordpress/notices": "file:../notices",
"@wordpress/plugins": "file:../plugins",
"@wordpress/private-apis": "file:../private-apis",
+ ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The VisuallyHidden instances in the post text editor (packages/editor/src/components/post-text-editor/index.js) and the edit-widgets header (packages/edit-widgets/src/components/header/index.js) still need to be migrated to the @wordpress/ui component.", "category": "correctness", "verdict": "su... | null |
WordPress__gutenberg__77865 | WordPress/gutenberg | 77,865 | defect | 5b04b1bb99e5acb68a455ae5e8cff43213d1f8d4 | 7f4e2d9a3bf106de5f9f40978e2abec96cfce228 | RTC: fix interaction with autosave that can cause posts and revisions to get lost even when a single user is editing a post | This is part of an AI fuzzing project, where an AI wrote a fuzzer and then triages bugs from the fuzzer and creates fixes. See #77716 for the tracking issue. As of this writing, there have been no known false positives from this project, but there have been some issues, which are documented in #77716. I expect we’ll se... | diff --git a/backport-changelog/7.0/11691.md b/backport-changelog/7.0/11691.md
new file mode 100644
index 00000000000000..9de588c20562e5
--- /dev/null
+++ b/backport-changelog/7.0/11691.md
@@ -0,0 +1,3 @@
+https://github.com/WordPress/wordpress-develop/pull/11691
+
+* https://github.com/WordPress/gutenberg/pull/77865
d... | 3 | 2 | 2 | [{"id": "G0", "claim": "The promotion condition still requires (int) $post->post_author === $user_id, so an authorized collaborator who is not the original author can autosave an RTC auto-draft without promoting the parent post out of auto-draft, leaving the parent undiscoverable — the loss case this PR is trying to pr... | null |
WordPress__gutenberg__77922 | WordPress/gutenberg | 77,922 | defect | 8464b42d9e845d700f98b3795360d2447b67a329 | ef8c2d2548b2ae270a4608a493241746635c2f2d | Move Layout panel into styles tab so it sits next to Dimensions | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
<!-- Link this PR to its associated issue with an appropriate keyword: Closes, See, Follow up to, etc. -->
Preliminary work for addressin... | diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js
index 23a8ec5a6eb981..4770945b6aca19 100644
--- a/packages/block-editor/src/components/block-inspector/index.js
+++ b/packages/block-editor/src/components/block-inspector/index.js
@... | 12 | 9 | 2 | [{"id": "G0", "claim": "Position likely also needs to move into the Styles tab if the requirement is that all styles controls live there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be worth switching the Layout panel over to ToolsPanel for v... | null |
WordPress__gutenberg__77944 | WordPress/gutenberg | 77,944 | defect | 21e25f3eb84da0bde6c958c2f3d78f34b77f2a26 | 672af9f098ebefbd9a3a4aa4a02bbff3d5f7dbbc | Shortcode: Offer block-specific transforms when text matches a registered shortcode | ## What?
Closes #8569.
PR aims to provide more intelligent transformations for shortcodes. It adds a "Transform to" option in the Shortcode block when the text consists of a single shortcode that matches a block's registered `type: 'shortcode'` from-transform. For example, a Shortcode block containing `[gallery ids... | diff --git a/package-lock.json b/package-lock.json
index 3967e5e1bd50ca..b59418e0a4dab1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -58245,6 +58245,7 @@
"@wordpress/reusable-blocks": "file:../reusable-blocks",
"@wordpress/rich-text": "file:../rich-text",
"@wordpress/server-side-render": "fi... | 2 | 2 | 1 | [{"id": "G0", "claim": "getBlockTransforms should keep the direction transforms in a local variable, since the several `transforms[ direction ]` accesses each re-invoke the new `to` getter and regenerate the array.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
WordPress__gutenberg__78048 | WordPress/gutenberg | 78,048 | defect | 5c6e65c85af5fefe411c43f1fe5ea7395b37d2ef | ecb7a9462628e6a37f90274ceb2240df04876188 | Block Editor: Integrate slug-based color selection in color panel | ## What?
Closes https://github.com/WordPress/gutenberg/issues/9357
Follow up PR for https://github.com/WordPress/gutenberg/pull/78004
Integrate slug-based color selection from the ColorPalette component into the Global Styles color panel. This is a follow-up PR to the components package fix that enables proper h... | diff --git a/packages/block-editor/CHANGELOG.md b/packages/block-editor/CHANGELOG.md
index e72a2687a0325c..5b8157201fdaa1 100644
--- a/packages/block-editor/CHANGELOG.md
+++ b/packages/block-editor/CHANGELOG.md
@@ -6,6 +6,10 @@
- `BlockManager`: Add stacking context isolation to category list ([#77759](https://git... | 8 | 8 | 4 | [{"id": "G0", "claim": "extractColorSlug() only handles the user format (var:preset|color|slug), so a theme-format value (var(--wp--preset--color--slug)) yields an undefined inheritedSlug and duplicate-color slug selection can regress; it should also parse the theme form and return the palette slug consistently.", "cat... | null |
WordPress__gutenberg__78083 | WordPress/gutenberg | 78,083 | defect | b57b0ae2291f504caf44018b18b3e412e8411acc | d23ac7d2de74044df1eb065aa785f7e769aaf1f2 | Editor: Refactor 'PostPublishPanel' into function component | ## What?
PR 'PostPublishPanel' into a function component, replaces HoC with appropriate hooks. Removes two wrapper divs and flattens the rendered DOM.
Additional changes:
* Auto-collapse effect cleanup - remove `prev.isPublished` check; it was a leftover before the `isSaving` guard and is no longer required. ... | diff --git a/packages/editor/README.md b/packages/editor/README.md
index db39df81866461..e7f46e27289d59 100644
--- a/packages/editor/README.md
+++ b/packages/editor/README.md
@@ -1250,6 +1250,18 @@ _Returns_
Renders a panel for publishing a post.
+_Parameters_
+
+- _props_ `Object`: Component props.
+- _props.... | 3 | 3 | 0 | [{"id": "G0", "claim": "The README prop list and the component's JSDoc document PostPublishExtension and PrePublishExtension as WPComponent, a type that no longer exists after PR #54908, and should use React.ComponentType instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
WordPress__gutenberg__78097 | WordPress/gutenberg | 78,097 | defect | 2f319f2c353b7a06895c964052facecbf850b499 | 4deb5d6ddcab2e877aba7746b9d0a194b420a595 | Make RTC-related APIs private | Related to:
- https://github.com/WordPress/gutenberg/pull/78080
- https://github.com/WordPress/gutenberg/pull/78081
- https://github.com/WordPress/gutenberg/pull/78085
- https://core.trac.wordpress.org/ticket/65205
See: https://wordpress.slack.com/archives/C07NVJ51X6K/p1778229071236919?thread_ts=1778216739.261... | diff --git a/packages/core-data/src/actions.js b/packages/core-data/src/actions.js
index 47e12f46e7bd92..f230f1b5f768d8 100644
--- a/packages/core-data/src/actions.js
+++ b/packages/core-data/src/actions.js
@@ -1128,6 +1128,10 @@ export const receiveRevisions =
* @return {Object} Action object.
*/
export function ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The RTC-related actions and selectors should be made private, since shipping them as public APIs that do not work in core builds is pointless.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The IS_GUTENBERG_PLUGIN gating of getSyn... | null |
WordPress__gutenberg__78139 | WordPress/gutenberg | 78,139 | defect | daf20d82b937e13d0f55e908008be8b3037c2d67 | 018182f3033aeea7ea9962c95d83c54ba6eb9943 | Image block: Try syncing updated metadata fields (alt and caption) from the media editor | ## What?
Part of:
* https://github.com/WordPress/gutenberg/issues/73771
With the experimental media editor modal, once an update has been performed (with or without a crop), ensure that any updated captions or alt text are propagated through.
## Why?
In this flow, where a user is directly using the modal... | diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js
index 0bec32c7ae4d96..39f7c8a3cbea73 100644
--- a/packages/block-library/src/image/image.js
+++ b/packages/block-library/src/image/image.js
@@ -62,6 +62,7 @@ import { isExternalImage } from './edit';
import { Caption } f... | 2 | 1 | 0 | [{"id": "G0", "claim": "When the media editor saves crop plus metadata changes, it would make sense for the image block to receive a single block update (one setAttributes call) instead of one update for the image and a second for the metadata.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ... | null |
WordPress__gutenberg__78140 | WordPress/gutenberg | 78,140 | defect | e359bb010becda46b5f58aaa6baa37079c36f557 | fe06482b94a6746f29571905dea132af69556fa6 | Add aria-label to Revisions button in Post Summary sidebar | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
Closes #78138
This PR adds a descriptive `aria-label` to the Revisions button in the Post Summary sidebar panel.
## Why?
Previously, ... | diff --git a/packages/editor/src/components/post-last-revision/index.js b/packages/editor/src/components/post-last-revision/index.js
index 8320dfaa61d9b9..815ee336101078 100644
--- a/packages/editor/src/components/post-last-revision/index.js
+++ b/packages/editor/src/components/post-last-revision/index.js
@@ -63,6 +63,... | 1 | 1 | 1 | [{"id": "G0", "claim": "`ariaLabel` is not a valid prop on the Button component, so the intended accessible name is never applied; the PR should use `aria-label` instead of `ariaLabel`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
WordPress__gutenberg__78151 | WordPress/gutenberg | 78,151 | defect | 23f840960ebf80b59832a0d724fa1c018e79a186 | f12d8574348cb05c90dfc5572905e63c4a4e5f0d | isFulfilled: don't change resolution state, call in resolveSelect | Fixes #78144 and partially reverts #70806. The `isFullfilled` behavior is now like:
- `isFulfilled` is called together with `hasStartedResolution`. `start`/`finishResolution` are not called when `isFulfilled` is `true`.
- `isFulfilled` is called explicitly in `resolveSelect` to detect that the resolution has ended. A... | diff --git a/packages/data/src/redux-store/index.ts b/packages/data/src/redux-store/index.ts
index 6a4eebcb96b4b7..57399de50ac7f0 100644
--- a/packages/data/src/redux-store/index.ts
+++ b/packages/data/src/redux-store/index.ts
@@ -458,6 +458,7 @@ export default function createReduxStore< State, Actions, Selectors >(
... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new `isFulfilled` behavior should be documented so consumers know what to expect.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since `isFulfilled` can legally only be `undefined` or a function, the `typeof resolver.is... | null |
WordPress__gutenberg__78179 | WordPress/gutenberg | 78,179 | defect | 3f5663559310564284181788a43c756e6ba5816c | 5c44421a507d5b805fcebfd9749a5584bf900474 | Add RTC y-websocket-server tests | ## What?
Based on @danluu's changes in https://github.com/WordPress/gutenberg/pull/77920, but with the [official `@y/websocket-server`](https://github.com/yjs/y-websocket-server) as a backend.
Replaces that PR's hand-rolled JSON server and client with a minimal harness on top of `@y/websocket-server` (the officia... | diff --git a/package-lock.json b/package-lock.json
index 71c664943aea05..ebf7d21d46f370 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23415,6 +23415,69 @@
"resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWf... | 7 | 6 | 4 | [{"id": "G0", "claim": "The reviewer questions whether waitForSyncCycle's WS branch is waiting on the right predicate: .some() passes when any room is connected, whereas .every() (or targeting the specific room) would require the rooms under test to be connected.", "category": "correctness", "verdict": "supported", "pr... | null |
WordPress__gutenberg__78195 | WordPress/gutenberg | 78,195 | defect | 10118294e044c103a2750fe7f571d33f27c271df | 3cd0aa2ae8555b5ba080ca370ef4c692edf23156 | Fix border styles for block instance pseudo states | ## What?
Based on https://github.com/WordPress/gutenberg/pull/76491 and proposes to merge into that branch.
If a user tries setting a border style for 'Hover' / 'Focus' and other pseudo states on a block instance, the style usually won't work both in the editor. This PR fixes the issue.
## Why?
Usually when a u... | diff --git a/lib/block-supports/states.php b/lib/block-supports/states.php
index 694e3c6e9fcfb7..761167445b9388 100644
--- a/lib/block-supports/states.php
+++ b/lib/block-supports/states.php
@@ -8,6 +8,84 @@
* @package WordPress
*/
+/**
+ * Converts internal preset references to CSS custom property references.
+ ... | 6 | 4 | 2 | [{"id": "G0", "claim": "The front end is missing an `!important` on `border-style` for pseudo-state rules, so the default inline style wins over the state style.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`!important` should not be applied to th... | null |
WordPress__gutenberg__78233 | WordPress/gutenberg | 78,233 | defect | 7936ff901a19f285f685e2f2e8970f486de5de30 | 7d534e200ae68c5127d5bdbb6e35243ca9420150 | Experiment: Add default term for taxonomies | <!-- Thanks for contributing to Gutenberg! Please follow the Gutenberg Contributing Guidelines:
https://github.com/WordPress/gutenberg/blob/trunk/CONTRIBUTING.md -->
## What?
Part of: https://github.com/WordPress/gutenberg/issues/77600
- Adds an Advanced card to the user-taxonomy add/edit form with two setting... | diff --git a/lib/experimental/content-types/class-wp-rest-user-taxonomies-controller-gutenberg.php b/lib/experimental/content-types/class-wp-rest-user-taxonomies-controller-gutenberg.php
index 6e6106f27b665f..c38bef44fa1287 100644
--- a/lib/experimental/content-types/class-wp-rest-user-taxonomies-controller-gutenberg.p... | 1 | 1 | 0 | [{"id": "G0", "claim": "The sort field's description should be reworded to avoid the niche `wp_set_object_terms()` jargon — e.g. 'Whether terms in this taxonomy should be saved in the order they are assigned to an item.'", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
WordPress__gutenberg__78249 | WordPress/gutenberg | 78,249 | defect | f44bc74aaf17a62f0ea6ebf0532bbf3c385b96a6 | 3b1acb93b5f15d74c86fea275547411c4ba2c69d | Editor: Disable Visual Revisions when classic meta boxes are present | ## What?
Closes #78130
When classic meta boxes are registered, the Revisions sidebar control falls back to the classic `revision.php` admin screen.
## Why?
Restoring via Visual Revisions runs the editor's REST save but not the classic meta box admin-ajax submission, so classic meta values are silently left at their c... | diff --git a/packages/edit-post/src/components/meta-boxes/test/use-meta-box-initialization.js b/packages/edit-post/src/components/meta-boxes/test/use-meta-box-initialization.js
index 236a3cc3b96363..00d938a7913aaf 100644
--- a/packages/edit-post/src/components/meta-boxes/test/use-meta-box-initialization.js
+++ b/packag... | 1 | 1 | 0 | [{"id": "G0", "claim": "When classic meta boxes are present and the revisions control therefore renders as an <a> instead of a <button>, the revision number sits visually higher than the label (apparently due to the <a> form of the Button); make it line up — ramonjd proposed making the anchor a flex container with disp... | null |
WordPress__playground-tools__324 | WordPress/playground-tools | 324 | defect | 08d906634efba2bbae1404e7d17012aa0a8f703a | f8e1c1e15767ae0e391317afffbf61964e7fad7b | Download exact WordPress version when passing an alias | - Closes: https://github.com/WordPress/playground-tools/issues/214
## What?
Resolves to an actual WordPress version when starting `wp-now` with `--wp=latest|trunk|nightly`.
It keeps working while offline by caching the version aliases in a file: `~/.wp-now/wp-version-offline-alias.json`
## Why?
In https:... | diff --git a/packages/wp-now/src/download.ts b/packages/wp-now/src/download.ts
index 54566ea1..33e2c66b 100644
--- a/packages/wp-now/src/download.ts
+++ b/packages/wp-now/src/download.ts
@@ -5,18 +5,12 @@ import { IncomingMessage } from 'http';
import os from 'os';
import path from 'path';
import unzipper from 'unzi... | 2 | 1 | 1 | [{"id": "G0", "claim": "The isDeveloperBuild flag could be removed in favor of a more simple check that directly uses the provided alias.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR breaks the ability to use wp-now while offline; resolved alias... | null |
WordPress__playground-tools__60 | WordPress/playground-tools | 60 | defect | 2404f5c82c83fa5d8dd66276b3bc0adf7aa8730c | e9c8e5d228bf97f696f79780ba26ab059ea3b8a5 | wp-now: add wp-admin redirection with trailing slash | <!-- Thanks for contributing to WordPress Playground Tools! -->
## What?
It adds a redirection to `/wp-admin` to add the trailing slash `/wp-admin/` so core loads the correct links in the sidebar.
<!-- In a few words, what is the PR actually doing? Include screenshots or screencasts if applicable -->
## Why... | diff --git a/packages/wp-now/src/start-server.ts b/packages/wp-now/src/start-server.ts
index a0c9692a..63a8d8c1 100644
--- a/packages/wp-now/src/start-server.ts
+++ b/packages/wp-now/src/start-server.ts
@@ -33,6 +33,16 @@ const requestBodyToString = async (req) =>
});
});
+function addTrailingSlash(path) {
+ ret... | 3 | 3 | 1 | [{"id": "G0", "claim": "The middleware's exact match req.url === path means a URL like /wp-admin?a=b does not get the trailing-slash redirect (the reviewer asked whether it would work and danielbachhuber tested that it does not).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
Workiva__go-datastructures__100 | Workiva/go-datastructures | 100 | defect | df6f6c461bb417b685bd52d03e96c5f0aa051fcb | 2399f9a867c04303310306ad7b4e2cc7cdb7d2dc | Fix ctrie tests | I'm _fairly_ certain this fixes the sporadic issues happening with the ctrie tests (#99). This also should make the tests quite a bit faster.
@alexandercampbell-wf @dustinhiatt-wf @stevenosborne-wf
| diff --git a/.travis.yml b/.travis.yml
index d9fe1778..24d3d753 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,5 +8,8 @@ go:
before_install: go get golang.org/x/tools/cmd/cover
script: go test -race -cover ./...
+env:
+- GOMAXPROCS=8
+
notifications:
email: false
diff --git a/trie/ctrie/ctrie_test.go b/trie/c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The drain loop in TestIterator would make more sense as a range over `expected` instead of the hardcoded ten-iteration drain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Workiva__go-datastructures__102 | Workiva/go-datastructures | 102 | defect | 684bdacfda03ffd440186c83bce31533626a183a | a64c8f08701c1e3fc0b4dfa2337fbcdd83955a95 | Add support for duplicated items in PriorityQueue | Changes:
- Implement 'allowDuplicates' flag, while maintaining backwards compatibility.
- Add unit test.
Current implementation includes an easy way of enabling duplicates, but I'm not 100% sure this is the best approach, since the flag can be arbitrarily updated at any time (regardless of existing items and/or previo... | diff --git a/queue/priority_queue.go b/queue/priority_queue.go
index 81984631..3b991c7c 100644
--- a/queue/priority_queue.go
+++ b/queue/priority_queue.go
@@ -105,12 +105,13 @@ func (items *priorityItems) push(item Item) {
// items that implement the Item interface and adds them
// to the queue in priority order.
ty... | 2 | 2 | 2 | [{"id": "G0", "claim": "The AllowDuplicates setter should acquire the queue's lock before writing pq.allowDuplicates, since it mutates state that concurrent Put/Get calls read.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "AllowDuplicates should be... | null |
Workiva__go-datastructures__107 | Workiva/go-datastructures | 107 | defect | 064f3ea06ab2337e6eaf42052392d14f779e91cb | ef1ae27caed66692bf7b17c0f48aa541d53d8c9e | Add functions to allow storage of bitarrays | Add functions that allow bitarrays to be stored in offline files
or databases.
| diff --git a/bitarray/bitarray.go b/bitarray/bitarray.go
index 4d479e34..6540c6c4 100644
--- a/bitarray/bitarray.go
+++ b/bitarray/bitarray.go
@@ -20,6 +20,11 @@ efficient way. This is *NOT* a threadsafe package.
*/
package bitarray
+import (
+ "encoding/binary"
+ "io"
+)
+
// bitArray is a struct that maintains ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The exported WriteSparse/ReadSparse functions take or return the unexported sparseBitArray type, which makes them unusable from an external library; the serialization API should be redesigned (e.g. Write/Read methods on the BitArray interface, or package-level (un)marshal functions over the inte... | null |
Workiva__go-datastructures__109 | Workiva/go-datastructures | 109 | defect | be34045e9385e3a7a93ffacb90e3767656d85f11 | 0e108332aedcc4acce7ee036587f97e0a4245f75 | Avoid deadlock between Put and Get | There is a problem where the batch channel fills up and Puts hold the lock preventing Gets from catching up.
@dustinhiatt-wf @brianshannan-wf @tylertreat @alexandercampbell-wf
| diff --git a/batcher/batcher.go b/batcher/batcher.go
index 4ead7e98..07bc0ee0 100644
--- a/batcher/batcher.go
+++ b/batcher/batcher.go
@@ -83,7 +83,8 @@ func New(maxTime time.Duration, maxItems, maxBytes, queueLen uint, calculate Cal
}, nil
}
-// Put adds items to the batcher.
+// Put adds items to the batcher. If... | 4 | 2 | 1 | [{"id": "G0", "claim": "Sending the batch from a go-routine doesn't necessarily preserve the order of batches going out versus items coming in, as go-routines could add the batches in any order.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The lack ... | null |
Workiva__go-datastructures__131 | Workiva/go-datastructures | 131 | defect | ee781de7965c8468a62a02f208b80dfa67cac906 | dd281d90b3f44b6b486ae38fd6100c6184ef121c | Dtrie | This is an implementation of a persistent hash array mapped trie that expands or shrinks to provide efficient memory allocation. Details on the papers that this project is based on can be found at [github.com/theodus/dtrie](github.com/theodus/dtrie).
Benchmarks:
BenchmarkInsert-4 5000000 547 ns/op ... | diff --git a/README.md b/README.md
index ff2a604e..87198cd1 100644
--- a/README.md
+++ b/README.md
@@ -156,6 +156,14 @@ Most concurrent data structures do not support snapshots, instead opting for
locks or requiring a quiescent state. This allows Ctries to have O(1) iterator
creation and clear operations and O(logn) ... | 2 | 2 | 1 | [{"id": "G0", "claim": "TestIterate fails when run with 2 goroutines: the assertion at dtrie_test.go:158 reports \"Should be true\".", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The defaultHasher type switch can be simplified by binding the switched v... | null |
Workiva__go-datastructures__158 | Workiva/go-datastructures | 158 | defect | 9435245886f7e5157345a327d764614ac9c0d2e6 | d5857d5ff8675a25f12c4760c4bcd2efdbb170e2 | Add Cache Implementation | @dustinhiatt-wf
@alexandercampbell-wf
@Workiva/linking-pp
This PR adds a thread-safe, bounded, in-memory cache with a pluggable eviction policy. Two policies are currently implemented: least-recently-used and least-recently-added. | diff --git a/cache/cache.go b/cache/cache.go
new file mode 100644
index 00000000..258184df
--- /dev/null
+++ b/cache/cache.go
@@ -0,0 +1,190 @@
+package cache
+
+import (
+ "container/list"
+ "sync"
+)
+
+// Cache is a bounded-size in-memory cache of sized items with a configurable eviction policy
+type Cache interface... | 3 | 2 | 0 | [{"id": "G0", "claim": "The Get API that takes a list of keys and returns results whose order corresponds to the input is questionable, and the reviewer asks whether there is a big performance or usability benefit to accepting a list of strings.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "... | null |
Workiva__go-datastructures__172 | Workiva/go-datastructures | 172 | defect | 01ff43b05e5593e6e41f5988797126402611e2d7 | 35e2d1cf2316766f1ab63d8260c173ccb21a4d85 | RM-19979 Fix that Ctrie iterator did not return entries from tNodes. | Fixes #171 | diff --git a/trie/ctrie/ctrie.go b/trie/ctrie/ctrie.go
index b95425b9..a167f767 100644
--- a/trie/ctrie/ctrie.go
+++ b/trie/ctrie/ctrie.go
@@ -1,5 +1,5 @@
/*
-Copyright 2015 Workiva, LLC
+Copyright 2015-2017 Workiva, LLC and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use th... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new tNode branch of traverse sends the entry on the channel without selecting on cancel, so it should use a select with a cancel case returning errCanceled to support cancellation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
Workiva__go-datastructures__173 | Workiva/go-datastructures | 173 | defect | 01ff43b05e5593e6e41f5988797126402611e2d7 | e406b5871f5c697611aca4d97275c86d0c538c23 | RM-19979 Add Poll method to RingBuffer | Adds a Poll method like the one in Queue to do Gets with a timeout. | diff --git a/queue/ring.go b/queue/ring.go
index 13d532fc..ca908c0b 100644
--- a/queue/ring.go
+++ b/queue/ring.go
@@ -19,6 +19,7 @@ package queue
import (
"runtime"
"sync/atomic"
+ "time"
)
// roundUp takes a uint64 greater than 0 and rounds it up to the next
@@ -128,9 +129,23 @@ L:
// to the queue or Dispos... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment to Poll stating that a non-positive timeout equates to no timeout (blocks indefinitely).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Workiva__go-datastructures__178 | Workiva/go-datastructures | 178 | defect | e740680cc77dafd9615b25918b39f4a0ef5ab955 | cb665b655472f45d6e6a0f3569ac86fc90551914 | RM-23161 Add Simple Graph Implementation/tests | Hello -- This repository has been very helpful to me as I'm beginning to learn Go. With the dual purpose of getting practice and contributing back in some small way, I have added a Simple Graph implementation. A Simple Graph is an undirected graph without parallel edges or self loops. Let me know what you think. | diff --git a/README.md b/README.md
index 75353bbd..d86ca947 100644
--- a/README.md
+++ b/README.md
@@ -184,6 +184,13 @@ structure which preserve and reuse previous versions. This uses a very
functional, cons-style of list manipulation. Insert, get, remove, and size
operations are O(n) as you would expect.
+#### Sim... | 1 | 1 | 0 | [{"id": "G0", "claim": "The public methods should have doc comments (docstrings).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Workiva__go-datastructures__91 | Workiva/go-datastructures | 91 | defect | 59015053e6b4b9043a4d63f331e61708d0a5a653 | 9252a2f954a0a1719a5b956ad12455a0ce67361e | Queue poll | This does a few things:
- Add a `Poll` method to `Queue` which allows you to perform a `Get` with a timeout.
- Export `ErrDisposed` to allow users to check error type.
- Export `ErrTimeout` to allow users to check for timeout vs disposal.
- The internal `sema` struct now uses a channel instead of a `sync.WaitGroup` to ... | diff --git a/queue/error.go b/queue/error.go
index 29c062cc..bdde7f6f 100644
--- a/queue/error.go
+++ b/queue/error.go
@@ -18,4 +18,11 @@ package queue
import "errors"
-var disposedError = errors.New(`Queue has been disposed.`)
+var (
+ // ErrDisposed is returned when an operation is performed on a disposed
+ // q... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new ErrTimeout error string should be lowercase and unpunctuated, e.g. \"queue: poll timed out\", per Go error-string conventions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The benchmark's timed loop needs no ind... | null |
Workiva__go-rest__1 | Workiva/go-rest | 1 | defect | 90eca7fcadbbed6ed681fdd69f2ed54b8b8afc91 | 2c016a50af5baf48aaa7d801f2944bfa50775039 | Initial dump of go-rest code. | Initial code commit of go-rest codebase. This is the REST API
implementation in Go of the company standard REST API.
This does need to be reviewed as it has changed quite a bit since it was
wfrest.
@ericolson-wf @rosshendrickson-wf @johnlockwood-wf @stevenosborne-wf @tylertreat-wf @beaulyddon-wf
| diff --git a/rest/client.go b/rest/client.go
new file mode 100644
index 0000000..845d4ea
--- /dev/null
+++ b/rest/client.go
@@ -0,0 +1,143 @@
+/*
+Package rest contains the company standard REST API client implementation.
+
+This package can be used with any type that implements the Consumer interface:
+
+ rc := res... | 5 | 5 | 1 | [{"id": "G0", "claim": "A doc comment should be added to the newly added BaseResponse type (TODO: Add doc comment).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Delete the stray word 'is' in the Consumer doc comment ('Client is will interact wit... | null |
Workiva__go-rest__10 | Workiva/go-rest | 10 | defect | 6a4886cde3a75709a931defd8697fa5ccccad3b0 | c14f94dc316f328a536b3436b63e783cacd1d38d | Support non-resource rules | Currently, Rules have to specify fields that exist on a resource or validation fails. However, it's often useful to be able to send in payload fields that don't directly correspond to a resource field but might be used in the creation of a resource or some other way. This allows us to do that.
@beaulyddon-wf @rosshend... | diff --git a/rest/rule.go b/rest/rule.go
index d74a1ba..7d461fc 100644
--- a/rest/rule.go
+++ b/rest/rule.go
@@ -67,25 +67,31 @@ func (r *rules) ResourceType() reflect.Type {
// and correct types. If a Rule is invalid, an error is returned. If the Rules are
// valid, nil is returned. This will recursively validate ne... | 1 | 1 | 0 | [{"id": "G0", "claim": "The field-lookup/validation sequence in Validate should use idiomatic Go (comma-ok on FieldByName with else-if validType).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Workiva__go-rest__4 | Workiva/go-rest | 4 | defect | 433e95e3f1966bb08c9134293bd82c8faae84c2e | 3bc03a869888736ed40ac91d1315efb46b156007 | Handle nil values and pointers | Don't apply outbound rules if client handlers return an error. Also handle the case where handlers return nil values and pointers.
@rosshendrickson-wf @tannermiller-wf @stevenosborne-wf @alexandercampbell-wf @johnlockwood-wf @ericolson-wf
| diff --git a/rest/api_test.go b/rest/api_test.go
index a72aaf1..f78ffe4 100644
--- a/rest/api_test.go
+++ b/rest/api_test.go
@@ -622,8 +622,7 @@ func TestOutboundRules(t *testing.T) {
handler.On("Rules").Return(Rules{rule})
handler.On("ReadResource").Return(&TestResource{Foo: "hello"}, nil)
- called := false
- ap... | 3 | 2 | 0 | [{"id": "G0", "claim": "The nil-kind checks in isNil could be rewritten as a switch statement to avoid the duplicated `|| t ==` phrases; the author is free to decline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new isNil test functions s... | null |
Workiva__go-rest__49 | Workiva/go-rest | 49 | defect | d8fa3c42becd475e9ea2cbce4eccbe31d0a5955c | 4d7dbd5821f5b89e4c4f98abd424aa9382ba0b6f | URL generation for named routes | # Problem
It would be useful to be able to generate a URL for a given endpoint with a set of parameters -- for example, in a POST endpoint, you might want to provide the user with the GET endpoint where they can retrieve the resource they just created.
See webapp2's [uri_for()](https://webapp-improved.appspot.com/gui... | diff --git a/rest/api.go b/rest/api.go
index 91a5a1f..68e7bbc 100644
--- a/rest/api.go
+++ b/rest/api.go
@@ -159,6 +159,8 @@ type API interface {
// responseSerializer returns a ResponseSerializer for the given format type. If the
// format is not implemented, the returned serializer will be nil and the error set.
... | 9 | 9 | 4 | [{"id": "G0", "claim": "BuildURL should call uri.String() directly instead of wrapping the URL in fmt.Sprintf, which parses a format string and applies reflection for no benefit.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the router lookup ... | null |
Workiva__go-rest__54 | Workiva/go-rest | 54 | defect | cd55e68958f66cc3ae733264f2093bc76b4869f4 | 19727d49d429b6cfbf5b7a6e331db45c86e2c3de | GO-REST: Header access | # Providing Response Header Access for REST endpoint
## Code Review
- https://github.com/jeffidol-wf/go-rest/pull/1
| diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..485dee6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.idea
diff --git a/rest/context.go b/rest/context.go
index a28d697..5866286 100644
--- a/rest/context.go
+++ b/rest/context.go
@@ -138,6 +138,9 @@ type RequestContext interface {
// Header ... | 1 | 1 | 0 | [{"id": "G0", "claim": "A separate PR should be made at some point to update all the copyright headers across the repository.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}] | null |
Workiva__go-rest__59 | Workiva/go-rest | 59 | defect | 717361731025f503b2ddd159b0300b91d81cbda9 | 5c48a992d8573c76b29f3927def9f96a03105a02 | Add ability to restrict APIs to defined version numbers | This PR adds the ability to restrict APIs to a defined list of versions on each handler. Borrowing from the approach used for validation, it uses a new middleware handler along with a new `ValidVersions()` method on `BaseResourceHandler`.
Invalid versions will result in a `400` error.
@tylertreat @alexandercampbell-w... | diff --git a/rest/api.go b/rest/api.go
index 0c1355b..fa4ecf0 100644
--- a/rest/api.go
+++ b/rest/api.go
@@ -189,6 +189,25 @@ func newAuthMiddleware(authenticate func(*http.Request) error) RequestMiddleware
}
}
+// newVersionMiddleware checks the request version against all valid versions.
+func newVersionMiddlewa... | 1 | 1 | 0 | [{"id": "G0", "claim": "The invalid-version test should assert one of the http package's predefined status codes rather than the bare integer 400.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Workiva__go-rest__62 | Workiva/go-rest | 62 | defect | 3b5d21df8fafbd1f3b713b8a14033620cdc3fda6 | 415560ec58a74c5d0c2919dd0ac9c90c1ba6d0a5 | Allow nested rules for primitives in a slice | Adding support for nested rules on primitives in a slice. This will allow defining a type on a primitive so that go-rest coerces to the rule type instead of being tied to JSON types.
usage:
``` go
&Rule{
Field: "Foo",
FieldAlias: "foo",
Type: Slice,
Rules: NewRules((*string)(nil), //pass a pointer to ... | diff --git a/rest/rule.go b/rest/rule.go
index 57ebd69..35d1672 100644
--- a/rest/rule.go
+++ b/rest/rule.go
@@ -108,8 +108,14 @@ func (r *rules) Validate() error {
// Validate nested Rules.
if rule.Rules != nil {
- if err := rule.Rules.Validate(); err != nil {
- return err
+ // If a rule is on a slice, ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The long compound if statement assigning nestedType should be broken into multiple lines for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add a test case that calls applyInboundRules... | null |
Workiva__go-rest__7 | Workiva/go-rest | 7 | defect | 7fa883cc019bace85a5aaced7dc003f5ce47f2b0 | 05098cd61e0949e630571947b60b1ad95e93b659 | Nested rules | This PR looks massive but it's a lot of updating/adding tests (see additions/deletions).
This is a refactor of how rest rules work. The end result is that this now supports nested rules. For example:
``` go
type FooResource struct {
ID int
Nested BarResource
}
type BarResource struct {
ID int
P... | diff --git a/rest/api.go b/rest/api.go
index 834a307..48142ac 100644
--- a/rest/api.go
+++ b/rest/api.go
@@ -4,7 +4,6 @@ import (
"fmt"
"log"
"net/http"
- "reflect"
"sort"
"sync"
@@ -204,21 +203,11 @@ func applyMiddleware(h http.HandlerFunc, middleware []RequestMiddleware) http.Ha
func (r muxAPI) validateR... | 2 | 1 | 0 | [{"id": "G0", "claim": "The 'not a slice' error in Payload.GetArray could be more verbose, e.g. including the actual value's type (fmt.Errorf(`Value with key \"%s\" is of type %T (expected slice)`, key, value)).", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
Workiva__go-rest__70 | Workiva/go-rest | 70 | defect | da3d5fa12c996a049f7e4d4fe25542fed9441b79 | 28c26f850d6e9390e73c92a5bbaf3fdaa201643f | Guard agains null array member input causing panic | # Problem
If you have nested rules that expect an array of objects, like so:
``` javascript
"stuff": [
{"foo": "bar1"},
{"foo": "bar2"}
]
```
a `null` array member will cause a panic:
``` javascript
"stuff": [null]
```
# Solution
Check for `nil` values and throw an error.
# Code Review
@alexandercampbell-... | diff --git a/rest/rule.go b/rest/rule.go
index dd63e20..3db8da7 100644
--- a/rest/rule.go
+++ b/rest/rule.go
@@ -341,9 +341,13 @@ func applyNestedInboundRules(
s := reflect.ValueOf(value)
nestedValues := make([]interface{}, s.Len())
for i := 0; i < s.Len(); i++ {
+ val := s.Index(i).Interface()
+ if val ==... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new error should be created with errors.New instead of fmt.Errorf, since nothing is being formatted.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Workiva__go-rest__73 | Workiva/go-rest | 73 | defect | 07477d1f1aca7b9f86bb448d7995f8f0da9e0b72 | eb791f65ff01dbc466bec1a80be7c77629592d1a | Add Rest client middleware with unit tests | r: @tylertreat-wf
o: @macleodbroad-wf @beaulyddon-wf @joestrach-wf
| diff --git a/rest/client.go b/rest/client.go
index 11363d9..e18b546 100644
--- a/rest/client.go
+++ b/rest/client.go
@@ -23,6 +23,7 @@ import (
"io"
"io/ioutil"
"net/http"
+ "net/url"
)
// Supported HTTP Methods
@@ -33,10 +34,45 @@ const (
httpPut = "PUT"
)
+type InvocationHandler func(c *http.Client,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added exported types InvocationHandler, ClientMiddleware, HttpClient and RestClient in rest/client.go lack docstrings.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Workiva__go-rest__79 | Workiva/go-rest | 79 | defect | e504a05a11a38ad67165e68f97a3c6927829daaf | bb2d23f94b018a7040c3adce1033800ef149c899 | INFENG-6103 allow no origin header requests | https://jira.atl.workiva.net/browse/INFENG-6103
## What
- Allow requests w/o origin header to pass
- Add Dockerfile
- Add Glide
- Update Travis
@Workiva/product2 | diff --git a/.gitignore b/.gitignore
index 485dee6..f2ecd3c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
.idea
+vendor/
diff --git a/.travis.yml b/.travis.yml
index 2c32de4..c4e65cb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,8 @@
language: go
go:
- - 1.3
- - 1.4
+ - "1.5"
+ - "1.10"
- t... | 4 | 4 | 0 | [{"id": "G0", "claim": "The glide install step in the Dockerfile should be placed before the repo copy so the layer could potentially be cached.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The checked-in glide.lock file should not be committed si... | null |
WorksApplications__Sudachi__146 | WorksApplications/Sudachi | 146 | defect | 090e3f5f2c4c50ce4fc856c5eb5dbbfa0c606c03 | 0634eb1daa16b843b77235d1d7007acf82bddce5 | Feature/ignore yomigana | Add a plugin that ignores the Yomigana written in brackets after the Kanji. (issue #52)
Hiragana or/and Katakana can be Yomigana.
The following is an example of settings.
```
{
"class" : "com.worksap.nlp.sudachi.IgnoreYomiganaPlugin",
"leftBrackets": ["(", "("],
"rightBrackets": [")", ")"]
}
```
... | diff --git a/src/main/java/com/worksap/nlp/sudachi/DefaultInputTextPlugin.java b/src/main/java/com/worksap/nlp/sudachi/DefaultInputTextPlugin.java
index a97d7d43..b07f474a 100644
--- a/src/main/java/com/worksap/nlp/sudachi/DefaultInputTextPlugin.java
+++ b/src/main/java/com/worksap/nlp/sudachi/DefaultInputTextPlugin.ja... | 3 | 2 | 2 | [{"id": "G0", "claim": "kazuma-t asked whether the length of Yomigana needs to be limited, since as written the plugin accepts arbitrarily long runs of kana inside brackets as yomigana.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "kazuma-t asked w... | null |
WorksApplications__Sudachi__180 | WorksApplications/Sudachi | 180 | defect | 6dc26fca34c73e2401d199051b9e7ebef2f65e2a | 2b6efe3da497b374467f16b146a0df2d32ae2b6e | Add regex oov plugin | 1. Analysis now tracks length of created words with a 64-bit bitfield instead of only flags whether a word was created at a bounary
2. OOV plugins can access all other created words at this point for the boundary
3. Add a Regex-based OOV plugin which creates OOVs based on a regular expression-based rule. | diff --git a/.gitignore b/.gitignore
index 9a0b7a0d..2cf51d47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -123,6 +123,7 @@ settings.xml
build/
.gradle/
!gradle/wrapper/gradle-wrapper.jar
+out/
### OSX ###
*.DS_Store
diff --git a/build.gradle b/build.gradle
index d8015e49..31338893 100644
--- a/build.gradle
+++ b... | 2 | 2 | 0 | [{"id": "G0", "claim": "setUp forces the pattern to compile even though checkPattern already forces compilation, so the extra forced compilation is unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should also check that the pat... | null |
WorksApplications__Sudachi__186 | WorksApplications/Sudachi | 186 | defect | 9bd6a410aead38b10437b93adbef405c14ecc674 | 229e3c3160bb71f8703b7e568e69b9c6668f6bd2 | add support for user-defined POS for all OOV handlers | Fixes #185
the feature is gated by userPos flag of OOV handlers,
which must be set to true for this feature to work | diff --git a/src/main/java/com/worksap/nlp/sudachi/MeCabOovProviderPlugin.java b/src/main/java/com/worksap/nlp/sudachi/MeCabOovProviderPlugin.java
index 9f470f9f..bc3ed764 100644
--- a/src/main/java/com/worksap/nlp/sudachi/MeCabOovProviderPlugin.java
+++ b/src/main/java/com/worksap/nlp/sudachi/MeCabOovProviderPlugin.ja... | 3 | 3 | 0 | [{"id": "G0", "claim": "The setting key should be spelled `userPOS` instead of `userPos`/`USER_POS = \"userPos\"`, to match the all-uppercase `POS` in the existing `oovPOS` key.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parameter naming... | null |
WorksApplications__Sudachi__195 | WorksApplications/Sudachi | 195 | defect | b906e9797c9df4b3ce860a6e15036c3fd346cfe4 | 9bb12a2160451e3b3786a32737e1554172c24c3d | Add MorphemeList.splittedWith method | 1. Make all tokenizing methods return concrete MorphemeList instead of List<Morpheme>
2. Add new `MorphemeList.split` API which resplits already-splitted MorphemeList with different analysis mode. Making more fine analysis from more coarse analysis is supported, going back is not.
3. Refactor splitting logic to remov... | diff --git a/src/main/java/com/worksap/nlp/sudachi/JapaneseTokenizer.java b/src/main/java/com/worksap/nlp/sudachi/JapaneseTokenizer.java
index bd052a26..c9399f13 100644
--- a/src/main/java/com/worksap/nlp/sudachi/JapaneseTokenizer.java
+++ b/src/main/java/com/worksap/nlp/sudachi/JapaneseTokenizer.java
@@ -65,23 +65,23 ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new internal split helper should check whether the entries of a 1-length ids array actually refer to the current node instead of unconditionally re-adding `this`, since the contents of the ids are not necessarily the current word.", "category": "correctness", "verdict": "supported", "priorit... | null |
WorksApplications__Sudachi__242 | WorksApplications/Sudachi | 242 | defect | c6a6677290c5cd2ab57b6a5d7cad3e7441a31cc1 | 12bddf4cfcfb4d458984fb9500bd0b15f0bdca50 | Add TextNormalizer to normalize the column-0 of DictionaryPrinter | fix #241
- Add `TextNormalizer`, that normalizes text using `UTF8InputText` and `InputTextPlugin`.
- Let `DictionaryPrinter` print column-0 (surface) with normalization. | diff --git a/src/main/java/com/worksap/nlp/sudachi/TextNormalizer.java b/src/main/java/com/worksap/nlp/sudachi/TextNormalizer.java
new file mode 100644
index 00000000..749fa45a
--- /dev/null
+++ b/src/main/java/com/worksap/nlp/sudachi/TextNormalizer.java
@@ -0,0 +1,105 @@
+/*
+ * Copyright (c) 2024 Works Applications C... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests for the DictionaryPrinter itself should also be added, not only tests for TextNormalizer.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
WorksApplications__Sudachi__245 | WorksApplications/Sudachi | 245 | defect | dcb86fdce43dcb4fa6ffa0fcbf8ece8d5357cdd5 | 97c0760becd0f3c07612e7084f883ee9d6df2143 | Add lookup and oovMorpheme method | resolves #201.
- Add `List<Morpheme> Dictionary.lookup(CharSequence surface)`
- lookup dictionary entries without analysis.
- Add `Morpheme Dictionary.oovMorpheme(short posId, String surface, ...)`
- create a (OOV) morpheme by user.
- implemented as a method of dictionary to use the same grammar
- Introdu... | diff --git a/src/main/java/com/worksap/nlp/sudachi/Dictionary.java b/src/main/java/com/worksap/nlp/sudachi/Dictionary.java
index e0dc39c7..58beb6db 100644
--- a/src/main/java/com/worksap/nlp/sudachi/Dictionary.java
+++ b/src/main/java/com/worksap/nlp/sudachi/Dictionary.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Wo... | 2 | 2 | 0 | [{"id": "G0", "claim": "PathRewritePlugin should ask the LatticeNode (its public methods) directly instead of reaching into StringsCache, an internal implementation detail of how LatticeNode holds information.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
WorksApplications__sudachi.rs__153 | WorksApplications/sudachi.rs | 153 | defect | f64c90deea5fc523c0d7d9a38d36d0c5641e94e1 | 746babd83a619cc1bfc4779f0ff2c1c0f425b4b6 | add Python binding for building user/system dictionaries | Fixes #152 | diff --git a/.gitignore b/.gitignore
index 8e70bee0..2ae048dc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,5 +15,5 @@ __pycache__/
.env
*.egg-info
*.so
-python/py_src/sudachi/*.pyd
+python/py_src/sudachipy/*.pyd
python/build/
\ No newline at end of file
diff --git a/python/py_src/sudachipy/command_line.py b/pyth... | 2 | 1 | 0 | [{"id": "G0", "claim": "Re-export build_system_dic and build_user_dic from sudachipy/__init__.py (and eventually provide dictionary building as public API) so they can be used as sudachipy.build_~ instead of sudachipy.sudachipy.build_~.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
WorksApplications__sudachi.rs__185 | WorksApplications/sudachi.rs | 185 | defect | 7bf1a43076201a4387144aa45f0dc676c2e7380f | e6b005841464ecafe691de886184590816a55d7c | implement analysis memory reuse via output parameters | Fixes #184
Implement out parameters for `Tokenizer.tokenize()` and `Morpheme.split()` Python API.
For the memory sharing to be actually useful, I had to refactor internal MorphemeList to allow multiple references to input data, while having distinct list of morphemes. Let's welcome `Arc<RefCell<X>>` in our codeb... | diff --git a/python/py_src/sudachipy/sudachipy.pyi b/python/py_src/sudachipy/sudachipy.pyi
index cab09b23..4ee32dc7 100644
--- a/python/py_src/sudachipy/sudachipy.pyi
+++ b/python/py_src/sudachipy/sudachipy.pyi
@@ -153,7 +153,7 @@ class Morpheme:
"""
...
- def split(self, mode: SplitMode) -> Morp... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new split(out=) test should also check a second split with a word different from the one used above.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The split_middle assertion double-derefs surface() (m.surface().deref().deref... | null |
WorksApplications__sudachi.rs__203 | WorksApplications/sudachi.rs | 203 | defect | df9997ed6b95af8dc9f9cc77c60c359b78a7105b | 1e0bc9503c60f37dfba2cdf80f473caf538542ba | resolve paths in more smart fashion | Fixes https://github.com/WorksApplications/SudachiPy/issues/172
Sudachi.rs now resolves paths of resources in the following order:
1. Absolute paths stay as they are
2. Relative to "path" value of the config file
3. Relative to "resource_dir" parameter of the config object during creation
4. Relative to the loca... | diff --git a/python/py_src/sudachipy/resources/sudachi.json b/python/py_src/sudachipy/resources/sudachi.json
index e4f6434f..4414adaa 100644
--- a/python/py_src/sudachipy/resources/sudachi.json
+++ b/python/py_src/sudachipy/resources/sudachi.json
@@ -1,5 +1,5 @@
{
- "systemDict" : "",
+ "systemDict" : null,
... | 4 | 3 | 1 | [{"id": "G0", "claim": "The resolve_exe test should also check the length of the resolved path list (npath.len() == 1).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A dedicated cfg.resolved_character_definition_file() helper should be added instead of... | null |
WorksApplications__sudachi.rs__221 | WorksApplications/sudachi.rs | 221 | defect | ae7769a3e88b92de2f80f03de8c8cc3925e6c136 | e5922a1c4951b1df2bc05afd4d3fbb2ab637fb7b | add Dictionary.lookup method | it fetches entries from the dictionary without doing analysis | diff --git a/python/py_src/sudachipy/sudachipy.pyi b/python/py_src/sudachipy/sudachipy.pyi
index 484d42b0..bb7bce59 100644
--- a/python/py_src/sudachipy/sudachipy.pyi
+++ b/python/py_src/sudachipy/sudachipy.pyi
@@ -114,6 +114,7 @@ class Dictionary:
"""
...
+ def lookup(self, query: str, out: Opti... | 2 | 2 | 1 | [{"id": "G0", "claim": "The text_signature of Dictionary.lookup still names the third argument `list = None` although the parameter is called `out`; it should be renamed to `out`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Calling `end` of a M... | null |
WorldBrain__Memex__1000 | WorldBrain/Memex | 1,000 | defect | 27f77c74eda7d71722c6df820f5deefe341a8635 | 2ef73074dfba1ff3d3f46bd75c15147f8ac2b964 | Improve highlight readablity for dark mode websites | Addresses #885
This makes sure that the text color of highlights can be read on websites that use dark mode. The value for determining whether or not the website qualifies as "dark" is more or less arbitrary, so suggestions on how to make that better would be great!
Before
 | Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
| diff --git a/Xi/extinit.c b/Xi/extinit.c
index bb168a2c755..00ba603cae9 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -446,7 +446,7 @@ SProcIDispatch(ClientPtr client)
case X_XISelectEvents:
return SProcXISelectEvents(client);
case X_XIQueryVersion:
- return SProcXIQueryVersi... | 1 | 1 | 1 | [{"id": "G0", "claim": "Keep the strict REQUEST_SIZE_MATCH in ProcXIQueryVersion instead of the loosened REQUEST_AT_LEAST_SIZE the PR introduced.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
X11Libre__xserver__1204 | X11Libre/xserver | 1,204 | defect | b306691c2df6424f5b00f2a196fe24a525aff52b | e293b372511baaf1d50efe9b6a03ca835d0b44c1 | treewide: macros lambda-esque screen iteration | iterating over screen list via lambda-esque macros calls like this
DIX_FOR_EACH_SCREEN({
do_something
});
withing the body, the iterator variables `walkScreenIdx` and `walkScreen`
are defined and can be directly used (read-only). the code inside the body
is running in a separate scope.
Signed-off-by:... | diff --git a/Xext/damage/damageext.c b/Xext/damage/damageext.c
index d5809814a6f..a44765838a2 100644
--- a/Xext/damage/damageext.c
+++ b/Xext/damage/damageext.c
@@ -28,6 +28,7 @@
#include "dix/dix_priv.h"
#include "dix/request_priv.h"
+#include "dix/screenint_priv.h"
#include "include/pixmapstr.h"
#include "miext... | 1 | 1 | 1 | [{"id": "G0", "claim": "In dix/privates.c the loops that iterate GPU screens (in fixupScreens and grow_screen_specific_set) should use DIX_FOR_EACH_GPU_SCREEN instead of DIX_FOR_EACH_SCREEN, which iterates regular screens.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
X11Libre__xserver__1215 | X11Libre/xserver | 1,215 | defect | 19921fd401339a54497b4da4364f0cb5595683d9 | d06360f3c166b5668a5d19822fdf865069b8de2f | treewide: use helper dixGetScreenPtr() for retrieving ScreenPtr's | Instead of directly accessing the global screenInfo.screens[] array,
let everybody go through a little inline helper. This one also checks
for array bounds - if the screen doesn't exist, return NULL.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
| diff --git a/Xext/panoramiX.c b/Xext/panoramiX.c
index 6bba23a025c..d7bd0ea385b 100644
--- a/Xext/panoramiX.c
+++ b/Xext/panoramiX.c
@@ -827,7 +827,7 @@ PanoramiXConsolidate(void)
VisualID
PanoramiXTranslateVisualID(int screen, VisualID orig)
{
- ScreenPtr pOtherScreen = screenInfo.screens[screen];
+ ScreenPtr... | 4 | 2 | 0 | [{"id": "G0", "claim": "In ProcVidModeGetPermissions the intermediate pScreen variable is unnecessary below that point, so either test dixGetScreenPtr(stuff->screen) inline, keep the old check, or better introduce a dixScreenExists(idx) helper/macro for readability.", "category": "design", "verdict": "supported", "prio... | null |
X11Libre__xserver__1233 | X11Libre/xserver | 1,233 | defect | 6730fd8251cfadd6243bab72d0f8f3e512ca0cb8 | 8861b724c6eee781019738fac89d372f6562e582 | Xorg backports 2 | More backports of recent commits from Xorg.
These are fixes for lints reported in https://gitlab.freedesktop.org/xorg/xserver/-/issues/1817
Fixes were merged in https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2072 and https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2075 | diff --git a/Xext/shm.c b/Xext/shm.c
index 0fcae5fa8d9..1e158b78f4a 100644
--- a/Xext/shm.c
+++ b/Xext/shm.c
@@ -211,7 +211,7 @@ ShmInitScreenPriv(ScreenPtr pScreen)
ShmScrPrivateRec *screen_priv = ShmGetScreenPriv(pScreen);
if (!screen_priv) {
- screen_priv = calloc(1, sizeof(ShmScrPrivateRec));
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change should not crash the whole Xserver by replacing calloc with XNFcallocarray in ShmInitScreenPriv, and ShmScrPrivateRec should be moved directly into the privates block instead of a pointer to it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
X11Libre__xserver__1262 | X11Libre/xserver | 1,262 | defect | c046c7629e771483a8b0677b5c34e330cda49ae6 | c168ef15a2cf807a1efcf0e5b600e2cc0568f73d | dix/Xinerama: untwist X_AllocColor request handling | Instead of internally faking requests, factor out the actual logic
into separate function, which is getting everything it needs as
parameters, so no need to fiddle with request buffer anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
| diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c
index 246a21ccc18..0c5062f0b6e 100644
--- a/Xext/panoramiXprocs.c
+++ b/Xext/panoramiXprocs.c
@@ -2509,12 +2509,31 @@ PanoramiXAllocColor(ClientPtr client)
XINERAMA_FOR_EACH_SCREEN_BACKWARD({
stuff->cmap = cmap->info[walkScreenIdx].id;
- ... | 4 | 3 | 2 | [{"id": "G0", "claim": "The reply branch uses `if (walkScreenIdx)` but should be `!walkScreenIdx` so the reply is sent only for the first screen.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reply-suppression logic of `if (noPanoramiXExtension... | null |
X11Libre__xserver__1263 | X11Libre/xserver | 1,263 | defect | c046c7629e771483a8b0677b5c34e330cda49ae6 | 15e9b881ab80815573dc939bcf1404913d5f0dd0 | dix: inline SProcAllocColor() | Now that we have untwisted Xinerama side, it's trivial to inline
the few lines for byte-swapping into the actual handlers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
| diff --git a/Xext/panoramiXprocs.c b/Xext/panoramiXprocs.c
index 246a21ccc18..88ff91fc0ca 100644
--- a/Xext/panoramiXprocs.c
+++ b/Xext/panoramiXprocs.c
@@ -2497,9 +2497,15 @@ PanoramiXAllocColor(ClientPtr client)
PanoramiXRes *cmap;
REQUEST(xAllocColorReq);
-
REQUEST_SIZE_MATCH(xAllocColorReq);
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In ProcAllocColor the newly inlined swap block is placed after stuff->cmap is already used in the code above, so the swapping should be done earlier.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
X11Libre__xserver__1286 | X11Libre/xserver | 1,286 | defect | feb50d22932bb3466a8c5c7085c835123eae4d98 | 0fce0c80fd6210695e333ad512cf6b05a8012a2a | Add extra symbols for proprietary Nvidia v340 driver | Add some symbols that this ancient driver still wants. Needs to be enabled at build time via -Dlegacy_nvidia_340x=true
| diff --git a/hw/xfree86/compat/geeventinit.c b/hw/xfree86/compat/geeventinit.c
new file mode 100644
index 00000000000..9069ba08ed4
--- /dev/null
+++ b/hw/xfree86/compat/geeventinit.c
@@ -0,0 +1,28 @@
+#include <dix-config.h>
+
+#include <X11/Xfuncproto.h>
+#include <X11/Xproto.h>
+
+#include "os/osdep.h"
+
+#include "x... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new legacy_nvidia_340x meson option defaults to false, so the legacy Nvidia 340x quirks are disabled by default and users who forget to enable them end up with non-working X; the default should be set to true (keeping the option so packagers can still disable it).", "category": "design", "ve... | null |
X11Libre__xserver__1432 | X11Libre/xserver | 1,432 | defect | 064e5f2ddffdf33c6a7d32c110c5f736df5b8f1e | 104f26c261489b68239bb4618fb929cfb9d2f5c9 | include: misc.h: unexport lowbit() macro | Not used by any drivers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
| diff --git a/dix/window.c b/dix/window.c
index a2431c5380d..4c123225859 100644
--- a/dix/window.c
+++ b/dix/window.c
@@ -117,6 +117,7 @@ Equipment Corporation.
#include "mi/mi_priv.h" /* miPaintWindow */
#include "os/auth.h"
#include "os/client_priv.h"
+#include "os/osdep.h"
#include "os/screensaver.h"
#in... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added lowbit() definition in os/osdep.h should use a C-style comment instead of the trailing C++-style `//` line comment (`// unexport`).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
X11Libre__xserver__152 | X11Libre/xserver | 152 | defect | a43c9d871989b8393afecbba8bd8e0e31bbf9f8f | 80b0df89d228c3013d0beb75353040407fdf8020 | add missing symbols needed by the proprietary nvidia drivers | The proprietary nvidia drivers need some symbols that are not in xlibre | diff --git a/hw/xfree86/compat/devices.c b/hw/xfree86/compat/devices.c
new file mode 100644
index 00000000000..658df50272a
--- /dev/null
+++ b/hw/xfree86/compat/devices.c
@@ -0,0 +1,29 @@
+#include <dix-config.h>
+
+#include <X11/Xfuncproto.h>
+
+#undef Ones
+
+/*
+ * this is specifically for NVidia proprietary driver:... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new compat file should get a name that reflects its contents, e.g. 'ones.c', instead of the unclear 'devices.c'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The compat shims should carry code comments stating they ... | null |
X11Libre__xserver__1590 | X11Libre/xserver | 1,590 | defect | 609ea42a62100bbfd8ab311da2420ff32495c42f | ddbe7b56af5d4acafa13213bb0f8f00fd60fa606 | Bringing back Cygwin support! | Added Cygwin to our CI running natively on windows-latest in GH actions.
\+ Made changes to the codebase to make it compile under Cygwin.
Related to #626 and my [recent build on Windows](https://github.com/orgs/X11Libre/discussions/425#discussioncomment-15180726).
| diff --git a/.github/scripts/Cygwin/build.sh b/.github/scripts/Cygwin/build.sh
new file mode 100755
index 00000000000..a0bffff3578
--- /dev/null
+++ b/.github/scripts/Cygwin/build.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -x
+ccache -s
+meson setup --prefix=/usr -Dxv=false -Dxf86bigfont=true -Dxephyr=true -Dxnest=true -Dxvfb=... | 19 | 5 | 0 | [{"id": "G0", "claim": "The xf86VGAarbiterWrapFunctions stub should have its type changed to Bool (or drop the return entirely) instead of being a void function that returned FALSE.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The header guards ... | null |
X11Libre__xserver__1602 | X11Libre/xserver | 1,602 | defect | 1c3b0da3568687b487a202e004abeeea0623acfe | c015a495aa230fbcee72f8d98debff649b53be28 | Xorg openssl 3 | Backport https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2066
Since we added -Werror to CI, we should do this: https://github.com/X11Libre/xserver/pull/1600
I avoided backporting this in case this one got fixed: https://github.com/X11Libre/xserver/pull/672
@alex14fr @X11Libre/dev @X11Libre/all If ... | diff --git a/test/meson.build b/test/meson.build
index f97aa3ea21d..79fce475bae 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -179,6 +179,7 @@ if build_xorg
'input.c',
'list.c',
'misc.c',
+ 'sha1.c',
'signal-logging.c',
'string.c',
'test_xkb.c',
diff --git a/test/sha1.c... | 4 | 2 | 0 | [{"id": "G0", "claim": "The xephyr_gles tests are disabled in CI (-Dtest_xephyr_gles=false) with no known blocking issue, and softpipe/llvmpipe might be usable so the tests could run.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "PR #672 should be lo... | null |
X11Libre__xserver__246 | X11Libre/xserver | 246 | defect | 5d2315b6e6d41eba59c15c88d702172d424e8b19 | ce11e7465690c706f0767e100a75609b2a6fae17 | [25.0] Add extra symbols for proprietary Nvidia v340 driver | There're two symbols still referenced in proprietary Nvidia driver that had been removed long ago in Xorg.
No idea whether they're actually called ever - Nvidia's driver is a sphagetty nightmare, and many of those symbols are only used in ancient Xserver ABIs.
It's very sad to see that NVidia folks still can't clea... | diff --git a/hw/xfree86/compat/geeventinit.c b/hw/xfree86/compat/geeventinit.c
new file mode 100644
index 00000000000..53dc2cc425b
--- /dev/null
+++ b/hw/xfree86/compat/geeventinit.c
@@ -0,0 +1,28 @@
+#include <dix-config.h>
+
+#include <X11/Xfuncproto.h>
+#include <X11/Xproto.h>
+
+#include "os/osdep.h"
+
+#include "x... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new TimerCheck() shim should warn only once rather than on every call.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This PR should be aligned with #1286 already merged into main, which adds the meson_options entry.", "catego... | null |
XAMPPRocky__fluent-templates__14 | XAMPPRocky/fluent-templates | 14 | defect | d654d11bee93a8f6774bb4fe3d611ee217210cd6 | 8feed08fde11b8c84dc66ee0d3166af47951cbee | Default lang argument in Tera templates | this makes lang argument optional by providing global default value
See https://github.com/XAMPPRocky/fluent-templates/issues/13
@XAMPPRocky is it what you had in mind? | diff --git a/templates/src/loader.rs b/templates/src/loader.rs
index 0727234..8b3afae 100644
--- a/templates/src/loader.rs
+++ b/templates/src/loader.rs
@@ -80,12 +80,23 @@ where
/// for integrating with different libraries.
pub struct FluentLoader<L> {
loader: L,
+ default_lang: Option<LanguageIdentifier>,
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a test that the default lang feature works and a test that Tera errors when neither a `lang` parameter nor a default language is provided.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add documentation about the with_defaul... | null |
XAMPPRocky__fluent-templates__84 | XAMPPRocky/fluent-templates | 84 | defect | a0de052238849cc923fe9f347c19c7ee6597d2e9 | 1fe0c57cb98fd0126234e9e14c53cddbd9f3d415 | Add a `MultiLoader` loader that consists of other loaders | Fixes #82 | diff --git a/src/lib.rs b/src/lib.rs
index 50013ed..0eb4a49 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -160,7 +160,7 @@
//!
//! let args = {
//! let mut map = HashMap::new();
-//! map.insert(String::from("name"), "Alice".into());
+//! map.insert(Cow::from("name"), "Alice".into());
//! ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The MultiLoader docs should say more about why you would use multiple sources, include a code example of constructing it, and document which source is chosen first when multiple sources are present.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
XLSForm__pyxform__167 | XLSForm/pyxform | 167 | defect | 17a96c8e93ec8eef4613a897d2535257de8c3f5a | 2bda44b4de6c92e25aa0c2fc2ae5ec90dd8fefa7 | Enketo validate #163 | PR for #163. More or less the same as the ODK Validate workflow but using a JS validator which @MartijnR is working on.
I've left a stub JavaScript file called "enketo_validate.js" which is called with NodeJS and the stdout/stderr result piped back to pyxform, sufficient for the integration test to pass. The actual ... | diff --git a/.gitignore b/.gitignore
index d082d78fd..008954743 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,8 @@
.DS_Store
.noseids
tests/how_old_are_you.json
+tests/test_output
+.idea
# folders created by setuptools
build
diff --git a/pyxform/odk_validate/__init__.py b/pyxform/odk_validate/__init__.py
d... | 9 | 9 | 8 | [{"id": "G0", "claim": "The validation logic should be reworked to run either ODK Validate (default) or Enketo Validate rather than the current overlapping flag semantics, with --skip_validate skipping both options.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
XLSForm__pyxform__287 | XLSForm/pyxform | 287 | defect | 297dee723b7b86194e792a9b589adae8f5a635f7 | edc00b485b3b8a2e36167a33c923cbd23b4af9cf | [REVERTED] issue 157 - warn users when any language is missing a tranlsation and blanking fields | I was having trouble detecting media columns and the like early, and I realized the media column wasn't really the problem here, it was the unlabelled column.
So I dug for where the `-` was being literally added to the XML as an answer value and added the warning there. | diff --git a/pyxform/survey.py b/pyxform/survey.py
index bd9d9d944..c263690cc 100644
--- a/pyxform/survey.py
+++ b/pyxform/survey.py
@@ -166,7 +166,7 @@ def get_nsmap(self):
return NSMAP
- def xml(self):
+ def xml(self, warnings=None):
"""
calls necessary preparation methods, then r... | 6 | 5 | 4 | [{"id": "G0", "claim": "The new test asserts that a form in which none of the user-facing columns specifies a language should produce a warning, but per the reviewer such a form is fine and should not warn; the problem only arises when a subset of the columns specifies a language.", "category": "correctness", "verdict"... | null |
XLSForm__pyxform__289 | XLSForm/pyxform | 289 | defect | 71501b99244b4bfe1d5f07f11a0dfe3816f6bb86 | 7851b46dd28b892acd803d826974af0ad52666b2 | remove dummy data generated to just sneak past validation | Note that its just a draft, can @lognaturel or @MartijnR confirm that the tests conform to what #286 is asking for? That is, if these tests pass286 is resolved? | diff --git a/pyxform/survey.py b/pyxform/survey.py
index 85dfae468..32f3c150a 100644
--- a/pyxform/survey.py
+++ b/pyxform/survey.py
@@ -231,11 +231,6 @@ def _generate_static_instances(list_name, choice_list):
),
)
- @staticmethod
- def _get_dummy_instance():
- """Instance content r... | 6 | 6 | 3 | [{"id": "G0", "claim": "The reviewer would prefer the generated external `instance` element to be a self-closing tag (and the expected test output to match).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "pyxform/validators/odk_validate/latest.json loo... | null |
XLSForm__pyxform__385 | XLSForm/pyxform | 385 | defect | 077972c59970d445f1b1fe48e8a42937490e6769 | 2d4f5337a3b45c61db24494e2542a406712e611f | Adding support for dynamic defaults. | Fix #338.
This will add dynamic default handler for the form. This failed validation on both enketo and ODKValidator I think. | diff --git a/pyxform/question.py b/pyxform/question.py
index 8e083f512..90e5760ef 100644
--- a/pyxform/question.py
+++ b/pyxform/question.py
@@ -26,7 +26,7 @@ def xml_instance(self, **kwargs):
for key, value in attributes.items():
attributes[key] = survey.insert_xpaths(value, self)
- if s... | 5 | 2 | 1 | [{"id": "G0", "claim": "The S1 detection misses dynamic defaults that are arithmetic on numeric literals, such as `365/7`, because only bracket-like constructs are checked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Balanced-pair bracket matchin... | null |
XLSForm__pyxform__394 | XLSForm/pyxform | 394 | defect | 5542ae429dca3bb44537b39cfea454675d7e2bf1 | 3ce8cda890342f826df63c5fc360f4642d93241f | Add pyxform version to XForm output, closes #393 | Please check extra carefully, as I didn't really know what I was doing.
This code assumes each tag has the format 'v'+semantic version, as we've been using so far (except for vv0.88). If you think that may possibly change, I'd be happy to add a few lines to chop off any non numeric starting characters. Or we could n... | diff --git a/pyxform/constants.py b/pyxform/constants.py
index 982587f06..6038a4f2f 100644
--- a/pyxform/constants.py
+++ b/pyxform/constants.py
@@ -28,6 +28,7 @@
COMPACT_TAG = "compact_tag"
VERSION = "version"
+PYXFORM_VERSION = "pyxform_version"
PUBLIC_KEY = "public_key"
SUBMISSION_URL = "submission_url"
AUTO_... | 2 | 2 | 2 | [{"id": "G0", "claim": "The PR's dynamic pyxform version breaks the old-style tests, which compare expected XForm output literally, so the version attribute should be excluded from the comparison (or the tests migrated to the new style).", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "intro... | null |
XLSForm__pyxform__457 | XLSForm/pyxform | 457 | defect | b0bd9d4090f65f9ef1a44d7be35c87ecaf1e77ab | 77d44e92f68ab36d3c9ac73bcd65adf2b21884b2 | Triggers referring to hidden question will produce an error. | Closes #
#452
#### Why is this the best possible solution? Were any other approaches considered?
The simplest one.
#### What are the regression risks?
None.
#### Does this change require updates to documentation? If so, please file an issue [here](https://github.com/XLSForm/xlsform.github.io) and include the lin... | diff --git a/pyxform/question.py b/pyxform/question.py
index c1633e1ae..02e7f19d7 100644
--- a/pyxform/question.py
+++ b/pyxform/question.py
@@ -32,6 +32,16 @@ def xml_instance(self, **kwargs):
def xml_control(self):
if ("calculate" in self.bind or self.trigger) and not (self.label or self.hint):
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Reword the error message so it is easier to parse, e.g. \"${%s} is not a user-visible question so it can't be used as a calculation trigger for question ${%s}\" with self.name as the first string and setvalue[0] as the second, or at least fix \"to hidden question\" to \"to a hidden question\".",... | null |
XLSForm__pyxform__468 | XLSForm/pyxform | 468 | defect | 50921a8e48b853565abd48b543558b5e24d6c4f4 | 0963af66a2c696b5655f97430d8800630c24a6f0 | Fixed duplicate label translations for secondary itemsets and use itextID for selects with choices that have media specified | Based on #467
Closes #464, #463
#### Why is this the best possible solution? Were any other approaches considered?
The simplest approach(_Least amount of modification to already existing functionality_). Ensures that we only generate translations for choices in filtered selects in a controlled manner and that ... | diff --git a/pyxform/question.py b/pyxform/question.py
index 579b7cf17..945af4bd4 100644
--- a/pyxform/question.py
+++ b/pyxform/question.py
@@ -195,11 +195,16 @@ def build_xml(self):
if self["itemset"] and isinstance(self["itemset"], basestring):
choice_filter = self.get("choice_filter")
... | 4 | 4 | 1 | [{"id": "G0", "claim": "Removing the `static_instance` prefix from itext ids may be risky if any tool relies on predictable itext element ids, so another reviewer should confirm it is safe.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The block se... | null |
XLSForm__pyxform__485 | XLSForm/pyxform | 485 | defect | 4d9decdf5e50be7b174f562e6929f2395fa2694c | c1fa3a07738f27143d45295b99eb7c5aeeb50df8 | When indexed-repeat is used within a repeat, 1st, 2nd, 4th, and 6th a… | …rgument not using relative path.
Closes #
Fix #484
#### Why is this the best possible solution? Were any other approaches considered?
The one that works and passed tests.
#### What are the regression risks?
All tests passed, including new ones.
#### Does this change require updates to documentation? If so, p... | diff --git a/pyxform/survey.py b/pyxform/survey.py
index de0f5f9cf..f9f45794c 100644
--- a/pyxform/survey.py
+++ b/pyxform/survey.py
@@ -877,26 +877,9 @@ def _var_repl_function(
Given a dictionary of xpaths, return a function we can use to
replace ${varname} with the xpath to varname.
"""
- ... | 3 | 3 | 2 | [{"id": "G0", "claim": "The tangle of if-statements deciding when a ${name} reference gets a relative path looks tough to maintain and evolve, and the reviewer asks that this logic at the very least be grouped in a function with a clear comment on its purpose, ideally with a narrative on what alternatives were consider... | null |
XLSForm__pyxform__499 | XLSForm/pyxform | 499 | defect | 94dc5a2ab976a112fc2f1779ffa7eb4e67241f1b | 29408513184a79d6ffe03bfb8166324bde45a79a | Fixed indexed-repeat argument path evaluation in integer column type | Closes #484
Closes #507
#### Why is this the best possible solution? Were any other approaches considered?
Previous solution (PR #485) with added evaluation for integer type column.
#### What are the regression risks?
None.
#### Does this change require updates to documentation? If so, please file an issue [here... | diff --git a/pyxform/survey.py b/pyxform/survey.py
index a99f1806c..6ce0ed15a 100644
--- a/pyxform/survey.py
+++ b/pyxform/survey.py
@@ -912,7 +912,7 @@ def _is_return_relative_path():
current_matchobj = matchobj
if not last_saved and context:
- if context["type"] == "text":
+... | 4 | 4 | 2 | [{"id": "G0", "claim": "The condition `context[\"type\"] in [\"text\", \"integer\"]` will keep failing for every type other than text or integer, which is not what is wanted; the condition should be `if context[\"type\"] != \"calculate\"`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
XLSForm__pyxform__516 | XLSForm/pyxform | 516 | defect | 7e86931f2d6d3882461d9ab3dfa4d8b326d2cdfc | fa1afbdc7cc7bb3a9bd8ac681a0a8c6055f6622c | Generate correct refrence when selecting choices from current repeat question | Closes #503
#### Why is this the best possible solution? Were any other approaches considered?
Simplest solution with minimal changes
#### What are the regression risks?
N/A
#### Does this change require updates to documentation? If so, please file an issue [here](https://github.com/XLSForm/xlsform.gith... | diff --git a/pyxform/question.py b/pyxform/question.py
index 56e9918ed..26ea2c1a7 100644
--- a/pyxform/question.py
+++ b/pyxform/question.py
@@ -219,7 +219,9 @@ def build_xml(self):
itemset = self["itemset"]
itemset_label_ref = "jr:itext(itextId)"
- choice_filter =... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR's change of the expected itemset reference from current()/../target_min_age to current()/../../selected/target_min_age should not be made: leaving the current repeat instance and re-entering via ../selected/ ends up in the first instance of the repeat, so the new path may not pick the val... | null |
XLSForm__pyxform__524 | XLSForm/pyxform | 524 | defect | bee96541d39519b7e6f3dab3422874ed48ddf7ae | 139ac4d6d1372e404dc60e2a1f7eb8bfad2e51b7 | ${} references in predicates should be expanded using current() | Closes #490
#### Why is this the best possible solution? Were any other approaches considered?
I use simple predicate testing by checking whether current context start with `instance(`. I'm thinking about using external library for xpath checking, but thought that would be too overkill for this case.
#### What ... | diff --git a/pyxform/survey.py b/pyxform/survey.py
index cbca415b..62ddf65a 100644
--- a/pyxform/survey.py
+++ b/pyxform/survey.py
@@ -889,6 +889,7 @@ def _var_repl_function(
name = matchobj.group(2)
last_saved = matchobj.group(1) is not None
is_indexed_repeat = matchobj.string.find("indexed-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variable `is_predicate` is misleading because it does not look at predicates at all; it should be renamed to something like `is_secondary_instance`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
XLSForm__pyxform__536 | XLSForm/pyxform | 536 | defect | d2463fcda5ca9d430c7cdfdb63461f54025fae11 | ebf664e0f18e3d8ce583ba6a8beea746524b802f | Fixed ${} references in predicates not being expanded using current()… | … if the expression contains whitespace before the reference
Closes #531
#### Why is this the best possible solution? Were any other approaches considered?
Fixing previous working solution.
#### What are the regression risks?
None.
#### Does this change require updates to documentation? If so, please fil... | diff --git a/pyxform/survey.py b/pyxform/survey.py
index 4f7706d5..d9462801 100644
--- a/pyxform/survey.py
+++ b/pyxform/survey.py
@@ -915,7 +915,7 @@ def _var_repl_function(
is_indexed_repeat = matchobj.string.find("indexed-repeat(") > -1
indexed_repeat_regex = re.compile(r"indexed-repeat\([^)]+\)")
... | 5 | 5 | 2 | [{"id": "G0", "claim": "The change gives any ${} expression occurring after instance() a current() prefix whether or not it is in a predicate (e.g. '...]/label + ${item-counter}'), which is not desirable; the extra prefixes should be avoided (lognaturel proposes a regex capturing the strings between [ and ]) and, if th... | null |
XLSForm__pyxform__560 | XLSForm/pyxform | 560 | defect | 33805992fca8e1190f9e34b4a931a7a39b1ab236 | 206f1f63099fad5cdd23ae0439e563d4d8a4298d | Add allow-mock-accuracy parameter | Needed for getodk/collect#4768
#### Why is this the best possible solution? Were any other approaches considered?
#### What are the regression risks?
#### Does this change require updates to documentation? If so, please file an issue [here](https://github.com/XLSForm/xlsform.github.io) and include the link bel... | diff --git a/pyxform/tests_v1/test_allow_mock_accuracy.py b/pyxform/tests_v1/test_allow_mock_accuracy.py
new file mode 100644
index 00000000..b36e6196
--- /dev/null
+++ b/pyxform/tests_v1/test_allow_mock_accuracy.py
@@ -0,0 +1,119 @@
+# -*- coding: utf-8 -*-
+from pyxform.tests_v1.pyxform_test_case import PyxformTestCa... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test should assert the http://www.opendatakit.org/xforms namespace with the odk prefix instead of the orx/openrosa namespace.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
XLSForm__pyxform__578 | XLSForm/pyxform | 578 | defect | 9d20bfec5128f53ec0d555f7187f3bc4881f667e | 72b18808c5a2a42e08b757a5d5477cdcdaba38eb | 495: Default string values with dashes are mistakenly treated as dynamic defaults | Closes #495
#### Why is this the best possible solution? Were any other approaches considered?
Approaches the problem by adding a lexer, whose parsing rules are used to identify expression tokens that indicate a dynamic expression. These tokens are: math operators, union operator, xpath predicates, pyxform refere... | diff --git a/pyxform/survey_element.py b/pyxform/survey_element.py
index 6a5b3b33..a54a76d1 100644
--- a/pyxform/survey_element.py
+++ b/pyxform/survey_element.py
@@ -384,7 +384,7 @@ def get_setvalue_node_for_dynamic_default(self, in_repeat=False):
triggering_events = "odk-instance-first-load"
if in... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new test_dynamic_default_select_choice_name_with_hyphen test should not run ODK validate and appears to be missing an assertion, so it does not verify the rendered output.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The TO... | null |
XLSForm__pyxform__580 | XLSForm/pyxform | 580 | defect | bb2497d14b6678ac737e7f16a2dff3bbd06fa054 | 3b21ce97678985a46f89c616a89944ecf8892edd | 555: Add support for Python 3.9 | Closes #555
#### Why is this the best possible solution? Were any other approaches considered?
A GitHub Actions yaml file was in place already with a `release` job for creating a build with Py3.8 and linux (ubuntu) and uploading it to PyPI. This PR updates the yaml to add jobs for:
- `lint`, with Py3.8 on linu... | diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml
index a9c4b44e..bb451764 100644
--- a/.github/workflows/pypi.yml
+++ b/.github/workflows/pypi.yml
@@ -3,31 +3,126 @@ name: PyPI
on: [push, pull_request, release]
jobs:
- build:
- runs-on: ubuntu-latest
+ release:
+ if: github.event_name ==... | 2 | 2 | 0 | [{"id": "G0", "claim": "The GitHub workflow should probably be renamed since PyPI is only involved for releases.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Split CI into a 'verify' workflow run on push/pull_request with jobs lint and test,... | null |
XLSForm__pyxform__586 | XLSForm/pyxform | 586 | defect | f4cbc674fa1811aba9334ce0cea123fc4984b22a | e680365cf10a4e4213fe75a4820dc4d1becd63e9 | Add accuracy parameters for geopoint | Closes #579
#### Why is this the best possible solution? Were any other approaches considered?
This is the approach that matches other parameters currently. I feel more and more of a desire to reduce the spaghetti nature of that part of the code but I don't think we should combine that with adding a new parameter.
... | diff --git a/pyxform/xls2json.py b/pyxform/xls2json.py
index 7aa55ea3..dc2def87 100644
--- a/pyxform/xls2json.py
+++ b/pyxform/xls2json.py
@@ -21,7 +21,6 @@
if TYPE_CHECKING:
from typing import Any, Dict, KeysView, List, Optional
-
SMART_QUOTES = {"\u2018": "'", "\u2019": "'", "\u201c": '"', "\u201d": '"'}
_M... | 1 | 1 | 1 | [{"id": "G0", "claim": "The error messages say the accuracy parameters must have an \"integer value\" although the type check is float and 2.5 is accepted, so the messages should say the value must be numeric.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
XLSForm__pyxform__666 | XLSForm/pyxform | 666 | defect | 2b8070738b0f2b14891e679ff7390a275a8ba350 | c99a2f9af98c249d06422176fccbbf460e1fbe81 | #653 Detection of multilanguage choices only works if first choice list is multilanguage | Closes #653
#### Why is this the best possible solution? Were any other approaches considered?
There are 2 main problem areas addressed: the translation warning, and the detection of translations for triggering multi-language (itext) output behaviour,
This changes the missing translations check in xls2json to ... | diff --git a/pyxform/builder.py b/pyxform/builder.py
index 4092028c..d7edad2c 100644
--- a/pyxform/builder.py
+++ b/pyxform/builder.py
@@ -83,12 +83,13 @@ def __init__(self, **kwargs):
# I don't know why we would need an explicit none option for
# select alls
self._add_none_option = False
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new is_label_dynamic function should return the boolean expression's value directly instead of using an if/else that returns True or False.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fewer cases may now use itext ... | null |
XLSForm__pyxform__743 | XLSForm/pyxform | 743 | defect | 4df844886ff503257d7d3edd5e67fcf47b4a1294 | 957f11efb783f3fb739aab5984b8e4e9e0699e8f | More performance improvements | A few more general ideas following #740
#### Why is this the best possible solution? Were any other approaches considered?
See commit messages for details of each change. Overall a modest but worthwhile improvement. I think to get much more will require addressing inefficiencies in XML generation, which may requi... | diff --git a/pyxform/question.py b/pyxform/question.py
index 211626d8..7527c8c8 100644
--- a/pyxform/question.py
+++ b/pyxform/question.py
@@ -3,7 +3,7 @@
"""
import os.path
-from collections.abc import Iterable
+from collections.abc import Callable, Generator, Iterable
from itertools import chain
from typing imp... | 1 | 1 | 0 | [{"id": "G0", "claim": "The identical iter_descendants implementations added by this pull request should be moved to some shared place (e.g. a util file) because the copies may drift apart.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.