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
Automattic__mongoose__15757
Automattic/mongoose
15,757
defect
8ac5d157e268a8135b422afdc48931a6f447c73d
04c7ba5ea1a3327d416a1fdacb8ba581ad8158c4
feat: add global option for `updatePipeline`
Adds a global option for `updatePipeline` for convenience Fixes #15756, re https://github.com/Automattic/mongoose/pull/15728#discussion_r2519248742
diff --git a/docs/migrating_to_9.md b/docs/migrating_to_9.md index c67a4efbdd9..757e9e38d53 100644 --- a/docs/migrating_to_9.md +++ b/docs/migrating_to_9.md @@ -85,6 +85,19 @@ Set `updatePipeline: true` to enable update pipelines. await Model.updateOne({}, [{ $set: { newProp: 'test2' } }], { updatePipeline: true }); ...
3
1
1
[{"id": "G0", "claim": "In findOneAndReplace(), the global `updatePipeline` option is applied to `options` after `_mergeUpdate()` has already run, so the global option never takes effect; the option should be applied before `setOptions()`/`_mergeUpdate()` as in findOneAndUpdate().", "category": "correctness", "verdict"...
null
Automattic__mongoose__15789
Automattic/mongoose
15,789
defect
15e7743cd8e7c5442bb65045528a31019fcdcea9
35d6c70c72e6516c16f96e8d79d7e8e9b56832b2
fix(bulkWrite): pass overwriteImmutable option to castUpdate fixes
Fix #15781 Backport #15782 to 7.x <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `....
diff --git a/lib/helpers/model/castBulkWrite.js b/lib/helpers/model/castBulkWrite.js index 71d9150f848..56ee9548062 100644 --- a/lib/helpers/model/castBulkWrite.js +++ b/lib/helpers/model/castBulkWrite.js @@ -69,7 +69,9 @@ module.exports = function castBulkWrite(originalModel, op, options) { if (model.schema.$...
1
1
1
[{"id": "G0", "claim": "We can't use `overwriteImmutable` in TypeScript (its type is missing), so it should be added to the bulkWrite option types on master and 7.x.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Automattic__mongoose__15809
Automattic/mongoose
15,809
defect
1405e4f36cda0c3f0b6afd2e05b8b3800613dc70
344d8e72986148c54296ceb9e826e4edee5a08f8
fix(model): bump version if necessary after successful bulkSave()
Fix #15800 <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case i...
diff --git a/lib/document.js b/lib/document.js index 15764c75687..cd0ca2d326f 100644 --- a/lib/document.js +++ b/lib/document.js @@ -5422,6 +5422,22 @@ Document.prototype.$__hasOnlyPrimitiveValues = function $__hasOnlyPrimitiveValue })); }; +/*! + * Increment this document's version if necessary. + */ + +Document...
2
1
0
[{"id": "G0", "claim": "The inline comment '// increment version if was successful' is misplaced — it sits on the line that retrieves the current version instead of the line that increments it — and lacks a space after '//', so remove it or move it onto the increment line.", "category": "documentation", "verdict": "sup...
null
Automattic__mongoose__15864
Automattic/mongoose
15,864
defect
5f872fcc78fde68f491fca5e326d82cb08c36371
b3d449c03bde7924d74dc6b7d846c6a063ac8e3f
feat(document): add flattenUUIDs option to `toObject()` and `toJSON()`
## Summary - Add `flattenUUIDs` option to `toObject()` and `toJSON()` that converts UUID instances to 36-character hex strings, similar to `flattenObjectIds` - Add TypeScript support with `UUIDToString<T>` type helper and method overloads - Rename `UUIDToJSON` to `UUIDToString` for consistency with `ObjectIdT...
diff --git a/lib/document.js b/lib/document.js index 45da5eb3f13..477bf158a15 100644 --- a/lib/document.js +++ b/lib/document.js @@ -4132,6 +4132,7 @@ Document.prototype.$__toObjectShallow = function $__toObjectShallow(schemaFields * @param {Boolean} [options.versionKey=true] if false, exclude the version key (`__v` ...
6
4
1
[{"id": "G0", "claim": "Use `options && options.flattenUUIDs` instead of optional chaining in lib/helpers/clone.js so the new code matches the existing style used for flattenObjectIds and flattenDecimals.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
Automattic__mongoose__15897
Automattic/mongoose
15,897
defect
7ef30407039bee8521916fafd969bc416f127c31
b37d01c81f90a7bc9d03bf3e5bd8ef82d088da08
test: add util.isDeepStrictEqual coverage alongside lodash.isequal
Thanks for the feedback! I've updated the PR to retain `lodash.isequal` for backward compatibility testing. I added `util.isDeepStrictEqual` as an additional test case to ensure we cover both the legacy usage and the native Node.js method. We can look into fully dropping the dependency in a future major release.
diff --git a/package.json b/package.json index 8b828716d9d..eb572a92751 100644 --- a/package.json +++ b/package.json @@ -139,4 +139,4 @@ "target": "ES2022" } } -} +} \ No newline at end of file diff --git a/test/model.findOneAndUpdate.test.js b/test/model.findOneAndUpdate.test.js index 272f37faaee..beb7d...
2
2
1
[{"id": "G0", "claim": "Removing the lodash.isequal integration test and dependency is potentially backwards breaking; instead the PR should retain the existing lodash.isequal tests and add separate tests covering util.isDeepStrictEqual().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "int...
null
Automattic__mongoose__15898
Automattic/mongoose
15,898
defect
728cba33995c96ae73b8552f2564213dca7323dd
26021242b3514e6ede66c559db79dfd551a8cd85
fix(model): ensure $isDeleted is set after calling `doc.deleteOne()` successfully
Fix #15858 <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case i...
diff --git a/lib/model.js b/lib/model.js index 189c8f808b9..caf159181a4 100644 --- a/lib/model.js +++ b/lib/model.js @@ -829,6 +829,12 @@ Model.prototype.deleteOne = function deleteOne(options) { query.post(function queryPostDeleteOne(cb) { self.constructor._middleware.execPost('deleteOne', self, [self], {}, cb...
2
2
0
[{"id": "G0", "claim": "The test name references gh-15878 while the PR title references gh-15858; the issue number should be verified and updated for consistency.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The guard could be written as optiona...
null
Automattic__mongoose__15904
Automattic/mongoose
15,904
defect
47ab06854225fe743ce607429ebfb75d7ed161ef
39532284a1ab6b722e301c06ab95d3dc5ca84f05
fix(document): when cloning a doc with subdocs, make sure the subdocs parent is the cloned doc
Fix #15901 <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case i...
diff --git a/lib/document.js b/lib/document.js index 98dd86da0c9..7ac483a6f4a 100644 --- a/lib/document.js +++ b/lib/document.js @@ -5301,7 +5301,7 @@ Document.prototype.$clone = function() { const clonedDoc = new Model(); clonedDoc.$isNew = this.$isNew; if (this._doc) { - clonedDoc._doc = clone(this._doc, ...
2
1
1
[{"id": "G0", "claim": "The new $__setParent helper in arraySubdocument.js is assigned to Subdocument.prototype instead of ArraySubdocument.prototype, so it does not properly override the parent implementation for array subdocuments (and shadows the Subdocument implementation).", "category": "correctness", "verdict": "...
null
Automattic__mongoose__15917
Automattic/mongoose
15,917
defect
bf6116249f46c63f2fb707888a99811ee3a0bce4
58f53f32ec66292bd034087781ca6d90f24e23bf
feat(versioning): optimistic concurrency `exclude` option, update docs for optimisticConcurrency options
## Summary Fixes #15915 #15912 * Adds an `optimisticConcurrency: { exclude: string[] }` option since it's documented and present in TS types, behaves by enabling `optimisticConcurrency` for all fields except excluded fields. * Updates docs for `optimisticConcurrency` to be more explicit about what each option do...
diff --git a/lib/document.js b/lib/document.js index 9c30cf8d8b7..68baa15d445 100644 --- a/lib/document.js +++ b/lib/document.js @@ -4983,6 +4983,12 @@ Document.prototype.$__delta = function $__delta() { if (modPaths.find(path => optCon.has(path))) { this.$__.version = dirty.length ? VERSION_ALL : VERSI...
2
1
1
[{"id": "G0", "claim": "The function gh15915 added to test/types/schema.test.ts is unused.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tests for the `exclude` option only cover simple scalar fields, so tests should be added verifying that...
null
Automattic__mongoose__15981
Automattic/mongoose
15,981
defect
15538b0d42a4eb736ee5ebf1edd4c8ed24698d6c
9dacc65280cd8b7e75b6d44334d905183ff49cf8
fix(populate): defer subpopulate until after match functions to avoid comparing populated subdocs
Fix mongodb-js/mongoose-autopopulate#112 <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the correspond...
diff --git a/lib/model.js b/lib/model.js index 86daddf48cf..fe249582929 100644 --- a/lib/model.js +++ b/lib/model.js @@ -4311,6 +4311,7 @@ async function _populatePath(model, docs, populateOptions) { } const len = modelsMap.length; let vals = []; + let allDeferredPopulates = []; function flatten(item) { ...
2
2
2
[{"id": "G0", "claim": "The deferred sub-populate options are not prepared with the metadata (_fullPath, strictPopulate) that direct populate would set, which could cause incorrect path resolution and failures on discriminator models; the preparation logic should be applied before deferring.", "category": "correctness"...
null
Automattic__mongoose__15993
Automattic/mongoose
15,993
defect
8d9a81f54a9b9fa8ae5f5091dda5b082437ad69b
f5826e163ab9dc3d4b7d2ff54340ddfe2f986862
8.23
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case in the `test/do...
diff --git a/lib/document.js b/lib/document.js index 86c72b3b69b..4e4b875ea1c 100644 --- a/lib/document.js +++ b/lib/document.js @@ -4149,6 +4149,7 @@ Document.prototype.$__toObjectShallow = function $__toObjectShallow(schemaFields * @param {Boolean} [options.versionKey=true] if false, exclude the version key (`__v` ...
3
1
0
[{"id": "G0", "claim": "The test property `oderId` looks like a typo for `orderId` and renaming it will make the type test clearer and avoid propagating the typo.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `flattenUUIDs` JSDoc in both `t...
null
Automattic__mongoose__16027
Automattic/mongoose
16,027
defect
7a73025db14ccdbd2691cb36ceede4776d27fadb
9250075c7b8f7e67a7a70b2633c503000d582be4
fix(document): make pathsToSave filter all update operators and preserve unsaved state
re https://github.com/Automattic/mongoose/pull/15850 https://github.com/Automattic/mongoose/pull/15896 https://github.com/Automattic/mongoose/pull/16022#issuecomment-3882060185 The current `pathsToSave` behavior had a few gaps: - `save({ pathsToSave })` could crash when there are no local changes. - Filtering only...
diff --git a/lib/document.js b/lib/document.js index 373c7666dd0..b7b5167ed27 100644 --- a/lib/document.js +++ b/lib/document.js @@ -22,6 +22,7 @@ const $__hasIncludedChildren = require('./helpers/projection/hasIncludedChildren const applyDefaults = require('./helpers/document/applyDefaults'); const cleanModifiedSubp...
5
4
0
[{"id": "G0", "claim": "The JSDoc for $__delta is missing documentation for the newly added options parameter, which should document that it accepts an optional pathsToSave property filtering which paths are included in the delta.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introd...
null
Automattic__mongoose__16031
Automattic/mongoose
16,031
defect
7a73025db14ccdbd2691cb36ceede4776d27fadb
e7cd81fe6dcdd432289e7ca34fe9eb562523601f
fix(setDefaultsOnInsert): check child filter paths before applying defaults
Fixes #16030 re #15691 #15672 When optimizing `setDefaultsOnInsert` to avoid computing all modified paths, in https://github.com/Automattic/mongoose/commit/106364f54, we missed adding checks for child paths with dot-notation in the filter. This PR precomputes parent prefixes into `updatedKeys` when building the filt...
diff --git a/lib/helpers/setDefaultsOnInsert.js b/lib/helpers/setDefaultsOnInsert.js index 01304fcb53f..dcd5b78d70f 100644 --- a/lib/helpers/setDefaultsOnInsert.js +++ b/lib/helpers/setDefaultsOnInsert.js @@ -107,6 +107,15 @@ function isModified(castedDoc, updatedKeys, path, pathPieces, hasDollarUpdate) { cur += '...
3
2
1
[{"id": "G0", "claim": "The child-path check scans every key in updatedKeys for each schema path with a default, risking a regression of the perf gains from avoiding modifiedPaths(); the reviewer asks to precompute parent prefixes when building updatedKeys or otherwise cache a structure allowing O(1)/O(depth) child-pat...
null
Automattic__mongoose__16034
Automattic/mongoose
16,034
defect
7a73025db14ccdbd2691cb36ceede4776d27fadb
c5e1c6b78b75a61cbf516986cc2a23c76d4ddf94
fix(connection): handle calling watch() on disconnected connection
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case in the `test/do...
diff --git a/lib/connection.js b/lib/connection.js index 39d9fe08993..0ee73e75da3 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -1604,22 +1604,9 @@ Connection.prototype.deleteModel = function deleteModel(name) { */ Connection.prototype.watch = function watch(pipeline, options) { - const changeStreamTh...
3
1
1
[{"id": "G0", "claim": "The pull request's fix for calling connection.watch() before the connection is established has no automated test covering that scenario; a test similar to the existing Model.watch() tests should be added.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, ...
null
Automattic__mongoose__16041
Automattic/mongoose
16,041
defect
0d565ae69972d638945633165065462757933a9e
53e1a2dc6e86a4a2a062ed88b4d562c6ab0a624e
feat(aggregate): add pipelineForUnionWith() helper to allow reusing pipelines with $unionWith in TypeScript
Fix #16033 <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case i...
diff --git a/lib/aggregate.js b/lib/aggregate.js index 7128d5e98d3..34554f598f8 100644 --- a/lib/aggregate.js +++ b/lib/aggregate.js @@ -1023,6 +1023,32 @@ Aggregate.prototype.pipeline = function() { return this._pipeline; }; +/** + * Returns the current pipeline as a `$unionWith`-safe pipeline. + * Throws if thi...
4
3
1
[{"id": "G0", "claim": "Use Object.hasOwn() instead of Object.prototype.hasOwnProperty.call() in pipelineForUnionWith() for consistency with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Simplify the $out/$merge guard ...
null
Automattic__mongoose__16043
Automattic/mongoose
16,043
defect
36b072970401b23eee11dee9c03355e6e5d17489
ed64c3a06a38a9a6c1f8fdf40fb79e975347af99
Validation error stack trace improvements and some performance improvements for saving $isNew
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case in the `test/do...
diff --git a/benchmarks/saveSimple.js b/benchmarks/saveSimple.js index 0029559cdb9..eebb69a9348 100644 --- a/benchmarks/saveSimple.js +++ b/benchmarks/saveSimple.js @@ -1,6 +1,7 @@ 'use strict'; const mongoose = require('../'); +const { MongoClient } = require('mongodb'); run().catch(err => { console.error(er...
3
2
0
[{"id": "G1", "claim": "The reviewer dislikes that practically the same update code now lives in three places, hedging that it is fine if it gives enough performance.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The toBSON check should use typeof ... =...
null
Automattic__mongoose__16069
Automattic/mongoose
16,069
defect
c8a93b60a27b94883c8186b0c42e6b5e6f7d3185
1565b62c91471fea8afe3957772862fb03e09a14
feat(schema): support `discriminators` option inline for better TypeScript support
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case in the `test/do...
diff --git a/lib/options/schemaDocumentArrayOptions.js b/lib/options/schemaDocumentArrayOptions.js index ae5b07b3c4b..9cf409fc696 100644 --- a/lib/options/schemaDocumentArrayOptions.js +++ b/lib/options/schemaDocumentArrayOptions.js @@ -61,6 +61,29 @@ Object.defineProperty(SchemaDocumentArrayOptions.prototype, 'exclude...
3
2
0
[{"id": "G0", "claim": "The three `any`s in the new `discriminators` option type (`Record<string, Schema<any, any, any>>`) can be improved.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test loop should iterate with `for (const shape of doc...
null
Automattic__mongoose__16110
Automattic/mongoose
16,110
defect
88673ccdf50c7463bc3255caa924c0d9df39963b
ee0912433ac197c4c04b7094dc89cc897fd9ed69
fix(cast): replace assert.ok with descriptive Error in castNumber
**Summary** Replaces `assert.ok(!isNaN(val))` in `lib/cast/number.js` with an explicit `if/throw` that raises a plain `Error` with a descriptive message. Removes the now-unused `require('assert')` import. When `castNumber` receives a non-numeric value (e.g. `'hello'`, `{}`, `[1,2]`), the existing `assert.ok(!isNa...
diff --git a/lib/cast/number.js b/lib/cast/number.js index d9a0e6dcb81..2c1e3f34692 100644 --- a/lib/cast/number.js +++ b/lib/cast/number.js @@ -1,7 +1,5 @@ 'use strict'; -const assert = require('assert'); - /** * Given a value, cast it to a number, or throw an `Error` if the value * cannot be casted. `null` an...
1
1
0
[{"id": "G0", "claim": "The CI failure in the sessions test (gh-6362) should be double-checked to determine whether it is a flaky test or an environment-specific issue, since it appears unrelated to this change.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Automattic__mongoose__16153
Automattic/mongoose
16,153
defect
3a5adb15b739fbe9b9eefe14303951a0515cc5e2
a835ebbb0ab83b1e7ab2f60b24bf30cb26686a99
fix(schema): implement validation for Union schemas and subdocuments
Fixes #15732 **Issue:** When a `Union` of schemas is nested inside a document, the validation for required fields on the union's subschemas is completely bypassed. This occurs because the internal document validation optimization inside `lib/document.js` aggressive-skips validating paths that have exactly zero `valida...
diff --git a/lib/document.js b/lib/document.js index eda744170cd..7b199e01283 100644 --- a/lib/document.js +++ b/lib/document.js @@ -3070,7 +3070,9 @@ function _getPathsToValidate(doc, pathsToValidate, pathsToSkip, isNestedValidate !_pathType.$parentSchemaDocArray && // gh-15957: skip this optimization fo...
4
2
1
[{"id": "G0", "claim": "The changes to UnpackedIntersection and MergeType in types/utility.d.ts appear unrelated to the union validation work this pull request is about.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The regression test uses a u...
null
Automattic__mongoose__16182
Automattic/mongoose
16,182
defect
d711454246b4c34bd6abc827478948a53817ff54
ccf32f8e585796dbb1af9f0d1e0c234759049f4c
fix(schema): support toJSONSchema on unions
Fix #16179 <!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case i...
diff --git a/lib/helpers/createJSONSchemaTypeDefinition.js b/lib/helpers/createJSONSchemaTypeDefinition.js index 993ada23917..f139d3cc923 100644 --- a/lib/helpers/createJSONSchemaTypeDefinition.js +++ b/lib/helpers/createJSONSchemaTypeDefinition.js @@ -5,11 +5,20 @@ * * @param {string} type * @param {string} bson...
4
4
4
[{"id": "G0", "claim": "The union's generated `oneOf` schema can reject valid values because several branches match the same value (e.g. `null` present in multiple member schemas, or overlapping members like Int32 and Number), and should use `anyOf` (or otherwise de-duplicate `null` / make branches mutually exclusive)....
null
Automattic__mongoose__16203
Automattic/mongoose
16,203
defect
51e379295bc1e54a7655d80b4743fe03035591a6
90251faa97b329e26cd24f63459f7d17a3189a6e
fix(connection): snapshot Date in heartbeat handler and flush queue on recovery
## Summary Fixes #16183. Two related bugs in the heartbeat staleness check: - **Missing Date snapshot**: `drivers/node-mongodb-native/connection.js` used the global `Date.now()` in the `serverHeartbeatSucceeded` handler instead of a snapshotted copy (like `lib/connection.js` already does). When test frameworks fake `...
diff --git a/lib/connection.js b/lib/connection.js index 163d33e0238..28f17466c4d 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -1005,10 +1005,7 @@ Connection.prototype.error = function error(err, callback) { Connection.prototype.onOpen = function() { this.readyState = STATES.connected; - for (const ...
1
1
1
[{"id": "G0", "claim": "The assertion `assert.ok(db._lastHeartbeatAt > Date.now())` compares against the mocked `Date.now()`, so it does not validate that `_lastHeartbeatAt` comes from the real clock; capture real timestamps via `OriginalDate.now()` before/after emitting and assert `_lastHeartbeatAt` falls within that ...
null
Automattic__mongoose__16217
Automattic/mongoose
16,217
defect
d445e48fcce82193d7c8fc1af3e4e5347ef9fc55
440068781eebe63f755d27262a6e2cbc7acdbd6f
9.4
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. If you're making a change to documentation, do **not** modify a `.html` file directly. Instead, find the corresponding `.pug` file or test case in the `test/do...
diff --git a/lib/document.js b/lib/document.js index 29f7d763001..9410c2d1569 100644 --- a/lib/document.js +++ b/lib/document.js @@ -5036,34 +5036,53 @@ Document.prototype.$__fullPath = function(path) { * }); * * // returns an empty object, no changes happened yet - * user.getChanges(); // { } + * ...
1
1
1
[{"id": "G0", "claim": "Guard `this.db` with optional chaining in the version-mismatch check in `Model.useConnection()`, since `this.db` may be unset and accessing `.base` would throw a TypeError instead of a MongooseError.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Automattic__node-canvas__1064
Automattic/node-canvas
1,064
defect
df74e57af4b909eec1db6a3704e96b52ef689ae3
009c6326dfaec5bccb3abf61a0c1de3d112e3993
Add support for context globalAlpha for gradients and patterns
close #1061 So this is another discrepancy i found out inspecting differences between browser canvas and node-canvas. Pattern and gradients are always solid. Now i added those tests here: Pattern fil and stroke, with and without opacity ![image](https://user-images.githubusercontent.com/1194048/34250013-dee1...
diff --git a/src/CanvasPattern.cc b/src/CanvasPattern.cc index ed64f9ae7..3570da337 100644 --- a/src/CanvasPattern.cc +++ b/src/CanvasPattern.cc @@ -70,7 +70,7 @@ NAN_METHOD(Pattern::New) { /* - * Initialize linear gradient. + * Initialize pattern. */ Pattern::Pattern(cairo_surface_t *surface) { diff --git a/...
6
6
4
[{"id": "G0", "claim": "Use the cairo_pattern_type_t constants instead of the magic numbers 2 and 3 when comparing the gradient type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Style nit: there should be no space between the function name an...
null
Automattic__node-canvas__1129
Automattic/node-canvas
1,129
defect
e59467903bdddad3bd2704a650ab96a4bb64effb
bfc08375697e5c51b3687b62f8ad346524ee3567
Systematically check for NaNs in ctx methods
Fixed NaN checking in all relevant `CanvasRenderingContext2D` methods. I don't think it is worth adding a test for each method, but if it is, I'll add them. - [x] Have you updated CHANGELOG.md?
diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 560fcf53e..975b38519 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -40,14 +40,13 @@ Nan::Persistent<FunctionTemplate> Context2d::constructor; */ #define RECT_ARGS \ - if (!info[0]->IsNumber...
7
7
2
[{"id": "G0", "claim": "checkArgs always returns true instead of areArgsValid, so the NaN/Infinity scan never rejects anything; it should return areArgsValid.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Removing the default case in DrawImage leav...
null
Automattic__node-canvas__1293
Automattic/node-canvas
1,293
defect
53879efe1a8bf98d63484d46c89f3ed695ba5a0d
41f2423cda623fad1ebc8aea72d26b0e87ec85a6
Reset context on resurface
Fixes #1292 Did a lot of refactoring. If any of these is better to stay as it was implemented before, I can revert it: - Hid some non-standard context prototype accessors - Replaced deprecated `__defineGetter__` with `defineProperty` - Added new private method `_updateStateInfo` to track when the surface gets re...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d7e0dd68..25b841b4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ project adheres to [Semantic Versioning](http://semver.org/). * Warn when building with old, unsupported versions of cairo or libjpeg. ### Fixed +* Reset context on resurface (#1292) ...
7
4
0
[{"id": "G0", "claim": "Modifying the prototype, deleting properties and running logic at require time in lib/context2d.js is undesirable; it would be nicer to do all of this in C++.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "V8 may be very slow when...
null
Automattic__node-canvas__1328
Automattic/node-canvas
1,328
defect
7de2441ee517a3681c5898a9a8520f4bed9619cc
78cd102a7cfd67d4297b5e6e46370ee3140204c9
Catch font errors
Fix #1327
diff --git a/src/CanvasRenderingContext2d.cc b/src/CanvasRenderingContext2d.cc index 400ecd526..3efa3f297 100644 --- a/src/CanvasRenderingContext2d.cc +++ b/src/CanvasRenderingContext2d.cc @@ -2451,8 +2451,19 @@ NAN_SETTER(Context2d::SetFont) { const int argc = 1; Local<Value> argv[argc] = { value }; - Local<V...
1
1
0
[{"id": "G0", "claim": "The TryCatch-based error handling in SetFont should be simplified by explicitly checking whether the MaybeLocal returned by Nan::To<Object> is empty and returning early, since an empty handle already means the error is thrown appropriately.", "category": "design", "verdict": "supported", "priori...
null
Automattic__node-canvas__1455
Automattic/node-canvas
1,455
defect
f5b981483022a1311f4b3850530943b3e0e8aa7f
1a907cd739ccba256acc8ac28396059aeb40ecab
Ignore maxWidth in fillText and strokeText if it is undefined
Fixes #1454 As it turned out that Chrome's behavior is correct, we can now safely update our implementation. - [x] Have you updated CHANGELOG.md?
diff --git a/.travis.yml b/.travis.yml index 586a25d6a..3fddd44ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: node_js install: - npm install --build-from-source node_js: - - '12' - '10' - '8' - '6' diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d6927d03..9d5561b1b 100644 --- a/C...
2
2
0
[{"id": "G0", "claim": "Rather than removing the Node.js 12 build from Travis entirely, the PR should keep it and mark it as allowed to fail.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The crashes are caused by a pre-existing cairo pattern deallocati...
null
Automattic__node-canvas__1649
Automattic/node-canvas
1,649
defect
58bc728df354c4d9a0e8a25d5b04710bfb8fb7e9
d5edc33bf52a1dbe7047848d074f023858fdb97d
Add invertSelf to the DOMMatrix object
This should address https://github.com/Automattic/node-canvas/issues/1648 by adding the implementation for `invertSelf()`. - [x] added tests for `inverse()` and `invertSelf()` - [x] added the change to the unreleased `added` section of the Changelog
diff --git a/CHANGELOG.md b/CHANGELOG.md index 945877590..253b73ce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ================== ### Changed ### Added +* Added support for `inverse()` and `invertSelf()` to `DOMMatrix` (#1648) ### Fixe...
4
4
2
[{"id": "G0", "claim": "Zero-width spaces in the newly added inverse test assertions make test/dommatrix.test.js fail to parse with a SyntaxError, so the test suite cannot even load.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "invertSelf should d...
null
Automattic__node-canvas__2214
Automattic/node-canvas
2,214
defect
fdf709a7b08abae33a93c510b96f71df6c13c7b0
c456cad5bbb39b6eb406728eb602c64b077c8502
add string tags for browser polyglot classes
Thanks for contributing! - [x] Have you updated CHANGELOG.md? Fixes #1646
diff --git a/CHANGELOG.md b/CHANGELOG.md index 11023e97c..fc539a008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ================== ### Changed ### Added +* Added string tags to support class detection ### Fixed * Add missing property `c...
1
1
1
[{"id": "G0", "claim": "The Symbol.toStringTag properties defined on the browser-polyglot classes should be configurable: true, as they are in Firefox and Chrome.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Automattic__node-canvas__2409
Automattic/node-canvas
2,409
defect
83a51260b0eb10f05311f049ce1531914cfcabe2
c4b25afb136a06dbaa9578c8d76e42a47dbb5b86
Fix class properties should have defaults as standard js classes would have
Fixes https://github.com/Automattic/node-canvas/issues/2390 jsdom tries to replace some functions in a normal js canvas, all the props are like standard js classes this change adds the `napi_property_attributes` for this also some `InstanceValue` are replaced with `StaticValue` as this is how they should ha...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 77cc5db8e..7ed5e3090 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ### Changed ### Added ### Fixed +* Fix class properties should have defaults as standard js classes would have (#2390) ...
3
2
1
[{"id": "G0", "claim": "Changing the PNG filter constants from instance values to static class values is a breaking change, so it needs to be a documented change for 3.0.0 and the TypeScript types need to be updated accordingly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
Automattic__node-canvas__2510
Automattic/node-canvas
2,510
defect
1234a86f65b2318906334ce0790cd12401c67a25
7f782ae9bbc594997a111452c38fc3cf625e6341
fix(TextMetrics): rtl direction + start/end textAlign
Thanks for contributing! - [x] Have you updated CHANGELOG.md? closes #2508
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cb978ce9..af2da3fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ project adheres to [Semantic Versioning](http://semver.org/). * Fix fetching prebuilds during installation on certain newer versions of Node (#2497) * Fixed issue with fillText that was b...
4
3
0
[{"id": "G0", "claim": "The \"2d.type class string\" test in test/wpt/generated/the-canvas-element.js should not have been removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The start/end to left/right alignment conversion should be split out into ...
null
Automattic__node-canvas__2518
Automattic/node-canvas
2,518
defect
a862af8040c03593bd9376fe2464a73867a0924d
ecd20bd172c79e8018fcd2540359b932190147d2
fix: reject loadImage when src is null or invalid
fix: reject loadImage when src is null or invalid Description: - To handle non-string/non-Buffer sources while fetching image. - Add test cases for '', null, and undefined inputs to loadImage() Test Result: ``` npm run test ... ✔ rejects when loadImage is called with null ✔ rejects when loadImage...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 98cba4534..97029b812 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/). ### Changed ### Added ### Fixed +* fix: reject loadImage when src is null or invalid 3.1.2 ================== diff --git...
1
1
1
[{"id": "G0", "claim": "The invalid-source guard should be placed in a final `else` branch of the `src` setter in lib/image.js, since sources other than null/undefined can also leave `onload` uncalled, fixing the whole class of bugs (and the PR could then be marked as fixes #2525).", "category": "correctness", "verdict...
null
Automattic__node-canvas__501
Automattic/node-canvas
501
defect
14e8b6c30bd1e037eb581598aa72e1cd053bf4c2
020c18c12367b048332aa20b45038a6763a2a4f1
hsl() and hsla() color parsing
Fixes #437, see also #28. Also adds support for [rebeccapurple](http://dev.w3.org/csswg/css-color-4/#valdef-color-rebeccapurple).
diff --git a/src/color.cc b/src/color.cc index 5f7478d45..7ed0723e2 100644 --- a/src/color.cc +++ b/src/color.cc @@ -7,6 +7,8 @@ #include "color.h" #include <stdlib.h> +#include <cmath> +#include <limits> /* * Consume whitespace. @@ -15,23 +17,249 @@ #define WHITESPACE \ while (' ' == *str) ++str; +#defi...
3
2
0
[{"id": "G0", "claim": "The new code's style is internally inconsistent and inconsistent with the rest of the project — brace placement, parens backing up against `if`, missing newlines after `if`, and cramped spacing/whitespace should be made consistent.", "category": "style", "verdict": "supported", "priority": "P3",...
null
Automattic__node-canvas__781
Automattic/node-canvas
781
defect
b470ce81aabe2a78d7cdd53143de2bee46b966a7
53530454fae4df764362446c0b477c7d16424e3f
Crude PDF stream implementation
A Minimial Working PDFStream. Fixes #778 However, I would not advise merging it as such. It would be better to clean up all the streams code, avoiding the need to keep everything in memory and eliminating unnecessary copying of data. It would also be nice to finally have the asynchronous streams. This would entail a ...
diff --git a/lib/canvas.js b/lib/canvas.js index 20aeb266c..d008f5aa0 100644 --- a/lib/canvas.js +++ b/lib/canvas.js @@ -16,6 +16,7 @@ var canvas = require('./bindings') , cairoVersion = canvas.cairoVersion , Context2d = require('./context2d') , PNGStream = require('./pngstream') + , PDFStream = require('./pd...
1
1
0
[{"id": "G0", "claim": "Add the missing `err` parameter to the error-handler function in the createSyncPDFStream test (as in `function (err) { ... }`).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Automattic__node-canvas__819
Automattic/node-canvas
819
defect
b5a5d0c1d2354a5f0632ab707aa06c8666fcf47b
239d3c302de2951b1801f1a1aa707c6ec1da9f82
Support canvas.getBuffer('raw')
This should help interface with custom image libraries like LodePNG or WebP. refs #306. Also, I think users could handle #562 themselves, using https://github.com/lovell/sharp plus some bit-shifts. (I haven't seen a Node library that does bulk bit-shifts on Buffer data, but it'd be straightforward to write one.)
diff --git a/Readme.md b/Readme.md index 61dd99565..e9e2fff7c 100644 --- a/Readme.md +++ b/Readme.md @@ -140,10 +140,22 @@ var stream = canvas.jpegStream({ ### Canvas#toBuffer() -A call to `Canvas#toBuffer()` will return a node `Buffer` instance containing all of the PNG data. +A call to `Canvas#toBuffer()` will r...
3
3
1
[{"id": "G0", "claim": "The manual endianness-detection IIFE in test/canvas.test.js can be replaced with os.endianness().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "assertPixel should derive the Buffer reader method from os.endianness(), e.g...
null
Automattic__simplenote-android__1038
Automattic/simplenote-android
1,038
defect
f18ec227b64a268f3b45a7484476d0d5830f4145
a298c76a40290867b14d0823787603eb46b0c062
Add logic to automate all required screenshots
### What it does This adds to the already existing test to take the screenshots all the logic to take the actual screenshots we want for the Play Store. ### Test With the same setup as #1026, run `bundle exec fastlane take_screenshots`. The browser should open showing screenshots like these ![screenshot-2020...
diff --git a/Simplenote/build.gradle b/Simplenote/build.gradle index ee41199e3..2b415130a 100644 --- a/Simplenote/build.gradle +++ b/Simplenote/build.gradle @@ -45,6 +45,9 @@ android { testOptions { unitTests.returnDefaultValues = true + // Disable animations in order to enter text in the text in...
13
11
0
[{"id": "G0", "claim": "The dumb Thread.sleep(5000) waiting for notes to load should be replaced with the proper wait code, e.g. waitForViewMatching(allOf(withId(R.id.note_title), withText(NOTE_TITLE)), 1000).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
Automattic__simplenote-android__1354
Automattic/simplenote-android
1,354
defect
25c4eccdd4f153ad6a5dda7b4bb7d8de427f337b
83fdffc6538a4c059c874345caa1bf5f3591447f
Tweak screenshots automation to shot note with links instead of inter-note linking view
### Fix @SylvesterWilmott pointed out that, because we don't have descriptions in the screenshots in the Play Console, the shot with the inter-note linking view might seem confusing to potential users. <img width="300" alt="Screen Shot 2021-03-31 at 4 14 43 pm" src="https://user-images.githubusercontent.com/1218433...
diff --git a/Simplenote/src/androidTest/java/com/automattic/simplenote/screenshots/ScreenshotTest.java b/Simplenote/src/androidTest/java/com/automattic/simplenote/screenshots/ScreenshotTest.java index 1543d6bcd..88ce7071c 100644 --- a/Simplenote/src/androidTest/java/com/automattic/simplenote/screenshots/ScreenshotTest....
4
2
0
[{"id": "G0", "claim": "The requireContext() call edited in E002 fails when NoteMarkdownFragment is not attached to a context (it made the screenshot tests fail consistently after dismissing the note editor); the author hoists the delay fetch as a workaround and asks the maintainers whether there is a better way and wh...
null
Automattic__simplenote-android__1481
Automattic/simplenote-android
1,481
defect
ab4c5f4a201c3720d6b7081ff0b461870f37714b
dd124c99f7497624f2d8a123d896b8d7308c9ad8
Refactor Tag Management in NoteEditorFragment
Fixes #1478. ### Fix This PR refactors tag management in the `NoteEditorFragment`. Since `NoteEditorFragment` is one of the more complex classes in the project, we will refactor it at different stages to use the new architecture added in #1459. In this project, we are going to extract the tag management logic int...
diff --git a/Simplenote/build.gradle b/Simplenote/build.gradle index 80b0e04b5..030e74b7d 100644 --- a/Simplenote/build.gradle +++ b/Simplenote/build.gradle @@ -99,6 +99,10 @@ dependencies { testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3" testImplementation "org.mockito.kotlin:mockito...
17
16
0
[{"id": "G0", "claim": "Email tags (collaborators) should not be displayed in the tags list in the navigation drawer, since collaborator management will move to a dedicated UI.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The newly added `addTag` met...
null
Automattic__simplenote-android__622
Automattic/simplenote-android
622
defect
3fc340558b24d1efc0aa8f1f6e33266c01504138
01bb76bbfe7167ebed99fb5827089542f9c035d1
Add support for nested checklists
Depends on #608 Markdown checklists can be nested, so I've added support for that: <img width="178" alt="screen shot 2019-01-18 at 9 54 30 am" src="https://user-images.githubusercontent.com/789137/51404163-739e8380-1b07-11e9-9c46-485affa16011.png"> **To Test** * Create a checklist at any position on a line. ...
diff --git a/Simplenote/src/androidTest/java/com/automattic/simplenote/utils/ChecklistsTest.java b/Simplenote/src/androidTest/java/com/automattic/simplenote/utils/ChecklistsTest.java index 628515def..bf04f6730 100644 --- a/Simplenote/src/androidTest/java/com/automattic/simplenote/utils/ChecklistsTest.java +++ b/Simplen...
1
1
0
[{"id": "G0", "claim": "testRegexMatching should be left unmodified and a new test method created for regular expression matching of nested checkboxes, so that the pre-existing feature is still verified.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Automattic__wordpress-rs__1085
Automattic/wordpress-rs
1,085
defect
9294436a84c2510723fcd4c124c7994f3dab0f87
37b53697c6627e208b285ba8e01d1a4c1b18fb6b
Fix a few parsing issues when parsing custom post types
> [!Note] > It should be easier to review this PR commit by commit. The `PostMeta` can't be parsed when the meta does not contain "footnotes". The `title` and `password` properties in `SparseAnyPost` are changed from non-optional to optional. Some custom post types (such as Jetpack Social Notes) do not include t...
diff --git a/wp_api/src/posts.rs b/wp_api/src/posts.rs index 4abd0ae5f..bfc03fac5 100644 --- a/wp_api/src/posts.rs +++ b/wp_api/src/posts.rs @@ -380,6 +380,7 @@ pub struct SparseAnyPost { #[WpContext(edit, embed, view)] pub post_type: Option<String>, #[WpContext(edit)] + #[WpContextualOption] pub...
1
1
1
[{"id": "G0", "claim": "There should probably be a test fixture exercising the None case for the fields this pull request made optional (password/title).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Automattic__wordpress-rs__1126
Automattic/wordpress-rs
1,126
defect
2b7e378c5f648f755ab1dc7708d2f9924b035e4b
dcc40853d028f304f89c3fccfc0f7e4a56c7eb97
Rework WP.com e2e tests to remove custom test harness and run in CI
## Summary - Refactor WordPress.com e2e tests to use `libtest-mimic` for a cargo-test-like CLI experience - Add WordPress.com e2e tests to the Buildkite CI pipeline ...
diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 0600533d1..70177f77b 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -17,7 +17,7 @@ common_params: # - '6.4' # - '6.5' # - '6.6' - - '6.8.1' + - "6.8.1" steps: # @@ -255,7 +255,7 @@ steps: matr...
2
1
0
[{"id": "G0", "claim": "The README's usage section should show running the test suite through cargo (e.g. `cargo run --quiet --bin wp_com_e2e -- [cli-options]`) instead of executing the built binary directly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
Automattic__wordpress-rs__1131
Automattic/wordpress-rs
1,131
defect
76cc78dce25298572e5edb583488a0135069e022
bdbf01a284a614ba0543b993578c00d2cab3a931
CMM-1202 create the stats country endpoint
## Summary ...
diff --git a/wp_api/src/wp_com/client.rs b/wp_api/src/wp_com/client.rs index f55be21fb..0cc8d1ccd 100644 --- a/wp_api/src/wp_com/client.rs +++ b/wp_api/src/wp_com/client.rs @@ -5,6 +5,9 @@ use super::endpoint::{ }, me_endpoint::{MeRequestBuilder, MeRequestExecutor}, oauth2::{Oauth2RequestBuilder, Oauth2R...
2
1
1
[{"id": "G0", "claim": "The summarize parameter should be non-optional with default=true, to match the endpoints from the last PR.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "This deserialization test may be mostly covered by the parameterized test ab...
null
Automattic__wordpress-rs__1136
Automattic/wordpress-rs
1,136
defect
b68e345c2b7a29c20e17cf13c44faf4a513e93e7
362edaf3fcf6f64e57312f9d1a9de704e0d3d25f
Update get_csv implementation to support URL encoded by WordPress core
Relates to https://github.com/wordpress-mobile/GutenbergKit/pull/299#discussion_r2737781423. `wp/v2/posts?status=any` response's "next link" is not parsed correctly at the moment. The "next link" contains "status[0]=any", whereas the library (the `get_csv` function specifically) looks for the `status` key. This resu...
diff --git a/wp_api/src/url_query.rs b/wp_api/src/url_query.rs index 6c2526654..7de286562 100644 --- a/wp_api/src/url_query.rs +++ b/wp_api/src/url_query.rs @@ -124,14 +124,49 @@ impl<'a> UrlQueryPairsMap<'a> { } pub(crate) fn get_csv<'b, T: FromStr>(&self, key: impl Into<&'b str>) -> Vec<T> { - self...
1
1
1
[{"id": "G0", "claim": "get_csv should handle PHP array parameters with non-sequential indices (e.g. status[0]=draft&status[4]=publish&status[4234]=pending) instead of stopping at the first index gap.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Automattic__wordpress-rs__1164
Automattic/wordpress-rs
1,164
defect
c875d82b4cbf786a6f96852f9756749edaaa3510
43b16d58f19868b7db5082193b458848258166af
Rename `WpSelfHostedService` and add WP.com sites support
Context: p1770902854097129-slack-C06S1QS55K9 Adds a new `WpService.wordPressCom` constructor, which accepts a site id. @nbradbury The CI job will publish an artifact, which you can try and see if there is any issue.
diff --git a/Cargo.lock b/Cargo.lock index a0be90157..f4d9014ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5452,6 +5452,8 @@ dependencies = [ "tokio", "uuid", "wp_api", + "wp_mobile", + "wp_mobile_cache", ] [[package]] diff --git a/native/kotlin/api/kotlin/src/integrationTest/kotlin/IntegrationTestHelpers.k...
1
1
0
[{"id": "G0", "claim": "The migration-count test should probably be reworked to just care about success instead of asserting the specific number of migrations.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Automattic__wordpress-rs__1187
Automattic/wordpress-rs
1,187
defect
efb7f56d2208441b20cec2b27a6e53d003585b44
44cb12f39234951078869d11f259af6024d1db19
Add request URL and method to error types
## Summary Error messages from the WordPress API are much more useful when they include which request failed. Previously, errors like `RequestExecutionFailed` or `InvalidHttpStatusCode` carried no information about the originating request, making it difficult to debug failures — especially when multiple requests are i...
diff --git a/native/kotlin/api/kotlin/src/integrationTest/kotlin/MockRequestExecutor.kt b/native/kotlin/api/kotlin/src/integrationTest/kotlin/MockRequestExecutor.kt index 51446f795..db0da43d7 100644 --- a/native/kotlin/api/kotlin/src/integrationTest/kotlin/MockRequestExecutor.kt +++ b/native/kotlin/api/kotlin/src/integ...
4
4
0
[{"id": "G0", "claim": "In the MediaErrNetworking::execute test mock, the error should take its request_url and request_method from the `_request` argument instead of hardcoding String::new() and RequestMethod::GET.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
Automattic__wordpress-rs__1219
Automattic/wordpress-rs
1,219
defect
dec421ed4d14401a1e7ee457c7d787aa08434d25
1f62ab916c498aa51923135bd1b171a2318f6cb5
Add stats insights and stats summary endpoints
## Description Add support for two WP.com REST API v1.1 stats endpoints: 1. **`GET /sites/<site_id>/stats/insights`** — Returns posting activity patterns including best hour/day to post, hourly view breakdowns, and yearly posting summaries. 2. **`GET /sites/<site_id>/stats`** — Returns aggregate site statistics (view...
diff --git a/wp_api/src/wp_com/client.rs b/wp_api/src/wp_com/client.rs index 7471036fa..453243310 100644 --- a/wp_api/src/wp_com/client.rs +++ b/wp_api/src/wp_com/client.rs @@ -22,6 +22,7 @@ use super::endpoint::{ stats_file_downloads_endpoint::{ StatsFileDownloadsRequestBuilder, StatsFileDownloadsRequest...
4
3
3
[{"id": "G0", "claim": "The general map deserializer in wp_serde_helper/src/map.rs should not be broadened to treat any non-map placeholder value (0, false, null, [] etc.) as an empty map or None; a dedicated serde helper should be defined for that specific case, or the server-side anomaly should be made impossible ins...
null
Automattic__wordpress-rs__1226
Automattic/wordpress-rs
1,226
defect
4fac42b1a262e93adcbc0cd0353aafa0369671d2
4921746d16d1072b6ada082d4a4fc0e8f0af2e56
Fix loading trashed post by ids
## Description Trashed post couldn't be loaded, because the "trash" status is not in the hard-coded list. This PR changes the `status` query value from an allowed list (publish,pending,private,draft,...) to just "any,trash". The "any,trash" should include custom post status too. <img width="400" src="https://gith...
diff --git a/wp_mobile/src/service/posts.rs b/wp_mobile/src/service/posts.rs index 37c305c78..deab042db 100644 --- a/wp_mobile/src/service/posts.rs +++ b/wp_mobile/src/service/posts.rs @@ -520,18 +520,10 @@ impl PostService { // Ensure we get all requested posts regardless of default per_page ...
1
1
0
[{"id": "G0", "claim": "Given that \"any\" is used internally and is officially supported by the API, the PR should promote `Any` to its own first-class post status instead of relying on a custom string status.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Automattic__wordpress-rs__1348
Automattic/wordpress-rs
1,348
defect
054842a587a6c09e3673bb0273e3ad4d851e7b0e
e109f1f80a1ad16e56b94e41a4069add84f29ba0
Replace small integer types (`u8`, `u16`) with `u32` as defensive measure
[An 11-year-old bug in Android's ART AOT compiler for ARM32](https://github.com/jkmassel/uniffi-armv7-aot-checksum-bug) causes incorrect sign-extension of `Short` (16-bit) JNI return values, which can lead to UniFFI checksum mismatches at runtime (#1339). While the upstream fix is being pursued separately, this chan...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eb12b9ed3..c86f465b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Replace `u8`, `u16` types with `u32` across struct fields, function pa...
3
3
0
[{"id": "G0", "claim": "The changelog entry for the type widening is a breaking change and should be marked as such with a leading \"- **BREAKING:**\" prefix.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`SyncResult::no_op` converts `total_items...
null
Automattic__wordpress-rs__994
Automattic/wordpress-rs
994
defect
d1f81fe81484cf49259eeb7da671995971a73cf2
b9ebf4c5e1237d1ad912cd706d4f0ca6fccf9378
Cookies+nonce authentication
This PR implements a light-weight cookies+nonce authentication. The new type `WpRestNonceRetrieval` gets REST nonce via `<site-url>/wp-admin/admin-ajax.php?action=rest-nonce`. The nonce can be used along with cookies in the native `RequestExecutor` to make authenticated `wp/v2` API requests. As you can see in the...
diff --git a/Cargo.lock b/Cargo.lock index 12a06e500..c4c6f9798 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5099,6 +5099,7 @@ dependencies = [ "serde", "serde_json", "serde_repr", + "serde_urlencoded", "strum", "strum_macros", "thiserror 2.0.17", diff --git a/Cargo.toml b/Cargo.toml index 98455623c..dd9b55...
3
2
0
[{"id": "G0", "claim": "A request executor may not send or receive cookies, so cookie handling should be explicit: read the Set-Cookie value out of the response headers and send it alongside the nonce request instead of relying on the client's implicit cookie jar (while still validating the nonce belongs to the expecte...
null
Automattic__wordpress-rs__998
Automattic/wordpress-rs
998
defect
0a7c4378cc89a2e5e42c6e8f181e0c9c69da031d
d602bdefc2a5911046aab1a0cdee169c60f87b5e
Allow fetching first message of a bot conversation
This is a slightly breaking change to accommodate the fact that the field names are different.
diff --git a/native/swift/Sources/wordpress-api/Exports.swift b/native/swift/Sources/wordpress-api/Exports.swift index e2b82ffc0..efb980e2d 100644 --- a/native/swift/Sources/wordpress-api/Exports.swift +++ b/native/swift/Sources/wordpress-api/Exports.swift @@ -271,6 +271,7 @@ public typealias SubscriberImportJobsListPa...
1
1
0
[{"id": "G0", "claim": "The enum variant name `GetBotConverationList` (and the derived method name) misspells \"Conversation\" and should be corrected, though the reviewer notes it is unrelated to this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Automattic__wp-calypso__109638
Automattic/wp-calypso
109,638
defect
fded5f949b4abb8ea65f9f338d7a6796acdc9d6c
abf8a0e47e276e1641ee2a0e563f11798b5a4c4b
Register Sources as action component
Fixes AI-927 ## Summary - Moves `SourcesDisplay` from being injected into message content (via `extractSourcesFromContent`) to being registered as a `type: 'component'` message action via a new `useSourcesAction` hook - Removes the `position: absolute` CSS hack that caused the sources panel to overlap subsequent...
diff --git a/packages/agents-manager/src/components/orchestrator-chat/index.tsx b/packages/agents-manager/src/components/orchestrator-chat/index.tsx index 2147f95483f2..0382518c6e8a 100644 --- a/packages/agents-manager/src/components/orchestrator-chat/index.tsx +++ b/packages/agents-manager/src/components/orchestrator-...
2
1
0
[{"id": "G0", "claim": "The PR may not need the component-type message action for Sources, and the Sources UI might better live in the shared agenttic-ui package with an exported link click event so developers can override it.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id"...
null
Automattic__wp-calypso__109823
Automattic/wp-calypso
109,823
defect
525e623fef8435627645603076fa19e214afc741
0f77020b6150d2addede0d5505fb33eb004371e9
Consolidate SiteLaunchCelebrationModal trigger logic at site level
Closes DATSCI-1229 ## Proposed Changes ### Dashboard (`client/dashboard/`) * Moved the celebration modal open/close state and trigger logic from individual page components (`performance/index.tsx`, `settings-site-visibility/index.tsx`) into the `SiteLaunchCelebrationModal` component itself * Rendered the moda...
diff --git a/client/dashboard/sites/performance/index.tsx b/client/dashboard/sites/performance/index.tsx index 3360287d9c88..69149711d474 100644 --- a/client/dashboard/sites/performance/index.tsx +++ b/client/dashboard/sites/performance/index.tsx @@ -13,6 +13,7 @@ import InlineSupportLink from '../../components/inline-...
5
3
1
[{"id": "G0", "claim": "Adding `|| site.launch_status` makes the condition always truthy for any launched site (launch_status is a truthy string), so SitePerformanceContent never renders for launched sites; the check should be `launch_status === 'unlaunched'`.", "category": "correctness", "verdict": "supported", "prior...
null
Automattic__wp-calypso__109827
Automattic/wp-calypso
109,827
defect
bf113ee2aed8760646917bb1187b09137a8e71f3
0b7694d926bc6d437187f66480a46080bd442ebb
Agents Manager: Fix next-step button inheriting parent message actions
BSKY-1846 ## Proposed Changes * Avoid spreading the entire parent `show_component` message into the next-step-button message. Destructure to omit `actions` and `content` so only structural properties are carried over. ## Why are these changes being made? The next-step-button message was created via `...mess...
diff --git a/packages/agents-manager/src/utils/convert-tool-messages-to-components.ts b/packages/agents-manager/src/utils/convert-tool-messages-to-components.ts index 9b408a543249..b7d32fbca289 100644 --- a/packages/agents-manager/src/utils/convert-tool-messages-to-components.ts +++ b/packages/agents-manager/src/utils/...
1
1
1
[{"id": "G0", "claim": "The test suite should cover that the appended `msg-*-next-step` message does not inherit the parent tool message's `actions`, so please add or extend a test passing a tool message with `actions` set and asserting the generated next-step message has `actions` undefined/empty.", "category": "testi...
null
Automattic__wp-calypso__109851
Automattic/wp-calypso
109,851
defect
cf20c7b796ff2c8d215b18bfc94a9938aa0bd012
d20bde2d78a2ffba3be8e3e2e1599dfcd5296c85
Image Studio: Fix block editor crash when AMP plugin is active
## Proposed Changes - Wrap Image Studio's `editor.MediaUpload` and `editor.BlockEdit` filter HOCs in class component shells instead of returning arrow functions - Add regression tests verifying the returned components are compatible with `class extends` ## Why are these changes being made? The AMP plugin's `a...
diff --git a/packages/image-studio/src/extensions/generate-button-extension.test.tsx b/packages/image-studio/src/extensions/generate-button-extension.test.tsx new file mode 100644 index 000000000000..47580a841df3 --- /dev/null +++ b/packages/image-studio/src/extensions/generate-button-extension.test.tsx @@ -0,0 +1,70 @...
1
1
0
[{"id": "G0", "claim": "The root cause should be fixed in the AMP plugin so it handles non-class component definitions properly (e.g. wrapping them in a functional component), because this class of crash may happen again for other components that are not declared as classes, even if this PR lands as a quick fix.", "cat...
null
Automattic__wp-calypso__109887
Automattic/wp-calypso
109,887
defect
0ea3e38032c13d1d1365d54ba7298ff71f13823e
95947418d551ec71f5e317d748f13e4be7c94917
Fix next step button sending messages with wrong agent
Part of AI-933 ## Proposed Changes - Use the local `NextStepButton` component instead of fetching it from the external Big Sky provider via `getChatComponent`, and wire it directly to `agenttic-client`'s `onSubmit` so the message is routed through the correct agent - Add `onSubmit` as a required param to `convertTool...
diff --git a/packages/agents-manager/src/components/agent-dock/style.scss b/packages/agents-manager/src/components/agent-dock/style.scss index 9ec84362a99c..469bd32b4529 100644 --- a/packages/agents-manager/src/components/agent-dock/style.scss +++ b/packages/agents-manager/src/components/agent-dock/style.scss @@ -442,1...
3
2
1
[{"id": "G0", "claim": "convertToolMessagesToComponents is given the raw onSubmit from useAgentChat, so triggering the NextStepButton bypasses the side effects of the real submission path (setting hasUserSentMessage for route persistence and calling persistLastActivity); consider passing onSubmitWithImages or a wrapper...
null
Automattic__wp-calypso__109891
Automattic/wp-calypso
109,891
defect
26726ddb0195451c17338d435212be7953a8d08d
bfaab4400790c8554e9a4940e4040383d32b57e8
A4A-2379: Enable lead matching pilot for selected agencies
Part of A4A-2379 ## Proposed Changes - Add a pilot allowlist for the `a4a-partner-directory-lead-matching` visibility gate. - Keep the global config feature flag as the top-level override. - Use the same agency-scoped visibility check for the partner-directory menu item and route guard. - Add focused test cove...
diff --git a/client/a8c-for-agencies/sections/partner-directory/lib/lead-matching-visibility.ts b/client/a8c-for-agencies/sections/partner-directory/lib/lead-matching-visibility.ts index 0b1e0c79978f..2a93ac945168 100644 --- a/client/a8c-for-agencies/sections/partner-directory/lib/lead-matching-visibility.ts +++ b/clie...
2
2
1
[{"id": "G0", "claim": "The pilot agency list defined locally in client/state/a8c-for-agencies/agency/actions.ts duplicates the list already exported as A4A_PARTNER_DIRECTORY_LEAD_MATCHING_PILOT_AGENCY_IDS from lead-matching-visibility.ts, so the two lists can silently diverge; import and use the existing export instea...
null
Automattic__wp-calypso__109900
Automattic/wp-calypso
109,900
defect
39275f087444a41ce99fc11e5093eb7c6f68d1c2
320e564c4b316e0749de56ca58af7fdcab344cf7
Enable dashboard/omnibar in development and horizon
## Proposed Changes * Flip `dashboard/omnibar` to `true` in `config/development.json`, `config/horizon.json`, `config/dashboard-development.json`, and `config/dashboard-horizon.json`. ## Why are these changes being made? * Enables the Omnibar in non-production environments so it can be tested and iterated on before ...
diff --git a/config/dashboard-development.json b/config/dashboard-development.json index 7459fdb988ae..12acc668d610 100644 --- a/config/dashboard-development.json +++ b/config/dashboard-development.json @@ -25,7 +25,7 @@ "ciab/allow-domain-features": true, "cookie-banner": false, "rum-tracking/logstash": true,...
2
1
0
[{"id": "G0", "claim": "The legacy masterbar hamburger button does not have an accessible label, forcing the test to locate it by title instead of role.", "category": "accessibility", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Setting \"dashboard/omnibar\": true in config...
null
Automattic__wp-calypso__109946
Automattic/wp-calypso
109,946
defect
a60f0134b81a54f68b6df26b14b5c843274973f2
86ca7e400924378800cd2185820db420f0456a24
Dashboard: Enable WP beta activation for Simple Business+ sites
## Proposed Changes * `canViewWordPressSettings` now admits any site whose plan has `BACKUPS_SELF_SERVE` (not just Atomic sites with it active), so Simple Business+ sites can reach Settings > WordPress. * Added `canSwitchWordPressVersion( site )` — a named helper for the "hosting feature is actually active" check — an...
diff --git a/client/dashboard/app/router/sites.tsx b/client/dashboard/app/router/sites.tsx index d144d6ac0926..a0778a3b3557 100644 --- a/client/dashboard/app/router/sites.tsx +++ b/client/dashboard/app/router/sites.tsx @@ -47,9 +47,9 @@ import { createLazyRoute, createRoute, lazyRouteComponent, notFound } from '@tan i...
1
1
1
[{"id": "G0", "claim": "Switching shouldLoadWpVersionNotice to use canSwitchWordPressVersion means the function is no longer gated by the dashboard/wp-beta-program feature flag, so the WP version notice will now be shown where it previously was not.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
Automattic__wp-calypso__109963
Automattic/wp-calypso
109,963
defect
a60f0134b81a54f68b6df26b14b5c843274973f2
78cf723f52d89dc05fc9e0ea364e9490b9d1ba01
Load .env via dotenv in server and Playwright
## Proposed Changes - Add `dotenv@^9.0.2` as an explicit dependency, reusing the existing transitive lockfile entry - Load repo-root `.env` from the server config and Playwright config - E2E default base URLs (`CALYPSO_BASE_URL`, `DASHBOARD_BASE_URL`) now respect the `PORT` env var ## Why are these changes bein...
diff --git a/client/server/config/index.js b/client/server/config/index.js index d7caa5659ed0..4af426b8da24 100644 --- a/client/server/config/index.js +++ b/client/server/config/index.js @@ -1,4 +1,10 @@ const configPath = require( 'path' ).resolve( __dirname, '..', '..', '..', 'config' ); +require( 'dotenv' ).config(...
1
1
1
[{"id": "G0", "claim": "Revert the change making the server port fall back to the CMUX_PORT and CONDUCTOR_PORT env variables, because it could surprise people.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Automattic__wp-calypso__109989
Automattic/wp-calypso
109,989
defect
95402dc4d82eb95c96343d170559d854d4368765
a629d2863c7273185309f42b6641aebd18460f27
Suppress Survicate popups while Help Center is open
Task-related: DOTOBRD-428 ## Proposed Changes * Add a code-level guard on `invokeSurvicateEvent()` that skips firing events while the Help Center is open * Close any already-open Survicate survey when the Help Center opens * Create a `useSurvicateSuppression` hook in the Help Center package that manages suppres...
diff --git a/packages/help-center/package.json b/packages/help-center/package.json index 2a4ccdf0c28a..edc782091fe6 100644 --- a/packages/help-center/package.json +++ b/packages/help-center/package.json @@ -41,6 +41,7 @@ }, "dependencies": { "@automattic/agents-manager": "workspace:^", + "@automattic/survicate"...
1
1
1
[{"id": "G0", "claim": "The coupling direction is wrong and bloats widely-loaded bundles — Survicate would bundle data-stores and the Help Center would bundle Survicate — so instead the code should simply call window._sva?.closeSurvey?.() from the Help Center actions in data-stores to close an already-visible survey.",...
null
Automattic__wp-calypso__109993
Automattic/wp-calypso
109,993
defect
0a63b435c49065caa4157ca9a1aa1290cbd28a7c
2ce5e3ce2eb8cddb4258ec24b86bfc0d532eb99c
Image Studio: Scope nav pill to uploads page, fix header spacing
Part of FORNO-340 ## Proposed Changes * Only render the Edit-mode navigation pill when `window.pagenow === 'upload'`, in addition to the existing `filename` check. * Zero out margin/padding on the title row in the header to fix vertical alignment. <table><tr> <td> Post editor </td> <td> Media Library </...
diff --git a/packages/image-studio/src/components/header/index.test.tsx b/packages/image-studio/src/components/header/index.test.tsx index ca47b17db2d7..208e90088571 100644 --- a/packages/image-studio/src/components/header/index.test.tsx +++ b/packages/image-studio/src/components/header/index.test.tsx @@ -137,21 +137,4...
2
1
0
[{"id": "G0", "claim": "In Edit mode with edited images the top-toolbar navigation is confusing — the pill's filename changes when navigating between image variants while the nav buttons are disabled yet look clickable — so the buttons should be hidden or rendered as disabled with muted colours, or the pill removed.", ...
null
Automattic__wp-calypso__110091
Automattic/wp-calypso
110,091
defect
1a44c76dffb41e9bcb55be13a2a4390177e553e0
c91a0a9ae7a17bc9f30d888ccb85295808c1eb08
Reader: Add trophies data layer for achievements page
Fixes RSM-394 ## Proposed Changes - Add `Trophy` and `TrophiesResponse` types and `fetchTrophies()` fetcher in `@automattic/api-core` (GET `/me/trophies`, v1.1, 100 per page). - Add `trophiesQuery()` infinite query in `@automattic/api-queries` with automatic pagination. - Add `useTrophiesQuery()` hook in `clien...
diff --git a/client/data/reader/use-trophies-query.ts b/client/data/reader/use-trophies-query.ts new file mode 100644 index 000000000000..33860810e68b --- /dev/null +++ b/client/data/reader/use-trophies-query.ts @@ -0,0 +1,21 @@ +import { trophiesQuery } from '@automattic/api-queries'; +import { useInfiniteQuery } from...
2
2
0
[{"id": "G0", "claim": "packages/api-core/src/me-trophies/index.tsx should be a .ts file really.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new &__loader rule uses a BEM & shortcut that client/AGENTS.md says should be avoided.", "categor...
null
Automattic__wp-calypso__110101
Automattic/wp-calypso
110,101
defect
1690788e76e0426035fe1d45822df7227ce90e2b
53e7c2f46463bec3e50543e0945e61ebd64d0d95
A4A: Include estimated transactions in WooPayments dashboard
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> Part of A4A-1511 ## Proposed Changes * Updated `getSiteData` function to include estimated/pending transactions from current and previous quarters * Transaction count now shows total of completed transactions plus estimated transactions, matching the pattern used for estimate...
diff --git a/client/a8c-for-agencies/sections/woopayments/lib/site-data.ts b/client/a8c-for-agencies/sections/woopayments/lib/site-data.ts index 5304eacabd9c..e12bdc19824a 100644 --- a/client/a8c-for-agencies/sections/woopayments/lib/site-data.ts +++ b/client/a8c-for-agencies/sections/woopayments/lib/site-data.ts @@ -1...
2
2
1
[{"id": "G0", "claim": "No tests are added for getSiteData's new estimatedTransactions branches, and at least two cases should be added (dates equal -> only current quarter transactions summed; dates unequal -> both quarters summed).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
Automattic__wp-calypso__110110
Automattic/wp-calypso
110,110
defect
9912ec4a57c93f43c76efa38f18548fe4e185d60
a338a7971f494b7cbc9d72195c05e034f945b33b
Reader: Add achievement settings and visibility controls
Fixes RSM-397 ## Proposed Changes - Add a settings dropdown to the achievements page header with two toggles persisted via `/me/preferences`: - **Public achievements** (opt-in, private by default). - **Achievement notifications** (enabled by default, overrides site-level settings with link to `/me/notificat...
diff --git a/client/data/reader/use-trophies-query.ts b/client/data/reader/use-trophies-query.ts index 33860810e68b..b4bb32133ae9 100644 --- a/client/data/reader/use-trophies-query.ts +++ b/client/data/reader/use-trophies-query.ts @@ -3,7 +3,10 @@ import { useInfiniteQuery } from '@tanstack/react-query'; import { useE...
7
4
3
[{"id": "G0", "claim": "Add test coverage for the new achievements visibility rules: the achievements view renders nothing when isVisible is false, and the settings button is shown only on the owner's profile.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
Automattic__wp-calypso__110152
Automattic/wp-calypso
110,152
defect
f695c470d414af85cae3444a6711f32acc3b4e6b
1dfb5ec53fb210ea3948d81e826484692572c612
Reader: Achievements settings API and visibility gating
Related to RSM-381 ## Proposed Changes * Replace boolean user preferences (`achievements-page-public`, `achievements-notifications-enabled`) with declarative string values (`achievements-visibility`: `public`/`private`, `achievements-global-notifications`: `enabled`/`disabled`). * Add API module for the new `GET /wpc...
diff --git a/client/reader/user-profile/components/user-profile-header/index.tsx b/client/reader/user-profile/components/user-profile-header/index.tsx index 710feee0abf3..d07cd79ef982 100644 --- a/client/reader/user-profile/components/user-profile-header/index.tsx +++ b/client/reader/user-profile/components/user-profil...
7
6
5
[{"id": "G0", "claim": "The new test file imports the hook as a named export while use-achievements-visibility.ts now only has a default export, which will fail at compile/runtime; update the test to a default import (or revert the hook back to a named export) and adjust usages accordingly.", "category": "correctness",...
null
Automattic__wp-calypso__110222
Automattic/wp-calypso
110,222
defect
5d25594dcc4bc732310b59e77fe5d3537cca2b98
040f4ec56a6804b21927cec6cfd37385ca648cd2
Performance: scaffold Frontend/Backend submenu behind performance/apm flag
More context: phcsdm-11P-p2 Part of the WPCOM APM project — first Calypso slice. No user-visible change outside `development` (the only env where the `performance/apm` flag is enabled — flag was registered in #110228). ## Proposed Changes - Add `APM` to `DotcomFeatures` and `HostingFeatures` in `packages/api-c...
diff --git a/client/dashboard/app/router/sites.tsx b/client/dashboard/app/router/sites.tsx index d8270c812b75..4c486efdc525 100644 --- a/client/dashboard/app/router/sites.tsx +++ b/client/dashboard/app/router/sites.tsx @@ -576,6 +576,50 @@ export const sitePerformanceRoute = createRoute( { ) ); +export const siteP...
2
2
1
[{"id": "G0", "claim": "The `afterEach( () => nock.cleanAll() )` block in the backend performance test is unnecessary because nock.cleanAll() is already called globally after each test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The frontend page sh...
null
Automattic__wp-calypso__110321
Automattic/wp-calypso
110,321
defect
64ff4c861a10e126128a7bb7074ceb72a7a1435e
2320107c8b33627d680d54988340be8116a38c21
Reader: migrate QueryReaderThumbnails to React Query (READ-376)
Closes READ-376 ## Proposed Changes * New `read-thumbnails` module in `@automattic/api-core` and `@automattic/api-queries` providing `fetchReaderThumbnail` (with per-service internal fetchers for youtube, videopress, vimeo, pocketcasts) and `readerThumbnailQuery`. * Converted `ReaderFeaturedVideo` to consume the...
diff --git a/client/blocks/reader-featured-video/index.jsx b/client/blocks/reader-featured-video/index.jsx index c5f0749a0ccc..5bc731231b59 100644 --- a/client/blocks/reader-featured-video/index.jsx +++ b/client/blocks/reader-featured-video/index.jsx @@ -1,20 +1,20 @@ +import { readerThumbnailQuery } from '@automattic/...
5
5
4
[{"id": "G0", "claim": "fetchReaderThumbnail can return undefined at runtime for an unsupported service value, breaking the declared Promise<string | null> contract and potentially caching an undefined success value in React Query; add an explicit default/else path (e.g. a return null after the switch).", "category": "...
null
Automattic__wp-calypso__110323
Automattic/wp-calypso
110,323
defect
f42d5eb39448d8ba6b4e45503ab8b0a2daaa865f
bc3c53e3d4e772f9a3336bc8a16f14a7b45ca2a5
Checkout: share refund-window selection helper
Part of # ## Proposed Changes * Add `getRefundWindowSummary( cart )` to `refund-policies.tsx`. Returns `{ days, usePlanProductName } | null` — the day count to surface, plus a flag indicating whether the headline copy should name the plan product. Encodes all the "which window do we pick" predicates in one place: nul...
diff --git a/client/my-sites/checkout/src/components/checkout-summary-refund-windows.tsx b/client/my-sites/checkout/src/components/checkout-summary-refund-windows.tsx index b8c93db19b3e..4a040cdc9bba 100644 --- a/client/my-sites/checkout/src/components/checkout-summary-refund-windows.tsx +++ b/client/my-sites/checkout/...
1
1
0
[{"id": "G0", "claim": "The refactor dropped the translator `comment` clarifying that `days` refers to the shortest refund window in the cart, so restore the `comment` field (or an equivalent translator note) on the else-branch translate call.", "category": "documentation", "verdict": "supported", "priority": "P2", "sc...
null
Automattic__wp-calypso__110330
Automattic/wp-calypso
110,330
defect
49e633e8b958ec9f53ebea566c5ca7130bf095f7
680cc9704d6f87b3575335af462db6290f412d73
Dashboard: one-way WordPress beta opt-out for restricted sites
Part of DOTCOM-16574 ## Proposed Changes * Add `canOptOutOfWordPressBeta(site, versionTag)` predicate in `client/dashboard/sites/features.ts` — returns `true` for Atomic/Flex sites under the `dashboard/wp-beta-program` flag that lack self-serve backups and are currently on `beta`. Pass the literal `'beta'` to gat...
diff --git a/client/dashboard/app/router/sites.tsx b/client/dashboard/app/router/sites.tsx index 4c486efdc525..d46eb25dae43 100644 --- a/client/dashboard/app/router/sites.tsx +++ b/client/dashboard/app/router/sites.tsx @@ -46,6 +46,7 @@ import { createLazyRoute, createRoute, lazyRouteComponent, notFound } from '@tan i...
6
3
3
[{"id": "G0", "claim": "The success snackbar copy \"You have opted out of the WordPress beta version.\" does not follow the established typography-and-copy guide pattern, and the reviewer suggests reusing \"WordPress version saved.\" like the sibling mutation in use-version-switch.ts.", "category": "design", "verdict":...
null
Automattic__wp-calypso__110334
Automattic/wp-calypso
110,334
defect
6fd50bc84d06130c205ccdae94a8bc39195bad5f
6dc4a4cb48ad7916e592ecc5e8706f320679c338
Reader: Migrate related posts data fetching to React Query (READ-377)
Closes READ-377 ## Proposed Changes * New `api-core`/`api-queries` modules for `read-related-posts`. * New `withReaderRelatedPosts(scope)` HOC fetches via React Query, dispatches `receivePosts`, and injects `posts` (`global_ID[]`) as a prop. `RelatedPosts` becomes a pure presentational component. * Removed the ...
diff --git a/client/components/data/query-reader-related-posts/index.jsx b/client/components/data/query-reader-related-posts/index.jsx deleted file mode 100644 index 81849b278e76..000000000000 --- a/client/components/data/query-reader-related-posts/index.jsx +++ /dev/null @@ -1,29 +0,0 @@ -import PropTypes from 'prop-t...
7
5
2
[{"id": "G0", "claim": "Returning null unconditionally on isError hides previously fetched related posts during transient/offline refetch failures; the early return should only trigger when there is no usable cached data.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
Automattic__wp-calypso__110349
Automattic/wp-calypso
110,349
defect
97e57aa00b7faef535a7d4a0d11fe4ba8b661fa3
41caf884686251517d7ec8304d84c2f5012dcf9e
Reader social: make inner post-card links clickable
Fixes CM-647 ## Proposed Changes * Force sanitized Reader social post/body bio anchors to open in a new tab with hardened `rel` attributes. * Raise inline body anchors above the post-card overlay so links inside post bodies remain individually clickable. * Refactor quote embeds to use the existing card-link pattern t...
diff --git a/client/reader/atmosphere/test/timeline-panel.test.tsx b/client/reader/atmosphere/test/timeline-panel.test.tsx index f60d3dc53c12..178afdbe9ca5 100644 --- a/client/reader/atmosphere/test/timeline-panel.test.tsx +++ b/client/reader/atmosphere/test/timeline-panel.test.tsx @@ -230,6 +230,7 @@ describe( 'Timeli...
1
1
0
[{"id": "G0", "claim": "Now that compact mode also goes through PostCardLink, the doc comment in post-card-link.tsx (lines 11-14) is stale — it still says 'Compact mode is rendered without this wrapper' — and should get a one-line patch in a future PR.", "category": "documentation", "verdict": "supported", "priority": ...
null
Automattic__wp-calypso__110353
Automattic/wp-calypso
110,353
defect
a3a1b8c86005d17df96e01aa5deb692abc785177
eefd6c549caa15196d67360126b0200e203afc2a
Cancel/Remove: cancel plan before showing survey
Part of https://linear.app/a8c/issue/RSM-474 ## Summary Behind the `purchases/split-cancel-remove` flag, cancelling fires when the user confirms the cancellation rather than when they finish the survey. The survey renders post-cancellation with inline-disabled controls until the cancellation completes; once the u...
diff --git a/client/dashboard/me/billing-purchases/cancel-purchase/index.tsx b/client/dashboard/me/billing-purchases/cancel-purchase/index.tsx index c0261b87af92..a43cf0ced52f 100644 --- a/client/dashboard/me/billing-purchases/cancel-purchase/index.tsx +++ b/client/dashboard/me/billing-purchases/cancel-purchase/index.t...
3
3
3
[{"id": "G0", "claim": "The REMOVE success message in the new mutation-on-confirm path only covers the default case, so for siteless purchases (Akismet, Jetpack, Marketplace) the snackbar would show a temporary holding-site domain (e.g. 'Akismet Anti-Spam was removed from siteless.akismet.com.'); it should reuse the su...
null
Avaiga__taipy__1679
Avaiga/taipy
1,679
defect
d6caa68191536b217d8ce1c0935de073fea3a6f2
9a88a4284253844052b172050d2b2ed0197be3d4
port auto ranges (#1519)
Resolve #1519 port ranges are weighted on the length of the ranges
diff --git a/taipy/gui/_default_config.py b/taipy/gui/_default_config.py index 9f29821f9a..1c955e4ff0 100644 --- a/taipy/gui/_default_config.py +++ b/taipy/gui/_default_config.py @@ -59,6 +59,7 @@ "notebook_proxy": True, "notification_duration": 3000, "port": 5000, + "port_auto_ranges": [(49152, 65535...
4
1
1
[{"id": "G0", "claim": "The weight computation assumes the first element of each tuple is lesser than the second, so a reversed range would produce a wrong (negative) weight.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code hopefully assumes ...
null
Avaiga__taipy__1831
Avaiga/taipy
1,831
defect
b4722b9191fbd88a69de6b5e427f5fb79e30fcdc
8ee0275d368767edba0376222bf6a82eb9bb40cd
table format function
resolves #564 ``` import pandas as pd from taipy.gui import Gui data = pd.DataFrame() # Create 1O columns with 100 rows of bools for i in range(10): data[f"col_{i}"] = list(range(100)) def my_format(state, value, index, row, col_name): return f"value: {value} for {index} in {col_name}" ...
diff --git a/frontend/taipy-gui/package-lock.json b/frontend/taipy-gui/package-lock.json index ae9654a7ca..4c14ef635e 100644 --- a/frontend/taipy-gui/package-lock.json +++ b/frontend/taipy-gui/package-lock.json @@ -672,9 +672,9 @@ "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3...
1
1
0
[{"id": "G0", "claim": "The warning message \"format_fn[{k}]={value} cannot be a column's name.\" is unclear about who/what 'cannot be a column's name' refers to.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Avaiga__taipy__1884
Avaiga/taipy
1,884
defect
6e9ed228b87a42c798b9e304afa386a20a6ce19c
ee0bb421a76772ed2cb5f9674137275c67c7c3c8
add on page load (#1883)
Resolve #1883
diff --git a/taipy/gui/gui.py b/taipy/gui/gui.py index 5ce11a9348..27f5063f0a 100644 --- a/taipy/gui/gui.py +++ b/taipy/gui/gui.py @@ -143,6 +143,14 @@ class Gui: The signature of the *on_init* callback function must be: - *state*: the `State^` instance of the caller. + on_page_load (...
1
1
0
[{"id": "G0", "claim": "The docstring for on_page_load should say more precisely when the callback fires instead of the vague \"called when a page is loaded\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Avaiga__taipy__1991
Avaiga/taipy
1,991
defect
a085ba7265ea0826f0af9afcf59b97aebdfb5487
65ec002ee9851f3ebc5fd77b5261b351af6d0fd0
Time visual element
This Pull Request to resolves #459 ```py import datetime from taipy.gui import Gui time = datetime.datetime(1789, 7, 14, 17, 5, 12) page = "<|{time}|time|>" if __name__ == "__main__": Gui(page).run(title="Time - Simple") ``` Result (Desktop View): ![Screenshot 2024-11-05 at 12-15-43 Time - ...
diff --git a/frontend/taipy-gui/src/components/Taipy/TimeSelector.tsx b/frontend/taipy-gui/src/components/Taipy/TimeSelector.tsx new file mode 100644 index 0000000000..bbdac89a97 --- /dev/null +++ b/frontend/taipy-gui/src/components/Taipy/TimeSelector.tsx @@ -0,0 +1,80 @@ +/* + * Copyright 2021-2024 Avaiga Private Limi...
17
14
7
[{"id": "G0", "claim": "The time control's default value should be the current time (datetime.today().time()) rather than datetime.fromtimestamp(0).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The time control should have its own property type instead...
null
Avaiga__taipy__2072
Avaiga/taipy
2,072
defect
63f0cbf9a5e6346e54c5c4c0071ee8dc2cca8828
c846bbc7d24cb150868ac375209abfc3932985d9
Precompute the rank of a data node in all the scenario config DAGs.
resolves #2071 - Each data node configuration now has a `_rank` attribute as a dictionary. - When configuring a new scenario configuration, all the nested data node configurations are updated. An entry is added in the `DataNodeConfig._rank` dictionary. The key is the scenario config ID, and the value is the rank of ...
diff --git a/taipy/core/config/data_node_config.py b/taipy/core/config/data_node_config.py index 12c1763d67..f385c64a87 100644 --- a/taipy/core/config/data_node_config.py +++ b/taipy/core/config/data_node_config.py @@ -285,6 +285,7 @@ def __init__( suggest="exposed_type='pandas'", ) ...
3
3
0
[{"id": "G0", "claim": "The code comment reading \"# Remove tasks wit no input\" contains a typo and should read \"# Remove tasks with no input\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In __build_datanode_configs_ranks the walrus-assigned...
null
Avaiga__taipy__2101
Avaiga/taipy
2,101
defect
f00ec30efffebea30e6f291c3eba92ea02b8a652
4eca54f4d4a14b8c4d383f4283c7331a894ad366
Adding a mock State class that can be instantiated and queried while testing
I had hoped it would not have any impact on the "real" code but it has. Any discussion is welcome before merge. resolves #2098 Here is how I think it could be used for tests (aiming at Taipy user developing and testing their app) The user code to test ```py def on_action(state: State): ... state.a...
diff --git a/taipy/gui/gui.py b/taipy/gui/gui.py index 52d4b31100..cb030dfa51 100644 --- a/taipy/gui/gui.py +++ b/taipy/gui/gui.py @@ -72,7 +72,7 @@ from .page import Page from .partial import Partial from .server import _Server -from .state import State +from .state import State, _GuiState from .types import _WsTy...
5
4
1
[{"id": "G0", "claim": "The base State class should be made abstract (e.g. inherit from ABC) so that its get_gui method is actually enforced as abstract.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "MockState should carry a docstring/TODO pointing to d...
null
Avaiga__taipy__2147
Avaiga/taipy
2,147
defect
3621961930cec46fd204c2322ff694542b0d85c9
5d500683c7f79a464653bac8552992a7973b7983
Metric: Add support for None
Added support for None in tgb.metric(), removed "none" resolves #2143
diff --git a/frontend/taipy-gui/src/components/Taipy/Metric.tsx b/frontend/taipy-gui/src/components/Taipy/Metric.tsx index a837d9ad7a..5c93c3208a 100644 --- a/frontend/taipy-gui/src/components/Taipy/Metric.tsx +++ b/frontend/taipy-gui/src/components/Taipy/Metric.tsx @@ -87,7 +87,7 @@ const Metric = (props: MetricProps)...
5
5
4
[{"id": "G0", "claim": "The Metric component must keep supporting the string \"none\" as a type, compared case-insensitively, instead of the change removing that support.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests must be added for the new...
null
Avaiga__taipy__2206
Avaiga/taipy
2,206
defect
8f343082c2b102cb1a6f7efe4435829b94f4d640
45c7b2187a237a97a32588264a83becc601f62f6
New feature implementation/#2189 Add support for uploading nested folders
resolves #2189 ## Implementation: - [frontend/taipy-gui/src/components/Taipy/FileSelector.tsx](https://github.com/JosuaCarl/taipy/blob/924619818fddce61138778f6c4a1d40e15027380/frontend/taipy-gui/src/components/Taipy/FileSelector.tsx): Added an option to include `webkitdirectory `in the `<include ...>` block, which...
diff --git a/.gitignore b/.gitignore index b840ca50e6..e0ab0aaff3 100644 --- a/.gitignore +++ b/.gitignore @@ -96,3 +96,8 @@ demo[_|-]*/ data_sources pipelines pickles + + + +# Ignoring baseline npm modules +node_modules/ \ No newline at end of file diff --git a/frontend/taipy-gui/dom/package-lock.json b/frontend/ta...
11
11
3
[{"id": "G0", "claim": "The new file-selector property should not be named after the browser-specific `webkitdirectory` attribute ('who cares about webkit in python?'); the reviewers ask for a Python-friendly name, proposing `allow_folder_selection`, `nested_folder_upload`, `files_only` and finally settling on `selecti...
null
Avaiga__taipy__2296
Avaiga/taipy
2,296
defect
5a52d3fcaece548f4a70716f21c69006c577aab9
f4ea43505f38a3c99232e570d7e0f0a546279fca
feature/#398-expand-exposed-type-parameter
## What type of PR is this? (check all applicable) - [ ] Refactor - [x] Feature - [ ] Bug Fix - [ ] Optimization - [ ] Documentation Update ## Description We are also including pandas.DataFrame and numpy.ndarray as exposed type. ## Related Tickets & Documents - Related Issue #398 - Closes #398 ## H...
diff --git a/Pipfile b/Pipfile index e308f18c4d..da1ab78ea4 100644 --- a/Pipfile +++ b/Pipfile @@ -36,6 +36,7 @@ boto3 = "==1.29.1" watchdog = "==4.0.0" charset-normalizer = "==3.3.2" numpy = "<2.0.0" +pre-commit = "*" [dev-packages] freezegun = "*" diff --git a/git b/git new file mode 100644 index 0000000000..e...
1
1
1
[{"id": "G0", "claim": "The PR must make using pandas DataFrame and numpy ndarray objects as the exposed_type work properly with Taipy serialization, and prove it with test cases covering the different ways these classes can be imported and referenced (pd.DataFrame, pandas.DataFrame, DataFrame, DF, and the equivalent n...
null
Avaiga__taipy__2432
Avaiga/taipy
2,432
defect
4b51a0b68efb237623476288ba869cdcf0433d08
e7536bf66c1cda2683846e274b0a6a253901b66d
feat: add rest config and rest config checker
## What type of PR is this? (check all applicable) - [ ] Refactor - [x] Feature - [ ] Bug Fix - [ ] Optimization - [ ] Documentation Update ## Description Add option to inform rest server Host, Port and other attributes that could be used for a deploy in a production environment. ## Related Tickets & Docu...
diff --git a/taipy/rest/config/__init__.py b/taipy/rest/config/__init__.py new file mode 100644 index 0000000000..675fb0a3d4 --- /dev/null +++ b/taipy/rest/config/__init__.py @@ -0,0 +1,10 @@ +# Copyright 2021-2025 Avaiga Private Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may not ...
12
12
9
[{"id": "G0", "claim": "RestConfig should be a unique section so only one instance exists in the Config, which would also simplify the checker.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the same design pattern as the existing sections: expose al...
null
Avaiga__taipy__2440
Avaiga/taipy
2,440
defect
749373f4014740079151caead442ce5ee73262c4
5ffe5053ece63884ab42a47e887c819453a3b56b
Refactor - Allow expanding the TYPE_PATTERN by the _BaseSerializer._SERIALIZABLE_TYPES list
## What type of PR is this? (check all applicable) - [x] Refactor - [x] Feature ## Description This PR creates the `_BaseSerializer._SERIALIZABLE_TYPES` to allow expanding the serializable types when stringify and pythonify the Config.
diff --git a/taipy/common/config/_serializer/_base_serializer.py b/taipy/common/config/_serializer/_base_serializer.py index 1ff51bd430..1b73ed5eaf 100644 --- a/taipy/common/config/_serializer/_base_serializer.py +++ b/taipy/common/config/_serializer/_base_serializer.py @@ -29,6 +29,19 @@ class _BaseSerializer(object):...
2
2
2
[{"id": "G0", "claim": "The hardcoded \"SCOPE\" and \"FREQUENCY\" entries in _BaseSerializer._SERIALIZABLE_TYPES must be removed and such types added dynamically from the core package instead (e.g. via a _SUB_TYPES variable on Section updated by _inject_section).", "category": "design", "verdict": "supported", "priorit...
null
Avaiga__taipy__2505
Avaiga/taipy
2,505
defect
439c7f52253fc09dd41c455a8a9f8da962d49dfa
cffaae91d77dcb403a025026a14e5ea47aab2f27
Make core event registration able to support multiple topics
## What type of PR is this? (check all applicable) - [x] Refactor - [x] Feature - [ ] Bug Fix - [ ] Optimization - [ ] Documentation Update ## Description See issue #2306 ## Related Tickets & Documents - Related Issue #2306
diff --git a/taipy/core/notification/_registration.py b/taipy/core/notification/_registration.py index 418edd9da5..a7aafcb457 100644 --- a/taipy/core/notification/_registration.py +++ b/taipy/core/notification/_registration.py @@ -10,7 +10,7 @@ # specific language governing permissions and limitations under the Licens...
2
2
1
[{"id": "G0", "claim": "_Registration.__init__ should declare an explicit `-> None` return annotation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "unregister would not work if registration_id were a _Registration object, and its signature sho...
null
Avaiga__taipy__2533
Avaiga/taipy
2,533
defect
a0065c4634d12b7f8cd603a651d0fd127c3cf50b
1fb1f443e84379cc75dc08515476ed93f81aba42
Refactor: route DataNode.read() and write() to _DataNodeManager
## What type of PR is this? (check all applicable) - Refactor - Feature ## Description This PR reroutes the DataNode.read() and write() methods to call to the manager methods. ## Related Tickets & Documents - Related Issue https://github.com/Avaiga/taipy-enterprise/issues/651
diff --git a/taipy/core/_orchestrator/_dispatcher/_task_function_wrapper.py b/taipy/core/_orchestrator/_dispatcher/_task_function_wrapper.py index 4f3e579a4e..97cbe9cc65 100644 --- a/taipy/core/_orchestrator/_dispatcher/_task_function_wrapper.py +++ b/taipy/core/_orchestrator/_dispatcher/_task_function_wrapper.py @@ -5...
3
3
2
[{"id": "G0", "claim": "DataNode.read_or_raise() is a public API that the pull request removes, so it should be kept (restored) rather than dropped.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request rewrote the NoData tests in many data-nod...
null
Avaiga__taipy__2542
Avaiga/taipy
2,542
defect
758909168a82af9a8d6ac5302af7311df9b3962c
3cc4e61cb2243d62c671f5bbc1643932f7552be6
Fix URL encoding in content accessor by replacing quote_plus with quote for file URLs
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description This PR fixes an issue with the file_download control when file names contain spaces. Previously, spaces in filenames were encoded as **`+`**...
diff --git a/taipy/gui/data/content_accessor.py b/taipy/gui/data/content_accessor.py index 33abc23fc5..1e8d105fe5 100644 --- a/taipy/gui/data/content_accessor.py +++ b/taipy/gui/data/content_accessor.py @@ -113,7 +113,7 @@ def get_info(self, var_name: str, value: t.Any, image: bool) -> t.Union[str, t.T sel...
2
2
0
[{"id": "G0", "claim": "Add a test covering the change to the file URL encoding in the content accessor.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new test the expected defaultContent should be a single entry on the same line rather than spl...
null
Avaiga__taipy__2592
Avaiga/taipy
2,592
defect
c76e4212a03946ce4074a9efaf3e6be3f0f95517
95226fa8b9849ddbacc90247c5b9fc505aef7d6b
Refactor - Allow expanding read/write FileBasedDataNode with custom path
## What type of PR is this? (Check all that apply) - 🛠 Refactor ## Description In this PR: - `_get_last_modified_datetime()` method is moved to the `FileBasedDataNodeMixin` since it only works when there's a path. - Fix `DataNode._class_map()` sometimes override enterprise DN with community one. - Allow fi...
diff --git a/taipy/core/data/_file_datanode_mixin.py b/taipy/core/data/_file_datanode_mixin.py index 7e6a349447..bc7db18623 100644 --- a/taipy/core/data/_file_datanode_mixin.py +++ b/taipy/core/data/_file_datanode_mixin.py @@ -196,7 +196,7 @@ def _read_from_path(self, path: Optional[str] = None, **read_kwargs) -> Any: ...
2
1
0
[{"id": "G0", "claim": "The append path calls _append_excel_with_single_sheet without supplying the 'path' parameter that the PR's updated _write_excel_with_single_sheet signature requires, so appending to a single-sheet Excel data node would fail; the reviewer asks to pass self._path and keep the method name consisten...
null
Avaiga__taipy__2601
Avaiga/taipy
2,601
defect
236f8c64b00ed59d3d0c908efd6b62d131e3017b
051676675b57d66ae86436f68dfc529b88bbdcdd
#2597 Fix missing parent_ids
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [ ] ✨ Feature - [X] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Related Tickets & Documents - Closes #2597 - Related to #2597
diff --git a/taipy/core/scenario/_scenario_manager.py b/taipy/core/scenario/_scenario_manager.py index aefba03469..dac6d0f8a6 100644 --- a/taipy/core/scenario/_scenario_manager.py +++ b/taipy/core/scenario/_scenario_manager.py @@ -186,14 +186,9 @@ def _create( sequences=sequences, ) - for...
6
1
0
[{"id": "G0", "claim": "The removal of the loop that updates each task's _parent_ids when creating a scenario could lead to tasks missing the scenario's ID if they are not updated via bulk creation; please verify that all tasks have the correct parent IDs in all creation pathways.", "category": "correctness", "verdict"...
null
Avaiga__taipy__2604
Avaiga/taipy
2,604
defect
183365bebccbd6623f02b31b77b0d2fe77c99c9a
7d010a8b3502a4b9a6ad3235ad787fb32cc7e835
#enterprise-666 prepare migration feature into release/4.1
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [x] ✨ Feature - [ ] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description - Expose the scope of a TaskConfig as the minimum scope of its DataNodeConfigs. (similar to the task scope.) - Expose a new hidden method fr...
diff --git a/taipy/core/config/task_config.py b/taipy/core/config/task_config.py index e952ac9c47..528227a193 100644 --- a/taipy/core/config/task_config.py +++ b/taipy/core/config/task_config.py @@ -15,6 +15,7 @@ from taipy.common.config import Config from taipy.common.config._config import _Config from taipy.common...
9
6
0
[{"id": "G0", "claim": "The docstrings for _get_existing_data_nodes and the related __get_data_nodes, __get_additional_data_nodes and __get_tasks methods should document the new raise_not_existing parameter for clarity.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"i...
null
Avaiga__taipy__2612
Avaiga/taipy
2,612
defect
afe72633e0cea5e9fdadabe9f23b35d6cff44999
9300018162a080c7badccd513463aab065a74092
Re entrant and thread safe reloader (#2589)
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [x] ✨ Feature - [ ] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description Required by enterprise 666 ## Backporting <!-- Specify any branches or releases this change needs to be backported to. --> _This chang...
diff --git a/taipy/core/_entity/_reload.py b/taipy/core/_entity/_reload.py index ed32f3fc58..93cec6f948 100644 --- a/taipy/core/_entity/_reload.py +++ b/taipy/core/_entity/_reload.py @@ -1,4 +1,4 @@ -# Copyright 2021-2024 Avaiga Private Limited +# Copyright 2021-2025 Avaiga Private Limited # # Licensed under the Apac...
5
3
2
[{"id": "G0", "claim": "Updating `_context_depth` in `__enter__`/`__exit__` needs to be done under a lock.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added `import threading` is not in use yet.", "category": "maintainability", "verdict...
null
Avaiga__taipy__2649
Avaiga/taipy
2,649
defect
441a1860158fec2afcab97e14919443efcc14269
8e51ff1b544c1a01a2da4490e43a8fb97e5c710d
Fix/#2616 - Make read_query and write_query_builder optional for SQLDataNode
## What type of PR is this? (Check all that apply) - 🛠 Refactor - ✨ Feature - 🐛 Bug Fix ## Description The SQLDataNode should be available for read-only or write-only. Which means the `read_query` and `write_query_builder` should be optional, and one 1 of the 2 is required. If both is not provided, the ...
diff --git a/taipy/core/config/checkers/_data_node_config_checker.py b/taipy/core/config/checkers/_data_node_config_checker.py index cab9d8314d..bba76bfd97 100644 --- a/taipy/core/config/checkers/_data_node_config_checker.py +++ b/taipy/core/config/checkers/_data_node_config_checker.py @@ -49,6 +49,7 @@ def _check(self...
1
1
0
[{"id": "G0", "claim": "The manual has_at_least_one flag loop in _check_sql_read_write_query can be simplified using Python's any().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Avaiga__taipy__2652
Avaiga/taipy
2,652
defect
58fe2a9aafa385d0022375704aa7ff7dbd78c6ec
4d395893d5bc7b2f9cded7362e8afb771699ca61
Feature/#2603 - Add separator property to CSVDataNode
## What type of PR is this? (Check all that apply) - ✨ Feature ## Description The CSVDataNode can be configured with a different separator rather than "," ## Related Tickets & Documents - Closes #2603 ## Checklist - [x] ✅ This solution meets the acceptance criteria of the related issue. - [x] 📝 Th...
diff --git a/taipy/core/config/data_node_config.py b/taipy/core/config/data_node_config.py index 3e20dc8e27..c598ae5955 100644 --- a/taipy/core/config/data_node_config.py +++ b/taipy/core/config/data_node_config.py @@ -97,6 +97,7 @@ class DataNodeConfig(Section): _OPTIONAL_EXPOSED_TYPE_CSV_PROPERTY = "exposed_type...
2
2
0
[{"id": "G0", "claim": "Extract the hard-coded default separator \",\" into a named class constant `_DEFAULT_SEPARATOR_VALUE` and use it instead of the string literal when defaulting the separator property.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
Avaiga__taipy__2670
Avaiga/taipy
2,670
defect
f505727b2a5218b753853a009055bf1fa4a6ab5c
5f27ee8d4b5f68b3dc6f962d65af7a4143812acc
part style property support
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description part style property support ## Related Tickets & Documents - Closes #2574 ## How to reproduce the issue ```py import taipy.gui.buil...
diff --git a/taipy/gui/_renderers/builder.py b/taipy/gui/_renderers/builder.py index cd38262952..0c7b3dcf0e 100644 --- a/taipy/gui/_renderers/builder.py +++ b/taipy/gui/_renderers/builder.py @@ -1200,4 +1200,5 @@ def _build_to_string(self): el_str = el_str.replace("<?xml version='1.0' encoding='utf8'?>\n", "")...
2
1
0
[{"id": "G0", "claim": "Removing the closing element tag with a generic string replace may be brittle if the element name appears elsewhere in the string; a more robust method such as a dedicated XML/HTML parser should be used.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"...
null
Avaiga__taipy__2702
Avaiga/taipy
2,702
defect
91966b1234b85fe8fc1e56b73d35ed1e8a83a88b
503ae5e9193d2fbf8345850c6e090241004b7fbe
[🐛 BUG] Negating run properties with CLI arguments not working
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [x] 🐛 Bug Fix - [ ] ✨ Feature - [ ] ⚡ Optimization - [ ] 📝 Documentation Update --- ## Description This PR addresses a CLI argument negation bug in Taipy. When running: ```bash taipy run --no-run-browser main.py ``` the appli...
diff --git a/taipy/common/_cli/_run_cli.py b/taipy/common/_cli/_run_cli.py index b987dce1d8..28ebe73642 100644 --- a/taipy/common/_cli/_run_cli.py +++ b/taipy/common/_cli/_run_cli.py @@ -54,7 +54,17 @@ def handle_command(cls): external_args.extend(all_args[external_args_index + 1 :]) all_args ...
5
4
1
[{"id": "G0", "claim": "The line break in the middle of the run_browser condition's function call parameters reduces readability; keep the condition on one line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docstring of add_taipy_prefix do...
null
Avaiga__taipy__2737
Avaiga/taipy
2,737
defect
3dd97d1206ebdec8b6a6c8eade2bd029f2a6bf37
d08cc8916601cc0d2709a19f3089f4d7e5706b7a
fix: preserve unicode characters in uploaded filenames
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [ ] ✨ Feature - [X] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description This PR fixes the bug reported in #2720. The issue was caused by the use of `secure_filename` from` werkzeug.utils`, which converts all char...
diff --git a/taipy/gui/gui.py b/taipy/gui/gui.py index 865c0471bd..1e0c45bb70 100644 --- a/taipy/gui/gui.py +++ b/taipy/gui/gui.py @@ -32,7 +32,6 @@ import markdown as md_lib import tzlocal -from werkzeug.utils import secure_filename import __main__ # noqa: F401 from taipy.common import _module_exists @@ -89,6...
2
2
1
[{"id": "G0", "claim": "The docstring of _secure_filename_unicode is too brief and should be expanded into a comprehensive one describing the function's purpose, parameter, return value and important behaviour notes, as proposed in the suggestion block.", "category": "documentation", "verdict": "supported", "priority":...
null
Avaiga__taipy__2805
Avaiga/taipy
2,805
defect
58767da9e38ebdeae7eb7f7792292ad26616dbd0
e6357de5cc2bea5cdbf203d87af5fef86592889a
Manage authorization in events
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description Manage authorization in events Hide authorization exceptions ## Related Tickets & Documents - Closes Enterprise issues nb 707, 708, and ...
diff --git a/taipy/gui/gui.py b/taipy/gui/gui.py index 865c0471bd..0bae4229e0 100644 --- a/taipy/gui/gui.py +++ b/taipy/gui/gui.py @@ -3063,9 +3063,16 @@ def _get_authorization(self, client_id: t.Optional[str] = None, system: t.Option try: return _Hooks()._get_authorization(self, client_id, system...
4
1
0
[{"id": "G0", "claim": "Registering the \"authorization\" event listener inside on_user_init(), which runs once per client data-scope, may register duplicate listeners so the authorization listener may fire multiple times per event; consider registering it only once (e.g. back in __init__ or with an instance flag).", "...
null
Avaiga__taipy__2815
Avaiga/taipy
2,815
defect
f494ab27569c131d23aacb9929f4ba4a7b1ab730
a33496a97c876b8713d87c276fb24ac3589a15e3
auth and not auth related or otherwise
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [ ] ✨ Feature - [x] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description - in selectors, no selection should return None - Scenario dialog should forget previous data - Properties Editor should not allow empty ke...
diff --git a/frontend/taipy/src/CoreSelector.tsx b/frontend/taipy/src/CoreSelector.tsx index fbfc5ebf60..fce0de409a 100644 --- a/frontend/taipy/src/CoreSelector.tsx +++ b/frontend/taipy/src/CoreSelector.tsx @@ -423,7 +423,7 @@ const CoreSelector = (props: CoreSelectorProps) => { dispatch( ...
6
2
1
[{"id": "G0", "claim": "The new `_is_invalidCredentials_exception` check relies on comparing the exception type name to the string \"InvalidCredentials\", which is fragile (renames or subclasses won't match, unrelated exceptions with the same name will match); prefer an isinstance check against the real exception type ...
null
Avaiga__taipy__2817
Avaiga/taipy
2,817
defect
6a80325fdbcce8a37cff65951b5a2f44ee1b761d
07de0c973ba433dbf95cdd1e1df0ed1c5c0a2ff7
use lower level class to test instances in json type
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [x] ✨ Feature - [ ] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description - use lower level class to test instances in json type - _MapDict is now subclass of Mapping ## Backporting <!-- Specify any branches or...
diff --git a/taipy/gui/utils/_map_dict.py b/taipy/gui/utils/_map_dict.py index c6393201cf..b8dea05b37 100644 --- a/taipy/gui/utils/_map_dict.py +++ b/taipy/gui/utils/_map_dict.py @@ -12,9 +12,10 @@ from __future__ import annotations import typing as t +from collections.abc import Mapping -class _MapDict(object)...
2
1
1
[{"id": "G0", "claim": "The new `isinstance(val, (Mapping, Iterable))` check is too broad — it catches unintended types (bytes, generators, file objects, sets, frozensets, custom iterables) and takes precedence over `to_json`, so custom Mapping/Iterable classes with a `to_json` method have it ignored; consider replacin...
null
Avaiga__taipy__2821
Avaiga/taipy
2,821
defect
c9374f545195f7780dbf1d083e84831b94788100
f31e2bea9fe66871068779f06bede394968d39ab
slider dynamic min max and state.assign with kwargs
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [x] ✨ Feature - [ ] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description - slider dynamic min max - state.assign with kwargs ## How to reproduce the issue ```py from taipy.gui import Gui val = 100 min_v...
diff --git a/frontend/taipy-gui/package-lock.json b/frontend/taipy-gui/package-lock.json index 3957e3ffff..e2ceb7e4e0 100644 --- a/frontend/taipy-gui/package-lock.json +++ b/frontend/taipy-gui/package-lock.json @@ -913,20 +913,20 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.3.3", - ...
5
1
1
[{"id": "G0", "claim": "State.assign() with optional name/value and **kwargs makes previously-invalid calls silently succeed (assign(\"a\") assigns None, assign() returns None, assign(name=\"a\", b=1) ignores b); it should enforce either (name, value) or **kwargs (not both) and raise TypeError/ValueError for unsupporte...
null
Avaiga__taipy__2822
Avaiga/taipy
2,822
defect
c9374f545195f7780dbf1d083e84831b94788100
27cdc84522a2ae96a07b7c643281ba9877197508
Feature/slider min max dynamic state.assign kwargs
## What type of PR is this? (Check all that apply) - [x] 🛠 Refactor - [ ] ✨ Feature - [ ] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description organising properties ## Checklist _We encourage keeping the code coverage percentage at **80% or above**._ - [ ] ✅ This solution meets ...
diff --git a/frontend/taipy-gui/package-lock.json b/frontend/taipy-gui/package-lock.json index 3957e3ffff..e2ceb7e4e0 100644 --- a/frontend/taipy-gui/package-lock.json +++ b/frontend/taipy-gui/package-lock.json @@ -913,20 +913,20 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "3.3.3", - ...
4
1
0
[{"id": "G0", "claim": "The `**kwargs` parameter of `State.assign()` is annotated `dict[str, t.Any]`, which makes type checkers treat each keyword value as a dict instead of an arbitrary value; it should be annotated `t.Any` (or `object`).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": ...
null
Avaiga__taipy__2847
Avaiga/taipy
2,847
defect
2ae44944a26c9907cafb521eaa0a5906c32702de
d3f0cf1efca81082e6ecf49d2873b1cd284ea349
dialog title dynamic
## What type of PR is this? (Check all that apply) - [ ] 🛠 Refactor - [x] ✨ Feature - [ ] 🐛 Bug Fix - [ ] ⚡ Optimization - [ ] 📝 Documentation Update ## Description Dialog dynamic title And log without f-string ## Related Tickets & Documents - Closes #2846 ## How to reproduce the issue ```p...
diff --git a/frontend/taipy-gui/src/components/Taipy/Dialog.tsx b/frontend/taipy-gui/src/components/Taipy/Dialog.tsx index a19cd8ba9d..0bba802e01 100644 --- a/frontend/taipy-gui/src/components/Taipy/Dialog.tsx +++ b/frontend/taipy-gui/src/components/Taipy/Dialog.tsx @@ -30,7 +30,8 @@ import { useClassNames, useDispatch...
4
3
1
[{"id": "G0", "claim": "DialogProps reportedly does not declare `defaultTitle` and still types `title` as required, which the reviewer says will fail TypeScript checks; update DialogProps to make `title` optional and add `defaultTitle?: string` like Chart.", "category": "correctness", "verdict": "uncertain", "priority"...
null