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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zapier__zapier-platform__385 | zapier/zapier-platform | 385 | defect | 63e4bad0ef33b6ba54f2b9ed5fa1f7a6cc773e1c | 661fe62613f51d9ac73862113e871c00ea98cf8b | feat(core): allow running adhoc functions in tests | Addresses https://github.com/zapier/zapier-platform/issues/16.
see also: [PDE-2539](https://zapierorg.atlassian.net/browse/PDE-2539)
## Todo
- [x] verify that TS works nicely
- [x] write unit tests
## Testing
1. With this PR cloned locally, run `yarn link` in the `core` directory
2. elsewhere, run `zap... | diff --git a/docs/index.html b/docs/index.html
index 938af7b02..4d54a02e3 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -351,6 +351,7 @@
</li>
<li><a href="#testing">Testing</a><ul>
<li><a href="#writing-unit-tests">Writing Unit Tests</a></li>
+<li><a href="#using-the-z-object-in-tests">Using the <code>z</co... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `adHoc` flag is unnecessary; `appTester` should automatically inject the methodOrFunc when resolveMethodPath cannot find it in the app definition, so callers do not pass a flag.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
zapier__zapier-platform__444 | zapier/zapier-platform | 444 | defect | 74a0ebcda2ef83eee4abb9025cf58c3592a6f89c | c6f9f32e663f3c7dcdb9f63ace25ab67ecb8f22f | fix(legacy-scripting-runner): make sure redirect_uri is available for oauth refreshes | Fixes [PDE-2871](https://zapierorg.atlassian.net/browse/PDE-2871), where a partner's API depends on `redirect_uri` always being there (even for refresh)
I'm _pretty_ sure this'll fix it, but it's worth double checking the GL links in the jira ticket. | diff --git a/packages/legacy-scripting-runner/CHANGELOG.md b/packages/legacy-scripting-runner/CHANGELOG.md
index cb589d68c..1e42e2988 100644
--- a/packages/legacy-scripting-runner/CHANGELOG.md
+++ b/packages/legacy-scripting-runner/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.8.4
+
+- :bug: make sure `redirect_uri` is available ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the second refresh branch, redirect_uri should be assigned to params alongside the other credential fields instead of to body.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zapier__zapier-platform__511 | zapier/zapier-platform | 511 | defect | 1632992ad4867b6cce1e8abb8fe60a866ba19fbc | 4001403ed4c95adcf48d525e77753e49644eaa02 | BREAKING CHANGE(core, schema): add app-wide skipThrowForStatus; adjust throwForStatus behavior | Adds the ability to adjust the default `skipThrowForStatus` behavior across an entire app. Has no effect if a given request already declares any `skipThrowForStatus` value (see tests).
Also adjusts `skipThrowForStatus` to only affect the middleware, not calling the function directly. | diff --git a/packages/core/src/http-middlewares/after/prepare-response.js b/packages/core/src/http-middlewares/after/prepare-response.js
index e62fb1126..4940e2b70 100644
--- a/packages/core/src/http-middlewares/after/prepare-response.js
+++ b/packages/core/src/http-middlewares/after/prepare-response.js
@@ -14,7 +14,9 ... | 1 | 1 | 1 | [{"id": "G0", "claim": "A manually called response.throwForStatus() silently does nothing when the request set skipThrowForStatus, because the method also honors the flag, which is awkward and confusing; the PR should change the code so the flag is only effective in the z.request middleware and a manual response.throwF... | null |
zapier__zapier-platform__512 | zapier/zapier-platform | 512 | defect | 1632992ad4867b6cce1e8abb8fe60a866ba19fbc | 69a92505070d08236f69606e810f1b4239efe159 | BREAKING CHANGE(core): add auto-refresh | Changes behavior introduced in https://github.com/zapier/zapier-platform/pull/210, so we call `throwForStaleAuth()` for `autoRefresh` apps, independent of `skipThrowForStatus`. See this great diagram (by @eliangcs):

I also cleaned up some tests to ... | diff --git a/packages/core/src/http-middlewares/after/throw-for-stale-auth.js b/packages/core/src/http-middlewares/after/throw-for-stale-auth.js
new file mode 100644
index 000000000..dcd3be2af
--- /dev/null
+++ b/packages/core/src/http-middlewares/after/throw-for-stale-auth.js
@@ -0,0 +1,16 @@
+'use strict';
+
+const {... | 1 | 1 | 0 | [{"id": "G0", "claim": "The testResponse helper should move away from the done-callback style toward async and should.throw, with the error-verifier callbacks returning assertions instead of calling done.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zapier__zapier-platform__520 | zapier/zapier-platform | 520 | defect | 4316f897f4c88cbab7d7bacc52448604e5ba7334 | a655d2ee04436b96ad2e71807be484c41a3522c7 | fix(core): tweak global `skipThrowForStatus` flag to ignore shorthand requests | In `9.x`, shorthand requests (using objects instead of JS functions) _always_ threw for bad responses. We want to maintain that behavior in the 12.x release line. But, the global `skipThrowForStatus` changed the defaults for all requests, not just shorthand. So, this adds an explicit `skipThrowForStatus: false` default... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 45b6c71a6..a45e919ef 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,22 @@
+## 12.0.1
+
+_released `2022-03-24`_
+
+### cli
+
+- None
+
+### core
+
+- Fix regression where the global `skipThrowForStatus` incorrectly applied to shorthand requests. It's only intended... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new CHANGELOG bullet should follow the repo's changelog style: prepend the `:bug:` emoji, drop the trailing period, and reference the pull request `([#520](https://github.com/zapier/zapier-platform/pull/520))`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":... | null |
zapier__zapier-platform__542 | zapier/zapier-platform | 542 | defect | 5626d75145454d5178c94e6f6936e1dbba787976 | c098a411f00717e9b55b9f363c8f350d5e58dfc2 | CRIT-371 perf(core): Optimize secret-scrubbing input in logger | Optimizes the logging to only scrub secrets on data that gets logged (we cap log fields at 3500 characters), maintaining JSON structure. Cuts logging time for large objects in half or more! | diff --git a/packages/core/src/tools/create-logger.js b/packages/core/src/tools/create-logger.js
index 2e175eca5..8558d66ed 100644
--- a/packages/core/src/tools/create-logger.js
+++ b/packages/core/src/tools/create-logger.js
@@ -6,7 +6,7 @@ const { parse: querystringParse } = require('querystring');
const _ = require(... | 3 | 3 | 0 | [{"id": "G0", "claim": "The truncateData tests embed large stringified JSON inline and are hard to follow; storing a big JSON in a fixture file and reading it into the tests would make them easier to reason about.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
zapier__zapier-platform__546 | zapier/zapier-platform | 546 | defect | 3f2753ebf5bf4807149423e85117e15002e77f36 | 51e1bb9107773bc50c34eb61720f150208d26bec | BREAKING CHANGE (cli) remove WB conversion functionality | - removed WB conversion functionality
- make `--version` required on `zapier convert`. It functionally has been (since the other API was removed), but this makes it official
- improved error handling in convert command
- removed references to converting WB apps in docs
I double checked with `#team-integrations` t... | diff --git a/docs/cli.html b/docs/cli.html
index 9f71fd485..0f94f4a6f 100644
--- a/docs/cli.html
+++ b/docs/cli.html
@@ -379,12 +379,12 @@ <h2 id="convert">convert</h2>
<div class="row-height">
<div class="col-md-5 col-sm-12 col-height docs-primary">
<blockquote>
-<p>Convert a Legacy Web Builder app or ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The integrationId arg description's example URL should read \"https://developer.zapier.com\" instead of the typoed \"https://developer.zapier.com//app/developer\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zapier__zapier-platform__618 | zapier/zapier-platform | 618 | defect | 8bf4889efc8243cac5e53431ba8f14d43bb222a6 | 4af40fd0b3b7958bc96799095d6fa247b54d07ec | PDE-3732 feat(cli): Implement individual field flags for register command | This PR adds prompts for required information when running `zapier register`. It also allows users to pass these values in via flags. | diff --git a/docs/cli.html b/docs/cli.html
index 18f471a1c..48e592026 100644
--- a/docs/cli.html
+++ b/docs/cli.html
@@ -893,6 +893,12 @@ <h2 id="register">register</h2>
</blockquote><p><strong>Usage</strong>: <code>zapier register [TITLE]</code></p><p>After running this, you can run <code>zapier push</code> to build ... | 16 | 14 | 5 | [{"id": "G0", "claim": "The --url help text ends with an unlinked 'Learn more.' that is unhelpful, so it should be removed from the flag description and from the generated docs as well.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because mockin... | null |
zapier__zapier-platform__628 | zapier/zapier-platform | 628 | defect | 9dd951fc491b4fc5b95890fd1d051be11c10a989 | e867b31171e98cfe44e54800635f3c41d4a663d4 | PDE-3822 feat(cli): Only require fields for private integrations via CLI | Currently, app meta fields/settings are only editable for private apps in the visual builder. Now that the CLI allows users to update these settings via CLI, we need to ensure that they can only update these settings for **private** apps.
[Jira story](https://zapierorg.atlassian.net/browse/PDE-3822) | diff --git a/packages/cli/src/oclif/commands/register.js b/packages/cli/src/oclif/commands/register.js
index 2c8b1c738..49a309b4c 100644
--- a/packages/cli/src/oclif/commands/register.js
+++ b/packages/cli/src/oclif/commands/register.js
@@ -132,6 +132,13 @@ class RegisterCommand extends ZapierBaseCommand {
this.... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new settings block should use the `status` field instead of `intention` to decide which integrations may update settings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zapier__zapier-platform__646 | zapier/zapier-platform | 646 | defect | de870b1479f0a6173e6ebde495f3c2e7d35246f6 | 9269b2a410e087c728af0384b01833aab82fda11 | feat(core): Add support for caching | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/core/src/app-middlewares/before/z-object.js b/packages/core/src/app-middlewares/before/z-object.js
index d77a1d0c0..668a3032f 100644
--- a/packages/core/src/app-middlewares/before/z-object.js
+++ b/packages/core/src/app-middlewares/before/z-object.js
@@ -3,6 +3,7 @@
const _ = require('lodash');
... | 7 | 7 | 2 | [{"id": "G0", "claim": "JSON.stringify() is not a reliable way to tell if a value is JSON-encodable (e.g. console or {func: fn} stringify to '{}'), so validation should use a recursive check like isJsonEncodable() that returns true for primitives and recursively checks nested elements.", "category": "correctness", "ver... | null |
zapier__zapier-platform__660 | zapier/zapier-platform | 660 | defect | 94615cf7688122c107056e4a086df35caada191f | 309017536227c3931da65743b953048e60de238b | fix(core): Convert authentication config source functions to actual functions | `IP-127` [Zapier Convert: Convert auth config source to functions](https://zapierorg.atlassian.net/browse/IP-127)
Inline functions under auth config objects are not converted to functions by `zapier convert`, while the test function is:
```js
const testAuth = async (z, bundle) => {
z.request({
url: "http... | diff --git a/packages/cli/package.json b/packages/cli/package.json
index 50984c1c8..0b20de563 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -68,6 +68,7 @@
"string-length": "4.0.2",
"through2": "4.0.2",
"tmp": "0.2.1",
+ "traverse": "^0.6.7",
"update-notifier": "5.1.0",... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CLI package should pin traverse to the exact version \"0.6.7\" instead of the caret range \"^0.6.7\", since the CLI package always pins to an exact version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zapier__zapier-platform__693 | zapier/zapier-platform | 693 | defect | 08ac48fa9240306b6214b89f21c15052a47d8378 | f36ef4c6e539f5bc53374ea62aab29dd770fa6e6 | PDE-4140 feat(cli): Integration title length must be at least 2 characters | This PR adds a minimum length constraint for an integration title when adding via zapier register. | diff --git a/packages/cli/src/constants.js b/packages/cli/src/constants.js
index 50a181ed6..5f6d15615 100644
--- a/packages/cli/src/constants.js
+++ b/packages/cli/src/constants.js
@@ -57,6 +57,7 @@ const IS_TESTING =
argvStr.includes('jest') ||
(process.env.NODE_ENV || '').toLowerCase().startsWith('test');
+co... | 1 | 1 | 1 | [{"id": "G0", "claim": "Running `zapier register` without a title argument crashes with `Error: Cannot read properties of undefined (reading 'length')` because the new guard only checks `'title' in this.args`, which is not enough when `this.args.title` is undefined.", "category": "correctness", "verdict": "supported", ... | null |
zapier__zapier-platform__709 | zapier/zapier-platform | 709 | defect | 7908abab208bc7f6024aa3127c4e820ebe51a1ad | cfae9481fe385e52673c9c1452e33e1d259aae90 | feat(schema) - Add support for throttle configuration | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/schema/docs/build/schema.md b/packages/schema/docs/build/schema.md
index d6c776cad..f947fa5bc 100644
--- a/packages/schema/docs/build/schema.md
+++ b/packages/schema/docs/build/schema.md
@@ -58,6 +58,7 @@ This is automatically generated by the `npm run docs` command in `zapier-platfor
* [/SearchO... | 3 | 3 | 0 | [{"id": "G0", "claim": "The scope property description should be reworded to something like \"The granularity to throttle by. You can set the scope to one or more of the following: 'user' - Throttles based on user ids. 'auth' - Throttles based on auth ids. 'account' - Throttles based on account ids for all users under ... | null |
zapier__zapier-platform__738 | zapier/zapier-platform | 738 | defect | f693a122582504a937d3f23d73a5ec40065f4a9c | 6cfae02c81f8c12b708437e462e401060ff7a7f0 | PDE-4678 fix(cli): `zapier build` fails with npm workspaces | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/cli/package.json b/packages/cli/package.json
index 903c02d00..a90bba7a4 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -32,6 +32,7 @@
"lint": "eslint src snippets",
"lint:fix": "eslint --fix src snippets",
"test": "cross-env NODE_ENV=test mocha -t 50s --re... | 1 | 1 | 1 | [{"id": "G0", "claim": "The spinner logic (endSpinner/startSpinner('Building app definition.json')) was removed unintentionally and should be restored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zapier__zapier-platform__761 | zapier/zapier-platform | 761 | defect | 75c933e07a9fabf3bda0bc818ad17055b500bdb5 | 2e206c36cdaf39f3f1d42776b35382a9d32c1d33 | PDE-4844 - feat(schema) Add new "retry" in the throttle.overrides field | Adds a new field `retry` to the throttle.overrides schema to allow users to configure the effect throttling has on the action's tasks. | diff --git a/packages/schema/docs/build/schema.md b/packages/schema/docs/build/schema.md
index e4fc668c2..85326a588 100644
--- a/packages/schema/docs/build/schema.md
+++ b/packages/schema/docs/build/schema.md
@@ -2103,7 +2103,7 @@ Key | Required | Type | Description
window: 3600,
limit: 10,
scope: [ 'aut... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changes should also be added to the CLI docs in packages/cli/README-source.md and in the packages/cli/snippets/throttle-configuration.js snippet.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zapier__zapier-platform__768 | zapier/zapier-platform | 768 | defect | 41bef4fab91654b3b89d88ffd14d03a6f117764d | 601108732b583e77ab6479dd5fe0c983bb0120c1 | [PDE-4869] feat(core) Raise max file size for upload streaming to 1GB | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/core/src/tools/create-file-stasher.js b/packages/core/src/tools/create-file-stasher.js
index 56d06e336..71b9fa121 100644
--- a/packages/core/src/tools/create-file-stasher.js
+++ b/packages/core/src/tools/create-file-stasher.js
@@ -3,7 +3,7 @@
const fs = require('fs');
const os = require('os');
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The expression `knownLength || length` is repeated and should be assigned to a variable and reused in the uploader call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The size-exceeded error message should drop the redun... | null |
zapier__zapier-platform__772 | zapier/zapier-platform | 772 | defect | 39b61d4f685ccad0fd4015910bb9711f37bfe135 | b12aa9d8b1b196c5606bfef572f523e2ee013c3e | fix(core): Handle null response_content before passing to findSensitiveValues | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/core/src/tools/create-logger.js b/packages/core/src/tools/create-logger.js
index 89d5e749b..a5883e747 100644
--- a/packages/core/src/tools/create-logger.js
+++ b/packages/core/src/tools/create-logger.js
@@ -123,7 +123,7 @@ const toStdout = (event, msg, data) => {
const attemptFindSecretsInStr = (... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test case in packages/core/test/logger.js covering the null response_content handling so the behaviour is not broken by accident in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test needs an `await` on the... | null |
zapier__zapier-platform__782 | zapier/zapier-platform | 782 | defect | 0ba70f95f1f55dcc7adc3f0c98e0fdbceaab473b | 8ba61803afc44976e7ff72c0da051b0bab515af7 | [PDE-4989] feat(schema): Add support for bulk writes | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/schema/docs/build/schema.md b/packages/schema/docs/build/schema.md
index d83587169..7815e1b1b 100644
--- a/packages/schema/docs/build/schema.md
+++ b/packages/schema/docs/build/schema.md
@@ -24,6 +24,7 @@ This is automatically generated by the `npm run docs` command in `zapier-platfor
* [/BasicHo... | 4 | 4 | 3 | [{"id": "G0", "claim": "Operations that set bulk/performBulk should not fail validation with the 'requires property \"perform\"' error; instead of special-casing makeValidator, remove `perform` from BasicOperationSchema.required and add a functional constraint that checks `perform` or `performBulk` is defined.", "categ... | null |
zapier__zapier-platform__796 | zapier/zapier-platform | 796 | defect | c6a8848cbd6df3453654d3552a78ca2b34832c7c | e007759bb860437ebe712a2492b5d1c7315c3733 | feat(schema) Add retry and filter to the root-level of throttle config | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/docs/index.html b/docs/index.html
index 57df4f3e1..91b7476de 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3657,6 +3657,8 @@ <h2 id="adding-throttle-configuration">Adding Throttle Configuration</h2>
<li><code>window [integer]</code>: The timeframe, in seconds, within which the system tracks the n... | 1 | 1 | 0 | [{"id": "G1", "claim": "Throttle should probably be blocked for hook triggers (FokkeZB would block it entirely for any type of trigger), e.g. via a functional constraint that stops hook triggers from having throttle.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
zapier__zapier-platform__803 | zapier/zapier-platform | 803 | defect | c6a8848cbd6df3453654d3552a78ca2b34832c7c | 31bbfec850cfc26eb8e4ad2893b7b1e47022d2f0 | [PDE-5063] feat(core): Add afterResponse middleware to check if HTTP redirect is made to disallowed domain | As mentioned in the [work ticket](https://zapierorg.atlassian.net/browse/PDE-5063), `node-fetch` doesn't support conditional erroring on redirects. In this MR, we add an "after" middleware to check if the `z.request` experienced a redirect, and error out if the redirection ended up in a disallowed domain (currently onl... | diff --git a/packages/core/package.json b/packages/core/package.json
index ac055ef9e..fab2e701e 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -60,7 +60,8 @@
"aws-sdk": "^2.1397.0",
"dicer": "^0.3.1",
"fs-extra": "^11.1.1",
- "mock-fs": "^5.2.0"
+ "mock-fs": "^5.2.0",
+... | 4 | 3 | 1 | [{"id": "G0", "claim": "The middleware should consider throwing a specific Error class instead of a generic `Error`, possibly creating a new one.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The throwForDisallowedHostnameAfterRedirect middleware may belo... | null |
zapier__zapier-platform__808 | zapier/zapier-platform | 808 | defect | 2a9a8776f5bebc739b785a20f7a5201a6023f2a5 | 95b31170fa57e661122d98f1b598b0d7c6901fe8 | PDE-5125 - feat(core) Handle large response payloads | https://zapierorg.atlassian.net/browse/PDE-5125
This PR addresses a new event field: `autostashPayloadOutputLimit` that we can process.
If this value is set from the backend, we can conditionally stash the payload response. This is to work around the Lambda 6mb output limit.
There are some changes as well to refa... | diff --git a/packages/core/src/app-middlewares/after/large-response-cacher.js b/packages/core/src/app-middlewares/after/large-response-cacher.js
index 63d40930c..db4cf60c7 100644
--- a/packages/core/src/app-middlewares/after/large-response-cacher.js
+++ b/packages/core/src/app-middlewares/after/large-response-cacher.js... | 3 | 2 | 0 | [{"id": "G0", "claim": "New test cases should use async/await syntax instead of done, .then() and .catch().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'should stash big payloads' test case duplicates the next test case and should be remo... | null |
zapier__zapier-platform__813 | zapier/zapier-platform | 813 | defect | 0eb608b2c2a9ed5b17a4d32975951a2020c7c6f4 | 08090f8a8119e4d05bb88ef01ab31a2441b8d417 | feat(core) Update extendAppRaw to override arrays as well as objects [PDE-5114] | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/core/integration-test/integration-test.js b/packages/core/integration-test/integration-test.js
index f2e908b95..fc2252ec8 100644
--- a/packages/core/integration-test/integration-test.js
+++ b/packages/core/integration-test/integration-test.js
@@ -190,7 +190,7 @@ const doTest = (runner) => {
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `inputFields`, `outputFields`, `sample`, and `throttle` entries in `keysToOverride` can never make the full-replacement `if` condition true (dead code), and the `_.mergeWith()` approach deep-merges instead of fully overwriting operation-level values like `sample`, so the reviewer asked for t... | null |
zapier__zapier-platform__816 | zapier/zapier-platform | 816 | defect | 1ae525506a5516f9faf123e930dce053800777dd | 8cde09c97b3ebc8c35054eb80eb1f5f73f834558 | PDE-5159 feat(core) - Increase hydration payload limit | Increases the hydration payload limit. In older Node versions, this was capped at 8kb due to the hydration URL that we need to call eventually. Since Node 16, this is now 16kb. | diff --git a/packages/core/src/tools/wrap-hydrate.js b/packages/core/src/tools/wrap-hydrate.js
index 82fddfb44..7a6c73ec3 100644
--- a/packages/core/src/tools/wrap-hydrate.js
+++ b/packages/core/src/tools/wrap-hydrate.js
@@ -4,9 +4,10 @@ const crypto = require('crypto');
const { DehydrateError } = require('../errors... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new comment says the base64 ratio is approx `4/3` where the reviewer guesses it should say `3/4`, matching the ratio used in the limit calculation below.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zapier__zapier-platform__838 | zapier/zapier-platform | 838 | defect | d786c22a77b47584bda03d49cc078595031d4049 | 0474e9a8b055538b4a9685be5c977d1e223392c3 | feat(cli): Introduce zapier pull command | Adds a new CLI command:
`zapier pull`
This command pulls down the source integration from the remote Zapier server.
Users may want to use this if the integration has changed since the last push. If changes were made by Zapier, users must run `zapier pull` before making further production level changes. Users are ... | diff --git a/packages/cli/src/oclif/commands/pull.js b/packages/cli/src/oclif/commands/pull.js
new file mode 100644
index 000000000..904759bac
--- /dev/null
+++ b/packages/cli/src/oclif/commands/pull.js
@@ -0,0 +1,43 @@
+const ZapierBaseCommand = require('../ZapierBaseCommand');
+const { downloadSourceZip } = require('... | 8 | 8 | 4 | [{"id": "G0", "claim": "deleteUnmatchedFiles breaks once a gitignored directory is present, and should be refactored to take source/destination lists that are filtered through gitignored and blacklisted paths like makeSourceZip does.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
zapier__zapier-platform__849 | zapier/zapier-platform | 849 | defect | edf9a483f09a139781f9608274c083506adaa891 | ee296ce5db08f98ccba010af2a6517a12caa13e1 | feat(core) - Add scopes as an option for zcache usage | Internal: Adds an scope option to z.cache. Currently it uses scope internally with user and auth only. We may want to exercise one or the other only so providing this flexibility from the interface. | diff --git a/packages/core/src/tools/create-cache.js b/packages/core/src/tools/create-cache.js
index b6ab6e01e..9af58fd24 100644
--- a/packages/core/src/tools/create-cache.js
+++ b/packages/core/src/tools/create-cache.js
@@ -7,7 +7,13 @@ const ensureJSONEncodable = require('./ensure-json-encodable');
const createCac... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new scope validation should also throw its TypeError when `scopes` is a non-array object, via `!Array.isArray(scopes) || !scopes.every(...)`, instead of only checking the contents of an array.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zapier__zapier-platform__883 | zapier/zapier-platform | 883 | defect | 67d5538970c5f568d460ca4cc085684d224cad2c | f7b1e904e2a0bf22409fe0f4b5adc1eb753145af | [PDE-5395] feat(schema): Add `meta` field support for FieldSchema | Adds support for static input fields to via a new `FieldMetaSchema`. Note that the `FieldMetaSchema` only allows for primitive values (no nested objects). | diff --git a/packages/core/types/zapier.generated.d.ts b/packages/core/types/zapier.generated.d.ts
index 0df408bc9..3fb7a8b5a 100644
--- a/packages/core/types/zapier.generated.d.ts
+++ b/packages/core/types/zapier.generated.d.ts
@@ -187,6 +187,16 @@ export type FieldChoices =
| { [k: string]: unknown }
| (string ... | 5 | 4 | 2 | [{"id": "G0", "claim": "The generated TS type for `Field.meta` should be `FieldMeta` instead of `FieldChoices`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Drop `null` from the values the FieldMeta schema and TS FieldMeta interface allow (string ... | null |
zapier__zapier-platform__908 | zapier/zapier-platform | 908 | defect | 88e4701424644452820ac03750f160dc3575bb67 | 72b43addde14f7e91c4c5b37edbb2c1dd99357ef | PDE-5489 fix(core): patch native fetch to write http logs | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/packages/core/src/tools/create-http-patch.js b/packages/core/src/tools/create-http-patch.js
index bc2ce2ae4..1b1df51be 100644
--- a/packages/core/src/tools/create-http-patch.js
+++ b/packages/core/src/tools/create-http-patch.js
@@ -48,7 +48,7 @@ const createHttpPatch = (event) => {
return original... | 2 | 2 | 0 | [{"id": "G0", "claim": "Consider avoiding logging/consuming streaming request data in wrapFetchWithLogger, since streaming data was a likely cause of runaway ingress data increase for the patched http module, and call that handling out explicitly.", "category": "performance", "verdict": "supported", "priority": "P2", "... | null |
zapier__zapier-platform__965 | zapier/zapier-platform | 965 | defect | 2d78ac117261d6c9b40dfc117c08fec7262ba74c | ee0b284ee8bbb9c2397bc45add2d3d68154e866d | feat(cli, core): Add ESM support to CLI and platform-core [PDE-5244] | <!--
title should be in the format of:
workType(area): release notes summary
where:
`workType` is one of (which correspond to semver release levels):
* fix
* feat
* BREAKING CHANGE
less common (but valid) options:
* build
* ci
* chore
* docs
* perf
* refac... | diff --git a/example-apps/esmodule/.gitignore b/example-apps/esmodule/.gitignore
new file mode 100644
index 000000000..32dd95d8b
--- /dev/null
+++ b/example-apps/esmodule/.gitignore
@@ -0,0 +1,62 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Runtime data
+pids
+*.pid
+*.seed
+*.pid.lock... | 3 | 3 | 2 | [{"id": "G0", "claim": "The zapierwrapper implementation should keep the .js extension after being copied into build.zip, avoid resolving the module path twice, and use import rather than require so conditional exports select the ESM entry point — along the lines of the two-file CJS/ESM split proposed in #978.", "categ... | null |
zappa__Zappa__1153 | zappa/Zappa | 1,153 | defect | 882a4cd53f328ced9a1bc8c41e41408886d0fbe3 | 0ff55a9fa9a52add97049fae586b9d3e7c914a9c | Add feature pyenv virtualenv detecting .python-version file | <!--
Before you submit this PR, please make sure that you meet these criteria:
* Did you read the [contributing guide](https://github.com/zappa/Zappa/#contributing)?
* If this is a non-trivial commit, did you **open a ticket** for discussion?
* Did you **put the URL for that ticket in a comment** in the cod... | diff --git a/zappa/core.py b/zappa/core.py
index d19b6dfe1..70e791948 100644
--- a/zappa/core.py
+++ b/zappa/core.py
@@ -511,20 +511,34 @@ def get_current_venv():
"""
if "VIRTUAL_ENV" in os.environ:
venv = os.environ["VIRTUAL_ENV"]
- elif os.path.exists(".python-version"): # pragm... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR should not rely on the `.python-version` file to locate the pyenv venv — `pyenv version-file` can resolve to a parent directory whose `.python-version` may not be the correct version for the current project — and instead the venv path should be derived from pyenv itself (e.g. `pyenv root`... | null |
zappa__Zappa__1154 | zappa/Zappa | 1,154 | defect | fff5ed8ad2ee071896a94133909adf220a8e47d9 | 665dfce00f0cb40bf67779b0703386f9ee582f38 | add feature (#704) Check if args/kwargs are JSON Serializable while running locally | ## Description
When running an async @task locally, the args and kwargs are passed as they are (even if they're not JSON Serializable).
This PR runs a `validate_json_seralizable()` check on args/kwargs passed to the function when running locally, calling `json.dumps()` on the arguments to allow related exceptions t... | diff --git a/tests/tests_async.py b/tests/tests_async.py
index 7b4f58d19..de5202638 100644
--- a/tests/tests_async.py
+++ b/tests/tests_async.py
@@ -1,4 +1,4 @@
-# -*- coding: utf8 -*-
+import datetime
import os
import unittest
@@ -94,3 +94,10 @@ def test_async_call_with_defaults(self):
lambda_function... | 4 | 4 | 0 | [{"id": "G0", "claim": "Use a custom exception class (e.g. UnserializableJsonError) instead of logging and re-raising, so the message 'arguments expected...' can be carried by the exception itself.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the '... | null |
zappa__Zappa__1163 | zappa/Zappa | 1,163 | defect | c048ea20254f549b2a68e66a22bd548946570824 | afdf0cefcc50d2e122f263c0e0ba7112ae57b0d9 | Handle spaces in x-forwared-for/remove six (#1127) | - Whitespace in X-Forwarded-For is optional and therefore should handle the case when there is no whitespace (contribution by [naresh-uplight](https://github.com/naresh-uplight))
- :fire: remove six from zappa dependencies
- :wrench: Fix url decoding for query string (contribution by [choich](https://github.com/zappa... | diff --git a/Pipfile b/Pipfile
index 0b6cf396f..28839f094 100644
--- a/Pipfile
+++ b/Pipfile
@@ -35,7 +35,6 @@ python-slugify = "*"
PyYAML = "*"
# previous versions don't work with urllib3 1.24
requests = ">=2.20.0"
-six = "*"
toml = "*"
tqdm = "*"
troposphere = ">=3.0"
diff --git a/tests/tests.py b/tests/tests.p... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the duplicate `# get client ip` comment on the `remote_addr = addresses[-2]` line, since the rationale is already explained in the preceding comment block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the ... | null |
zappa__Zappa__1237 | zappa/Zappa | 1,237 | defect | 73ee393dd48500d321d65e92aba31a5fd83e93ab | f56c86c4e24b59fcb52b788a19af3a4faca8dac8 | fixing compatibility with Django 4.2 | Ref #1230
- https://docs.djangoproject.com/en/4.2/releases/4.2/#miscellaneous
- https://wsgi.readthedocs.io/en/latest/definitions.html#envvar-wsgi.input
> Manually instantiated WSGIRequest objects must be provided a file-like object for wsgi.input. | diff --git a/tests/tests_middleware.py b/tests/tests_middleware.py
index 2afaf1636..4ac4b2852 100644
--- a/tests/tests_middleware.py
+++ b/tests/tests_middleware.py
@@ -79,7 +79,7 @@ def test_wsgi_authorizer_handling(self):
"queryStringParameters": None,
"path": "/v1/runs",
"param... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test case should be added to confirm that the environ's wsgi.input returned by create_wsgi_request is a file-like object.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zappa__Zappa__1242 | zappa/Zappa | 1,242 | defect | bc0d0da854d1913fcd6f4cadb1ec8fd02f38fcad | c44607b8072b90a8d42f92b12894db81d9f7aaa9 | Fix/exclude add when initial zappa setting | ## Description
My prev pull request is bad because it always disable boto.
So I code a new idea about this mention.
https://github.com/zappa/Zappa/pull/1235#issuecomment-1521308031
## GitHub Issues
My Prev Pull Request: https://github.com/zappa/Zappa/pull/1235
Issue: https://github.com/zappa/Zappa/issues/1... | diff --git a/zappa/cli.py b/zappa/cli.py
index e78707869..fa4394754 100755
--- a/zappa/cli.py
+++ b/zappa/cli.py
@@ -1871,6 +1871,7 @@ def init(self, settings_file="zappa_settings.json"):
"s3_bucket": bucket,
"runtime": get_venv_from_python_version(),
"project_name": s... | 2 | 2 | 2 | [{"id": "G0", "claim": "A test case should be added to confirm the results of the exclude change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request is not backward compatible and might affect users who have older zappa_settings.json, so it... | null |
zappa__Zappa__1364 | zappa/Zappa | 1,364 | defect | b00312d35a1ff57923053e5e8e60857e1f0d6912 | 9e5c67b750c1678b59aa103011bdc57aa6646546 | Add support for Python 3.13 in templates, CI, and codebase | ## **Description**
This PR adds support for **Python 3.13** in Zappa, enabling deployments on AWS Lambda with the latest Python runtime.
The following updates have been made:
- **Updated `SUPPORTED_VERSIONS` in `zappa/__init__.py`** to include Python 3.13.
- **Added Python 3.13 to `get_runtime_from_python_... | diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index e455c3ae3..ceb1da544 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,28 +1,37 @@
<!--- Provide a general summary of the issue in the Title above -->
+
## Context
+
<!--- Provide a more detailed introduction to the i... | 2 | 2 | 0 | [{"id": "G0", "claim": "The sample zappa_settings.json value for \"runtime\" at README.md line 989 should be changed to \"python3.13\" to keep it at the latest.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The django version used in testing must... | null |
zappa__Zappa__1374 | zappa/Zappa | 1,374 | defect | 71b82d75495b6d8094783c2d6c9731729b210374 | 773b6e864f81f64010ac72f964351dc21890344e | Remove depreciated python3.8 runtime support/Increment version -> 0.60.0 | ## Description
AWS Lambda no longer supports the `python38` runtime, removing from zappa.
## Changes
🔥 remove python 3.8 support (depreciated Oct 14, 2024)
🔧 change os.sys.platform (returning 'win32') usage to use sys.platform
:arrow_up: bump version 0.59.0 -> 0.60.0 in prep for release | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0940e8dad..1524c67e3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
+ pyth... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `from pathlib import Path` import added to tests/utils.py is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zappa__Zappa__1379 | zappa/Zappa | 1,379 | defect | 0c04560cfde55288e27aaa6903fd5fcb7eb8c155 | cb5fdfacac62da3a0947c93ffffa08d586f6a380 | (Refresh) Add arm64 architecture support | ## Description
:wrench: refactor `wheel` matching
:sparkles: add arm64 architecture support
:wrench: :white_check_mark: Update related testcases
This PR introduces support for the ARM (arm64) architecture to enable deployments on Graviton 2 instances and refactors the wheel filename matching logic accordingly.
... | diff --git a/README.md b/README.md
index 5bc30d2fc..8292bccd2 100644
--- a/README.md
+++ b/README.md
@@ -897,6 +897,7 @@ to change Zappa's behavior. Use these at your own risk!
"assume_policy": "my_assume_policy.json", // optional, IAM assume policy JSON file
"attach_policy": "my_attach_policy.json", ... | 1 | 1 | 1 | [{"id": "G0", "claim": "In tests/test_bad_circular_extends_settings.json, the trailing comma added after the last element of the extensions list is invalid JSON and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zappa__Zappa__1384 | zappa/Zappa | 1,384 | defect | c2a8e2077dfcf2e0dde97996e4804175b9ef6e9c | 7865a61164f0b58bcfc3dd909062492cdcf20e3a | :fire: :wrench: Remove/depreciated pkg_resource usage and other depreciated usage | ## Description
:fire: remove usage of depreciated `pkg_resource` module in favor of `importlib`
:wrench: replace depreciated `click.BaseCommand` with `click.Command`
:wrench: migrate from `os.path` usage to `pathlib.Path`
:wrench: replace `datetime.utcnow()` usage with `datetime.now(timezone.utc)`
:wrench: upda... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1524c67e3..6d6fd469f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -26,16 +26,16 @@ jobs:
restore-keys: ${{ runner.os }}-pip${{ matrix.python }}-
- name: make sure we have version tags
run: git fe... | 3 | 2 | 0 | [{"id": "G0", "claim": "The debug print statement in detect_django_settings() appears to be left in production code and should be replaced with a logging call at an appropriate level or removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use... | null |
zappa__Zappa__1385 | zappa/Zappa | 1,385 | defect | 2c06c76cceb60083aabfa09949de2bc58e9ee9a7 | d473da6c2e7c923daa63206c13689a140e104e59 | :sparkles: Implementation of `settings` command for generating the `zappa_settings.json` via CLI/ENVARS. |
## Description
:sparkles: initial implementation of `settings` command for generating the `zappa_settings.json` via CLI/ENVARS.
:wrench: integrate this new `settings` funcationality optionally with package/deploy (and other commands requiring `zappa_settings.json` )
## GitHub Issues
https://github.com/za... | diff --git a/Makefile b/Makefile
index 999f49a7..0afc392f 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ build: clean requirements
python setup.py bdist_wheel
mypy:
- mypy --show-error-codes --pretty --ignore-missing-imports --strict zappa tests
+ mypy --show-error-codes --pretty --ignore-missing-imports ... | 6 | 4 | 4 | [{"id": "G0", "claim": "Commands that expect/require zappa_settings.json should not create a default one without the user showing intent; the author suggests adding something like a --create-settings flag (or requiring that app_function is provided) to clarify intent.", "category": "design", "verdict": "supported", "pr... | null |
zappa__Zappa__1426 | zappa/Zappa | 1,426 | defect | 32b3e9400970eae7a51e4aea3ec9f7366b3e1a2e | 4b6b55a461fca8f932d6fc6f94135fbafb6e0e07 | Fix: handle regions where Lambda Function URLs are not supported | Fixes #1425
## Summary
- Wrap `list_function_url_configs` in `delete_lambda_function_url()` with a try/except for `ClientError`
- If the API is unavailable in the region, return early since there are no Function URLs to delete
## Problem
During `zappa update`, when `function_url_enabled` is not set, `cli.p... | diff --git a/zappa/core.py b/zappa/core.py
index d9c14048..688fdc9e 100644
--- a/zappa/core.py
+++ b/zappa/core.py
@@ -1680,7 +1680,12 @@ def update_lambda_function_url(self, function_name, function_url_config):
self.deploy_lambda_function_url(function_name, function_url_config)
def delete_lambda_fu... | 4 | 3 | 2 | [{"id": "G0", "claim": "The `Fixes #130` reference in the PR points at an unrelated closed feature request and should be corrected or removed.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should catch `botocore.exceptions.ClientError` ins... | null |
zappa__Zappa__1430 | zappa/Zappa | 1,430 | defect | 72781072e300a86a8738d3c4f9ef11ff0ecc2cf6 | 11de6deea93cb877734f7375b2aa528884baf2cb | Fix WebSocket handler registry empty at runtime | ## Summary
Fixes #1429
- `_detect_websocket_usage()` now returns the dotted module path (e.g. `ws_handlers`) instead of `True`, enabling the deploy-time scanner to pass the discovered module to the runtime
- `get_zappa_settings_string()` writes `WEBSOCKET_HANDLER_MODULE` into `zappa_settings.py`
- `LambdaHandler.__in... | diff --git a/README.md b/README.md
index de3f96fb..590c09a9 100644
--- a/README.md
+++ b/README.md
@@ -1162,6 +1162,7 @@ to change Zappa's behavior. Use these at your own risk!
"SubnetIds": [ "subnet-12345678" ], // Note: not all availability zones support Lambda!
"SecurityGroupIds": [ "sg-123... | 6 | 5 | 5 | [{"id": "G0", "claim": "The new fixture module tests/test_websocket_handlers.py matches pytest's test_*.py pattern so it is imported during test collection, and registering handlers via decorators at import time mutates zappa.websocket._registry globally, which can make other tests order-dependent; rename/move it so it... | null |
zappa__Zappa__992 | zappa/Zappa | 992 | defect | bb5834fa2f7c31f56cdc39fa883b96f9a99408e3 | d32ffa3c703ce86aa1c48b80e6f4a6ded009f330 | wait for lambda to become active during deploy/update | Many parts of the deployment process (e.g., scheduling certain events, setting up alb target groups) will fail if the lambda function is not in a ready state, this pr attempts to alleviate that by using a boto waiter during the lambda creation function. | diff --git a/tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.GetFunctionConfiguration_1.json b/tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.GetFunctionConfiguration_1.json
new file mode 100644
index 000000000..244a7e9f6
--- /dev/null
+++ b/tests/placebo/TestZappa.test_create_lambd... | 3 | 3 | 2 | [{"id": "G0", "claim": "The wait until the function is ready should also be added after updating the lambda function (update path), not only after creating it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the function_act... | null |
zappa__Zappa__993 | zappa/Zappa | 993 | defect | 5dc7b7a483f90815b2a0b5b7cf897bd2ff9959cf | dbbdd58695bc4cd1ea1f465335732588426d6745 | relax stage name restrictions when not using apigateway | Stage name restrictions are in place due to limitations on the naming of CloudFormation stacks which is not a concern when API Gateway is not in use. | diff --git a/tests/test_bad_stage_name_settings.json b/tests/test_bad_stage_name_settings.json
index 65f1aa723..783c6acd8 100644
--- a/tests/test_bad_stage_name_settings.json
+++ b/tests/test_bad_stage_name_settings.json
@@ -1,5 +1,6 @@
{
"ttt-888": {
+ "apigateway_enabled": true,
"touch": false,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Have `check_stage_name` itself raise the long descriptive ValueError (ending in \"xyz does not\") so `dispatch_command` can avoid catching and re-raising it, and run `check_stage_name` before assigning the stage to `self.api_stage`.", "category": "maintainability", "verdict": "supported", "prior... | null |
zapr-oss__druidry__135 | zapr-oss/druidry | 135 | defect | c60b2b8681824a825985d4f8a2c88bf71b21a584 | fa958117c64cbcdf475cd4b32b9419027f421fc2 | Added expression support to some aggregators | ```
SELECT AVG(sum_sessionDurationInMs / "count")
FROM events
WHERE __time >= '2020-02-27' and __time < '2020-02-28'
```
When above query is translated to native JSON query, it converts `sum_sessionDurationInMs / "count"` into an expression and sets it into an aggregator:
```
{
"queryType": "timeseries",
... | diff --git a/src/main/java/in/zapr/druid/druidry/aggregator/DoubleMaxAggregator.java b/src/main/java/in/zapr/druid/druidry/aggregator/DoubleMaxAggregator.java
index a59a6d97..91d3e4ea 100644
--- a/src/main/java/in/zapr/druid/druidry/aggregator/DoubleMaxAggregator.java
+++ b/src/main/java/in/zapr/druid/druidry/aggregato... | 5 | 5 | 3 | [{"id": "G0", "claim": "Mixing a constructor for one field with a setter for another is poor design; expose a builder and deprecate the old constructor so the new `expression` functionality is integrated without a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
zapr-oss__druidry__138 | zapr-oss/druidry | 138 | defect | c60b2b8681824a825985d4f8a2c88bf71b21a584 | ee8c2753692dc7f0baff0cb64b6dc09e32d47e3b | Added stringFirst and stringLast aggregators. | https://druid.apache.org/docs/latest/querying/aggregations.html#stringfirst-aggregator | diff --git a/src/main/java/in/zapr/druid/druidry/aggregator/StringAggregator.java b/src/main/java/in/zapr/druid/druidry/aggregator/StringAggregator.java
new file mode 100644
index 00000000..36e500e0
--- /dev/null
+++ b/src/main/java/in/zapr/druid/druidry/aggregator/StringAggregator.java
@@ -0,0 +1,41 @@
+/*
+ * Copyrig... | 2 | 2 | 0 | [{"id": "G0", "claim": "The StringAggregator abstraction is unnecessary because all other aggregators like Long and Double extend DruidAggregator directly, so the same thing should be done here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should... | null |
zapr-oss__druidry__42 | zapr-oss/druidry | 42 | defect | e995ac55d3b77ec47f352f9c9542d8973ddc0bf8 | 9d85ab3061969ed46a69f1ca5adbd42a55520da9 | Theta sketch implementation | Implementation of Aggregator and PostAggregator for Theta Sketch | diff --git a/README.md b/README.md
index 64c4e105..0176447b 100644
--- a/README.md
+++ b/README.md
@@ -196,6 +196,7 @@ Aggregation Queries
* LongMax
* LongMin
* LongSum
+* ThetaSketch
#### Filters
@@ -216,6 +217,8 @@ Aggregation Queries
* FieldAccess
* HyperUniqueCardinality
* Javascript
+* ThetaSketchEstima... | 5 | 4 | 1 | [{"id": "G0", "claim": "A check is needed that size is a power of 2 before the aggregator accepts it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's code still needs reformatting to the project style; formatting was left undone.",... | null |
zapr-oss__druidry__83 | zapr-oss/druidry | 83 | defect | f9356442cc1b60992d57ff85ecbdd6e9697f61c1 | abeb6cd827aa3d68f34d779f64aa409d453f1d63 | Support for FilteredDimension | As per Druid Documentation: http://druid.io/docs/latest/querying/dimensionspecs.html#filtered-dimensionspecs
Druid supports FilteredDimension. Adding support for the same. | diff --git a/src/main/java/in/zapr/druid/druidry/dimension/FilteredDimension.java b/src/main/java/in/zapr/druid/druidry/dimension/FilteredDimension.java
new file mode 100644
index 00000000..eee6ccb1
--- /dev/null
+++ b/src/main/java/in/zapr/druid/druidry/dimension/FilteredDimension.java
@@ -0,0 +1,16 @@
+package in.zap... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use the Boolean wrapper instead of primitive boolean for whitelist, because the property is optional and a primitive defaults to false, which contradicts Druid's default of true.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
zapr-oss__druidry__86 | zapr-oss/druidry | 86 | defect | 26df435fe589254fe91895aedd40946b9117a289 | a7105aef028f28c438920d50b3b73222a574d635 | Add virtual columns support. | Hi,
We use Druidry in our company and faced lack of virtual columns (http://druid.io/docs/latest/querying/virtual-columns.html). Here is a simple patch which adds virtual columns support.
Usage example:
```
DruidGroupByQuery.DruidGroupByQueryBuilder query = DruidGroupByQuery
.builder()
... | diff --git a/README.md b/README.md
index 2aa0c68f..27a2c7b2 100644
--- a/README.md
+++ b/README.md
@@ -229,6 +229,9 @@ Supported Features
* ThetaSketchEstimate
* ThetaSketchSetOp
+#### Virtual Columns
+* Expression
+
#### Granularity
* Duration
* Period
diff --git a/src/main/java/in/zapr/druid/druidry/query/aggr... | 5 | 5 | 2 | [{"id": "G0", "claim": "DruidVirtualColumn should be annotated with @JsonInclude(JsonInclude.Include.NON_NULL).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OutputType enum should add DOUBLE, because expression virtual columns support LONG, FLOAT, ... | null |
zaproxy__zaproxy__6423 | zaproxy/zaproxy | 6,423 | defect | 634dcbf3f840966047d3135d26adf8b426fde1b7 | d3f4bcae1d439985f4980201e73a71aea2ec892f | Fix JavaScript function JSON encoding issue | Fixes #6421
Signed-off-by: Simon Bennetts <psiinon@gmail.com> | diff --git a/zap/src/main/java/org/zaproxy/zap/utils/JsonUtil.java b/zap/src/main/java/org/zaproxy/zap/utils/JsonUtil.java
index d680c724de1..5bc612e061b 100644
--- a/zap/src/main/java/org/zaproxy/zap/utils/JsonUtil.java
+++ b/zap/src/main/java/org/zaproxy/zap/utils/JsonUtil.java
@@ -24,6 +24,8 @@
import java.util.Lis... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Javadoc comment should read \"JSONUtils tries to be clever\" instead of the typo \"trues\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zaproxy__zaproxy__7463 | zaproxy/zaproxy | 7,463 | defect | c1e4229dab564eab7b352485dfb427daba717594 | a92e1d7f5fd00af09eca60d2e92be2f4bf79b932 | Add persistent callbacks | Persistent callbacks are like standard callbacks in that they are associated with an APIImplementor and a site.
They fake a very difficult to guess URL on that site and any requests to that URL to passed to the APIImplementor.
Unlike standard callbacks these are persisted in the ZAP config file, so once an APIImpleme... | diff --git a/zap/src/main/java/org/zaproxy/zap/extension/api/API.java b/zap/src/main/java/org/zaproxy/zap/extension/api/API.java
index 490bfc2e16d..79b5ec8a93f 100644
--- a/zap/src/main/java/org/zaproxy/zap/extension/api/API.java
+++ b/zap/src/main/java/org/zaproxy/zap/extension/api/API.java
@@ -115,6 +115,8 @@ public ... | 5 | 5 | 0 | [{"id": "G0", "claim": "The new public methods in the API class should have javadoc, and the javadoc should have @since tags.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field holding persistent callbacks should not be initialised to null i... | null |
zaproxy__zaproxy__7644 | zaproxy/zaproxy | 7,644 | defect | 7c61d7c67fccf856c4f7787100dbaeae281ddcdf | c742ce5ac0d2d9130eb6d0f8ee4c112dc13213d3 | Include the version in add-ons' data dir | Allow to deploy the libraries of the newer version without requiring to delete the libraries of the older version.
Part of #7589. | diff --git a/zap/src/main/java/org/zaproxy/zap/control/AddOnInstaller.java b/zap/src/main/java/org/zaproxy/zap/control/AddOnInstaller.java
index 14903df5539..96343281b56 100644
--- a/zap/src/main/java/org/zaproxy/zap/control/AddOnInstaller.java
+++ b/zap/src/main/java/org/zaproxy/zap/control/AddOnInstaller.java
@@ -505... | 1 | 1 | 1 | [{"id": "G0", "claim": "In shouldDeleteLegacyAddOnLibsDir, the addOnB legacy libs dir should use the string literal \"addOnB\" instead of \"addOnA\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zaproxy__zaproxy__8203 | zaproxy/zaproxy | 8,203 | defect | d0695f7483c3516c0c3ef5e07ff09372e2ddc4c3 | 0b9eb5cb7add8c364b7c51805b5559ea266a8250 | Option to encode cookie values | This changes the default behaviour, but I think for the better.
Help PR will follow.
<details><summary>Active Scan Input Vectors Options dialog</summary>
<p>
<img width="862" alt="Screenshot 2023-11-21 at 12 16 09" src="https://github.com/zaproxy/zaproxy/assets/1081115/48348394-f7a1-47fe-8007-ece450e77a73">
... | diff --git a/zap/src/main/java/org/parosproxy/paros/core/scanner/ScannerParam.java b/zap/src/main/java/org/parosproxy/paros/core/scanner/ScannerParam.java
index 142e09b31d0..20b33fac779 100644
--- a/zap/src/main/java/org/parosproxy/paros/core/scanner/ScannerParam.java
+++ b/zap/src/main/java/org/parosproxy/paros/core/s... | 5 | 4 | 1 | [{"id": "G0", "claim": "kingthorin questions the option's design, suggesting the scanner should perhaps attack both encoded and unencoded cookie values (\"also encode\") rather than toggling between encoding and not encoding.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id":... | null |
zaproxy__zaproxy__8357 | zaproxy/zaproxy | 8,357 | defect | 637347c6678f7924e89cec80b226be90124c22ef | 62bc496fe9734cfd2b4709a4e87d68f7e4db608b | Correct name of hosts without children | Do not (attempt to) strip the method from the node name if it is a host node, as the nodes that represent a host do not have a method, otherwise it stripped the scheme. | diff --git a/zap/src/main/java/org/parosproxy/paros/model/SiteNode.java b/zap/src/main/java/org/parosproxy/paros/model/SiteNode.java
index 54f69e1eeb9..e7c931b2fad 100644
--- a/zap/src/main/java/org/parosproxy/paros/model/SiteNode.java
+++ b/zap/src/main/java/org/parosproxy/paros/model/SiteNode.java
@@ -64,6 +64,7 @@
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new tests in SiteNodeUnitTest.java should include `// Given` comments for consistency with the `// When` and `// Then` comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zaproxy__zaproxy__8920 | zaproxy/zaproxy | 8,920 | defect | 2a2774cc1b6b823c93dd8f1547ef0cd88daecdf3 | fd7e53dff34d3ab889fc44b32eaa46707a1037cf | Exclude anti-csrf tokens from the active scan | Add an option, enabled by default, to exclude the anti-csrf tokens from the active scan.
Also, reduce extra spacing between the options. | diff --git a/zap/src/main/java/org/parosproxy/paros/core/scanner/AbstractAppParamPlugin.java b/zap/src/main/java/org/parosproxy/paros/core/scanner/AbstractAppParamPlugin.java
index 960c4e349c4..e2db2f2f720 100644
--- a/zap/src/main/java/org/parosproxy/paros/core/scanner/AbstractAppParamPlugin.java
+++ b/zap/src/main/ja... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new options-panel label may need title caps, a colon and/or a period to match the surrounding option labels.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two checkbox labels 'Handle anti-CSRF tokens.' and 'Exclude... | null |
zard-ui__zardui__428 | zard-ui/zardui | 428 | defect | bd38db51f40cbc9ad15211e3e4e43dc7bf17a752 | 6ad3f152a468b247d0f2ea638de8e8940105f153 | 📦 refactor(button): latest shadcn/ui button styling | ## What was done? 📝
Refactored button variants to use latest shadcn/ui variants
## Screenshots or GIFs 📸
|-----Figma-----|
|-----Implementation-----|
## Link to Issue 🔗
closes #425
## Type of change 🏗
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Bug fix (non-breaking... | diff --git a/apps/web/public/components/button/doc/api.md b/apps/web/public/components/button/doc/api.md
index eab72f559..79ef10aab 100644
--- a/apps/web/public/components/button/doc/api.md
+++ b/apps/web/public/components/button/doc/api.md
@@ -2,11 +2,11 @@
[z-button] Directive
-| Property | Description ... | 9 | 4 | 1 | [{"id": "G0", "claim": "Refactor the button spec to use Angular TestBed/ComponentFixture per the project coding guidelines, or update CONTRIBUTING.md/CLAUDE.md to allow the Testing Library approach the spec now uses.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id... | null |
zarr-developers__zarr-python__2913 | zarr-developers/zarr-python | 2,913 | defect | 38a241712b243ebb12a8f969e499789700a4334d | 35d0c86ce935642066623c8dfbbffac8adf80043 | feat: add `print_debug_info` function | Created the `print_debug_info` function from #2907
Will render in the issue template like this:

example output:
```
platform: macOS-15.3-arm64-arm-64bit-Mach-O
python: 3.13.2
zarr: 3.0.5.dev8+g71a77687.d20250308
... | diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 705cd31cb5..520725f095 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -6,36 +6,20 @@ body:
attributes:
value: |
Please provide the following informatio... | 4 | 4 | 3 | [{"id": "G0", "claim": "The template's version-info description should say the output is rendered as code automatically with no need for backticks, and the textarea should set render: shell.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test ... | null |
zarr-developers__zarr-python__2992 | zarr-developers/zarr-python | 2,992 | defect | 5ff3fbe5fe1488310301e9d2ae56a9880d1ddfb2 | 7b8b0f9187a2c8c903c200277836e5e4e78791c8 | fix:*-like creation routines take kwargs | In main, array creation routines that take an existing array, like `full_like`, `zeros_like`, etc, don't allow users to override certain array properties (like shape and dtype) via keyword arguments. E.g., `full_like(arr, shape=(10,))` will ignore the `shape` keyword argument and produce an array with the same shape a... | diff --git a/changes/2992.fix.rst b/changes/2992.fix.rst
new file mode 100644
index 0000000000..7e4211cdde
--- /dev/null
+++ b/changes/2992.fix.rst
@@ -0,0 +1,3 @@
+Fix a bug preventing ``ones_like``, ``full_like``, ``empty_like``, ``zeros_like`` and ``open_like`` functions from accepting
+an explicit specification of ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The _like_args return type changed from Any to object without explanation, and the parameters could be typed as a TypedDict instead.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The three-level precedence (user kwargs, _like_arg... | null |
zarr-developers__zarr-python__3004 | zarr-developers/zarr-python | 3,004 | defect | d19f3f0a825b5be986fa6e2f797aa4ddec0b90ed | 840ce1e9b03ed8a8f6cc11a7afd015b585cc3a3d | Optimize partial shard reads | This PR optimizes reading more than one, but not all, chunks from a shard. Towards #1758 and #3953.
Optimizes partial reads from sharded arrays by replacing per-chunk serial `Store.get()` calls with a single `Store.get_ranges()` call per shard. This lets stores coalesce nearby byte ranges and fetch chunk payloads c... | diff --git a/docs/user-guide/config.rst b/docs/user-guide/config.rst
index 91ffe50b91..99a3826df1 100644
--- a/docs/user-guide/config.rst
+++ b/docs/user-guide/config.rst
@@ -33,6 +33,10 @@ Configuration options include the following:
- Async and threading options, e.g. ``async.concurrency`` and ``threading.max_worker... | 18 | 12 | 2 | [{"id": "G0", "claim": "The PR's new concurrent_map nested inside the codec pipeline's existing one makes total concurrency of async.concurrency**2 technically possible, and the author asks whether that is acceptable or should be limited.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "intro... | null |
zarr-developers__zarr-python__3119 | zarr-developers/zarr-python | 3,119 | defect | a8d4f42720d9aa698adeaac1836793a43ee2ff87 | 9be2187a40997aa1b3179a60fea9c3df165d57cd | Allow Stores to opt out of consolidated metadata. | Some Stores don't benefit from Zarr's consolidated metadata mechanism. These Stores usually implement their own consolidation mechanism, or provide good performance for metadata retrieval out of the box.
These Stores can now implement the `supports_consolidated_metadata` property returning `False`. In this situation... | diff --git a/docs/user-guide/consolidated_metadata.rst b/docs/user-guide/consolidated_metadata.rst
index 3c015dcfca..8fdd0a46a2 100644
--- a/docs/user-guide/consolidated_metadata.rst
+++ b/docs/user-guide/consolidated_metadata.rst
@@ -114,3 +114,19 @@ removed, or modified, consolidated metadata may not be desirable.
... | 6 | 5 | 2 | [{"id": "G0", "claim": "In AsyncGroup consolidate_metadata the supports check should read the store directly via store_path (the suggestion was `store.supports_consolidated_metadata`) instead of the indirect `group.store_path.store`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i... | null |
zarr-developers__zarr-python__3128 | zarr-developers/zarr-python | 3,128 | defect | 6193fd9b3bd23f0aa9676b489e62f224e4325b3e | c677cd39b8fe463f6dae7a2b78dc5ac5a5a35207 | Fix `zarr.open` default for argument `mode` when `store` is `read_only` | - fixes #3042
If `zarr.open` receives a `Store` Object, its `read_only` value should be considered for the default of the `mode` parameter to avoid errors like in #3042
TODO:
* [x] Add unit tests and/or doctests in docstrings
* [x] Add docstrings and API docs for any new/modified user-facing classes and functi... | diff --git a/changes/3128.bugfix.rst b/changes/3128.bugfix.rst
new file mode 100644
index 0000000000..b93416070e
--- /dev/null
+++ b/changes/3128.bugfix.rst
@@ -0,0 +1 @@
+Fix `zarr.open` default for argument `mode` when `store` is `read_only`
\ No newline at end of file
diff --git a/src/zarr/api/asynchronous.py b/src/... | 3 | 3 | 2 | [{"id": "G0", "claim": "The read-only default logic should also handle a `StorePath` argument by extracting the `Store` and applying the same read-only check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`zarr.synchronous.open` needs the same read... | null |
zarr-developers__zarr-python__3190 | zarr-developers/zarr-python | 3,190 | defect | baabf08d07e8518e3d37bd83c493a1d46ea7ac1d | 1e7782733d80bff7bca0fd21c379501ff46979d4 | Add human readable size for No. bytes stored to `info_complete` | Example:
```python
>>> z.info_complete()
Type : Array
Zarr format : 3
Data type : Int32(endianness='little')
Fill value : 0
Shape : (10000, 10000)
Chunk shape : (1000, 1000)
Order : C
Read-only : False
Store type : Loca... | diff --git a/docs/user-guide/arrays.rst b/docs/user-guide/arrays.rst
index c27f1296b9..6a7dcaf69d 100644
--- a/docs/user-guide/arrays.rst
+++ b/docs/user-guide/arrays.rst
@@ -211,7 +211,7 @@ prints additional diagnostics, e.g.::
Serializer : BytesCodec(endian=<Endian.little: 'little'>)
Compressors ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The untyped `kwargs`-based template formatting in the info repr is error-prone (it already caused a mismatched key here), and if kwargs are kept at all they should be modeled with TypedDicts — something for a later PR.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "s... | null |
zarr-developers__zarr-python__3198 | zarr-developers/zarr-python | 3,198 | defect | baabf08d07e8518e3d37bd83c493a1d46ea7ac1d | 732820501627df3ee36bf98dd6371976bf61e47d | fix: restore fill_value=None for zarr_format=2 | Should fix #3197
Without this it is not possible to write "null" to the zarr format 2 fill value.
@d-v-b
As discussed in #3197 adds a new sentinel class to indicate using the default fill value for the dtype. Which gives:
| Version | Format 2 | Format 3 |
|---|---|---|
| **3.0.9** | `null` | default... | diff --git a/src/zarr/api/synchronous.py b/src/zarr/api/synchronous.py
index f2dc8757d6..b60f69a673 100644
--- a/src/zarr/api/synchronous.py
+++ b/src/zarr/api/synchronous.py
@@ -7,7 +7,7 @@
import zarr.api.asynchronous as async_api
import zarr.core.array
from zarr._compat import _deprecate_positional_args
-from zar... | 5 | 4 | 0 | [{"id": "G0", "claim": "The DefaultFillValue class is perhaps too fancy: the __new__ singleton machinery is unnecessary because the code that uses instances already checks against a specific instance, so a vanilla class would do.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
zarr-developers__zarr-python__3216 | zarr-developers/zarr-python | 3,216 | defect | 111d76560152017d6f5c018f5b0f7897ed5d488d | d4c12050a7637aeadefe01449ba76c9e300a9759 | Write chunks with negative zero values and a zero fill value | Fixes #3144.
Using `np.any(self._data)` was inspired by how [Zarr v2 checks for equality with a falsey fill value](https://github.com/zarr-developers/zarr-python/blob/v2.18.7/zarr/util.py#L721).
TODO:
* [x] Add unit tests and/or doctests in docstrings
* [ ] Add docstrings and API docs for any new/modified user-... | diff --git a/src/zarr/core/buffer/core.py b/src/zarr/core/buffer/core.py
index 19125b838f..89e34f82d0 100644
--- a/src/zarr/core/buffer/core.py
+++ b/src/zarr/core/buffer/core.py
@@ -523,6 +523,12 @@ def all_equal(self, other: Any, equal_nan: bool = True) -> bool:
if other is None:
# Handle None f... | 4 | 3 | 1 | [{"id": "G0", "claim": "Remove the leftover `print(arr[:], fill_value)` debug statements from test_write_empty_chunks_negative_zero (both comments carry empty suggestion blocks over those print lines).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
zarr-developers__zarr-python__3287 | zarr-developers/zarr-python | 3,287 | defect | b877f89fa2959e15d3d49bf027792fb23ce97b84 | 7d02b6d9210781a45f18441ae3442c02abf2fa63 | Fix incorrect Group.nmembers for consolidated metadata | Addresses the issue where `Group.nmembers()` doesn't honor the `max_depth` when the group has consolidated metadata. This simply filters `flattened_metadata` according to the number of `/` in the sub-elements' paths, which is analogous to checking the depth.
I'm new to this project, so I'm not sure if the implemente... | diff --git a/src/zarr/core/group.py b/src/zarr/core/group.py
index a868ee31fa..a398aa01aa 100644
--- a/src/zarr/core/group.py
+++ b/src/zarr/core/group.py
@@ -1307,7 +1307,18 @@ async def nmembers(
# check if we can use consolidated metadata, which requires that we have non-None
# consolidated metadat... | 2 | 2 | 1 | [{"id": "G0", "claim": "Ensure test coverage exists for the case where the code raises a ValueError, e.g. `await group.nmembers(max_depth=-1)` raising ValueError matching \"max_depth\".", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a release note t... | null |
zarr-developers__zarr-python__3376 | zarr-developers/zarr-python | 3,376 | defect | c21d1f92f7f2648a4c55b164510c524a951ac11d | b6b2260a953e38bd4e432508b2063c5beda11703 | chore/handle numcodecs codecs | This PR brings in all the codecs defined in `numcodecs.zarr3`. After this PR is merged, we can safely replace the `numcodecs.zarr3` module with _reexports_ from zarr python, or remove `numcodecs.zarr3` entirely, thereby fixing our circular dependency problem.
This PR also changes the default config to ensure that th... | diff --git a/docs/user-guide/config.rst b/docs/user-guide/config.rst
index 0ae8017ca9..e87187d63b 100644
--- a/docs/user-guide/config.rst
+++ b/docs/user-guide/config.rst
@@ -42,23 +42,43 @@ requires the value of ``codecs.bytes.name`` to be ``'custompackage.NewBytesCodec
This is the current default configuration::
... | 8 | 3 | 0 | [{"id": "G0", "claim": "Re-export the numcodecs codec classes at zarr.codecs.numcodecs (a new package with _numcodecs.py moved to _codecs.py and a re-exporting __init__) so the private _numcodecs module no longer appears in the config.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
zarr-developers__zarr-python__3390 | zarr-developers/zarr-python | 3,390 | defect | 62d1a6abc866f28b72dc465317001bb9137f6a5b | f9d4a16e37ec1fe005a5a56176e59b431cbf69bb | docstring cleanup | This PR will do two things:
- remove outdated references to configuration options for controlling codecs (thereby closing #3389)
- make some of our function / method docstrings more consistent across the async / sync boundary.
The reason for two things in this PR, instead of 1, is that changing docstrings in zarr ... | diff --git a/changes/3390.misc.rst b/changes/3390.misc.rst
new file mode 100644
index 0000000000..fa229a3ad8
--- /dev/null
+++ b/changes/3390.misc.rst
@@ -0,0 +1 @@
+Improve documentation consistency across API functions and remove outdated references to deprecated configuration values that no longer work.
\ No newline... | 4 | 4 | 1 | [{"id": "G0", "claim": "In the create() docstring for chunks, parameter names like `shape` and `chunks` should be double-backtick RST literals so they render correctly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RST class reference written... | null |
zarr-developers__zarr-python__3391 | zarr-developers/zarr-python | 3,391 | defect | c9eefe663b34b019e9673bcaa37a88aae6158280 | 38fe656d349fff4fd63b53b39b036f22984b9b77 | Add default value to init_array config param. Update docstring. | Make config param optional in `init_array`. Closes #3222
TODO:
* [x] Add unit tests and/or doctests in docstrings
* [x] Add docstrings and API docs for any new/modified user-facing classes and functions
* [x] New/modified features documented in `docs/user-guide/*.rst`
* [x] Changes documented as a new file in... | diff --git a/changes/3391.feature.rst b/changes/3391.feature.rst
new file mode 100644
index 0000000000..45a1472a2c
--- /dev/null
+++ b/changes/3391.feature.rst
@@ -0,0 +1 @@
+Make config param optional in init_array
diff --git a/src/zarr/core/array.py b/src/zarr/core/array.py
index 4b34c31de1..ef4bc05761 100644
--- a/s... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `config` parameter's docstring type line should read `ArrayConfigLike or None, default=None` instead of `optional`, to document the default the PR gives the parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
zarr-developers__zarr-python__3444 | zarr-developers/zarr-python | 3,444 | defect | ee9c182a17a3851e7b360275dbf13bb323f1d922 | cf2f0195879036dcd5272e8a987c1a93378cc4c2 | Raise helpful errors when opening a group with wrong node type. | Fixes https://github.com/zarr-developers/zarr-python/issues/3114 | diff --git a/src/zarr/core/group.py b/src/zarr/core/group.py
index 15a256fb5d..0156c20a2d 100644
--- a/src/zarr/core/group.py
+++ b/src/zarr/core/group.py
@@ -53,6 +53,7 @@
from zarr.errors import (
ContainsArrayError,
ContainsGroupError,
+ GroupNotFoundError,
MetadataValidationError,
ZarrDeprec... | 1 | 1 | 0 | [{"id": "G0", "claim": "The exceptions raised in AsyncGroup.from_dict should be constructed with an explicitly specified message as a single argument instead of relying on the two-argument pre-formatted form.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zarr-developers__zarr-python__3562 | zarr-developers/zarr-python | 3,562 | defect | b3e9aed305092236c5db70deee0b26dad648d3b0 | 7b26982e5746c0ce11e63b3cc0529f7243002a25 | add benchmarks using pytest-benchmark and codspeed | since #3554 was an unpopular direction I'm going instead with codspeed + pytest-benchmark. Opening as a draft because I haven't looked into how codspeed works at all, but I'd like people to weigh in on whether these initial benchmarks make sense. Naturally we can add more specific ones later, but I figured just some bu... | diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml
new file mode 100644
index 0000000000..c6e32fc9ef
--- /dev/null
+++ b/.github/workflows/codspeed.yml
@@ -0,0 +1,30 @@
+name: CodSpeed Benchmarks
+
+on:
+ push:
+ branches:
+ - "main" # or "master"
+ pull_request:
+ # `workflow_dispa... | 5 | 4 | 1 | [{"id": "G0", "claim": "The codspeed workflow's benchmark environment should use the latest released python and numpy versions instead of the minimal (oldest-supported) environment.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Indexing benchmarks shoul... | null |
zarr-developers__zarr-python__3603 | zarr-developers/zarr-python | 3,603 | defect | 94d543ccff70f6348029027887868e443ae4cfaa | 2b00571402b25d64a22d278235d90e87a260ca97 | fix: auto-chunking when auto-sharding 1MiB number | Fixes #3602
TODO:
* [x] Add unit tests and/or doctests in docstrings
* [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
* [ ] New/modified features documented in `docs/user-guide/*.md`
* [x] Changes documented as a new file in `changes/`
* [x] GitHub Actions have all passed... | diff --git a/changes/3603.bugfix.md b/changes/3603.bugfix.md
new file mode 100644
index 0000000000..37e1da5cb1
--- /dev/null
+++ b/changes/3603.bugfix.md
@@ -0,0 +1 @@
+Correct the target bytes number for auto-chunking when auto-sharding.
\ No newline at end of file
diff --git a/src/zarr/core/chunk_grids.py b/src/zarr/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Parenthesize the interpolated min_bytes and max_bytes in the ValueError raised by _guess_chunks for readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
zarr-developers__zarr-python__3634 | zarr-developers/zarr-python | 3,634 | defect | 34859c4510d6a08028b50b3b84b2e57c84c7e373 | 5465b3ee46b450a1ce482e330fb25eb92fda9353 | docs: Correct grammar issues in a/an usage | Correct grammar issues in a/an usage
The correct usages are `"an np"` and `"an FSMap"`, because the phonetic spelling of the word starts with a vowel.
https://www.grammarly.com/blog/grammar/indefinite-articles-a-and-an/
| diff --git a/docs/user-guide/storage.md b/docs/user-guide/storage.md
index 0fea19a3f5..2b200c27b9 100644
--- a/docs/user-guide/storage.md
+++ b/docs/user-guide/storage.md
@@ -154,7 +154,7 @@ print(store)
### Memory Store
-The [`zarr.storage.MemoryStore`][] a in-memory store that allows for serialization of
+The [`... | 1 | 1 | 0 | [{"id": "G0", "claim": "The docstring should read \"Create an FsspecStore from a upath object.\" because \"upath\" is pronounced \"you-path\", so the PR's change to \"an upath object.\" uses the wrong article.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zarr-developers__zarr-python__3679 | zarr-developers/zarr-python | 3,679 | defect | 8ca385ac9c62a9e467dfdf61f635c6738db9b471 | 670c7564aef0edc5b976638145afa2e1d0579b77 | feat/memory store registry | This PR adds a new managed memory store class (`ManagedMemoryStore`) that allows requesting in-memory stores with URL syntax like `"memory://my-store/"` That's the upside.
The _downside_ is that users can't use their own mutable mappings with this store, because we can't make weak references to generic mutable mapp... | diff --git a/changes/3679.feature.md b/changes/3679.feature.md
new file mode 100644
index 0000000000..cdf35382e4
--- /dev/null
+++ b/changes/3679.feature.md
@@ -0,0 +1,3 @@
+Adds a new in-memory storage backend called `ManagedMemoryStore`. Instances of `ManagedMemoryStore`
+function similarly to `MemoryStore`, but inst... | 7 | 5 | 2 | [{"id": "G0", "claim": "In make_store, file:// URLs are routed through Path(store_like) instead of the parsed path, so the resulting LocalStore gets a broken root like 'file://file:/tmp/zarr-test'; the review asks to use Path(parsed.path) instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "... | null |
zarr-developers__zarr-python__3695 | zarr-developers/zarr-python | 3,695 | defect | 22ea09f410e3b3b89069aeb3f1a6e0d8a1040187 | d5cd48418c321325308636f0c2d9c1442f8db420 | fix: raise error when encountering nullable string dtype | Fixes #3692
TODO:
* [x] Add unit tests and/or doctests in docstrings
* [x] Changes documented as a new file in `changes/`
* [x] GitHub Actions have all passed
* [x] Test coverage is 100% (Codecov passes)
| diff --git a/changes/3695.bugfix.md b/changes/3695.bugfix.md
new file mode 100644
index 0000000000..a7d847e4f1
--- /dev/null
+++ b/changes/3695.bugfix.md
@@ -0,0 +1 @@
+Raise error when trying to encode :class:`numpy.dtypes.StringDType` with `na_object` set.
\ No newline at end of file
diff --git a/src/zarr/core/dtype/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The check rejecting numpy StringDType with `na_object` set should be moved from the registry's match_dtype into the `from_native_dtype` method on the `VariableLengthUTF8` class, placed after confirming the input is numpy StringDType.", "category": "design", "verdict": "supported", "priority": "P... | null |
zarr-developers__zarr-python__3700 | zarr-developers/zarr-python | 3,700 | defect | f4d122135fb010127484bcad717606b3c15bcb51 | 68501fa3bbeb5e5d579141a1e1513c99ebd1692a | Support with read only in wrappers | Fixes https://github.com/zarr-developers/zarr-python/issues/3699
All three wrapper stores (Latency, Logging, Cache) now support with_read_only.
CacheStore required a bit of changes - some of the mutable state was lifted to another class, so that multiple CacheStore objects could share the same one.
* [x] A... | diff --git a/changes/3700.bugfix.md b/changes/3700.bugfix.md
new file mode 100644
index 0000000000..86acb71d0e
--- /dev/null
+++ b/changes/3700.bugfix.md
@@ -0,0 +1 @@
+CacheStore, LoggingStore and LatencyStore now support with_read_only.
\ No newline at end of file
diff --git a/src/zarr/experimental/cache_store.py b/s... | 2 | 2 | 0 | [{"id": "G0", "claim": "_CacheState should either be a dataclass (so it can be initialized with __init__) or, if it is just a collection of attributes with no methods, a TypedDict instead of a plain class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "k... | null |
zarr-developers__zarr-python__3713 | zarr-developers/zarr-python | 3,713 | defect | 36caf1fc4dc0f422ea6d3309e838589c3bc99a2d | 157d28325f4494e19c122c3a27aa54f3fe0627cc | perf: Vectorize get_chunk_slice for faster sharded writes | ## Summary
This PR adds vectorized methods to `_ShardIndex` and `_ShardReader` for batch chunk slice lookups, significantly reducing per-chunk function call overhead when writing to shards.
## Changes
### New Methods
**`_ShardIndex.get_chunk_slices_vectorized`**: Batch lookup of chunk slices using NumPy vectorized ... | diff --git a/changes/3708.misc.md b/changes/3708.misc.md
new file mode 100644
index 0000000000..1ea865bdbe
--- /dev/null
+++ b/changes/3708.misc.md
@@ -0,0 +1 @@
+Optimize Morton order computation with hypercube optimization, vectorized decoding, magic number bit manipulation for 2D-5D, and singleton dimension removal,... | 2 | 2 | 0 | [{"id": "G0", "claim": "to_dict_vectorized should not take the same coordinates as two different types; pass morton_coords only and create the array version internally as an implementation detail.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Going back... | null |
zarr-developers__zarr-python__3722 | zarr-developers/zarr-python | 3,722 | defect | 8ca385ac9c62a9e467dfdf61f635c6738db9b471 | 6cf895735bb5ea1e0eb9bd12af71aa60da75bf37 | perf/chunktransform | This PR defines a `CodecChain` object, which is similar to `CodecPipeline` except that it performs no orchestration. It just defines array-spec-aware, pure-compute encoding and decoding routines for collections of codecs. Part of #3720
depends on #3721
edit: `CodecChain` is now called `ChunkTransform` | diff --git a/src/zarr/core/codec_pipeline.py b/src/zarr/core/codec_pipeline.py
index e25863ae23..e06483f26d 100644
--- a/src/zarr/core/codec_pipeline.py
+++ b/src/zarr/core/codec_pipeline.py
@@ -1,6 +1,6 @@
from __future__ import annotations
-from dataclasses import dataclass
+from dataclasses import dataclass, fiel... | 10 | 8 | 0 | [{"id": "G0", "claim": "Make the Codec ABC generic over SupportsSyncCodec (via a protocol) so that a codec lacking sync support is caught before runtime rather than only at construction.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The shape and dtype ... | null |
zarr-developers__zarr-python__3725 | zarr-developers/zarr-python | 3,725 | defect | ca53f8e5bc002797ed531a1c49c162189f65f9d5 | c0c1b24d309f7b66c3fccfe7ad57dfcbd6a81b05 | perf/store sync | This PR adds synchronous methods to stores that benefit from executing IO outside of an event loop, i.e. memory storage and local storage. These methods are not defined on the ABC, and are instead defined as protocols that stores can opt into.
These methods are needed to unlock a hot path for chunk encoding / decod... | diff --git a/src/zarr/abc/store.py b/src/zarr/abc/store.py
index f677c197dc..d2ab353d43 100644
--- a/src/zarr/abc/store.py
+++ b/src/zarr/abc/store.py
@@ -16,7 +16,16 @@
from zarr.core.buffer import Buffer, BufferPrototype
-__all__ = ["ByteGetter", "ByteSetter", "Store", "set_or_delete"]
+__all__ = [
+ "Byt... | 4 | 3 | 1 | [{"id": "G0", "claim": "The explanatory comment in BloscCodec._encode_sync about host-memory conversion should not have been deleted.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trivial zstd tests added to tests/test_codecs/test_zstd.py see... | null |
zarr-developers__zarr-python__3748 | zarr-developers/zarr-python | 3,748 | defect | 8d018608f1abbbbf3b50e5908c611efe74cbed87 | 233ddce9258121006f93a08be5757682e705d40a | Fill missing chunks | Add config options for whether a missing chunk should:
- appear as a chunk filled with `fill_value` (current behaviour; retained as default)
- raise a `MissingChunkError`
This PR is entirely based on the work of @tomwhite in [this issue.](https://github.com/zarr-developers/zarr-python/issues/486#issuecomment-33852... | diff --git a/changes/3748.feature.md b/changes/3748.feature.md
new file mode 100644
index 0000000000..8a5d6087b9
--- /dev/null
+++ b/changes/3748.feature.md
@@ -0,0 +1 @@
+Added `array.fill_missing_chunks` configuration option. When set to `False`, reading missing chunks raises a `MissingChunkError` instead of filling ... | 6 | 5 | 1 | [{"id": "G0", "claim": "The new config option should be exposed as part of the general array configuration, where write_empty_chunks currently sits, rather than as a codec_pipeline-level setting.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Hardcoding ... | null |
zarr-developers__zarr-python__3778 | zarr-developers/zarr-python | 3,778 | defect | 1bfa53f6167336fc5c6b353975b2af56cde1eb6b | 8aeebaa426a817ba2936b10fe1e5d52c33a3c1ce | Remove `rich` as required for `tree()` | ## Description
I often found that when I wanted to use `tree()` `rich` wasn't installed. So I started out with this as a fallback but on looking into it I think it can be fully removed in favor a small loop (which we would need anyway for a fallback) to construct the tree and just add in ansi or html bolding codes.
... | diff --git a/changes/3778.misc.md b/changes/3778.misc.md
new file mode 100644
index 0000000000..17f26666ed
--- /dev/null
+++ b/changes/3778.misc.md
@@ -0,0 +1 @@
+`Group.tree()` no longer requires the `rich` dependency. Tree rendering now uses built-in ANSI bold for terminals and HTML bold for Jupyter. New parameters: ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new parameters of the async Group.tree() method (max_nodes, plain) should be made keyword-only so the API can evolve more gracefully in the future.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sync Group.tree() method sh... | null |
zarr-developers__zarr-python__3833 | zarr-developers/zarr-python | 3,833 | defect | 690c5bb0c645f94661436b1673eb5771aefe8821 | 05d28b1a7ab301040a10a4a121ef8639993254a7 | fix: remove numcodecs off-spec warning | Closes #3832.
TODO:
* [x] Add unit tests and/or doctests in docstrings
* [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
* [ ] New/modified features documented in `docs/user-guide/*.md`
* [ ] Changes documented as a new file in `changes/`
* [ ] GitHub Actions have all pass... | diff --git a/src/zarr/codecs/numcodecs/_codecs.py b/src/zarr/codecs/numcodecs/_codecs.py
index 4a3d88a84f..d9190bba9c 100644
--- a/src/zarr/codecs/numcodecs/_codecs.py
+++ b/src/zarr/codecs/numcodecs/_codecs.py
@@ -102,12 +102,6 @@ def __init__(self, **codec_config: JSON) -> None:
) # pragma: no cover
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The off-spec warning this PR added to NumcodecsCodec.to_dict should perhaps be dropped altogether.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zarr-developers__zarr-python__3897 | zarr-developers/zarr-python | 3,897 | defect | 0ea15fd7a2d898ffa445aeacbba9ad64707c9117 | 3f2a783593f74e9f9630315143f3767c1ca43d14 | chore: clean up metadata tests | Simplifies our v3 metadata tests, and makes the v3 metadata typeddict a bit more accurate. | diff --git a/changes/3897.misc.md b/changes/3897.misc.md
new file mode 100644
index 0000000000..53b2bd9b52
--- /dev/null
+++ b/changes/3897.misc.md
@@ -0,0 +1,2 @@
+Bump the minimum version of `typing-extensions` to 4.13 to support the `extra_items`
+keyword argument on `TypedDict` (PEP 728).
\ No newline at end of fil... | 2 | 2 | 0 | [{"id": "G0", "claim": "The existing annotation of dimension_names as NotRequired[tuple[str | None]] is inaccurate and should be NotRequired[tuple[str | None, ...]], possibly requiring changes elsewhere too.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "c... | null |
zarr-developers__zarr-python__3899 | zarr-developers/zarr-python | 3,899 | defect | 9681cf998a006f4a5f50f90a4ff288b1e3bba606 | 5c56197f2a7db5cbeaca38ee6d7f81b88c580feb | refactor: simplify internal chunk representation | The addition of rectilinear chunks left us with some jank in our internal chunk normalization logic. We had a lot of redundant chunk normalization routines, and we also weren't handling user input correctly, e.g. #3898. We need some internal changes to ensure that user input is consistently handled regardless of whethe... | diff --git a/changes/3899.bugfix.md b/changes/3899.bugfix.md
new file mode 100644
index 0000000000..c24f803e37
--- /dev/null
+++ b/changes/3899.bugfix.md
@@ -0,0 +1,2 @@
+Make chunk normalization properly handle `-1` as a compact representation of the length of
+an entire axis.
\ No newline at end of file
diff --git a/... | 7 | 6 | 3 | [{"id": "G0", "claim": "A few cases of the deprecated Array.create() method (chunks tuples shorter than the shape padded from shape, and None used as a per-dimension sentinel) possibly regress in this PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
zarr-developers__zarr-python__3935 | zarr-developers/zarr-python | 3,935 | defect | 80d45ca9ad551b26bfff4a65567d806121b4de12 | d3c74eb4bb14bd48d86b4cb1da2c693d8012e98a | chore: cd workflow | this adds a cd workflow for `zarr-metadata`
we either publish to pypi, in which case the version declared in the package is used, or we publish to testpypi, in which case a synthetic, unique version is created to ensure that we never have a conflict on testpypi.
this workflow only supports workflow dispatch right... | diff --git a/.github/workflows/zarr-metadata-release.yml b/.github/workflows/zarr-metadata-release.yml
new file mode 100644
index 0000000000..f317ad729d
--- /dev/null
+++ b/.github/workflows/zarr-metadata-release.yml
@@ -0,0 +1,114 @@
+name: zarr-metadata release
+
+on:
+ workflow_dispatch:
+ release:
+ types: [pu... | 3 | 3 | 0 | [{"id": "G0", "claim": "Get rid of the 'make a unique version script' (the dev-suffix script) in the release workflow, since the version should be uniquely identified by a commit and it doesn't really make sense to run this twice on the same commit.", "category": "design", "verdict": "supported", "priority": "P2", "sco... | null |
zarr-developers__zarr-python__3963 | zarr-developers/zarr-python | 3,963 | defect | ad90884910817e75ad762773afa33a610da721ef | 392f03d1f64cbba212957b781777f78eb0021457 | deprecate blosc enums | This PR deprecates the string enums used for the blosc codec. `Literal` strings are used instead. We only use enums in a few places -- Literal strings are much more abundant for representing constant string types -- and I think that's because enums in python are rather cumbersome compared to `Literal[<str>]`.
If thi... | diff --git a/changes/0000.removal.md b/changes/0000.removal.md
new file mode 100644
index 0000000000..a83fd53853
--- /dev/null
+++ b/changes/0000.removal.md
@@ -0,0 +1,6 @@
+The ``BloscShuffle`` and ``BloscCname`` enums (``zarr.codecs.BloscShuffle``,
+``zarr.codecs.BloscCname``) are now deprecated. Pass the equivalent ... | 10 | 3 | 1 | [{"id": "G0", "claim": "The new blosc deprecation tests should be parametrized instead of hand-written near-duplicates, and the import-silently test should say in a docstring what it is for.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The BloscCodec ... | null |
zarr-developers__zarr-python__3975 | zarr-developers/zarr-python | 3,975 | defect | 2e58a7a44c5388ebfa81100fb94f6c215e584dce | 9fd9fdb9b9ffe4502ca5d9ef8100cf6891cc98d5 | refactor(sharding): store chunks_per_shard explicitly in _ShardIndex | _ShardIndex previously inferred the chunk grid shape from
offsets_and_lengths.shape[:-1]. For 0-D arrays this collapses the array
to rank-1, breaking methods that assume rank >= 2 and forcing a numpy
compat cast workaround.
Store chunks_per_shard as an explicit NamedTuple field instead. This
removes the chunks_per_sha... | diff --git a/src/zarr/codecs/sharding.py b/src/zarr/codecs/sharding.py
index d0b2cec285..6c1ca5e475 100644
--- a/src/zarr/codecs/sharding.py
+++ b/src/zarr/codecs/sharding.py
@@ -123,19 +123,15 @@ async def set_if_not_exists(self, default: Buffer) -> None:
class _ShardIndex(NamedTuple):
+ # the chunk grid shape... | 1 | 1 | 0 | [{"id": "G0", "claim": "The unused `_ShardIndex.is_dense` method has no call sites or tests and should be removed from the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
zarr-developers__zarr-python__759 | zarr-developers/zarr-python | 759 | defect | e43b71f7a761d4b8119f3d43e139a349552afd4c | 43cc9820b8e3f13c5d0a04f62a0c4972cce2fbcd | Update ABSStore for compatibility with newer `azure.storage.blob`. | This continues https://github.com/zarr-developers/zarr-python/pull/620 to update the Azure `ABSStore` to be compatible with newer versions of `azure.storage.blob`.
In addition to @jhamman's compatibility changes, I made a few changes to make this easier to test. The previous API had users pass various pieces of info... | diff --git a/docs/release.rst b/docs/release.rst
index 5a12fc3a11..d098339f90 100644
--- a/docs/release.rst
+++ b/docs/release.rst
@@ -11,6 +11,9 @@ Bug fixes
* FSStore: default to normalize_keys=False
By :user:`Josh Moore <joshmoore>`; :issue:`755`.
+* ABSStore: compatibility with ``azure.storage.python>=12``
+... | 2 | 2 | 1 | [{"id": "G0", "claim": "The listdir implementation builds the result through a set before converting to a list, and a plain list would be faster since no deduplication appears to be needed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new sess... | null |
zarrs__zarrs__376 | zarrs/zarrs | 376 | defect | a9060ba788df916858b87997bbb247fcd65e9e39 | b9bdf5b2864e3a1207556c415971a76faefe5657 | feat: Add Consolidated Metadata Reads | Add the ability to read from consolidated metadata with options to deactivate it and tests to verify everything.
Ran `just check` and everything is green. It'd be great to get this feature in, makes the initial zarr read a lot faster where consolidated metadata is available! | diff --git a/CHANGELOG.md b/CHANGELOG.md
index da5565e39..8ece5081e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add a `microfloat` feature for expanded subfloat and complex subfloat data type / element supp... | 7 | 6 | 1 | [{"id": "G0", "claim": "Avoid the semver break: instead of adding the new `NodeCreateError::MissingConsolidatedMetadata` variant, return the existing `MissingMetadata` error with a descriptive message and leave a TODO that the error could be refined in a future breaking release.", "category": "design", "verdict": "supp... | null |
zauberzeug__nicegui__1854 | zauberzeug/nicegui | 1,854 | defect | 70fbc03f014139ea84a538b2ab68527dc36e8977 | bf64e25ab5946749550f283651d879b85e6ebf6d | allow binding source with local file paths | This PR fixes #1853 by checking whether to create a route to local file whenever the image source changes. | diff --git a/nicegui/elements/mixins/source_element.py b/nicegui/elements/mixins/source_element.py
index 2c5eafe022..9dd59af730 100644
--- a/nicegui/elements/mixins/source_element.py
+++ b/nicegui/elements/mixins/source_element.py
@@ -14,10 +14,8 @@ class SourceElement(Element):
def __init__(self, *, source: Uni... | 1 | 1 | 1 | [{"id": "G0", "claim": "Auto-generated static routes for local file sources are never cleaned up, which creates a memory leak that can accumulate quickly, especially when streaming image sequences.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zauberzeug__nicegui__3736 | zauberzeug/nicegui | 3,736 | defect | fe3cbc22f29185d72eab1cdc30ca36a621fa4e50 | 37b441b14ff59e7222d380d7367129213eee1718 | Fix for ChoiceElement duplicate `self.update()` calls and basic ChoiceElement unit testing | Resolves #3733
Added unit testing as requested. Wasn't sure how ham to go exactly, but I just went ahead and added tests for all the functionality that I've used with the `ui.radio()` element before. | diff --git a/nicegui/elements/choice_element.py b/nicegui/elements/choice_element.py
index a4db13cb2b..9d657ff185 100644
--- a/nicegui/elements/choice_element.py
+++ b/nicegui/elements/choice_element.py
@@ -41,7 +41,6 @@ def set_options(self, options: Union[List, Dict], *, value: Any = ...) -> None:
:param val... | 3 | 3 | 0 | [{"id": "G0", "claim": "Remove the stray `###` / `Tests Needed` placeholder comments from the new test file, since the test function names should describe what is being tested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The behaviour descrip... | null |
zauberzeug__nicegui__4571 | zauberzeug/nicegui | 4,571 | defect | 637e79585638daf2a2b02890b20105af5c4718fa | f9fc3cdcdc68e25b5ac8b1ed1cf713f96058aefb | popup if socket.io message expected to be too long | fixes #3410
TL-DR: Nobody in the chain of Python-EngineIO -> Python-SocketIO -> SocketIO.js is taking up the responsibility of limiting the message length in a verbose manner. NiceGUI is taking up the responsibility, then.
Notable changes:
* Refactor CSS to share styling between the existing disconnect popup ... | diff --git a/nicegui/static/nicegui.css b/nicegui/static/nicegui.css
index 904769a63e..a4726dd8d5 100644
--- a/nicegui/static/nicegui.css
+++ b/nicegui/static/nicegui.css
@@ -265,8 +265,8 @@ h6.q-timeline__title {
outline: none;
}
-/* connection popup */
-#popup {
+/* connection popup & too-long-message popup */
... | 2 | 1 | 1 | [{"id": "G0", "claim": "It would be much better to implement chunking of large messages instead of showing an error popup.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should not serialize every message twice just to measure its length; it should ... | null |
zauberzeug__nicegui__4678 | zauberzeug/nicegui | 4,678 | defect | 31b8b1ccd8a1cd46e8d704097a565c511616693a | 5fa591ea2a3d203247929d06060f140fd9203cf8 | fix `ui.codemirror` on JS UTF-16-based indexing (memoize JS length per char + bisect) | This PR is in response to #4676 being merged, implementing the approach at https://github.com/zauberzeug/nicegui/pull/4578#issuecomment-2816803235 to fix #4575
Recap of the technique:
> Maintain a list `self._cumulative_js_length`, same length as the Python string, which stores the number of UTF-16 code points ... | diff --git a/nicegui/elements/codemirror.py b/nicegui/elements/codemirror.py
index 47c4f14692..fa4f69a285 100644
--- a/nicegui/elements/codemirror.py
+++ b/nicegui/elements/codemirror.py
@@ -6,6 +6,8 @@
from nicegui.elements.mixins.value_element import ValueElement
from nicegui.events import GenericEventArguments, Ha... | 4 | 4 | 4 | [{"id": "G0", "claim": "The PR's old logic for preserving the cumulative JS lengths is buggy when a chunk inserts a multi-code-unit character such as an emoji (which counts as 2 code units), corrupting the maintained cumulative array.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
zauberzeug__nicegui__5129 | zauberzeug/nicegui | 5,129 | defect | 933bfcc0e9db672b3fa5591489124ad35ef02e92 | 91871d56d266b27035232128f0e443dbc1646a5a | Re-initialize `process_pool` if it was broken by a bad `run.cpu_bound` | ### Motivation
Fixes #4980, where we see if the process pool is broken in a manner of process termination, there is no way for the user to recover it without resorting to directly writing to `run.process_pool = ProcessPoolExecutor()`
### Implementation
This implementation checks if the process pool is broken a... | diff --git a/nicegui/run.py b/nicegui/run.py
index 80a88d0e07..851084b446 100644
--- a/nicegui/run.py
+++ b/nicegui/run.py
@@ -3,6 +3,7 @@
import sys
import traceback
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
+from concurrent.futures.process import BrokenProcessPool
from functools impor... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `raise e from None` in the broken-pool repair path suppresses the exception context (the \"During handling of...\" chain) that is helpful to identify and fix the root cause; it should instead re-raise in a way that preserves it (e.g. a bare `raise` or `raise RuntimeError from e`).", "categor... | null |
zauberzeug__nicegui__5303 | zauberzeug/nicegui | 5,303 | defect | 6dc42165a70eb15224d3c132aca433a9d480befd | 9bedc1911ca097b3c28e76a83a5fc5911d533bf0 | Lazy imports for `ui` module using PEP 562 `__getattr__` | ### Motivation
`from nicegui import ui` eagerly imports every UI element, pulling in heavy transitive dependencies (pyecharts, plotly, etc.) even when only a few elements are used. This adds significant startup time. Lazy imports defer these loads until the element is actually accessed.
See also: #5684
### Imp... | diff --git a/nicegui/client.py b/nicegui/client.py
index e0ccd5fb1a..63d5754306 100644
--- a/nicegui/client.py
+++ b/nicegui/client.py
@@ -18,6 +18,18 @@
from .awaitable_response import AwaitableResponse
from .dependencies import generate_resources
from .element import Element
+
+# HACK: Hoist all importmap-based el... | 11 | 11 | 6 | [{"id": "G0", "claim": "Accessing an attribute obtained via `from nicegui import ui` (e.g. `ui.label`) a second time errors out because the lazy-import mechanism fails to cache it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`ui.clipboard` is tot... | null |
zauberzeug__nicegui__5510 | zauberzeug/nicegui | 5,510 | defect | 6e65e307d7d10c9435bfe9dd1be05538cd38d8e4 | 37a8ae7edeec23b98345dd14a3d7d56feac3438e | Ensure raw error for API exceptions by marking NiceGUI page requests in request scope | ### Motivation
Fix #5508, where NiceGUI returns the HTML for the "sad face error page" under this FastAPI GET request:
```py
@app.get("/api_error")
def api():
return {"response": 1/0}
```
Problems:
- Wasteful in bandwidth
- Difficult to parse and detect (remember: `client_id` is dynamic)
- Non API... | diff --git a/nicegui/client.py b/nicegui/client.py
index 4e90737c71..9b0135cc4f 100644
--- a/nicegui/client.py
+++ b/nicegui/client.py
@@ -85,6 +85,9 @@ def __init__(self, page: page, *, request: Request | None = None) -> None:
self.page = page
self.outbox = Outbox(self)
+ if self._request is... | 1 | 1 | 1 | [{"id": "G0", "claim": "Exceptions in raw API endpoints are logged twice because log.exception(exception) runs before the early exit; the reviewer asks to move it below the early exit, or alternatively return a PlainTextResponse instead of raising.", "category": "correctness", "verdict": "supported", "priority": "P1", ... | null |
zauberzeug__nicegui__5578 | zauberzeug/nicegui | 5,578 | defect | dcfda542b3a6e57bebfc2ab5d019e60c3d2c1a51 | d0b44640e40c041c5572ef2a393b2e6e716a285b | Introduce on_click for ui.echart | ### Motivation
Fix #5576, where in the case of clicking indicator label, all we have in `e.args` is key `componentType` and `name`, causing library code to throw an error.
But #5577 no good because it shoehorns the component click into point click handler, which has a risk of breaking downstream user code expect... | diff --git a/nicegui/elements/echart/echart.js b/nicegui/elements/echart/echart.js
index e1cdd1bfc5..09cada6f08 100644
--- a/nicegui/elements/echart/echart.js
+++ b/nicegui/elements/echart/echart.js
@@ -22,7 +22,7 @@ export default {
}
this.chart = echarts.init(this.$el, theme_name, { renderer: this.rendere... | 4 | 4 | 2 | [{"id": "G0", "claim": "The PR should add tests and a demo for the new click event.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new on_click handler possibly assigns None to name via e.args.get('name') even though EChartComponentClickEventArgumen... | null |
zauberzeug__nicegui__5614 | zauberzeug/nicegui | 5,614 | defect | 59fa9424c470f1b12c5d368985fa36e21fda706b | 3598430b07903fb975550246c78b4770f85ff06a | `ui.leaflet`: invalidateSize on unhide | ### Motivation
Fixes #2338, in which we see that `ui.leaflet` broken if it was hidden on creation, then subsequently unhidden.
While Leaflet 2.0 fixes it, the [alpha was in May last year but now we are in January the next year](https://leafletjs.com/2025/05/18/leaflet-2.0.0-alpha.html)...
### Implementation
... | diff --git a/nicegui/elements/leaflet/leaflet.js b/nicegui/elements/leaflet/leaflet.js
index 046a8d66e8..7d86ad4c4d 100644
--- a/nicegui/elements/leaflet/leaflet.js
+++ b/nicegui/elements/leaflet/leaflet.js
@@ -138,6 +138,13 @@ export default {
this.$emit("init");
clearInterval(connectInterval);
}, 1... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test_leaflet_unhide test depends on external server availability/rate limits, is failing, and the reviewer is worried it will haunt the CI pipeline with flakiness, asking whether there is an offline way to test it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope... | null |
zauberzeug__nicegui__5652 | zauberzeug/nicegui | 5,652 | defect | 1928c6c7d8189b2a1cf3e4daa7215ac278d7df75 | 9466c31954a720be376244b6fb9c0869b0a2c2e9 | Write to props beforeUnmount for `LOOPBACK = False` elements | ### Motivation
Magically fixes https://github.com/zauberzeug/nicegui/issues/2149.
Stolen from predecessor #5612
> Let us recap the problem space:
>
> https://github.com/zauberzeug/nicegui/blob/b11972f063b976174f0cd4a4af4a9ead18ac2a10/nicegui/elements/input.js#L19-L28
>
> - When an `ui.input` is unmounte... | diff --git a/nicegui/elements/basic_input.js b/nicegui/elements/basic_input.js
new file mode 100644
index 0000000000..987fa6bde1
--- /dev/null
+++ b/nicegui/elements/basic_input.js
@@ -0,0 +1,31 @@
+export default {
+ props: {
+ value: String,
+ id: String,
+ },
+ data() {
+ return {
+ inputValue: this... | 8 | 7 | 3 | [{"id": "G0", "claim": "The reviewer does not understand why input elements are wired to editor.js and asks for elaboration on that design.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "A test is red on this pull request.", "category": "testing", "verdict"... | null |
zauberzeug__nicegui__5653 | zauberzeug/nicegui | 5,653 | defect | 58d5f7b12268980229deb63e986c48827240ade7 | 13ee990a166225a13772aaa70d6efcb0edd2758c | Use path instead of base64 for PIL handling | ### Motivation
#5583 reveals that using base64 encoding for PIL images is a bad idea when the PIL image is large.
This is due especially to how we send the entire props dict over
### Implementation
- Use `pil_to_tempfile` instead.
- SourceElement expose a new private property `self._source_for_cleanup`
... | diff --git a/.gitignore b/.gitignore
index f3ced71f79..c59d678c9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
__pycache__/
+.mypy_cache/
+.pytest_cache/
+.ruff_cache/
*.egg-info/
.*.swp
/test.py
diff --git a/nicegui/elements/image.py b/nicegui/elements/image.py
index a8ed48306f..83125f6f81 100644
--- a... | 7 | 6 | 4 | [{"id": "G0", "claim": "weakref.finalize(self, self._cleanup_source) passes a bound method that holds a reference to self, creating a reference cycle that prevents garbage collection so the finalizer never triggers and temp files are never cleaned up; use a module-level cleanup function with the data passed as argument... | null |
zauberzeug__nicegui__5738 | zauberzeug/nicegui | 5,738 | defect | 2941a963ed4600690d45664d6eb19009a1e1324f | 5b91e2730d546b84cee36a96ff566fce43142aee | Add nested dictionary binding support | ### Motivation
Accomplishes https://github.com/orgs/zauberzeug/projects/6?pane=issue&itemId=82941257 (https://github.com/zauberzeug/nicegui/discussions/2978)
Binding UI elements to nested dictionary keys currently requires manually managing intermediate
structures. This PR adds first-class support for nested pat... | diff --git a/nicegui/binding.py b/nicegui/binding.py
index 714ae67361..8db915ab9c 100644
--- a/nicegui/binding.py
+++ b/nicegui/binding.py
@@ -13,6 +13,7 @@
from typing_extensions import dataclass_transform
from . import core
+from .binding_nested import PropertyName, _display_name, _normalize_name, _path_contains_... | 13 | 12 | 4 | [{"id": "G0", "claim": "In `_set_attribute`, traversing a nested path on a non-dict object silently does `setattr(current, key, {})` when an intermediate attribute is missing, mutating user objects in surprising and risky ways; auto-creation should be limited to dict objects, documented explicitly, or replaced by an er... | null |
zauberzeug__nicegui__5772 | zauberzeug/nicegui | 5,772 | defect | 159da2ab96792d6926a7ef0b8b5e25115196cdbf | 92b66c9f46cfc7c3410af899edbb9c8e10821e98 | Add support for typing numbers in UserInteraction | ### Motivation
See discussion #5771: Calling `user.find(ui.number).type('42')` in user simulation tests raises an `AssertionError` because `type()` only supports `ui.input`, `ui.editor`, and `ui.codemirror`. There's no reason `ui.number` shouldn't work too.
### Implementation
- Added `ui.number` as a supported... | diff --git a/nicegui/testing/user_interaction.py b/nicegui/testing/user_interaction.py
index 398fe5baab..8e2b4741df 100644
--- a/nicegui/testing/user_interaction.py
+++ b/nicegui/testing/user_interaction.py
@@ -64,8 +64,12 @@ def type(self, text: str) -> Self:
for element in self.elements:
... | 3 | 1 | 1 | [{"id": "G0", "claim": "Unlike the three other supported elements, type() on ui.number does not take the prior value into account (it overwrites instead of appending) — the reviewer asks whether this is intentional.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
zauberzeug__nicegui__5806 | zauberzeug/nicegui | 5,806 | defect | ab47f68040f87a436f90fe9a720a62228d114295 | 756e61a5eda37389b619de8eccbb2e8c2e61444b | Cancel connection-wait task when page coroutine completes first | (Ala Claude, the investigation logs are in the issue. This investigation was spurred when I kicked off a bunch of playwright e2e tests and they started failing randomly, inconsistently.)
### Motivation
`page.py`'s `decorated()` creates two competing tasks via `asyncio.wait(return_when=FIRST_COMPLETED)`: the p... | diff --git a/nicegui/page.py b/nicegui/page.py
index 4c3fdeada9..140a61c5cf 100644
--- a/nicegui/page.py
+++ b/nicegui/page.py
@@ -184,6 +184,8 @@ async def wait_for_result() -> Response | None:
task.cancel()
log.warning(f'Response for {client.page.path} not ready after {self.r... | 2 | 2 | 1 | [{"id": "G0", "claim": "The regression test added in this PR passes both with and without the fix (and, with the added delay, fails both with and without it), so it is not testing anything meaningful.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The r... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.