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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
algesten__ureq__258 | algesten/ureq | 258 | defect | a0b88926fa9cb3ea0773caa805d305e44f76ae3d | 31d400c7c748015fe60e825d3f6e5f194ee1eb9a | Remove status methods on Response. | Now that Responses with non-2xx statuses get turned into `Error`, there is less need for these. Also, surveying the set of public crates that depend on ureq, none of them use these methods. It seems that users tend to prefer checking the status code directly. | diff --git a/src/request.rs b/src/request.rs
index 18a882aa..edd622b8 100644
--- a/src/request.rs
+++ b/src/request.rs
@@ -121,7 +121,7 @@ impl Request {
let response =
unit::connect(unit, true, 0, reader, false).map_err(|e| e.url(url.clone()))?;
- if response.error() && self.error_on_non... | 1 | 1 | 0 | [{"id": "G0", "claim": "The status helper methods on Response are higher-level API that remain useful alongside the changes to Error, so they should be kept rather than removed.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
algesten__ureq__259 | algesten/ureq | 259 | defect | a0b88926fa9cb3ea0773caa805d305e44f76ae3d | d8dc002e00dfce2cc99651eb832599036e575397 | De-redundantize Error kinds. | Change "Bad" to "Invalid" in error names, mimicking io::Error::ErrorKind.
Change InvalidProxyCreds to ProxyUnauthorized.
Change DnsFailed to just Dns (the fact that there was a failure is implicit
in the fact that this was an error). | diff --git a/src/error.rs b/src/error.rs
index 5739c431..147b7596 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -99,29 +99,27 @@ impl Error {
#[derive(Debug, PartialEq, Clone, Copy)]
pub enum ErrorKind {
/// The url could not be understood.
- BadUrl,
+ Url,
/// The url scheme could not be understood... | 2 | 2 | 0 | [{"id": "G0", "claim": "The ErrorKind variant `Url` (renamed from `BadUrl`) should be named `InvalidUrl` instead, following the naming pattern of `std::io::ErrorKind`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`InvalidStatus` would suggest the statu... | null |
algesten__ureq__310 | algesten/ureq | 310 | defect | a66abdd285ba90866fedb85334d53b4432652155 | a1c9059f7e9b35477a90d2b97612cd66119912db | Additional Request functions | Provide functions on `Request` to inspect the state.
`.method()` returns GET, POST etc and `.url()` returns the url _as a &str;_, since this is our "native" url format.
Sadly there's an inconsistency carried over from old where `.set` sets a header, and `.query` sets a query parameter. To inspect headers, we hav... | diff --git a/src/error.rs b/src/error.rs
index 102bf03a..15a9aed0 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,4 +1,4 @@
-use url::Url;
+use url::{ParseError, Url};
use std::error;
use std::fmt::{self, Display};
@@ -315,6 +315,14 @@ impl From<Transport> for Error {
}
}
+impl From<ParseError> for Error... | 4 | 1 | 0 | [{"id": "G0", "claim": "The `.url()` accessor should return a `Url` rather than a `&str`, which would also let the PR drop the complexity of `query_params()`, `query_values()` and `ParsedUrl`.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Having `all_query_p... | null |
algesten__ureq__445 | algesten/ureq | 445 | defect | 876d5757a70af8db34434f443946968aad5c615b | 4d0fd0cb1f95e23e2c401db17c22dcb1e50d9f99 | Preserve Authorization header in same host redirects | This PR builds on the work by @llde in #443.
Currently the stripping of auth headers on redirect is done at the last stage, just when serializing the `Unit` to the socket stream.
This PR moves the logic for stripping auth header to the construction of the `Unit` for the redirect. That makes the logic testable (a... | diff --git a/src/agent.rs b/src/agent.rs
index 2ff1bc03a..9b756cd9f 100644
--- a/src/agent.rs
+++ b/src/agent.rs
@@ -14,6 +14,21 @@ use {
cookie_store::CookieStore,
};
+/// Strategy for keeping `authorization` headers during redirects.
+///
+/// `Never` is the default strategy and never preserves `authorization... | 2 | 1 | 1 | [{"id": "G0", "claim": "The https-scheme restriction on RedirectAuthHeaders::SameHost doesn't make sense since the authorization header may be set on non-https; instead the scheme should be required to be the same (so an https request cannot leak the header to http).", "category": "design", "verdict": "supported", "pri... | null |
algesten__ureq__565 | algesten/ureq | 565 | defect | f36c1403152a0d0ed93d82f35f20b2bc36a16377 | 2c4c55258f3d2d3f8302f265f3d654bbfc1c952b | Redesign pooling mechanic | Introduce PoolReturner, a handle on an agent and a PoolKey that is capable of returning a Stream to a Pool. Make Streams keep track of their own PoolReturner, instead of having PoolReturnRead keep track of that information.
For the LimitedRead code path, get rid of PoolReturnRead. Instead, LimitedRead is responsible... | diff --git a/src/pool.rs b/src/pool.rs
index 812365d7..1a96cba4 100644
--- a/src/pool.rs
+++ b/src/pool.rs
@@ -3,11 +3,9 @@ use std::collections::{HashMap, VecDeque};
use std::io::{self, Read};
use std::sync::Mutex;
-use crate::response::LimitedRead;
use crate::stream::Stream;
use crate::{Agent, Proxy};
-use ch... | 5 | 2 | 1 | [{"id": "G0", "claim": "Consume self in PoolReturner::return_to_pool so a stream can only be returned to the pool once.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "PoolKey may not need its Clone derive if the lifecycle can be limited to a single use.", ... | null |
algesten__ureq__67 | algesten/ureq | 67 | defect | bc2cb57e6436c20fd0f7c5808b5d036429431c4e | 599048ec58db6192fa894fe6eb48f776a489f092 | Add overall timeout for requests. | This deprecates timeout_read() and timeout_write() in favor of
timeout(). The new timeout method on Request takes a Duration instead
of a number of milliseconds, and is measured against overall request
time, not per-read time.
Once a request is started, the timeout is turned into a deadline
specific to that call... | diff --git a/src/request.rs b/src/request.rs
index 958208cd..0ce97cf0 100644
--- a/src/request.rs
+++ b/src/request.rs
@@ -1,5 +1,6 @@
use std::io::Read;
use std::sync::{Arc, Mutex};
+use std::time;
use lazy_static::lazy_static;
use qstring::QString;
@@ -46,6 +47,7 @@ pub struct Request {
pub(crate) timeout_... | 6 | 3 | 2 | [{"id": "G0", "claim": "The docs for the deprecated read_timeout and write_timeout methods should note that the overall timeout takes precedence when both are set.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Break the new timeout tests out of a... | null |
algesten__ureq__690 | algesten/ureq | 690 | defect | 9092222fbd89f4ab73f6be8cb969069df72f7500 | b34070009cc899b5b2b7ff15c9beb7595a093281 | Update to rustls 0.22 | DO NOT MERGE until rustls 0.22 is actually released. Right now this uses a Cargo.toml patch to get the latest version before it's released. | diff --git a/Cargo.lock b/Cargo.lock
index af5aedb2c..0744104d2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -247,6 +247,17 @@ dependencies = [
"percent-encoding",
]
+[[package]]
+name = "getrandom"
+version = "0.2.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe9006bed769170c11... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider also updating the rustls-webpki dependency to 0.102 alongside the rustls 0.22 upgrade.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
algesten__ureq__85 | algesten/ureq | 85 | defect | 3014f58a28eee69543fea156835aa053a6c91097 | c61cf84bd53ec3b49a65fa2bff509c63ff7b854d | Add smoke test in examples. | This loads a list of top domain names (e.g. from
https://tranco-list.eu/) and tries to fetch them all, in parallel. This
can be used to exercise ureq and find panics. | diff --git a/Cargo.toml b/Cargo.toml
index ed994363..4071b672 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,3 +41,9 @@ native-tls = { version = "0.2", optional = true }
[dev-dependencies]
serde = { version = "1", features = ["derive"] }
+rayon = "1.3.0"
+rayon-core = "1.7.0"
+chrono = "0.4.11"
+
+[[example]]
+nam... | 2 | 2 | 0 | [{"id": "G0", "claim": "The hostnames iterator is needlessly collected into a Vec<String> before the for loop, since `for` can iterate over the iterator directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `Bytes` type alias is misleadin... | null |
algolia__algoliasearch-client-go__21 | algolia/algoliasearch-client-go | 21 | defect | 50949ccec04b06d3fc062b159cc34c4a31e8075c | eb766b2467f21916868d35d18d5bf417e8b11d72 | Transport: refactor for httpClient creator + remove reflect | - Centralized code for creating a new http client.
- Removed reflect calls in favor of simpler plain type switches.
- Go fmt'd code in /algoliasearch.
| diff --git a/algoliasearch/Client.go b/algoliasearch/Client.go
index 8dc7ae1ef..668933df3 100644
--- a/algoliasearch/Client.go
+++ b/algoliasearch/Client.go
@@ -3,12 +3,12 @@ package algoliasearch
import (
"crypto/hmac"
"crypto/sha256"
+ "encoding/base64"
"encoding/hex"
"errors"
"reflect"
- "time"
"strings... | 1 | 1 | 0 | [{"id": "G0", "claim": "In EncodeParams the type switch should bind the variable (`switch value := value.(type)`) so the case statements no longer need to cast `value`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algolia__algoliasearch-client-go__411 | algolia/algoliasearch-client-go | 411 | defect | f3d66ff2f3dff29b5c80c12c355c2e64eb309af1 | 702e88244963e53ba0fbe604c3fdd7f54299c6d3 | Add clickAnalytics to search option parameters | ## Overview
* Added `clickAnalytics` boolean parameter to acceptable search options
* Added `queryID` to search response
## Why we need it
When we implement Click Analytics feature, we need to add `clickAnalytics: true` to search option.
https://www.algolia.com/doc/tutorials/getting-started/how-to-implement-... | diff --git a/algoliasearch/client_test.go b/algoliasearch/client_test.go
index c312da447..3e5a8a2d1 100644
--- a/algoliasearch/client_test.go
+++ b/algoliasearch/client_test.go
@@ -304,6 +304,10 @@ func TestMultipleQueries(t *testing.T) {
IndexName: "TestMultipleQueries_products",
Params: Map{"query": "compu... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename the `TestIndexAndSearch:` log-message prefix in the new test block to `TestIndexingAndSearch:` so it matches the other logs and the test function name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add type checki... | null |
algolia__algoliasearch-client-go__420 | algolia/algoliasearch-client-go | 420 | defect | 0e93e1e12a68ef6043ed6495a84c76443d78f058 | 8e56ba67ec0f6cff686f2a864dc830d4eb9cc634 | Introduce Multi Cluster Management (ie MCM) | Introduce Multi Cluster Management 🎉
Any feedback is very welcome since I'm fairly new to Go.
- [x] Implement the 7 functions
- [x] Write the tests
- [x] Update documentation snippets (https://github.com/algolia/doc/pull/1537)
| diff --git a/algoliasearch/algoliasearch.go b/algoliasearch/algoliasearch.go
index 006bee2ee..534540d84 100644
--- a/algoliasearch/algoliasearch.go
+++ b/algoliasearch/algoliasearch.go
@@ -172,6 +172,55 @@ type Client interface {
// also accepts extra RequestOptions.
MultipleQueriesWithRequestOptions(queries []Inde... | 13 | 13 | 1 | [{"id": "G0", "claim": "The ListClusters doc comment should read \"all available clusters\" instead of \"all the cluster available\" and end with a dot.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ListUserIDs doc comment is missing a dot at... | null |
algolia__algoliasearch-client-go__433 | algolia/algoliasearch-client-go | 433 | defect | eaa9f970f3803cd3a3baea7340a9a5b7a1f60e91 | 6e8dd4a2918c8422b7723ec9832f5c181536d028 | fix: objectID is required to deleteObject | | Q | A
| ----------------- | ----------
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Need Doc update | no
## What was changed
`Index::delete_object` needs a non-empty objectID
## Why it was changed
If the object_id is empty, the entire index wi... | diff --git a/algoliasearch/index.go b/algoliasearch/index.go
index 5472189e8..40c365e32 100644
--- a/algoliasearch/index.go
+++ b/algoliasearch/index.go
@@ -111,6 +111,11 @@ func (i *index) DeleteObject(objectID string) (res DeleteTaskRes, err error) {
}
func (i *index) DeleteObjectWithRequestOptions(objectID strin... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test so the empty-objectID fix is verified and regressions are prevented in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__algoliasearch-client-go__47 | algolia/algoliasearch-client-go | 47 | defect | 09e1c139bd47f5df386c3313140abed92ada5a61 | 241e5ecdfa78f4989df9203f949dcd7af90b5c4f | Expose interfaces instead of struct types | This allows easier mocking of Algolia within application tests
| diff --git a/algoliasearch/algoliasearch.go b/algoliasearch/algoliasearch.go
new file mode 100644
index 000000000..f87a17874
--- /dev/null
+++ b/algoliasearch/algoliasearch.go
@@ -0,0 +1,225 @@
+package algoliasearch
+
+// Client is a representation of an Algolia application. Once initialized it
+// allows manipulation... | 3 | 2 | 0 | [{"id": "G0", "claim": "The forced type assertion `it.(*indexIterator).loadNextPage()` in `newIndexIterator` is unsatisfactory and the function should be restructured so the call happens without type-casting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
algolia__algoliasearch-client-go__491 | algolia/algoliasearch-client-go | 491 | defect | 486e444a7f72ce8c2681ccc54810b967787aa6a6 | 419be53bde652177e0444db74a23be21e4ac6638 | Handle arbitrary search options | | Q | A
| ----------------- | ----------
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Related Issue | #490
| Need Doc update | no
## Describe your change
This PR introduces a new option under the `opt` package named `opt.ExtraOptions` which lets... | diff --git a/algolia/internal/gen/functions.go b/algolia/internal/gen/functions.go
index 6aa10819c..e2d06d21b 100644
--- a/algolia/internal/gen/functions.go
+++ b/algolia/internal/gen/functions.go
@@ -105,7 +105,10 @@ func convertInterfaceToString(defaultValue interface{}) string {
s = fmt.Sprintf("%d", v)
case st... | 5 | 2 | 1 | [{"id": "G0", "claim": "When a key in the map passed to a later opt.ExtraOptions was already set by an earlier one, the merge silently overrides it, and the reviewer asks whether an error should be returned instead.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
algolia__algoliasearch-client-go__513 | algolia/algoliasearch-client-go | 513 | defect | 4c56d65417b47dd1302db6ced35fe9268ec2f331 | 91b7844662d9384dabc4b7fae9a36d1d5246a396 | feat(index): add exists method | | Q | A
| ----------------- | ----------
| Bug fix? | no
| New feature? | yes <!-- please update the /CHANGELOG.md file -->
| BC breaks? | no
| Related Issue | Fix #512 <!-- will close issue automatically, if any -->
| Need Doc update | yes
## Describe your... | diff --git a/ChangeLog.md b/ChangeLog.md
index d40deb392..76054eab1 100755
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,11 @@
# ChangeLog
+## [Unreleased](https://github.com/algolia/algoliasearch-client-go/compare/2.28.0...master) (2019-07-08)
+
+### Changes
+
+- **added:** Implement Index.Exists ([21b33e4](http... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should not carry a manual ChangeLog.md update commit; instead the change should be recorded by adding a [changelog] line to the end of a commit message so the polyglot release tool generates the ChangeLog.", "category": "documentation", "verdict": "supported", "priority": "P2", ... | null |
algolia__algoliasearch-client-go__547 | algolia/algoliasearch-client-go | 547 | defect | f17d33a67f55c8abbc27e217268e917f9ab2319f | 67588a44ac999733e49776ada17b6f077e89de68 | feat(mcm): add Client.AssignUserIDs() method (#545) | | Q | A
| ----------------- | ----------
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Related Issue | Fix #545
| Need Doc update | yes
## Describe your change
Multiple MCM user IDs can now be assigned in a single call by using
`Client.AssignUser... | diff --git a/algolia/search/client_interface.go b/algolia/search/client_interface.go
index c8fba9c41..5a7213100 100644
--- a/algolia/search/client_interface.go
+++ b/algolia/search/client_interface.go
@@ -41,6 +41,7 @@ type ClientInterface interface {
ListUserIDs(opts ...interface{}) (res ListUserIDsRes, err error)
... | 3 | 3 | 3 | [{"id": "G0", "claim": "In the assignment-check block of TestMCM, the test should run the SearchUserIDs check for every assigned userID, not just for userIDs[0].", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In TestMCM, the removal step should remove a... | null |
algolia__algoliasearch-client-go__550 | algolia/algoliasearch-client-go | 550 | defect | 905a238214d523b11a59a993a64645eff2df9a27 | ab64254709b405aa80c39dbd6c9805d50247a40c | Invalid validuntil for get secured api key remaining validity | **Summary**
The `errs.ErrValidUntilInvalid` error was introduced to signify that the
`validUntil` string parameter of a secured API key could not be parsed
as an integer by the `Client.GetSecuredAPIKeyRemainingValidity()`
method. However, since this string value is always extracted thanks to a
regexp looking for... | diff --git a/algolia/errs/errors.go b/algolia/errs/errors.go
index d95f81ad0..dca56b672 100644
--- a/algolia/errs/errors.go
+++ b/algolia/errs/errors.go
@@ -15,7 +15,6 @@ var (
ErrEmptySecuredAPIKey = errors.New("secured API key cannot be empty")
ErrInvalidSecuredAPIKey = errors.New("invalid secured API key, plea... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error returned when a secured API key's validUntil parameter is present but invalid is confusing to users, so the error should be renamed or its message reworded to cover both the not-found and the invalid cases.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int... | null |
algolia__algoliasearch-client-go__575 | algolia/algoliasearch-client-go | 575 | defect | 1f521b355bea3a0d5a3bf04a836b624bcdbf2fed | b4604d8615bc51b0a92839afcaa0101a0a919210 | fix(search): correctly encode index name in URIs (#574) | We've recently identified that the user-provided index name, when passed
to the URL internally, was not URL-encoded as one would expect. This
could result in the user targetting wrong indices, either when using the Go
client, or other API clients, including frontend integrations.
After multiple internal discussio... | diff --git a/algolia/search/index.go b/algolia/search/index.go
index 066c62d47..ec8ec2ea8 100644
--- a/algolia/search/index.go
+++ b/algolia/search/index.go
@@ -3,6 +3,7 @@ package search
import (
"fmt"
"net/http"
+ "net/url"
"github.com/algolia/algoliasearch-client-go/v3/algolia/call"
"github.com/algolia/al... | 1 | 1 | 1 | [{"id": "G0", "claim": "Escaping the index name with url.QueryEscape when building URIs may be a breaking change for existing customers.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__algoliasearch-client-go__644 | algolia/algoliasearch-client-go | 644 | defect | d154aa9cfd98aea26068b234228cc8d5926cd738 | 4f234aef69d3d7487690b1c64491592b74330489 | feat: Dictionaries API methods | | Q | A
| ----------------- | ----------
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Need Doc update | yes
## Describe your change
This PR adds the implementation of [Dictionaries API methods](https://www.algolia.com/doc/rest-api/search/#dictionaries-e... | diff --git a/algolia/internal/gen/functions.go b/algolia/internal/gen/functions.go
index 9865eb0e9..fe8aeeccc 100644
--- a/algolia/internal/gen/functions.go
+++ b/algolia/internal/gen/functions.go
@@ -113,6 +113,7 @@ func convertInterfaceToString(defaultValue interface{}) string {
map[string]string,
map[string][]... | 17 | 8 | 3 | [{"id": "G0", "claim": "SetDictionarySettings issues its PUT with the call.Read call type and should use call.Write instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The exported method name DictionaryEntires is misspelled and should be Dictio... | null |
algolia__algoliasearch-client-go__690 | algolia/algoliasearch-client-go | 690 | defect | 1a0a1af599143f1d346fe05ec700daea6419ed97 | 580136e49cdfd483da7ead9bad5bcfe0a6fa8c40 | fix: Suggestion config bool value support | | Q | A
| ----------------- | ----------
| Bug fix? | yes
| New feature? | yes/no <!-- please update the /CHANGELOG.md file -->
| BC breaks? | no
| Related Issue | Fix #671
| Need Doc update | no
## Describe your change
This PR introduces `BoolOrStringAr... | diff --git a/algolia/suggestions/bool_or_string_array.go b/algolia/suggestions/bool_or_string_array.go
new file mode 100644
index 000000000..45b1e7284
--- /dev/null
+++ b/algolia/suggestions/bool_or_string_array.go
@@ -0,0 +1,52 @@
+package suggestions
+
+import "encoding/json"
+
+// BoolOrStringArray can hold either a... | 3 | 3 | 2 | [{"id": "G0", "claim": "Fix the typo in the added comment: 'singualr' should be 'singular' (suggested replacement text given).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'omitempty' tag may not work now that Languages is a non-nullable Boo... | null |
algolia__algoliasearch-client-go__699 | algolia/algoliasearch-client-go | 699 | defect | c00d8f8175b3f28135e34306bf931a47f6e419a9 | 0f4bef5013fdafdf3f4b47cf79be16890c858ee7 | fix(indexing): replaceAllObjects blocked if called for non-existent index | | Q | A
| ----------------- | ----------
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Related Issue | Fix #694
| Need Doc update | no
## Describe your change
Add a check if the index exists in the `ReplaceAllObjects` function body.
If the index... | diff --git a/algolia/search/index_objects.go b/algolia/search/index_objects.go
index fc0303ed1..9b47eb4c5 100644
--- a/algolia/search/index_objects.go
+++ b/algolia/search/index_objects.go
@@ -344,6 +344,27 @@ func (i *Index) browserForObjects(params searchParams, opts ...interface{}) func
// prevent issues, one may w... | 4 | 4 | 2 | [{"id": "G0", "claim": "Remove the stray blank line this pull request added immediately after the ReplaceAllObjects function signature.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the SaveObjects error branch the wrapping uses `err`, which... | null |
algolia__algoliasearch-client-go__718 | algolia/algoliasearch-client-go | 718 | defect | 409905923cc88e3e676551b778ab0f7db42993ff | 597aab9e7c62095220b05bf93f727cebfd02e839 | fix: handle composableFilterOption deserialization for legacy usage | | Q | A
| ----------------- | ----------
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Need Doc update | no
## Describe your change
One-string legacy filter deserialization behavior is fixed to handle parenthesis usage with multiple groups.
Added more... | diff --git a/algolia/internal/opt/facet_filters_test.go b/algolia/internal/opt/facet_filters_test.go
index 22136f786..9666376b4 100644
--- a/algolia/internal/opt/facet_filters_test.go
+++ b/algolia/internal/opt/facet_filters_test.go
@@ -117,10 +117,14 @@ func TestFacetFilters_LegacyDeserialization(t *testing.T) {
},... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new test case's payload should read `color:blue` instead of `color:black` (and the test should also check the payload itself, not just its length).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Bracket `[` payloads appear to... | null |
algolia__docsearch__1183 | algolia/docsearch | 1,183 | defect | 4b0eec030a90d9ba5eea99711c50d197bb07ccbf | 2b7197fedf69ca08af95601fdd116061c20835da | feat(translations): expose Button and Modal translations | ## Summary
This PR exposes a new `translation` property to allow translating any raw text or aria-labels of the `DocSearch`, `DocSearchButton` and `DocSearchModal` components.
_We probably miss some `aria-labels` or `title`s so don't hesitate to point them out_
## Next steps
Some test cases are context/stat... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 33a89c6796..1deccb2482 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -157,8 +157,7 @@ workflows:
requires:
- build
- test_types
- # TODO: Enable once the test env setup is ready.
- # - test_unit
+ ... | 5 | 3 | 0 | [{"id": "G0", "claim": "The AlgoliaLogo props should be named/structured `translations` for consistency with the other components instead of a bare `searchByText` prop.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Translating whole sentences as fixed s... | null |
algolia__docsearch__1306 | algolia/docsearch | 1,306 | defect | 84f48899a71747d09c29cb5611783e19e73e019f | 6ef3a39e8dfb9919074cc048df5e73a27b968609 | fix(footer): make SVG accessible | ## Summary
After feedbacks from https://twitter.com/SaraSoueidan/status/1491487611831173131, this PR aims at making the footer SVGs accessible.
`keys` or the `Algolia` logo or were not announced by screen readers, this should fix it but I'm not sure if it's the most optimal way to do it. | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 46f6a1d14f..ea601e1d27 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -10,7 +10,7 @@
},
{
"path": "packages/docsearch-js/dist/umd/index.js",
- "maxSize": "28 kB"
+ "maxSize": "28.25 kB"
}
]
}
diff... | 7 | 2 | 1 | [{"id": "G0", "claim": "The logo SVG's aria-label should read 'Algolia Logo' rather than 'Algolia'.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The anchor wrapping the logo is probably missing an aria-label such as 'Powered by algolia.com'.", "cate... | null |
algolia__docsearch__1385 | algolia/docsearch | 1,385 | defect | 1219a68b6765959450bb54591d5cd2c2f3c7ca5c | 7aeb595fd364583a24a3eafee492861a75913052 | feat(deps): bump peer to React 18 | ## Summary
Bumps the React peer dependency to React 18.
In this PR we also:
- Add Cypress tests to the CI
- Update the current Jest tests to avoid `act` warnings
- Remove unused dependencies
Draft until I do more tests locally | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 347a8da83c..7540c8ec63 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -43,7 +43,7 @@ defaults: &defaults
cypress: &cypress
working_directory: ~/docsearch
docker:
- - image: cypress/browsers:node13.8.0-chrome81-ff75
+ - image: c... | 1 | 1 | 0 | [{"id": "G0", "claim": "It would be more reliable for the newly added cy.wait(1000) calls in the Cypress commands to wait on a .class/state instead of a fixed delay, and this should be applied to all the new wait() calls.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algolia__docsearch__1590 | algolia/docsearch | 1,590 | defect | 6af76488a7511aadc8aab3bd3163765acba1b849 | 5a1469197f33f62217ef015924d20be6190d463d | feat: enable `Cmd+K` shortcut when caps lock is on | The search shortcut should be work if even caps lock is on
cc @shortcuts
| diff --git a/packages/docsearch-react/src/useDocSearchKeyboardEvents.ts b/packages/docsearch-react/src/useDocSearchKeyboardEvents.ts
index 8a9919456d..0e660eb994 100644
--- a/packages/docsearch-react/src/useDocSearchKeyboardEvents.ts
+++ b/packages/docsearch-react/src/useDocSearchKeyboardEvents.ts
@@ -39,7 +39,7 @@ exp... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added in cypress/integration/search/actions.spec.ts covering the Cmd+K shortcut while caps lock is on.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__docsearch__2193 | algolia/docsearch | 2,193 | defect | 874e16a5d42e8657e6ab2653e9638cd2282ba408 | b22fef78ddae215eb0f9cf9c51d82b44974ec203 | fix(docsearch-react): add aria-hidden to SearchIcon and add accessible label to SearchBox input | There are 2 main changes in this PR:
- **Allows passing `aria-hidden` to the SearchIcon** so it can be hidden to assistive tech users. The unlabelled SVG can be accessed by screenreaders and can also get caught by automated accessibility audits. Since it's decorative, we can safely hide it with `aria-hidden="true"` in... | diff --git a/packages/docsearch-css/src/modal.css b/packages/docsearch-css/src/modal.css
index 3aa46e1910..5edf07a82e 100644
--- a/packages/docsearch-css/src/modal.css
+++ b/packages/docsearch-css/src/modal.css
@@ -551,6 +551,18 @@ svg.DocSearch-Hit-Select-Icon {
width: 20px;
}
+/* Hide element accessibly, so tha... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new hide-from-sight CSS class should get a more descriptive name such as .DocSearch-VisuallyHiddenForAccessibility.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the spread is only needed for aria-hidden, maybe... | null |
algolia__docsearch__2555 | algolia/docsearch | 2,555 | defect | ec351710b134c57bdbcad39e009dae8516f6e571 | 367cadf1a0773205a8c41d1963d2e311d73d66a9 | feat(v4): add new UI | ### Description
- UI refresh.
- Mobile-friendly design.
- New default styling and support for CSS overrides.
- Updates to the search bar and its various states.
| diff --git a/bundlesize.config.json b/bundlesize.config.json
index 3d00a7813d..4dfafeecc4 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -2,7 +2,7 @@
"files": [
{
"path": "packages/docsearch-css/dist/style.css",
- "maxSize": "3.25 kB"
+ "maxSize": "3.50 kB"
},
{
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The color on .DocSearch-Button (packages/docsearch-css/src/button.css line 34) should be var(--docsearch-muted-color) per the designs, or the rule could be removed entirely.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algolia__docsearch__2774 | algolia/docsearch | 2,774 | defect | 65e8f8e7d69e66de76f8d8e81dc4a11f1c8d5e46 | 011a82b4105c0324403bbe7e462c3bfa881e492d | feat(composable-api): Step 3, composable DocSearchModal | ## What
Enables the DocSearch Modal to be rendered within the composable API.
## Changes
- `@docsearch/modal` now relies on `@docsearch/react`
- `@docsearch/modal` wraps the standard components from `@docsearch/react` to be wired up to global state
- Adds tests for `@docsearch/core` and `@docsearch/modal`
## ... | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 4279da7d66..bf200cfebd 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -11,6 +11,14 @@
{
"path": "packages/docsearch-js/dist/umd/index.js",
"maxSize": "123 kB"
+ },
+ {
+ "path": "packages/docsearch-core... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider memoizing in DocSearchModal so that window.scrollY and props.portalContainer ?? document.body are not recalculated on every render and the entire Modal component does not re-render whenever any context value changes.", "category": "performance", "verdict": "supported", "priority": "P2",... | null |
algolia__docsearch__2826 | algolia/docsearch | 2,826 | defect | 2800eaf46f8da2821615f5f8e1abdc37a9a796e2 | 68a2151dd22378574fb326a6d719cb19c4c00645 | feat(js)!: expose instance API + lifecycle callbacks | ### Summary
- Exposes an **imperative instance API** for `@docsearch/js` and `@docsearch/sidepanel-js` (open/close/destroy, plus state getters).
- Adds **lifecycle callbacks** (ready/open/close) for both modal and sidepanel.
- Wires this through `@docsearch/core` / `@docsearch/react` via forwarded refs + `useImperat... | diff --git a/packages/docsearch-core/src/DocSearch.tsx b/packages/docsearch-core/src/DocSearch.tsx
index fbfa0f2ba1..59daa68b90 100644
--- a/packages/docsearch-core/src/DocSearch.tsx
+++ b/packages/docsearch-core/src/DocSearch.tsx
@@ -20,6 +20,26 @@ export type InitialAskAiMessage = {
export type OnAskAiToggle = (ac... | 4 | 3 | 1 | [{"id": "G0", "claim": "openSidepanel unconditionally sets the provider state to 'sidepanel' even when no sidepanel view has been registered, so calling DocSearchInstance.openSidepanel() on a plain modal instance leaves the widget stuck in a hidden state; it should no-op or respect isHybridModeSupported/registered view... | null |
algolia__instantsearch__4388 | algolia/instantsearch | 4,388 | defect | 6072d883171acadad8ee2de397f2ba334b049ebb | 6d3abd259c9414e6a9660760b9ff809c85279ecf | chore(ts-migration): migrates numeric menu and panel connector, widget, and stories | This pull request migrates 2 widgets, 1 connector and 2 stories:
- The numeric menu connector, widget, and stories;
- The panel widget, and stories; | diff --git a/.storybook/playgrounds/default.ts b/.storybook/playgrounds/default.ts
index 210e4989e55..cf313ccffdb 100644
--- a/.storybook/playgrounds/default.ts
+++ b/.storybook/playgrounds/default.ts
@@ -1,4 +1,5 @@
import instantsearch from '../../src/index';
+import { panel, numericMenu } from '../../src/widgets';
... | 7 | 5 | 1 | [{"id": "G0", "claim": "The exported panel widget-params type should keep the established name `PanelWidgetParams` instead of being renamed to `PanelWidgetOptions`.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the story the new div should b... | null |
algolia__instantsearch__4784 | algolia/instantsearch | 4,784 | defect | 1fdebf3febbeeb4dc14accc2776cae58653c4e0d | c36108b336810f18d537d374625373c82812df84 | feat(facets): apply result from facet ordering | passes facetOrderign to refinementList, menu, hierarchicalMenu which will read facet ordering from the results if available and no sortBy is given, but fall back to sortBy if no facetOrdering is available.
The option facetOrdering defaults to `true` if no sortBy is given, to make it apply out of the box.
referenc... | diff --git a/package.json b/package.json
index f053163364d..ea5d1e8b7cc 100644
--- a/package.json
+++ b/package.json
@@ -54,7 +54,7 @@
"dependencies": {
"@types/googlemaps": "^3.39.6",
"@types/hogan.js": "^3.0.0",
- "algoliasearch-helper": "^3.4.5",
+ "algoliasearch-helper": "^3.5.3",
"classname... | 5 | 3 | 1 | [{"id": "G0", "claim": "The facetOrdering option's name and its coexistence with sortBy are confusing and make the API hard to explain; the reviewer proposes exposing the behaviour through sortBy instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "De... | null |
algolia__instantsearch__4830 | algolia/instantsearch | 4,830 | defect | 1450e857d5af7932a2ffdb5103a2e27fe3389308 | 3f09f06ad848aaf0f0a8e2a0b49c212b50a2d5bc | refactor(tests): avoid global jsdom declaration | <!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
<!--
Explain the **motivation** for making this change.
What existing problem does the pull request solve?
Are there any linked issues?
-->
we added jsdom a... | diff --git a/global.d.ts b/global.d.ts
index 4dfa33d81dd..b867229b43f 100644
--- a/global.d.ts
+++ b/global.d.ts
@@ -1,2 +1 @@
declare const __DEV__: boolean;
-declare const jsdom: any;
diff --git a/package.json b/package.json
index b3ec6412db8..a23f0e62d21 100644
--- a/package.json
+++ b/package.json
@@ -82,6 +82,7 @... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new @types/jsdom dependency should not be pinned to an exact version, since the repo usually does not pin type dependencies.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algolia__instantsearch__4907 | algolia/instantsearch | 4,907 | defect | 55313e4ea4105b777f3f102e9f48a7e440496d25 | 75c355027f8c94aa5e81e48ca43ab49510f87d3c | fix(infinite/hits): stop saving the transformed results in cache |
<!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
<!--
Explain the **motivation** for making this change.
What existing problem does the pull request solve?
Are there any linked issues?
-->
Since we... | diff --git a/src/connectors/hits/__tests__/connectHits-test.ts b/src/connectors/hits/__tests__/connectHits-test.ts
index ec73819f2b8..b1aae10b6d6 100644
--- a/src/connectors/hits/__tests__/connectHits-test.ts
+++ b/src/connectors/hits/__tests__/connectHits-test.ts
@@ -122,8 +122,6 @@ See documentation: https://www.algo... | 1 | 1 | 0 | [{"id": "G0", "claim": "connectAnswers also mutates the hits in the results it keeps, and the same non-mutating strategy as applied to the hits connectors in this PR should be used there too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
algolia__instantsearch__4939 | algolia/instantsearch | 4,939 | defect | e74411caf0f33bf614a2d063e33e22cfb8b67eec | ce6e1595f1f08ca84ef1d65e420cbe0a984b37d5 | chore(version): bump algoliasearch version to v4.11.0 | * refactor(version): bump algoliasearch version to v0.11.0
* Import algoliasearch tarball package with type fix
* refactor(packages): Remove algoliasearch tarball
* refactor(types): Remove type work-arround for boundingBox
* Import algoliasearch client with type fix
* Remove unecessary type enforcement
... | diff --git a/package.json b/package.json
index 2ecaf39f228..6c0002a47d6 100644
--- a/package.json
+++ b/package.json
@@ -64,7 +64,7 @@
"search-insights": "^2.0.5"
},
"devDependencies": {
- "@algolia/client-search": "4.10.3",
+ "@algolia/client-search": "4.11.0",
"@babel/cli": "7.8.4",
"@babel... | 2 | 2 | 2 | [{"id": "G0", "claim": "The removed `@ts-expect-error` suppressions need to become `@ts-ignore` so the algoliasearch v3 type checks stop failing, until TypeScript is enforced for v4 only.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "The `insideBou... | null |
algolia__instantsearch__4943 | algolia/instantsearch | 4,943 | defect | a002962df0e7683b29bef8bfaaddb494fa551a14 | fbf587780534e492ded425d41e2aa52cad8b9797 | chore: disallow direct `window` access | This PR disallows direct access to the `window` object to keep the library SSR-friendly.
## ESLint rule
The `no-restricted-globals` ESLint rule was added to our source files (except our tests and widgets which are running on browser environments). It errors when you access directly `window`:
` boolean, which would remove the need for the `no-restricted-globals` eslint-disable 'rule hiding' in sessionStorage.ts.", "category": "design", "verdict": "supp... | null |
algolia__instantsearch__5058 | algolia/instantsearch | 5,058 | defect | 0a517609de103eef4f8edfefe6e28a1d79a14209 | 57d027474c356ceab1ed69b816519a273508a729 | fix(insights): don't send view event if search is stalled |
<!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
<!--
Explain the **motivation** for making this change.
What existing problem does the pull request solve?
Are there any linked issues?
-->
The insights... | diff --git a/src/connectors/autocomplete/__tests__/connectAutocomplete-test.ts b/src/connectors/autocomplete/__tests__/connectAutocomplete-test.ts
index ebcdbc51a51..d8664384475 100644
--- a/src/connectors/autocomplete/__tests__/connectAutocomplete-test.ts
+++ b/src/connectors/autocomplete/__tests__/connectAutocomplete... | 1 | 1 | 0 | [{"id": "G0", "claim": "Could the per-connector conditionals be moved into createSendEventForHits() instead of guarding the view send inline in each connector (connectHits, etc.)?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algolia__instantsearch__5091 | algolia/instantsearch | 5,091 | defect | 4c9a27e1dfe28a21b0619eb9118bb784515a0f40 | ac37a6c49d1e9ee808632ff1f60d5c6592a1a49c | feat(connectors): deprecate `hasNoResults` in favor of `canRefine` | <!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
[FX-740](https://algolia.atlassian.net/browse/FX-740)
We want to encourage users to use `canRefine` instead of `hasNoResults`, and to provide them with more meaningfu... | diff --git a/package.json b/package.json
index 4cdc9224303..a05c0d1c399 100644
--- a/package.json
+++ b/package.json
@@ -157,7 +157,7 @@
"bundlesize": [
{
"path": "./dist/instantsearch.production.min.js",
- "maxSize": "70.25 kB"
+ "maxSize": "70.75 kB"
},
{
"path": "./dist/inst... | 2 | 2 | 0 | [{"id": "G0", "claim": "The author notes the array handling adds bundle size that could be reduced by using `find` instead of iterating over every item with `filter`.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since `hasNoResults` is being depre... | null |
algolia__instantsearch__5136 | algolia/instantsearch | 5,136 | defect | a9f4d336e11bf9ce6c584f72f6fc28e0af539277 | 6715fca15af44318bcc713ba02dfe2b82894c84f | fix(currentRefinements): reset page number on refine | ### [FX-1834](https://algolia.atlassian.net/browse/FX-1834)
**Summary**
All refinement widgets but `currentRefinements` reset the pagination.
This can result in users seeing "No results" when clearing a refinement narrows the results.
**Result**
Added test to make sure we reset pagination when calling `re... | diff --git a/src/connectors/current-refinements/__tests__/connectCurrentRefinements-test.ts b/src/connectors/current-refinements/__tests__/connectCurrentRefinements-test.ts
index 83f7ebb06cd..76a49c09731 100644
--- a/src/connectors/current-refinements/__tests__/connectCurrentRefinements-test.ts
+++ b/src/connectors/cur... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename the test from 'refine() resets the page' to 'resets the page on refine()'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Questions whether the added `state = state.resetPage()` in clearRefinementFromState is redun... | null |
algolia__instantsearch__5458 | algolia/instantsearch | 5,458 | defect | 067cb118a7875224356d02481503db98c3142211 | 86e0a6cdd8db05db48e52764a2a6c555ee5a291f | fix(HierarchicalMenu): don't give --parent class if data is empty |
<!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
This happens when the item is refined, but there's no items in the lower level. In InstantSearch.js and React InstantSearch Dom, we avoid adding the class in this ca... | diff --git a/packages/react-instantsearch-hooks-web/src/ui/HierarchicalMenu.tsx b/packages/react-instantsearch-hooks-web/src/ui/HierarchicalMenu.tsx
index e719c86600a..03db91eb63e 100644
--- a/packages/react-instantsearch-hooks-web/src/ui/HierarchicalMenu.tsx
+++ b/packages/react-instantsearch-hooks-web/src/ui/Hierarch... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tests should be amended to cover the empty-data case this pull request fixes (an item with an empty data array no longer getting the parent class).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__instantsearch__5493 | algolia/instantsearch | 5,493 | defect | 2c04f89d9710f7c61500fe839d16e13a688350bc | da2be06d55471ccd00a48b6990633e39e0f0afee | feat(insights): option to disable automatic insights middleware | instead of passing your own middleware, where timing could be tricky, to disable the internal middleware you pass `insights: false` to InstantSearch. Note that the internal middleware will still be removed when a different middleware is passed to allow easy customisation
FX-2250 | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 0a7fc189bff..9dd0f6e6dba 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -26,11 +26,11 @@
},
{
"path": "packages/react-instantsearch-hooks/dist/umd/ReactInstantSearchHooks.min.js",
- "maxSize": "41.75 kB"
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The JSDoc of the new `insights` option should be rewritten to say that it automatically enables the Insights middleware and loads the Insights library if not already loaded, rather than just 'Enables the insights middleware'.", "category": "documentation", "verdict": "supported", "priority": "P2... | null |
algolia__instantsearch__5504 | algolia/instantsearch | 5,504 | defect | 33d3b8408caa60130cb7f45e8edbfd6a06428f9a | 06eadc90cd44dfd13a00bec092875a16a655b515 | feat(index): introduce setIndexUiState | <!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
This function is visible in useInstantSearch, so it has potential to supplant the usage of `helper.setState().search` in the future.
<!--
Explain the **motivation*... | diff --git a/packages/instantsearch.js/src/types/index.ts b/packages/instantsearch.js/src/types/index.ts
index 46af57f9f5d..b008be0d91d 100644
--- a/packages/instantsearch.js/src/types/index.ts
+++ b/packages/instantsearch.js/src/types/index.ts
@@ -22,3 +22,6 @@ export * from './widget';
export * from './ui-state';
e... | 3 | 2 | 0 | [{"id": "G0", "claim": "The first new test title should read 'updates main UI state with an object' instead of 'updates main ui state with object'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second new test title should read 'updates mai... | null |
algolia__instantsearch__5541 | algolia/instantsearch | 5,541 | defect | 62efb0f9554292072e874ddc4edc6a25d65496c1 | c108e0cc6ed8364d529123ddbd8cc6ec156b547f | fix(rangeinput): allow input of numbers with precision | **Summary**
While we set the `step` correctly based on the precision, we didn't actually allow input of values with decimal separator because the "inbetween" situation (like 1.) isn't a valid number, causing the state to reset.
Vue didn't have this issue, as it wasn't parsing the number until the form is being su... | diff --git a/packages/instantsearch.js/src/__tests__/common.test.tsx b/packages/instantsearch.js/src/__tests__/common.test.tsx
index bc51c2ebe33..df8b7f23be1 100644
--- a/packages/instantsearch.js/src/__tests__/common.test.tsx
+++ b/packages/instantsearch.js/src/__tests__/common.test.tsx
@@ -8,6 +8,7 @@ import {
cre... | 2 | 2 | 1 | [{"id": "G0", "claim": "Removing all characters from the input no longer resets it to 0 as before, and erasing the input now keeps the last number; should the old behavior be kept?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The number input's va... | null |
algolia__instantsearch__5546 | algolia/instantsearch | 5,546 | defect | 62efb0f9554292072e874ddc4edc6a25d65496c1 | ba51dd66d2f2b7157e6ff1e23ccc8b13e4e7c240 | feat(current-refinements): provide indexId of refinements in transformItems | **Summary**
The `currentRefinements` widget provides a way to transform/filter refined items to be returned, which is useful in multi-indices context, to potentially remove refinements from another index.
This works well when indices are different, but in the context of multi-indices targeting the same index with... | diff --git a/packages/instantsearch.js/src/connectors/current-refinements/__tests__/connectCurrentRefinements-test.ts b/packages/instantsearch.js/src/connectors/current-refinements/__tests__/connectCurrentRefinements-test.ts
index 6afb6a8c49a..ae2383442bf 100644
--- a/packages/instantsearch.js/src/connectors/current-re... | 1 | 1 | 1 | [{"id": "G0", "claim": "TypeScript must pass before the PR can merge (the type check currently fails because the component test fixtures construct items without the newly required indexId).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
algolia__instantsearch__5558 | algolia/instantsearch | 5,558 | defect | 222c8b7cc56954bd9ec405aa04dfd2c7e248cda0 | ee58fe475a30a3e22d62b633125ea713b50e14ad | fix(insights): send extra parameters only for applicable versions |
<!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
In v2, pre 2.4.0 sendEvent is variadic, meaning that the "extra parameters" were sent as an extra network request.
This wasn't clear in the tests, as we were asse... | diff --git a/packages/instantsearch.js/src/middlewares/__tests__/createInsightsMiddleware.ts b/packages/instantsearch.js/src/middlewares/__tests__/createInsightsMiddleware.ts
index 1bcf8ae1c89..0ddeed8b8da 100644
--- a/packages/instantsearch.js/src/middlewares/__tests__/createInsightsMiddleware.ts
+++ b/packages/instan... | 2 | 2 | 0 | [{"id": "G0", "claim": "The locally declared `version?: string` duplicates what `InsightsClient` already provides once `search-insights` is updated to v2.4.0, though updating the dependency will create additional issues.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G... | null |
algolia__instantsearch__5620 | algolia/instantsearch | 5,620 | defect | edcc1e85f13c4f2d97939af6d7198ad9e6c98788 | 0b4e8749b75ba3301b32f28e9b18d80942f92bd5 | fix(infinite-hits): do not write cache with incomplete state caused by dynamic widgets | **Summary**
In an InstantSearch implementation with dynamic widgets and a custom infinite hits cache, the latter gets overwritten incorrectly because facets are not initially known (until their relevant widgets are mounted by dynamic widgets).
This PR detects this context and prevents writing an incomplete state ... | diff --git a/packages/instantsearch.js/src/connectors/infinite-hits/__tests__/connectInfiniteHits-test.ts b/packages/instantsearch.js/src/connectors/infinite-hits/__tests__/connectInfiniteHits-test.ts
index d5d03d90b8c..97265a46b2b 100644
--- a/packages/instantsearch.js/src/connectors/infinite-hits/__tests__/connectInf... | 2 | 1 | 0 | [{"id": "G0", "claim": "Because the cache-write block sits in the else of if(!results), the three facet checks need no optional chaining on results, so the reviewer suggests dropping the ?. after results.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl... | null |
algolia__instantsearch__5818 | algolia/instantsearch | 5,818 | defect | 1d5884b015257a8685a3a9f21080e79fc83d0a25 | 5a7d52b719ebaddfa5bac6716cf14b5db7484065 | test(hits-per-page): add common test suite | This reworks the tests for the `hits-per-page` widget to move them in the common test suite, reduce flavor-specific tests, and remove unrealistic tests that manipulate internals.
[FX-2513](https://algolia.atlassian.net/browse/FX-2513)
[FX-2513]: https://algolia.atlassian.net/browse/FX-2513?atlOrigin=eyJpIjoiNWRkNTl... | diff --git a/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx b/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx
index 1b32b648b10..0a75bd184b3 100644
--- a/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx
+++ b/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx... | 7 | 6 | 3 | [{"id": "G0", "claim": "The common options suite should also cover the case where the item marked `default` is not the first entry in `items`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The options test could be combined with a hits widget so the nu... | null |
algolia__instantsearch__5913 | algolia/instantsearch | 5,913 | defect | 74737decbb8af4d9619839c40d33b609f874ae62 | ae2781f14f12dbcea0df74f606963400b47df268 | test: `hydrateSearchClient` to make sure it caches results | **Summary**
#### [FX-2647](https://algolia.atlassian.net/browse/FX-2647)
I started making e2e tests with [wdio-intercept-service](https://webdriver.io/docs/wdio-intercept-service/) but due to limitations with selenium, there's no way to intercept requests made when the page loads reliably, only requests resulting... | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 9fdfad3fcb7..8d15e4ffb73 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -10,7 +10,7 @@
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.production.min.js",
- "maxSize": "74.50 kB"
+ "maxSize": ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The change to hydrateSearchClient.ts (reworking the reduction to use Object.keys) should probably be made in the base branch rather than in this pull request.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add another test ... | null |
algolia__instantsearch__6142 | algolia/instantsearch | 6,142 | defect | 3121f7a3157abcb3b3add44c1868bcd1c4371c5e | 4a15d5fbc131ad83ac9e63d090b23e3e61875448 | feat(recommend): introduce `connectRelatedProducts` connector | This introduces the `connectRelatedProducts` connector and tests it in the connector common test suite.
https://algolia.atlassian.net/browse/FX-2813 | diff --git a/bundlesize.config.json b/bundlesize.config.json
index eec62d983d8..35e6ce7dced 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -10,19 +10,19 @@
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.production.min.js",
- "maxSize": "77.75 kB"
+ "maxSize"... | 8 | 3 | 2 | [{"id": "G0", "claim": "In the mocked `getRecommendations` of the common connector test suite, `request` is implicitly untyped in the algoliasearch v3 type-check (where `getRecommendations` does not exist), so add `@ts-ignore` with a comment explaining that.", "category": "testing", "verdict": "supported", "priority": ... | null |
algolia__instantsearch__6157 | algolia/instantsearch | 6,157 | defect | 7fc64bc6e08d00c226e309b8e1e87764adc6e667 | 14c430937684928a3fcb23051848746ea32d1c66 | feat(recommend): harmonize UI component for FBT and Related Products | This harmonizes the UI components for FBT and Related Products. This PR is necessary for https://github.com/algolia/instantsearch/pull/6154 to pass. | diff --git a/packages/instantsearch-ui-components/src/components/FrequentlyBoughtTogether.tsx b/packages/instantsearch-ui-components/src/components/FrequentlyBoughtTogether.tsx
index e69b813f526..e180f8f4379 100644
--- a/packages/instantsearch-ui-components/src/components/FrequentlyBoughtTogether.tsx
+++ b/packages/ins... | 1 | 1 | 0 | [{"id": "G0", "claim": "The custom ItemComponent in the FBT UI component test could be updated to not wrap the item data within a <li>.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algolia__instantsearch__6176 | algolia/instantsearch | 6,176 | defect | 77147195be3de37cd07765efddc855b8c49f8e6b | 3b349329dcf79df8feafb27ce505e3738c60a92a | feat(recommend): enable multiple objectIDs in connectors | **Summary**
### [FX-2822](https://algolia.atlassian.net/browse/FX-2822)
**Result**
Following the previous PR, this enables the connectors to pass multiple object IDs
[FX-2822]: https://algolia.atlassian.net/browse/FX-2822?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1K... | diff --git a/packages/instantsearch.js/src/connectors/frequently-bought-together/__tests__/connectFrequentlyBoughtTogether-test.ts b/packages/instantsearch.js/src/connectors/frequently-bought-together/__tests__/connectFrequentlyBoughtTogether-test.ts
index 38d9b22f01f..fda15940444 100644
--- a/packages/instantsearch.js... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request's unit tests fail, apparently inside the render function, so it cannot be merged yet.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}] | null |
algolia__instantsearch__6240 | algolia/instantsearch | 6,240 | defect | b7eef90a6b0650afe5f42f6904a239c74fa6ad37 | 6e1feae61f7859f0f81deedd882ef148b900f31d | test(dynamic-widgets): common test suite | **Summary**
#### [FX-2510](https://algolia.atlassian.net/browse/FX-2510)
**Result**
Tried to test as much as possible, but we're limited due to the implems being very different, notably the lack of `fallback` mechanism in Vue.
Still these test the order to render widgets, whether a widget should render or n... | diff --git a/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx b/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx
index f83f097faa9..894b95b57a2 100644
--- a/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx
+++ b/packages/instantsearch.js/src/__tests__/common-widgets.test.tsx... | 3 | 2 | 0 | [{"id": "G0", "claim": "The dynamic-widgets tests should wrap the mocked search client in a createMockedSearchClient function and instantiate a new client in each test, so they don't need to clear a shared client between tests and the mock can sit at the end of the file.", "category": "maintainability", "verdict": "sup... | null |
algolia__instantsearch__6276 | algolia/instantsearch | 6,276 | defect | 8a0ae01ddfceec129075256b19a0cc634ae5bb6e | 395f8af3b320fa2290c7cf0b5d7533c04d883870 | feat(hits): add banners to Hits widget for Vue | **Summary**
This PR adds the new top banner to the Vue `Hits` widget and updates associated tests. The top banner feature has already been added to `Hits` and `InfiniteHits` for the JS and React flavors of InstantSearch.
This widget is slightly different from the React version by using a `showBanner` prop (defaul... | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 27161e56d1a..31cb33eaae0 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -26,11 +26,11 @@
},
{
"path": "packages/vue-instantsearch/vue2/umd/index.js",
- "maxSize": "67.75 kB"
+ "maxSize": "71 kB"
},
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The banner-slot test passes locally but fails in CI under Vue 3, so it should be removed unless there is a straightforward approach to making it run for vue3 as well.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The preact Frag... | null |
algolia__instantsearch__6437 | algolia/instantsearch | 6,437 | defect | 9a088ad35f12bcaffaa0280a7c10b828a917e1cc | 1097f22e8dcb62cfb3b9062e09a486b687f8dffa | feat: composition | **Summary**
This PR currently adds support for Composition using a (currently not published yet) Composition API Client:
- new `compositionID` optional parameter when initializing InstantSearch (this PR)
- don't allow index widget when in composition mode #6459
- make composition compatible with vue #6458
- hand... | diff --git a/examples/js/getting-started/package.json b/examples/js/getting-started/package.json
index 556e7b00577..8ccfba712ab 100644
--- a/examples/js/getting-started/package.json
+++ b/examples/js/getting-started/package.json
@@ -9,6 +9,7 @@
"lint:fix": "npm run lint -- --fix"
},
"dependencies": {
+ "@... | 9 | 7 | 3 | [{"id": "G0", "claim": "The doc comment on the compositionID option says multi-index search and recommend are not supported, but technically recommend is still supported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The getting-started example (... | null |
algolia__instantsearch__6456 | algolia/instantsearch | 6,456 | defect | d68f02c6db8d6eed4be4330dacf246a3856bb209 | 3a49fd23f4f7e2aea94f3710fe2f1584a4d127aa | fix(insights): ensure the same token is used when rendered multiple times server side |
- in insights middleware: ensure we read from the _initialResults (as insights starts before index is init'ed and the parameters aren't in the index, but in the main index)
- in getInitialResults: add the parameters to every index explicitly (it's not ui state so was missing otherwise)
other changes in this PR:
... | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 744e2f5b466..bf0836fa1f5 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -14,7 +14,7 @@
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.development.js",
- "maxSize": "181.50 kB"
+ "maxSize": "1... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new server test would be cleaner if it asserted just the existence of userToken and clickAnalytics instead of a full deep-equality object.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the PR's examples require... | null |
algolia__instantsearch__6527 | algolia/instantsearch | 6,527 | defect | 32837951f11e49fbe01a7b46f5ec9c3fe2a4ae0f | 6b70a620de1462dbe80e8af19f40bb059c5955c1 | chore(vue example): remove price range | The component `vue-slider-component` throws an error with the new Vite build. I can't seem to find an underlying reason, so for now let's disable the component so release isn't blocked. | diff --git a/examples/vue/e-commerce/src/App.vue b/examples/vue/e-commerce/src/App.vue
index 4434a7b0457..2156ca969d1 100644
--- a/examples/vue/e-commerce/src/App.vue
+++ b/examples/vue/e-commerce/src/App.vue
@@ -115,46 +115,6 @@
</template>
</ais-panel>
- <ais-panel>
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Running the e2e tests with the price range widget removed may affect the routing tests, and the author should confirm they were run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__instantsearch__6645 | algolia/instantsearch | 6,645 | defect | 5a2d2121c1f82840e59ba69edfe0a4f41450f41b | 3e84aa39e9e11296ffce4da2d8ac78af40de9bd6 | fix(breadcrumb): use hierarchical facets only | <!--
Thanks for submitting a pull request!
Please provide enough information so that others can review your pull request.
-->
**Summary**
Breadcrumb connector accesses all facet names when generating the breadcrumb list. This results in a menu widget breaking functionality. This PR restricts the breadcrumb c... | diff --git a/packages/instantsearch.js/src/connectors/breadcrumb/connectBreadcrumb.ts b/packages/instantsearch.js/src/connectors/breadcrumb/connectBreadcrumb.ts
index 29242253c99..0f235a9d886 100644
--- a/packages/instantsearch.js/src/connectors/breadcrumb/connectBreadcrumb.ts
+++ b/packages/instantsearch.js/src/connec... | 1 | 1 | 1 | [{"id": "G0", "claim": "The connector picks its facet by checking which hierarchical facet has a separator instead of checking that the facet's attributes match, which could pick the wrong hierarchical facet.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__instantsearch__6708 | algolia/instantsearch | 6,708 | defect | d7b360b0a2d18e3eae42bf89ffae87f10142d0c1 | 4c2a634f7c5ff5e8239013f2674e9db525c9f349 | feat(chat): add support for client side tools | **Summary**
Adds client side tool support to React and JS.
React usage:
```jsx
<Chat
// ...
tools={[
type: 'tool-name',
component: () => <div>Tool Rendered</div>
]}
/>
```
Javascript usage:
```javascript
chat({
// ...
tools: [
{
type: 'tool-name',
template: {
... | diff --git a/packages/algolia-experiences/rollup.config.js b/packages/algolia-experiences/rollup.config.js
index 258242f17de..b128b1ec95b 100644
--- a/packages/algolia-experiences/rollup.config.js
+++ b/packages/algolia-experiences/rollup.config.js
@@ -56,6 +56,7 @@ const createConfiguration = ({ mode, filename }) => (... | 3 | 2 | 0 | [{"id": "G0", "claim": "Remove the 'ai' and 'zod' entries this PR adds to the rollup externals in packages/algolia-experiences/rollup.config.js, packages/vue-instantsearch/rollup.config.js (both the outputs() list and the UMD external, which should revert to ['vue']) and packages/instantsearch.js/scripts/rollup/rollup.... | null |
algolia__instantsearch__6728 | algolia/instantsearch | 6,728 | defect | e1b654f5d2e274c059980fc6c9e37d6777ad7e4a | cfaa9066492de85ff8a27ff4a2921f808772aa91 | fix(chat): update tools api in chat widgets | **Summary**
This PR updates the tools API in chat widgets to be object-based instead of array-based. Updated usage:
```javascript
<Chat
tools={{
alertOnHello: {
layoutComponent: ({ message, addToolResult }) => {
return <div/>;
},
onToolCall: ({ addToolResult, input, ...toolCallO... | diff --git a/packages/instantsearch-ui-components/src/components/chat/ChatMessage.tsx b/packages/instantsearch-ui-components/src/components/chat/ChatMessage.tsx
index e8da8b1235f..ad501f8b1f9 100644
--- a/packages/instantsearch-ui-components/src/components/chat/ChatMessage.tsx
+++ b/packages/instantsearch-ui-components... | 1 | 1 | 1 | [{"id": "G0", "claim": "The onToolCall callback type on ClientSideTool should clarify whether the handler gets access to the whole message or just the part (tool call).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__instantsearch__6740 | algolia/instantsearch | 6,740 | defect | 3b65ede9c706b674e01bdd066e99761ae538d9b8 | e33d55a5f69f9c92948f3edb935418eef6619cdf | feat(chat): add custom toggle button support | **Summary**
This PR:
- adds a prop `toggleButtonComponent` that allow passing a custom toggle button component to the chat UI component.
- forwards that prop for the React InstantSearch chat widget.
- adds two templates (`toggleButton.layout` and `toggleButton.icon`) for the InstantSearch.js chat widget.
One i... | diff --git a/packages/instantsearch-ui-components/src/components/chat/Chat.tsx b/packages/instantsearch-ui-components/src/components/chat/Chat.tsx
index 5a887296a0a..8b169e56608 100644
--- a/packages/instantsearch-ui-components/src/components/chat/Chat.tsx
+++ b/packages/instantsearch-ui-components/src/components/chat/... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new `toggleButtonComponent` prop on the RIS Chat widget should be renamed to `toggleButtonLayoutComponent`, matching the widget's existing `headerLayoutComponent`/`promptLayoutComponent` naming.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, ... | null |
algolia__instantsearch__6747 | algolia/instantsearch | 6,747 | defect | 510c2bbc51a451046eecd8410a7519e75c8afe01 | 8f7e4a4518b84736c35cf5ad13faad5357bfc2c4 | feat(autocomplete): implement recent searches | **Summary**
[FX-3504](https://algolia.atlassian.net/browse/FX-3504)
**Result**
<img width="920" height="337" alt="image" src="https://github.com/user-attachments/assets/012d7baa-304c-4a89-b2ad-68f1d9e0b8c9" />
[FX-3504]: https://algolia.atlassian.net/browse/FX-3504?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3... | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 0d00a41957a..1331e78a7f5 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -10,11 +10,11 @@
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.production.min.js",
- "maxSize": "88.75 kB"
+ "maxSize"... | 5 | 1 | 1 | [{"id": "G0", "claim": "Recent searches are saved to storage even when showRecent is false, and the reviewer asks whether the whole storage should be conditional on showRecent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The recent-search storage... | null |
algolia__instantsearch__6824 | algolia/instantsearch | 6,824 | defect | 605651864c97644cabfaec86263dc27a4b9de04d | c252b21dde6b877da95258f4898c515382805b6e | feat(autocomplete): deduplicate recent searches/suggestions | **Summary**
[FX-3586](https://algolia.atlassian.net/browse/FX-3586)
**Result**
Added an assertion to make sure it is deduped.
Also fixed a bug where the panel was always opened + the React key problem was actually from showRecent
[FX-3586]: https://algolia.atlassian.net/browse/FX-3586?atlOrigin=eyJpIjoiNWR... | diff --git a/bundlesize.config.json b/bundlesize.config.json
index 3eccbb79810..108ad24a1d9 100644
--- a/bundlesize.config.json
+++ b/bundlesize.config.json
@@ -10,11 +10,11 @@
},
{
"path": "./packages/instantsearch.js/dist/instantsearch.production.min.js",
- "maxSize": "90.75 kB"
+ "maxSize"... | 1 | 1 | 1 | [{"id": "G0", "claim": "The newly added hidden attribute on the autocomplete panel element should be removed because it prevents users from animating the panel with a CSS transition when it opens or closes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algolia__npm-search__683 | algolia/npm-search | 683 | defect | 706618cfef60b5f7df186bc9a99d7f83b48c6a51 | 9920e14d8f56146fd37b1ac2935cd4e0d9bf88bf | feat: add package style types information | Hey there. We are using Algolia as a search engine on the jsDelivr website and we have some ideas on how to make it even better. With this PR I would like to initiate the discussion and provide the starting point for possible implementation.
So, what we are actually proposing:
## Introduce the `styleTypes` field
... | diff --git a/src/@types/nice-package.ts b/src/@types/nice-package.ts
index 95809b481..0a409acac 100644
--- a/src/@types/nice-package.ts
+++ b/src/@types/nice-package.ts
@@ -39,6 +39,7 @@ export interface NicePackageType {
scripts: Record<string, string>;
schematics?: string;
starsCount?: number;
+ style?: str... | 15 | 10 | 3 | [{"id": "G0", "claim": "getStyleTypes constructs a new regexp for every file inside the loop instead of building it once.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of filtering the style field against a static list of extensions, the PR... | null |
algorand__go-algorand-sdk__100 | algorand/go-algorand-sdk | 100 | defect | 5911487331eb8459ff41927573e625b6808d441c | 7b40a2595276702611c66e85c758a986092cccad | Add asset decimals field | Add a decimals/precision field to asset creation.
### Testing
Automatic unit testing. `algorand-sdk-testing` will fail due to signature mismatch, see pull 30 in "See also" section.
### See also
https://github.com/algorand/go-algorand/pull/601
https://github.com/algorand/algorand-sdk-testing/pull/30
https://gi... | diff --git a/client/algod/models/models.go b/client/algod/models/models.go
index afba91f5..6d42015e 100644
--- a/client/algod/models/models.go
+++ b/client/algod/models/models.go
@@ -127,6 +127,14 @@ type AssetParams struct {
// required: true
Total uint64 `json:"total"`
+ // Decimals specifies the number of digi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should add a unit test covering the new asset decimals field.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algorand__go-algorand-sdk__101 | algorand/go-algorand-sdk | 101 | defect | cf32d0210547fb81586512f4400d7cb6e002e87c | 482cc6b972700a560d020bbdb704223e87812369 | Limit order TEAL template | ## Summary
This template implements `limit-order-a.teal.impl` from `go-algorand`.
### Testing
Automatic unit/sdk testing. Added a golden test for program and address.
### See also
https://github.com/algorand/go-algorand-sdk/issues/98 | diff --git a/templates/hashTimeLockedContract.go b/templates/hashTimeLockedContract.go
index 87dba336..bd0394a0 100644
--- a/templates/hashTimeLockedContract.go
+++ b/templates/hashTimeLockedContract.go
@@ -12,7 +12,7 @@ type HTLC struct {
ContractTemplate
}
-// MakeHTLC allows a user to recieve the Algo prior to ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The comment above MakeLimitOrder is a bit weird in this spot and would make much more sense in the TEAL code, so it should be reworked.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment on line 69 and the comment o... | null |
algorand__go-algorand-sdk__103 | algorand/go-algorand-sdk | 103 | defect | cf32d0210547fb81586512f4400d7cb6e002e87c | 6305a5b11a0aef34d50f8cee1cde08462380849d | Periodic payment TEAL template | ## Summary
This template implements `periodic-payment.teal.impl` from `go-algorand`.
### Testing
Automatic unit/sdk testing. Added a golden test for program and address.
### See also
https://github.com/algorand/go-algorand-sdk/issues/99 | diff --git a/templates/periodicPayment.go b/templates/periodicPayment.go
new file mode 100644
index 00000000..9eab8701
--- /dev/null
+++ b/templates/periodicPayment.go
@@ -0,0 +1,99 @@
+package templates
+
+import (
+ "encoding/base64"
+ "github.com/algorand/go-algorand-sdk/crypto"
+ "github.com/algorand/go-algorand-sd... | 4 | 3 | 3 | [{"id": "G0", "claim": "GetWithdrawalTransaction should check that firstValid is a multiple of period and compute lastValid itself as firstValid + duration, as the contract's TEAL requires, instead of taking lastValid as a caller-supplied parameter.", "category": "correctness", "verdict": "supported", "priority": "P1",... | null |
algorand__go-algorand-sdk__106 | algorand/go-algorand-sdk | 106 | defect | c314772ae1eabdc499a3fbd957a2f2fba12f17b7 | 6ea3fcf20779bbda6c533d5069d0460779ef3eb6 | Dynamic fee TEAL template | ## Summary
This template implements `dynamic-fee.teal.impl` from `go-algorand`.
### Testing
Automatic unit/sdk testing. Added a golden test for program and address.
### See also
https://github.com/algorand/go-algorand-sdk/issues/96 | diff --git a/templates/dynamicFee.go b/templates/dynamicFee.go
new file mode 100644
index 00000000..bb73828a
--- /dev/null
+++ b/templates/dynamicFee.go
@@ -0,0 +1,142 @@
+package templates
+
+import (
+ "encoding/base64"
+ "github.com/algorand/go-algorand-sdk/crypto"
+ "github.com/algorand/go-algorand-sdk/transaction"... | 3 | 3 | 2 | [{"id": "G0", "claim": "MakeDynamicFee should not generate a random lease the caller cannot control: the caller can't specify her/his lease, which must match the original one.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SignDynamicFee as a method on D... | null |
algorand__go-algorand-sdk__167 | algorand/go-algorand-sdk | 167 | defect | c746e9ddfea9e42923286b52fbe8ab649e36354c | d01875394b0d1203b82ebe9113b6e2cf2047dc48 | Applications SDK with Integration/unit tests | Application tools and integration/unit tests.
Some of the code is copied over from go-algorand. | diff --git a/Makefile b/Makefile
index 6ac80fd25..b05a9a1ea 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ unit:
integration:
go test $(TEST_SOURCES_NO_CUCUMBER)
- cd test && go test --godog.strict=true --godog.format=progress --godog.tags="@algod,@assets,@auction,@kmd,@send,@template,@indexer,@rekey" --te... | 11 | 11 | 5 | [{"id": "G0", "claim": "The godog-generated integration step function name (iBuildAnApplicationTransactionWithTheTransientAccountTheCurrentApplication...) is unreadable and the steps should be renamed following the SDK-testing implementation and spec rather than godog's suggestions.", "category": "maintainability", "ve... | null |
algorand__go-algorand-sdk__176 | algorand/go-algorand-sdk | 176 | defect | 8289ba75a4a451a9ced43a55f08946b7cbb6df1c | d15a751346a303632f2c7c6b09bda962a1e0bf8f | Response and Path tests | Added responses and path unit tests.
Dependency added:
github.com/nsf/jsondiff for comparing json structures
Changes to test helpers:
* Updated mock http responses helper to accept status code
* Implemented EqualJson method to compare json files and not complain about missing default(false) valued fields
C... | diff --git a/Makefile b/Makefile
index 87081a91..c084f373 100644
--- a/Makefile
+++ b/Makefile
@@ -13,11 +13,11 @@ build: generate
unit:
go test $(TEST_SOURCES_NO_CUCUMBER)
- cd test && go test --godog.strict=true --godog.format=progress --godog.tags="@unit.offline,@unit.algod,@unit.indexer,@unit.rekey,@unit.teals... | 8 | 3 | 1 | [{"id": "G0", "claim": "Keep the old SearchForAssets.Do method signature (validRound, []Asset, err), since dev-rel example code may need updating if the signature changes to return a response object.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "mockHttpR... | null |
algorand__go-algorand-sdk__177 | algorand/go-algorand-sdk | 177 | defect | 61416b7e5c909b04acb5052d97964fa04c98bf96 | 786c71ad05f911511cc7bebebab61367985138b8 | applications.verified test: theTransientAccountShouldHave | Added test theTransientAccountShouldHave to applications.verified | diff --git a/test/applications_integration_test.go b/test/applications_integration_test.go
index 2b5c435e..6a4c247f 100644
--- a/test/applications_integration_test.go
+++ b/test/applications_integration_test.go
@@ -11,12 +11,13 @@ import (
"github.com/cucumber/godog"
"github.com/algorand/go-algorand-sdk/client/v2... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `@applications.verified` tag needs to be added to the Makefile so the test target runs the scenarios tagged with it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algorand__go-algorand-sdk__216 | algorand/go-algorand-sdk | 216 | defect | a9ab0dd04e811ce3e549fde18c7f9d1f3159d262 | 92d0ec5aa839cc87aae8091ee5de9427e633a429 | Fee pooling SDK change | This PR is to support creating transactions with a fee under mintxnfee since other txns in the group will be paying. | diff --git a/future/transaction.go b/future/transaction.go
index 33f65039..a46f0ef0 100644
--- a/future/transaction.go
+++ b/future/transaction.go
@@ -18,14 +18,13 @@ func setFee(tx types.Transaction, params types.SuggestedParams) (types.Transacti
return types.Transaction{}, err
}
tx.Fee = types.MicroAlgos(eS... | 4 | 3 | 0 | [{"id": "G0", "claim": "The new test-case name \"Flat fee does not overridden with min fee\" is ungrammatical and should read \"is not\" or \"does not get overridden\".", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test case that explicitly sets ... | null |
algorand__go-algorand-sdk__230 | algorand/go-algorand-sdk | 230 | defect | 26eff5c93fee3b0a2e5b84afbb271de5e532bf5c | 856f7f0b94e90712948f27ad426c8d516b0ef192 | Signing support for rekeying to LogicSig/MultiSig account | Currently this SDK has strict checks in `SignMultisigTransaction` and `SignLogicsigTransaction` that prevent transactions with an unexpected sender address from being signed. Since it's possible to rekey other accounts to LogicSig and MultiSig accounts, these types of accounts should be able to sign transactions from a... | diff --git a/crypto/account.go b/crypto/account.go
index 39d62742..cb64ec64 100644
--- a/crypto/account.go
+++ b/crypto/account.go
@@ -2,6 +2,7 @@ package crypto
import (
"crypto/sha512"
+ "errors"
"fmt"
"golang.org/x/crypto/ed25519"
@@ -50,6 +51,35 @@ func GenerateAccount() (kp Account) {
return
}
+// ... | 5 | 4 | 2 | [{"id": "G0", "claim": "Adding a serialized field (SigKey) to the LogicSig struct that must be stripped before serializing is error-prone; the author should consider wrapping the canonical struct or passing it alongside the LogicSig type instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope"... | null |
algorand__go-algorand-sdk__242 | algorand/go-algorand-sdk | 242 | defect | af44e0eeb717218cbb661b182b2abf96238c5f50 | 4b250c0e7db6ce76c2b2dbbdc279278ab05f2efc | add TealVerify function | Adding `TealVerify`, a function which verifies signatures generated by `TealSign` and `TealSignFromProgram`.
Helpful for testing and debugging. | diff --git a/crypto/crypto.go b/crypto/crypto.go
index 6065c644..df25e686 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -697,3 +697,11 @@ func TealSignFromProgram(sk ed25519.PrivateKey, data []byte, program []byte) (ra
addr := AddressFromProgram(program)
return TealSign(sk, data, addr)
}
+
+// TealVerify... | 3 | 3 | 2 | [{"id": "G0", "claim": "The existing TestTealSign test should be changed to exercise the new TealVerify function instead of manually joining the message and calling ed25519.Verify.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The test should also mo... | null |
algorand__go-algorand-sdk__273 | algorand/go-algorand-sdk | 273 | defect | 22d7392ab14a62426793c2deab935578dd985527 | e66aa3cffb54ca39e96f8c894e36620ab12a0113 | Support ABI reference types and other improvements | - [x] Add reference type support
- [x] Return error if transaction type argument does not match transaction argument type
- [x] AtomicTransactionComposer does not assign group ID if there's only 1 transaction in the group
- [x] AtomicTransactionComposer's `Execute` methods updates status to submitted before waiting ... | diff --git a/Makefile b/Makefile
index f23d956e..bba03c86 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,11 @@ test:
unit:
go test $(TEST_SOURCES_NO_CUCUMBER)
- cd test && go test --godog.strict=true --godog.format=pretty --godog.tags="@unit.offline,@unit.algod,@unit.indexer,@unit.rekey,@unit.tealsign,@unit.dr... | 6 | 3 | 0 | [{"id": "G0", "claim": "In the old tuple-packing code, abiArgs[14:] and abiArgs[:14] share one backing array, so append(abiArgs[:14], tupleValues) overwrote the tail and made the first tuple element reference itself (exposed by the cucumber tests); the fix is to copy the tuple part before appending it back.", "category... | null |
algorand__go-algorand-sdk__276 | algorand/go-algorand-sdk | 276 | defect | b53819e334fa03b3b1b5091be3e002a0ff67a23e | dbd1121b262f847e999e069174ce8b0f76f49906 | Create response object for `AtomicTransactionComposer.Execute` | Instead of having `AtomicTransactionComposer.Execute` return a tuple of many values, this PR creates an object, `ExecuteResult`, which holds the values being returned.
This will allow us to potentially add more fields in the future without changing the method signature.
Also, rename `ABIResult` to `ABIMethodResul... | diff --git a/future/atomicTransactionComposer.go b/future/atomicTransactionComposer.go
index 88a7900a..df3520c9 100644
--- a/future/atomicTransactionComposer.go
+++ b/future/atomicTransactionComposer.go
@@ -33,8 +33,8 @@ type TransactionWithSigner struct {
Signer TransactionSigner
}
-// Represents the output from ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Initialize the MethodResults slice with its size up front (the number of method transactions is known to AtomicTransactionComposer), so the append later in the loop is not needed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
algorand__go-algorand-sdk__282 | algorand/go-algorand-sdk | 282 | defect | b13ecf40e59caa26a14fc292a6f9c99d49e8fae7 | 5f6f58bebf1eb79b2846188ac31357b197221990 | Implement C2C tests | - [x] Add `models.PendingTransactionInfoResponse` field to `ABIMethodResult`
- [x] Implement all `@c2c` tests
- [x] Implement new test in `@applications.verified`
- [x] Implement new test in `@compile`
- [x] Remove templates tests -- closes #280
- [x] Revert branch change in `run_docker.sh`
Closes #271 | diff --git a/future/atomicTransactionComposer.go b/future/atomicTransactionComposer.go
index c69ee056..10a9bc19 100644
--- a/future/atomicTransactionComposer.go
+++ b/future/atomicTransactionComposer.go
@@ -37,6 +37,8 @@ type TransactionWithSigner struct {
type ABIMethodResult struct {
// The TxID of the transaction... | 4 | 4 | 1 | [{"id": "G0", "claim": "The error message misspells \"parent\" as \"partent\" in the array-index branch of checkAtomicResultAgainstValue.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message misspells \"parent\" as \"partent\" in the... | null |
algorand__go-algorand-sdk__337 | algorand/go-algorand-sdk | 337 | defect | 8d36f7f24a2ba78f4fd1c6eee8f0e6235cd65e01 | 85a345a5f9cca3e0dc12b0ca99c09cbf6bddc10e | Boxes: Support for Box array transaction field | Supports supplying Box references during transaction submission. | diff --git a/client/v2/common/models/box.go b/client/v2/common/models/box.go
new file mode 100644
index 00000000..5bc552cb
--- /dev/null
+++ b/client/v2/common/models/box.go
@@ -0,0 +1,10 @@
+package models
+
+// Box box name and its content.
+type Box struct {
+ // Name (name) box name, base64 encoded
+ Name []byte `j... | 1 | 1 | 0 | [{"id": "G0", "claim": "The generated Box model code in client/v2/common/models/box.go belongs in the other PR, not this one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algorand__go-algorand-sdk__338 | algorand/go-algorand-sdk | 338 | defect | 8d36f7f24a2ba78f4fd1c6eee8f0e6235cd65e01 | 289f2b443e923d5764214084e1912198fd25b87c | Boxes: Query algod Box by application ID and Box name | Adds support to query algod for Box by application ID and Box name with unit + integration algorand-sdk-testing support.
Notes:
* Thanks to @algoidurovic for providing a base in #322.
* The PR makes no attempt to provide convenience methods for supplying an encoded box name. Convenience methods will be provided i... | diff --git a/Makefile b/Makefile
index b727b87f..fc36abd8 100644
--- a/Makefile
+++ b/Makefile
@@ -19,11 +19,11 @@ test:
unit:
go test $(TEST_SOURCES_NO_CUCUMBER)
- cd test && go test -timeout 0s --godog.strict=true --godog.format=pretty --godog.tags="@unit.offline,@unit.algod,@unit.indexer,@unit.transactions.keyr... | 3 | 2 | 0 | [{"id": "G0", "claim": "The temporary branch change in test/docker/run_docker.sh (cloning algorand-sdk-testing from use_latest instead of feature/box-storage) should be reverted once the upstream PRs are merged.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
algorand__go-algorand-sdk__355 | algorand/go-algorand-sdk | 355 | defect | 42ba3e379e9bbad20ffd5b5058eb1b0f3ddb5877 | c34ee5566662c3d9848d05a2023aa26700ef48ec | Box support for Indexer endpoints | This PR uses the existing generator to generate paths for the indexer box/boxes endpoint and adds cucumber unit tests to test correct paths. | diff --git a/client/v2/common/models/account.go b/client/v2/common/models/account.go
index 88a054de..c394ca61 100644
--- a/client/v2/common/models/account.go
+++ b/client/v2/common/models/account.go
@@ -97,6 +97,14 @@ type Account struct {
// to the count of AssetHolding objects held by this account.
TotalAssetsOpt... | 3 | 2 | 1 | [{"id": "G1", "claim": "The test/docker/run_docker.sh file should no longer exist in the repository.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G2", "claim": "The SearchForApplicationBoxes godog step should also include a next-token (next) segment in its... | null |
algorand__go-algorand-sdk__360 | algorand/go-algorand-sdk | 360 | defect | f7c1489da54eeafe9e8149070ba4ce37ce416a6e | 62ab5572b23c7d59848d59ac6ac8465306ff3218 | Enhancement: Use Sandbox for Testing | # += Sandbox -= Indexer Snapshots
Undertaking the work of removing obsolete indexer steps and testing using the Sandbox.
## Defining Issue
https://github.com/algorand/algorand-sdk-testing/issues/221
## TODO
- [x] Has `trim-indexer` branch of `algorand-sdk-testing` been merged?
- [x] Repoint the dependency... | diff --git a/.test-env b/.test-env
new file mode 100644
index 00000000..3abc5e33
--- /dev/null
+++ b/.test-env
@@ -0,0 +1,8 @@
+# Configs for testing repo download:
+SDK_TESTING_URL="https://github.com/algorand/algorand-sdk-testing"
+SDK_TESTING_BRANCH="trim-indexer"
+SDK_TESTING_HARNESS="test-harness"
+
+# WARNING: Be... | 4 | 4 | 2 | [{"id": "G0", "claim": "The base32 decode of pk in signMsigKmd discards the error with `_`; it is better to explicitly check the error than ignore it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": ".test-env is missing a trailing newline at end of f... | null |
algorand__go-algorand-sdk__374 | algorand/go-algorand-sdk | 374 | defect | c8a0e9b23b7fb4d59a0a04cbda66b0edf1033229 | 0842b7ff7bbfc39426b42411b65a8cc707404b33 | StateProof: State proof support | Picks up where #362 leaves off since Will is out.
I've addressed all of the most recent comments in that PR--added allocbound definitions where missing, renamed fields. | diff --git a/client/v2/algod/algod.go b/client/v2/algod/algod.go
index 80681c63..f5ad2205 100644
--- a/client/v2/algod/algod.go
+++ b/client/v2/algod/algod.go
@@ -80,8 +80,8 @@ func (c *Client) Block(round uint64) *Block {
return &Block{c: c, round: round}
}
-func (c *Client) GetProof(round uint64, txid string) *G... | 4 | 4 | 3 | [{"id": "G0", "claim": "The redundant client/v2/common/models/proof_response.go is unnecessary because TransactionProofResponse covers for it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two TxnCommitments fields should be typed Digest as... | null |
algorand__go-algorand-sdk__435 | algorand/go-algorand-sdk | 435 | defect | e7e6ab1b20dc332c2a2ed25ff74fc25620d49abb | 1e51dc4e5e40a5f45e34125afbecc9c8e32cea1d | Refactoring: Move old transaction dependencies to future.transaction | This PR moves some dependencies in the old `transaction` into `future.transaction` to prepare for the new SDK version.
This is a part of #396 . | diff --git a/future/transaction.go b/future/transaction.go
index 11697c6c..f92e5c63 100644
--- a/future/transaction.go
+++ b/future/transaction.go
@@ -1,9 +1,12 @@
package future
import (
+ "bytes"
"encoding/base64"
"fmt"
+ "github.com/algorand/go-algorand-sdk/crypto"
+ "github.com/algorand/go-algorand-sdk/en... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the NumOfAdditionalBytesAfterSigning constant out of the EstimateSize function to the future/transaction package level, matching where it lives in transaction/transaction.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algorand__go-algorand-sdk__467 | algorand/go-algorand-sdk | 467 | defect | 073239f9dca8d46c82edbcd2a3726f0fd259a7da | 9fd16a7fe1911b5817f40d0ad06abf6ba0e6f30e | API: Add types for ledgercore.StateDelta. | * Add types for LedgerStateDelta.
* Add generated types for new status fields.
* Add strict encoder, currently only used by tests.
* Fix bug where encoding errors were ignored.
* Disable block header response test which has never worked, opened issue: https://github.com/algorand/go-algorand-sdk/issues/469
* Map ke... | diff --git a/client/v2/algod/getLedgerStateDelta.go b/client/v2/algod/getLedgerStateDelta.go
index f10040d6..bc8bb0f1 100644
--- a/client/v2/algod/getLedgerStateDelta.go
+++ b/client/v2/algod/getLedgerStateDelta.go
@@ -8,15 +8,24 @@ import (
"github.com/algorand/go-algorand-sdk/v2/client/v2/common/models"
)
+// Ge... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request should also add the TealType constants (TealBytesType, TealUintType) and the account Status enum (Offline, Online, NotParticipating) to the types package.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly a... | null |
algorand__go-algorand-sdk__560 | algorand/go-algorand-sdk | 560 | defect | f606a5dd484f80fbcd49cb30e566644b9d5d073d | cb04ce14fcd0552fb0ba7caa1f1c1dcf3628bb7b | encoder: Update go-codec version. | With the new version of go-codec, integer keys are quoted. | diff --git a/encoding/json/json_test.go b/encoding/json/json_test.go
index 750408d4..edae8378 100644
--- a/encoding/json/json_test.go
+++ b/encoding/json/json_test.go
@@ -2,6 +2,8 @@ package json
import (
"bytes"
+ "encoding/json"
+ "fmt"
"testing"
"github.com/stretchr/testify/assert"
@@ -17,70 +19,101 @@ ty... | 2 | 2 | 0 | [{"id": "G0", "claim": "The linter flags the redundant `KeyStruct{` in the composite literal, and it should be replaced with `{`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `fmt.Println` debug statement in TestStructKeyEncode looks like ... | null |
algorand__go-algorand-sdk__58 | algorand/go-algorand-sdk | 58 | defect | 06070b6a0326dfb0c47016df59bc75378bbac5b2 | cfa86e372fa1b1b784bf83cb447eee543f8ec875 | LogicSig support | Implemented functionality for LogicSig creation (both delegated and non-delegated)
Added usage example to README | diff --git a/.gitignore b/.gitignore
index 50415a0dd..38b09afe7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,5 +12,7 @@ coverage.html
*.swp
*.swo
+.vscode
+
# Mac
.DS_Store
diff --git a/.travis.yml b/.travis.yml
index a82949974..30c9d343f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,5 +9,5 @@ install:
-... | 6 | 6 | 0 | [{"id": "G0", "claim": "The README LogicSig example declares `func doLogSig()` where a snippet presented as `package main` should declare the entry point `func main()`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider giving `myIndex` and `... | null |
algorand__go-algorand-sdk__60 | algorand/go-algorand-sdk | 60 | defect | 984cacdd7879a897685814567ff601998ab74789 | 043becc5e000f8cabae2c472eb151480e9a38481 | Asset Transfer Transactions, and related operations: acceptance, revocation, burning, minting | ## Summary
This PR proposes to add asset transfer transactions.
Additionally, it proposes to add "I accept asset X" transactions, which are a special case of asset transfer transactions.
Additionally, it proposes to add revocation transactions, which are asset transfer transactions where the clawback address is revo... | diff --git a/transaction/transaction.go b/transaction/transaction.go
index 1ae823bb..3a2c73de 100644
--- a/transaction/transaction.go
+++ b/transaction/transaction.go
@@ -361,6 +361,96 @@ func MakeAssetConfigTxn(account string, feePerByte, firstRound, lastRound uint64
return tx, nil
}
+// MakeAssetTransferTxn crea... | 9 | 7 | 2 | [{"id": "G0", "claim": "MakeAssetTransferTxn's doc comment is missing an entry for the note parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fee computed by MakeAssetTransferTxn should be checked against MinTxnFee.", "category": "corr... | null |
algorand__go-algorand-sdk__611 | algorand/go-algorand-sdk | 611 | defect | c039b842b12b6d3c4da6a1bb7d9f2c691feb6c67 | 7a4261bb39824227562ba7285ac7cefca4ede4e2 | Simulate: Fix simulate request error & support ATC simulation | A user reported that the following error occurred when trying to use the algod simulate endpoint:
```
HTTP 400: {"message":"failed to decode object: json decode error [pos 13]: no matching struct field found when decoding stream map with key Format"}
```
I reproduced the error and saw that it was because the si... | diff --git a/client/v2/algod/simulateTransaction.go b/client/v2/algod/simulateTransaction.go
index ef5fdae6..cec0944f 100644
--- a/client/v2/algod/simulateTransaction.go
+++ b/client/v2/algod/simulateTransaction.go
@@ -5,6 +5,7 @@ import (
"github.com/algorand/go-algorand-sdk/v2/client/v2/common"
"github.com/algo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new Simulate method should take context.Context as its first parameter instead of after the algod client, per the revive context-as-argument lint rule.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algorand__go-algorand-sdk__704 | algorand/go-algorand-sdk | 704 | defect | 3f0b08db70bdf713e1cb66991bd2c4929782deb1 | cc5e42d9383bd17cc3f12414f8cbd825ba0d0f28 | Build: Update Box API Pagination-dependent integration tests. | The pagination support on the boxes endpoint depends solely on what box information has been persisted within algod. Previously, integration tests could assume once a transaction to add a box was approved, it was queryable. This PR introduces check and wait semantics to give ample time for the boxes to be made availabl... | diff --git a/test/applications_integration_test.go b/test/applications_integration_test.go
index 710830b5..96daa3ba 100644
--- a/test/applications_integration_test.go
+++ b/test/applications_integration_test.go
@@ -853,7 +853,11 @@ func currentApplicationShouldHaveFollowingBoxes(fromClient, encodedBoxesRaw stri
var e... | 4 | 1 | 0 | [{"id": "G0", "claim": "Consider propagating or handling the error returned by advanceChainAndWaitForBoxesToBeAvailable instead of silently ignoring it, to prevent unexpected test behavior when an error occurs.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "... | null |
algorand__go-algorand-sdk__83 | algorand/go-algorand-sdk | 83 | defect | fdb5215a96b5e6cf2aecdd92183932403df04f4f | 078ccbf34edb3bd36fa63132100511de750f5e86 | LogicSig Template: Split, HTLC | ## Summary
This PR describes template classes for building and using LogicSig contracts. At time of writing it includes two classes, `Split` and `HTLC`.
These templates are in a new package, `templates`. They were originally in `logic`, but this caused circular imports. (The `templates` require `crypto`, which requir... | diff --git a/examples/gen-addresses/main.go b/examples/gen-addresses/main.go
index 50ee9c14..8ba1e401 100644
--- a/examples/gen-addresses/main.go
+++ b/examples/gen-addresses/main.go
@@ -115,7 +115,7 @@ func main() {
// Sign a sample transaction using this library, *not* kmd
genID := txParams.GenesisID
genHash :=... | 3 | 3 | 2 | [{"id": "G0", "claim": "The `replace` helper may not be correct: appending to subslices of the input buffer shares backing storage and can corrupt the program bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "ContractTemplate.GetProgram should r... | null |
algorand__java-algorand-sdk__221 | algorand/java-algorand-sdk | 221 | defect | e9871a544ad6155df8cb67f5d95ea38254f8a6a7 | 3233c386e93ff1cfbe8168d153f262e940844f0d | Add static qualifiers to json creators for onCompletion enum serialization. | Add static qualifiers to json creators for onCompletion enum serialization. | diff --git a/src/main/java/com/algorand/algosdk/transaction/Transaction.java b/src/main/java/com/algorand/algosdk/transaction/Transaction.java
index 4d9bcbeb6..8cff48519 100644
--- a/src/main/java/com/algorand/algosdk/transaction/Transaction.java
+++ b/src/main/java/com/algorand/algosdk/transaction/Transaction.java
@@ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer questions why a separate getSerializedValue() function is needed here, implying it should not exist as a separate function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the unit test from #220 to TestTransaction... | null |
algorand__java-algorand-sdk__225 | algorand/java-algorand-sdk | 225 | defect | 34b27834770e8cc18240b78589f8d7c7ebce215f | 20f05aad34e35265299f029b840093d27191dcfb | Feature extra pages | NOTE: this is blocked #224, but creating this anyways | diff --git a/src/main/java/com/algorand/algosdk/builder/transaction/ApplicationCreateTransactionBuilder.java b/src/main/java/com/algorand/algosdk/builder/transaction/ApplicationCreateTransactionBuilder.java
index 46bb241a1..8c2cb98ed 100644
--- a/src/main/java/com/algorand/algosdk/builder/transaction/ApplicationCreateT... | 5 | 4 | 2 | [{"id": "G0", "claim": "extraPages(Long) dereferences extraPages without a null check, so a null argument would throw a NullPointerException instead of the intended IllegalArgumentException.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the ... | null |
algorand__java-algorand-sdk__227 | algorand/java-algorand-sdk | 227 | defect | 62e4fcfcc9495eb25b78f466642e1c0af53c4b68 | df5702872d6a9cd308a2a38c7407045858ea0a14 | Fee pooling SDK change | This PR is to support creating transactions with a fee under mintxnfee since other txns in the group will be paying. | diff --git a/Makefile b/Makefile
index 9aea5cd3e..b5945c45d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
unit:
- mvn test -Dcucumber.filter.tags="@unit.offline or @unit.algod or @unit.indexer or @unit.rekey or @unit.indexer.rekey or @unit.transactions or @unit.responses or @unit.applications or @unit.dryrun or... | 7 | 7 | 3 | [{"id": "G0", "claim": "Remove the extra blank line added after the field declarations in TransactionSteps.java.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the flatFee call up to line 93 so it is grouped with the other property setters ... | null |
algorand__java-algorand-sdk__250 | algorand/java-algorand-sdk | 250 | defect | 06757c8b3a786c38124059b55f27bb993ccd1102 | 7873d5c0b58a00a43a8d8725085cea39e89ba898 | Feature/sign rekey lsig msig | This is the corresponding implementation and improvement from algorand/go-algorand-sdk#230.
This PR also added method for consttruction `Account` from `PrivateKey` and `KeyPair`, to resolve #245.
Details:
- MultiSig Changes:
- `Account.signMultisigTransaction` can allow signing from any address.
- `Account... | diff --git a/src/main/java/com/algorand/algosdk/account/Account.java b/src/main/java/com/algorand/algosdk/account/Account.java
index b4f7b7046..9838a1c32 100644
--- a/src/main/java/com/algorand/algosdk/account/Account.java
+++ b/src/main/java/com/algorand/algosdk/account/Account.java
@@ -31,6 +31,8 @@ public class Acco... | 3 | 3 | 2 | [{"id": "G0", "claim": "Declaring NoSuchAlgorithmException on the new logic-sig signing functions is a breaking API change for callers, and it should be caught and wrapped/converted to another exception to maintain backwards compatibility.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
algorand__java-algorand-sdk__254 | algorand/java-algorand-sdk | 254 | defect | e3bcdee7ca87e6eef8ee0e4a35189363bf05da9e | 74f9d041f3a26a495d9cbbfa40e427c43542b47c | Support AVM 1.0 | - [x] Update TEAL langspec to v5
- [x] Add function to get app address
- [x] Regenerate REST API types
- [x] Support new logs cucumber test
- [x] Enable new cucumber test
Closes #252. | diff --git a/Makefile b/Makefile
index b5945c45d..f2cf5c5f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
unit:
- mvn test -Dcucumber.filter.tags="@unit.offline or @unit.algod or @unit.indexer or @unit.rekey or @unit.indexer.rekey or @unit.transactions or @unit.responses or @unit.applications or @unit.dryrun or... | 5 | 3 | 0 | [{"id": "G0", "claim": "Use ByteArrayOutputStream instead of System.arraycopy when building the buffer in Address.forApplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Put the uint64 encoding helpers in the existing Encoder class (e.g. ... | null |
algorand__java-algorand-sdk__398 | algorand/java-algorand-sdk | 398 | defect | 5d8130c22024059cdda164bcfee8487825f7173d | 52b2fd75c624ab5255c8cd80d84bbf7d13e5ddab | Box storage changes | Child PR to #345.
This addresses most of my comments.
Still needs to be addresses:
- [x] https://github.com/algorand/java-algorand-sdk/pull/345#discussion_r976911364
- Addressed by #401
- [x] https://github.com/algorand/java-algorand-sdk/pull/345#discussion_r976865846
- Addressed by #399
- [x] https://g... | diff --git a/src/main/java/com/algorand/algosdk/builder/transaction/ApplicationBaseTransactionBuilder.java b/src/main/java/com/algorand/algosdk/builder/transaction/ApplicationBaseTransactionBuilder.java
index ed03eb75d..a0d4fb496 100644
--- a/src/main/java/com/algorand/algosdk/builder/transaction/ApplicationBaseTransac... | 1 | 1 | 1 | [{"id": "G0", "claim": "Arrays.compare was introduced in Java 9, so the new ByteArrayComparator in the integration test needs a workaround for the Java version the SDK supports.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
algorand__java-algorand-sdk__401 | algorand/java-algorand-sdk | 401 | defect | 5d8130c22024059cdda164bcfee8487825f7173d | 442bf5d806bc325927b54bbc7697f4b555dea462 | Re-run code generator | Addresses https://github.com/algorand/java-algorand-sdk/pull/345#discussion_r976911364 by re-running _generator_ using branches matching `.env` in https://github.com/algorand/algorand-sdk-testing/pull/192. | diff --git a/src/main/java/com/algorand/algosdk/v2/client/common/AlgodClient.java b/src/main/java/com/algorand/algosdk/v2/client/common/AlgodClient.java
index dcbad0340..8340e7d16 100644
--- a/src/main/java/com/algorand/algosdk/v2/client/common/AlgodClient.java
+++ b/src/main/java/com/algorand/algosdk/v2/client/common/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The javadoc on BoxesResponse.nextToken is inaccurate: it tells users to prepend the next token with \"b64:\" when keeping the provided encoding, but the indexer does not require that prefix (per algorand/indexer#1240).", "category": "documentation", "verdict": "supported", "priority": "P2", "sco... | null |
algorand__java-algorand-sdk__413 | algorand/java-algorand-sdk | 413 | defect | 29b323330c33a1b03f8cd69b3144d4502ae4bfd0 | 3bfd0ebf1fe075266762277595a5fdf13627a568 | REST API: Add algod block hash endpoint, add indexer block header-only param. | Add tests to generated code. See commits for the generated code vs the tests.
Tests are passing locally, CI is pending https://github.com/algorand/algorand-sdk-testing/pull/245 | diff --git a/.test-env b/.test-env
index 3b17bb191..df783a4fd 100644
--- a/.test-env
+++ b/.test-env
@@ -3,6 +3,8 @@ SDK_TESTING_URL="https://github.com/algorand/algorand-sdk-testing"
SDK_TESTING_BRANCH="master"
SDK_TESTING_HARNESS="test-harness"
+INSTALL_ONLY=0
+
VERBOSE_HARNESS=0
# WARNING: If set to 1, new f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test-harness.sh changes should be rebased onto the definitive version of that script from go-algorand-sdk PR #421 rather than standing alone.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
algorand__java-algorand-sdk__48 | algorand/java-algorand-sdk | 48 | defect | d5f520409f9d0520598a4ab6ee39919e6260ad39 | 65214041bdf5d96305b4e74c6f7ff10fbacff7e6 | Java SDK changes to run full assets cucumber tests | Enhanced ApiException in kmd to report response body in exception.
Added a utility method to Transaction to extract com.algorand.algosdk.algod.client.model.AssetParams from it.
| diff --git a/src/main/java/com/algorand/algosdk/kmd/client/ApiException.java b/src/main/java/com/algorand/algosdk/kmd/client/ApiException.java
index f8c55f743..91435cc26 100644
--- a/src/main/java/com/algorand/algosdk/kmd/client/ApiException.java
+++ b/src/main/java/com/algorand/algosdk/kmd/client/ApiException.java
@@ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request does not build on CI; a package it is looking for is not being found.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
algorand__java-algorand-sdk__51 | algorand/java-algorand-sdk | 51 | defect | b748cc3487a3a65990031dd6946dcaaf3ba3fc38 | fe9dde5987fddedc2882998927b7b3f4a8cbb304 | Java sdk lease | Adding lease to java SDK transaction with test.
Also added a missing pay transaction.
| diff --git a/src/main/java/com/algorand/algosdk/transaction/Transaction.java b/src/main/java/com/algorand/algosdk/transaction/Transaction.java
index 15d8bb332..23590edcc 100644
--- a/src/main/java/com/algorand/algosdk/transaction/Transaction.java
+++ b/src/main/java/com/algorand/algosdk/transaction/Transaction.java
@@ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The private constructor's lease assignment may want a length check as well, unless that check is redundant.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use a named constant instead of the magic number 32 in setLease's length... | null |
algorand__java-algorand-sdk__57 | algorand/java-algorand-sdk | 57 | defect | 2848385d509ed8ec6b6a5d3f99ee69aba01c81f6 | 6c16a38823eb26f66deaf585a9d0e98c45af7518 | JAVA SDK templates: HTCL and Split | ContractTemplate: main function is injecting parameter values.
HTCL and Split templates
TestTemplates: tests both templates against the golden. HTCL is not matching the golden. Split is. | diff --git a/src/main/java/com/algorand/algosdk/templates/ContractTemplate.java b/src/main/java/com/algorand/algosdk/templates/ContractTemplate.java
new file mode 100644
index 000000000..f9074fd26
--- /dev/null
+++ b/src/main/java/com/algorand/algosdk/templates/ContractTemplate.java
@@ -0,0 +1,182 @@
+/*
+ * To change ... | 8 | 6 | 2 | [{"id": "G0", "claim": "The template should keep the program as a byte array instead of a Base64 String, avoiding the repeated encode/decode round-trips.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method named putVarint actually implements unsign... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.