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
twentyhq__twenty__20001
twentyhq/twenty
20,001
defect
39831338f72594fbddda3b0dee33a3ccfa5d58f1
8a9a0bb9a7f6c765fc90b773ccdb334acf352c7c
Add admin avatars and app logos
## Summary - Add user avatars and workspace logos to the admin general table and workspace member detail view - Show app icons in the admin app registrations table and reuse the shared application display component - Expose the needed avatar and logo fields through admin GraphQL queries and backend lookup/statistics se...
diff --git a/packages/twenty-front/src/generated-admin/graphql.ts b/packages/twenty-front/src/generated-admin/graphql.ts index 8645ee535f15e..580b3f5a34238 100644 --- a/packages/twenty-front/src/generated-admin/graphql.ts +++ b/packages/twenty-front/src/generated-admin/graphql.ts @@ -83,18 +83,21 @@ export enum AdminPa...
7
6
3
[{"id": "G0", "claim": "The loadPreferredAvatarUrlsByUserId method creates an N+1 query issue by fetching avatar URLs individually for each user workspace instead of using a single batched query.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The qu...
null
twentyhq__twenty__20005
twentyhq/twenty
20,005
defect
aa4aea0f9b0b45c9985378b50431671d78e9914c
96f1db4e9ba3352f3d2aae70bcafa35d145c0f91
Retrieve ai catalog at bootstrap
# Introduction Migrating from build injection to a runtime bootstrap injection of the ai catalog that are dynamic to the env we're deploying to
diff --git a/packages/twenty-server/src/engine/core-modules/admin-panel/admin-panel.resolver.ts b/packages/twenty-server/src/engine/core-modules/admin-panel/admin-panel.resolver.ts index 9b3f4dba1948b..0d47aa24a63c2 100644 --- a/packages/twenty-server/src/engine/core-modules/admin-panel/admin-panel.resolver.ts +++ b/pa...
3
2
1
[{"id": "G0", "claim": "If loading the custom AI catalog fails, the catch block in onModuleInit overwrites the pre-initialized default catalog with an empty object (this.catalog = {}), disabling all AI providers instead of falling back to the built-in defaults.", "category": "correctness", "verdict": "opposed", "priori...
null
twentyhq__twenty__20048
twentyhq/twenty
20,048
defect
570038ad652d6e4f6d55dcb3988cbe43b0d187d9
b2130289826dc06c45e12feb54fc3313644e4ef5
[AI] ai usage line chart date gap filling
ERROR: type should be string, got "\r\nhttps://github.com/user-attachments/assets/ecd37dfb-daae-41c3-8316-a9d923463eca\r\n\r\n"
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAI.tsx b/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAdminAI.tsx index 34f22c5eced48..995832e961087 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/ai/components/SettingsAd...
1
1
1
[{"id": "G0", "claim": "Passing `periodEnd` directly to gap filling adds an extra trailing day because the SQL query uses `< periodEnd` while the filler iterates through `<= periodEnd`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
twentyhq__twenty__20077
twentyhq/twenty
20,077
defect
577312f121d4437378b9bc87353f72605f4c1588
d31ca0b76df6891dbce989686bab2238cca4f898
fix(messaging): refactor SentMessagePersistenceService
refactored `SentMessagePersistenceService` to be thin wrapper over `saveMessagesAndEnqueueContactCreation` this fixes a bug where the old logic did not call match participants causing messages to not show up
diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/messaging-import-manager.module.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/messaging-import-manager.module.ts index 0beda4671895e..14db1a674f57a 100644 --- a/packages/twenty-server/src/modules/messaging/messag...
2
2
1
[{"id": "G0", "claim": "PersistSentMessageInput should use Pick<> to narrow the connectedAccount field to only the properties it needs instead of the full ConnectedAccountEntity type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "resolveOutboun...
null
twentyhq__twenty__20088
twentyhq/twenty
20,088
defect
b6ec2acb565e7a647d2c6d5dd39b15319c05478c
7cb76e9839f1f5aa32f0da82cab4fdb79686736a
Fix stale UI state after stop-impersonation
## Summary A customer reported that after **Stop Impersonating**, the sidebar still showed the impersonated user's pinned favorites, the AI chat tab toggle, and the AI chat history — even though the original admin's session was correctly restored. ## Root cause The refactor in #19597 replaced the previous `signOut()...
diff --git a/packages/twenty-front/src/modules/auth/hooks/useImpersonationSession.ts b/packages/twenty-front/src/modules/auth/hooks/useImpersonationSession.ts index 3d44f6ce8d11d..134d5dded05f2 100644 --- a/packages/twenty-front/src/modules/auth/hooks/useImpersonationSession.ts +++ b/packages/twenty-front/src/modules/a...
2
1
0
[{"id": "G0", "claim": "resetUserScopedClientState fails to reset the in-memory agentChatDraftsByThreadIdState atom when an impersonation session ends, unlike the other user-scoped atoms reset in the same function, which could lead to stale data being displayed if thread-ID handling changes.", "category": "correctness"...
null
twentyhq__twenty__20092
twentyhq/twenty
20,092
defect
b6ec2acb565e7a647d2c6d5dd39b15319c05478c
af540007989d48aaa589400cd1f1f12f48867c6f
fix(rest-api): prevent silent pagination failures and include valid options in enum validation errors
# Summary (fixes #20044) This PR implements two fixes for the REST API to enforce stricter validation and provide better error messages. Issue 1: Cursor parameter silently ignored Problem: When users provided common cursor aliases (e.g., cursor, after, before) instead of the correct parameter names (starting_a...
diff --git a/CLAUDE.md b/CLAUDE.md index c0200c5c7c2fa..b9a02b9ded70c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -207,7 +207,7 @@ All dev environments (Claude Code web, Cursor, local) use one script: bash packages/twenty-utils/setup-dev-env.sh ``` -This handles everything: starts Postgres + Redis (auto-detects local...
6
6
2
[{"id": "G0", "claim": "In the starting-after and ending-before cursor parsers, non-string alias values (e.g. arrays from repeated query params) bypass the invalid-cursor error path and silently fall back to an `undefined` pagination cursor.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
twig-energy__stronk__47
twig-energy/stronk
47
defect
a44d6798d3ccc3f2abeda4c429f498e48cf2e722
69163fed0dd3134b52b1dae2f5159e97afa787f0
feature/dimension lists
### Why To Simplify types, reduce code and speed up compilation. ### What was changed - **Rework units to use Dimensions List** - **Create new Dimesions Implementation** - **Remove typelist implementation** - **Run gcc-12 in CI** - **Bump ci dependencies** - **bump vcpkg because abseil broke upstream**
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76dc7e3c..d550c4f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ on: workflow_dispatch: env: - VCPKG_COMMIT: "943c5ef1c8f6b5e6ced092b242c8299caae2ff01" + VCPKG_COMMIT: "f7423ee180c4b7f40d43402c2feb385...
8
7
3
[{"id": "G0", "claim": "The ratio-based unit structs (Meters, Kilometers, Minutes, Hours) and the example test that used them should not have been deleted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The an_identity_unit_type definition and the e...
null
twig-energy__stronk__48
twig-energy/stronk
48
defect
9aa1a1a1020e0c19b1f96319aa952940cff00757
dfcfe92958248d51f763f3cbdc81fd51681f2c78
Glaze support and Default skills (formatting, gtest and json)
### Why At twig we are beginning to support glaze. Having a skill for it will be greatly appreciated. Furthermore the choice to go for default implementation for formatting, json etc is that it greatly simplifies the usage of stronk. At the same time automatically created stronk types (like derived units) will not b...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6971e53..3357a8ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,28 +188,18 @@ jobs: strategy: matrix: os: [macos-12, ubuntu-22.04, windows-2022] - compiler: [gcc-11, gcc-12, clang-13, clang...
3
3
1
[{"id": "G0", "claim": "The test should use the glaze overload that takes a buffer explicitly so the returned error can be checked, since a failure would otherwise not produce readable output.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the pul...
null
twig-energy__stronk__49
twig-energy/stronk
49
defect
3cb3e0948f20545c99bca7fa50b0b6405f04460f
06921f172c47588dc28be66e95f068c30bce27fb
added doctest extension
### Why To ease the use of stronk when using doctest as the testing framework. ### What was changed - fixed CMakeUserPresets pointing to none-existent presets - Added a new doctest extension file which enables doctest printing for stronk-like types
diff --git a/CMakePresets.json b/CMakePresets.json index f6861da2..c42354e3 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -11,7 +11,7 @@ "hidden": true, "cacheVariables": { "stronk_DEVELOPER_MODE": "ON", - "VCPKG_MANIFEST_FEATURES": "test;fmt;abseil;nlohmann-json;glaze;benchmar...
1
1
1
[{"id": "G0", "claim": "Add a test case covering both values of has_doctest_to_string<T>, since the new doctest StringMaker has a constexpr branch on it but the test only exercises one side.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
twig-energy__stronk__69
twig-energy/stronk
69
defect
a7f797a4bc8d21df6fcf9d804e991731cbe153bc
9f3b56e0717be6084b7fab14bc8b9fd7332b9814
Implemented pow and sqrt for units, and use adl for better flexibility on free functions
### Why For more power and flexibility when using stronk and stronk units. ### What was changed - Use ADL to support user-defined underlying types for operations such as log, abs, isnan - Always support std::hash, abs, isnan, log if the underlying type supports it - by including stronk/cmath, or stronk/skills/ca...
diff --git a/include/stronk/cmath.hpp b/include/stronk/cmath.hpp new file mode 100644 index 00000000..62d29013 --- /dev/null +++ b/include/stronk/cmath.hpp @@ -0,0 +1,60 @@ +#pragma once + +#include <cmath> + +#include "stronk/stronk.hpp" +#include "stronk/unit.hpp" + +namespace twig +{ + +template<stronk_like StronkT>...
10
8
2
[{"id": "G0", "claim": "Add a link to a source or name the algorithm used by isqrt in ratio.hpp so it can be verified more easily.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Name the ratio_pow template parameter ExponentV instead of PowerV.", ...
null
twig-energy__stronk__71
twig-energy/stronk
71
defect
af1cd8565a8dd2fb6ad2c2b54b1d4d5d4a16e7a6
d3ac0d18039d7d20d6c997c229cde2379df0b93f
70 boost type index integration
### Why See #70 - in short `find_package(boost_type_index CONFIG REQUIRED)` seem to be outdated and has bad compatibility with "dependency managers" such as CPM ### What was changed - **Modernized the find boost module** - **Silence deprecated in test** - **Bump mac-os runners to mac-os-15, as mac-os-13 has bee...
diff --git a/.github/actions/install-clang/action.yml b/.github/actions/install-clang/action.yml index 47a157b1..e7992f58 100644 --- a/.github/actions/install-clang/action.yml +++ b/.github/actions/install-clang/action.yml @@ -9,7 +9,7 @@ runs: using: "composite" steps: - name: Install LLVM and Clang - ...
2
2
2
[{"id": "G0", "claim": "The debugging left-over appended to the CI Configure run command (\"|| cat ./vcpkg/buildtrees/detect_compiler/config-arm64-osx-rel-err.log\") should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Would we still wa...
null
twilight-rs__twilight__1776
twilight-rs/twilight
1,776
defect
78d75e36dd9c00475247c3a3cbb144323064a063
6e534f33b498254f624747005945d16ed1f18b65
refactor(gateway)!: Don't validate tokens in ShardBuilder
This makes little sense and allows for removing `http_client` on ShardBuilder and making some methods infallible + no longer async. Instead, Cluster has to store a HTTP client for now.
diff --git a/cache/in-memory/README.md b/cache/in-memory/README.md index 9850a587d6..f6e26287a5 100644 --- a/cache/in-memory/README.md +++ b/cache/in-memory/README.md @@ -41,7 +41,7 @@ use twilight_gateway::{Intents, Shard}; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { let token = env::var("DIS...
3
3
0
[{"id": "G0", "claim": "The ClusterBuilder field `cluster_http_client` should be renamed to something less verbose (`http_client` or just `client`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`ShardStartErrorType::InvalidToken` is now unused...
null
twilight-rs__twilight__1947
twilight-rs/twilight
1,947
defect
46d8c3c30e2c8c4307ee37fa696bde3ed00f84f3
2b17ed228e78675b5722bacdbd7876a54719019e
refactor(gateway)!: rewrite ratelimiter
Rewrites the command ratelimiter to follow the specification. Reserves only one additional heartbeat over the expected amount (calculated from `heartbeat_interval`) instead of double the amount. Also tries to only receive user sent messages (from `MessageSender`) when *not* ratelimited, which fixes a previous issue whe...
diff --git a/twilight-gateway/Cargo.toml b/twilight-gateway/Cargo.toml index acfa579f87..03b94759ff 100644 --- a/twilight-gateway/Cargo.toml +++ b/twilight-gateway/Cargo.toml @@ -18,7 +18,7 @@ version = "0.13.3" [dependencies] bitflags = { default-features = false, version = "1" } futures-util = { default-features =...
7
4
0
[{"id": "G0", "claim": "The heap-pinned NextMessageFuture could potentially be avoided by stack pinning the future in Shard::next_message, though the author could not make it work.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "CommandRatelimiter::new sh...
null
twilight-rs__twilight__891
twilight-rs/twilight
891
defect
02fcac5024c53c581078d8a0383b95da334f244f
7ad101cab884d489f15a01be6f9fbd391223efa3
Activities is required when updating presence
This PR removes the `Some` from `UpdateStatusInfo`, as the list is now required. It also validates that at least one activity is present when using the `new` method. Fixes #858.
diff --git a/gateway/src/shard/builder.rs b/gateway/src/shard/builder.rs index 3694b4a8c7..ba6d438e5f 100644 --- a/gateway/src/shard/builder.rs +++ b/gateway/src/shard/builder.rs @@ -285,16 +285,16 @@ impl ShardBuilder { /// # fn main() -> Result<(), Box<dyn std::error::Error>> { /// let shard = Shard::builde...
3
3
0
[{"id": "G0", "claim": "The # Errors doc comment on UpdateStatusInfo::new should be reworded to \"Returns an [`UpdateStatusErrorType::MissingActivity`] error type if an empty set of activites is provided.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
twilio-labs__paste__1002
twilio-labs/paste
1,002
defect
bee502e116a77a4d31b91c9d886a69d9e7b981ef
73bed59a0e2d8901c7813c6e9d9c0428af059f29
feat: Paste token <--> package mappings
This PR adds a NodeJS script into the tools folder to detect which tokens are used in paste-core. The script is executed with `node tools/build/token-usage-detector.js`. The output is saved into the `tools/.cache` folder. The current script captures: 1. The packages each token is used within. 2. Which tokens aren't ...
diff --git a/package.json b/package.json index c4d8f75689..6b032c3a35 100644 --- a/package.json +++ b/package.json @@ -163,6 +163,7 @@ "react-dom": "^16.8.6", "react-test-renderer": "^16.8.6", "regenerator-runtime": "^0.13.3", + "search-in-file": "^1.2.2", "shelljs": "^0.8.3", "start-server-...
3
2
0
[{"id": "G0", "claim": "The generated token-usage cache (tools/.cache/token-usage.json) should not be committed to the repository; it can be generated on the fly and should be gitignored instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
twilio-labs__paste__1010
twilio-labs/paste
1,010
defect
58dc8c1e57a107efd0aafd6825b125620a6dc8e3
05c637d6f8add0079372563beb1a5304fc6384d1
feat: customization provider package
Allow ability to be able to provide a custom theme to a Paste app via the `CustomizationProvider`
diff --git a/packages/paste-customization/CHANGELOG.md b/packages/paste-customization/CHANGELOG.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/paste-customization/README.md b/packages/paste-customization/README.md new file mode 100644 index 0000000000..998fe70e3c --- /dev/null +++ b/packages...
2
2
0
[{"id": "G0", "claim": "Use merge({}, baseTheme, overrides) in createCustomTheme instead of cloneDeep followed by merge, to prevent mutating the default theme while avoiding the cloneDeep call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pack...
null
twilio-labs__paste__1078
twilio-labs/paste
1,078
defect
2b1955b7fd27f0105b5453bcc77657cf79339848
5d3cd889645e347b306bde251014ba5fb42eb543
chore(table): borderless and striped, adjust styles, promote to beta
- [x] Added borderless variant - [x] Added striped prop - [x] Style adjustments - [x] Added additional stories - [x] Added additional tests
diff --git a/packages/paste-core/components/table/__tests__/index.spec.tsx b/packages/paste-core/components/table/__tests__/index.spec.tsx index 3780be151f..9675a07e59 100644 --- a/packages/paste-core/components/table/__tests__/index.spec.tsx +++ b/packages/paste-core/components/table/__tests__/index.spec.tsx @@ -7,6 +...
3
2
1
[{"id": "G0", "claim": "The const holding the TableContext value in Tr should be destructured as `{striped}` rather than named `table` (reviewer's nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ReactNode already permits undefined, so the `...
null
twilio-labs__paste__1117
twilio-labs/paste
1,117
defect
fdba10a048fcf1197873da0a9bcdc4b656e0508c
bcd8a0df1ff7374febd5256a36c9525b983c4b03
feat(combobox): virtualize ungrouped combobox items
Virtualizes combobox items that aren't using groupings and a custom optionTemplate. Addresses: https://github.com/twilio-labs/paste/discussions/841
diff --git a/packages/paste-core/components/combobox/package.json b/packages/paste-core/components/combobox/package.json index e90c76b40d..46f48882ff 100644 --- a/packages/paste-core/components/combobox/package.json +++ b/packages/paste-core/components/combobox/package.json @@ -25,7 +25,8 @@ "tsc": "tsc" }, ...
3
2
1
[{"id": "G0", "claim": "The virtual item height may not calculate correctly for options that run into two lines.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "The virtualItemProps variable should be named virtualItemStyles.", "category": "maintaina...
null
twilio-labs__paste__1408
twilio-labs/paste
1,408
defect
b026df4d6a0d8044870f66b2179080e527fe1845
423c96bcb9865cf5e21f9a30edbd8acc2f288073
fix(input): fixed the color of disabled input values
Fixes: https://github.com/twilio-labs/paste/issues/1305 - [x] Added `-webkit-text-fill-color` to css scales and enabled it to use `textColor` tokens - [x] Fixed disabled `Input` value color - [x] Fixed disabled `TextArea` value color - [x] Adjusted disabled `Combobox` story to have an initial value for VRT
diff --git a/.changeset/itchy-countries-attend.md b/.changeset/itchy-countries-attend.md new file mode 100644 index 0000000000..dbed1d7861 --- /dev/null +++ b/.changeset/itchy-countries-attend.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/textarea': patch +'@twilio-paste/core': patch +--- + +Fix disabled textarea value color...
3
1
0
[{"id": "G0", "claim": "A changeset should also be included for @twilio-paste/combobox, since the pull request changes that package too.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add '@twilio-paste/input': patch to the .changeset/itchy-countrie...
null
twilio-labs__paste__1509
twilio-labs/paste
1,509
defect
bee502e116a77a4d31b91c9d886a69d9e7b981ef
aae383da90be7f0692779a77e7f136eb5a36dba3
feat(customization): prepare customization provider to accept an elements object
In prep for component customization, prepare the customization provider to be able to accept an object of elements that are to be styled. Much of this comes from the POC https://github.com/twilio-labs/paste/pull/476/ - accept an well typed elements object on the provider - create a customization consumer as the ...
diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 23bb780b9b..f8ec20cf3e 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -13,6 +13,7 @@ "github.vscode-pull-request-github", "ms-vsliveshare.vsliveshare", "tyriar.sort-lines", - "dsznajder.es7-react-js-snippets" +...
1
1
0
[{"id": "G0", "claim": "For future maintainability, the starterTheme const should either be inlined into the createCustomTheme call inside the useMemo callback or moved inside the useMemo callback.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
twilio-labs__paste__1606
twilio-labs/paste
1,606
defect
9d40d1ba01ed76708c88275f497f5b0487f3e2d8
1552c7f6c1baf5e1a464fb96135cfdb4d7532bef
feat(popover): add state hook prop
- [x] Added `state` prop to Popover - [x] Added tests and stories - [x] Added example to Popover docs page - [x] Expanded Disclosure state hook prop examples based on https://github.com/twilio-labs/paste/discussions/1578
diff --git a/packages/paste-core/components/popover/__tests__/__snapshots__/index.spec.tsx.snap b/packages/paste-core/components/popover/__tests__/__snapshots__/index.spec.tsx.snap deleted file mode 100644 index 4de154d011..0000000000 --- a/packages/paste-core/components/popover/__tests__/__snapshots__/index.spec.tsx.s...
5
4
1
[{"id": "G0", "claim": "The disclosure docs copy the Reakit `animated`/`stopAnimation` prop descriptions verbatim even though this disclosure uses the animation library and CSS transitions don't apply, so those props and this wording should probably be dropped from the docs.", "category": "documentation", "verdict": "u...
null
twilio-labs__paste__1663
twilio-labs/paste
1,663
defect
ed45631cf8828ef220661f9089186bdeed60988c
f03f5282c5a7248523d48f49bc1b1662317d2608
docs(website): add label package doc page
- [x] Added label package doc page - [x] Removed label page from cypress ignore list
diff --git a/cypress/integration/e2e/link-checker/index.spec.ts b/cypress/integration/e2e/link-checker/index.spec.ts index 2101207a4d..60875b7ffd 100644 --- a/cypress/integration/e2e/link-checker/index.spec.ts +++ b/cypress/integration/e2e/link-checker/index.spec.ts @@ -14,7 +14,6 @@ const IGNORE_LIST = [ // Left th...
2
1
0
[{"id": "G0", "claim": "The live example sits above the Guidelines section, which is not the norm in the other docs pages, and the reviewer asks whether that placement is intended (while allowing it may not matter given the planned redesign).", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope...
null
twilio-labs__paste__1723
twilio-labs/paste
1,723
defect
0c3f12603cbe9465f22a68aa0f5b6a52b46a2edb
4793d1609b67c386ce85036a1993e3b46fde86cd
feat(flex): enable flex to use custom styles
- Allow `element` prop to be set on Flex for customization - Tests and stories to ensure API stability and custom style inheritance **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source proje...
diff --git a/.changeset/small-bananas-shout.md b/.changeset/small-bananas-shout.md new file mode 100644 index 0000000000..6b8023b0bc --- /dev/null +++ b/.changeset/small-bananas-shout.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/flex': minor +'@twilio-paste/core': minor +--- + +[Flex] Enable Flex to respect element customiz...
1
1
1
[{"id": "G0", "claim": "FlexProps should take the element prop by extending from BoxProps (as done in the Anchor PR) instead of re-declaring element?: string itself.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
twilio-labs__paste__1733
twilio-labs/paste
1,733
defect
8796ba88172c884975743708bc06f5a979ec7dd3
a0d3d45b2d789a38d5f0a76d691885589d1438d9
feat(anchor): add element customization
Adds element customization to the Anchor component so it works with CustomizationProvider.
diff --git a/.changeset/bright-papayas-collect.md b/.changeset/bright-papayas-collect.md new file mode 100644 index 0000000000..3e0cb0a5a8 --- /dev/null +++ b/.changeset/bright-papayas-collect.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/anchor': minor +'@twilio-paste/core': minor +--- + +[Anchor] Enable Anchor to respect e...
3
2
0
[{"id": "G0", "claim": "A test should also be added for adding custom styles to Anchor when a custom element data attribute is being used.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks why `element` was added via Pick<BoxProps, 'element'> instead ...
null
twilio-labs__paste__1734
twilio-labs/paste
1,734
defect
82cff4ec30ab623b84218319de825c76f39ff83f
00923af4e3330b87cf9f7ebce8ff49e7311ff72c
feat(grid): add element customization
- Adds element customization to the Grid and Column components so they work with CustomizationProvider. - Refactored `Column` to use `Box`.
diff --git a/packages/paste-core/layout/grid/__tests__/__snapshots__/grid.test.tsx.snap b/packages/paste-core/layout/grid/__tests__/__snapshots__/grid.test.tsx.snap index 1115c5c0ce..07ee6c4527 100644 --- a/packages/paste-core/layout/grid/__tests__/__snapshots__/grid.test.tsx.snap +++ b/packages/paste-core/layout/grid/...
1
1
1
[{"id": "G0", "claim": "Column should pass element customization through Box's `element` prop (element={element}) instead of hand-writing data-paste-element={element} on a styled div, since the acceptance criteria require anything not using Box to be refactored to use Box.", "category": "design", "verdict": "supported"...
null
twilio-labs__paste__1781
twilio-labs/paste
1,781
defect
03abf6a894fcb909fa7df65f5e543c621ddbd5b2
be5a70f3276ab8fda05afa0ec91230cd4084a524
feat(separator): add element customization
- [x] Enable element customization to the Heading component so it works with CustomizationProvider. - [x] Added stories and tests
diff --git a/.changeset/popular-cheetahs-punch.md b/.changeset/popular-cheetahs-punch.md new file mode 100644 index 0000000000..8496d72c61 --- /dev/null +++ b/.changeset/popular-cheetahs-punch.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/separator': minor +'@twilio-paste/core': minor +--- + +[Separator] Enable Separator to ...
2
2
0
[{"id": "G0", "claim": "The customization test's description needs updating — it says 'Grid' while the test customizes the Separator.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wording of the first two orientation test descriptions feels off and...
null
twilio-labs__paste__1785
twilio-labs/paste
1,785
defect
03abf6a894fcb909fa7df65f5e543c621ddbd5b2
dfeeb2c2da5b6af61ffe2094eb6a466c95e6ef9a
fix(box): correctly handle variants that are not on the element object
When a component was setting a variant that was not present on the element object, it would throw an error as it was trying to merge an object into undefined. This simply checks that there is a matching variant on the element object, before it merges the styles.
diff --git a/.changeset/lazy-pumas-reflect.md b/.changeset/lazy-pumas-reflect.md new file mode 100644 index 0000000000..e654ebc0d5 --- /dev/null +++ b/.changeset/lazy-pumas-reflect.md @@ -0,0 +1,5 @@ +--- +'@twilio-paste/box': patch +--- + +[Box]: Box now handles the case where a variant being set on the component, doe...
3
2
0
[{"id": "G0", "claim": "The same non-existent-variant handling that Box received should be applied to Text's getCustomElementStyles as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new Box test name should be more explicit about how var...
null
twilio-labs__paste__1810
twilio-labs/paste
1,810
defect
5ab4457bba50a3d2622e0ee7235571acc7e367b9
85b39c8f9c0e12e4259e3b98d2b048376eb62736
feat(sibling-box): add element customization
Add element customization to Sibling Box for customizaing checkbox and radio button
diff --git a/.changeset/brown-colts-dress.md b/.changeset/brown-colts-dress.md new file mode 100644 index 0000000000..4a1436dd4b --- /dev/null +++ b/.changeset/brown-colts-dress.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/sibling-box': patch +'@twilio-paste/core': patch +--- + +[Sibling Box] Enable SiblingBox to respect el...
1
1
0
[{"id": "G0", "claim": "The two 'HTML attributes' it blocks should use the same `(): void` return-type annotation as the other new it blocks (consistency in the added tests).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
twilio-labs__paste__1817
twilio-labs/paste
1,817
defect
5ab4457bba50a3d2622e0ee7235571acc7e367b9
7472021b6876d9f3cefcf0c2a7a006a909a1164d
feat(table): add element customization
## Description Add `element` to the table package components, to allow for customization. ### Summary of changes - [x] add `element` to the table API (defaults to name of components, allow string values) - [x] Create tests that ensure the defined custom element API remains. - [x] Create tests that ensure each ta...
diff --git a/packages/paste-core/components/table/__tests__/index.spec.tsx b/packages/paste-core/components/table/__tests__/index.spec.tsx index 615cf2bddc..ce2cbe11d8 100644 --- a/packages/paste-core/components/table/__tests__/index.spec.tsx +++ b/packages/paste-core/components/table/__tests__/index.spec.tsx @@ -1,6 +...
3
2
0
[{"id": "G0", "claim": "The `{...striped}` spread on Tr's Box is just spreading a boolean (an empty object) and should probably be removed at some point, though the author leaves it out of scope.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "...
null
twilio-labs__paste__1826
twilio-labs/paste
1,826
defect
5ab4457bba50a3d2622e0ee7235571acc7e367b9
f6f099a06f7dc404761a959c31683f20b753d56a
chore(button): use left text alignment for link button variants
<!-- Describe your Pull Request --> **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [x] I acknowledge that all my contributions will be made under the proj...
diff --git a/.changeset/brown-parents-cross.md b/.changeset/brown-parents-cross.md new file mode 100644 index 0000000000..4ea400aec6 --- /dev/null +++ b/.changeset/brown-parents-cross.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/button': patch +'@twilio-paste/core': patch +--- + +[Button]: Unset default text alignment for b...
2
2
1
[{"id": "G0", "claim": "The button's shared styles should not set `textAlign: 'unset'` for all variants; left-aligned text is only wanted for the link-style variants.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changeset entry should be more speci...
null
twilio-labs__paste__1860
twilio-labs/paste
1,860
defect
26b25e18b561b35991016e23851f3b586b2b8508
3e9526844867528be52450baccc9573c11201a4a
feat(disclosure): add element customization
Added customization capability to the disclosure package. Lingering question of why testing for backgroundColor doesn't seem to be working, which is commented out of the test file.
diff --git a/.changeset/tame-rabbits-collect.md b/.changeset/tame-rabbits-collect.md new file mode 100644 index 0000000000..11cd6d4986 --- /dev/null +++ b/.changeset/tame-rabbits-collect.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/disclosure': minor +'@twilio-paste/core': minor +--- + +[Disclosure] Enable Component to resp...
4
3
1
[{"id": "G0", "claim": "It may be better to give the Disclosure a testid and grab it by testid in the tests instead of traversing renderedDisclosureHeading.parentElement.parentElement.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer notes th...
null
twilio-labs__paste__1895
twilio-labs/paste
1,895
defect
c2bbf4345eb14bbdf8ce14e2242400292547e06e
1c427127ed9ae8ec4c6291e1a55933e54e3aeab3
feat(breadcrumb): add element customization
<!-- Describe your Pull Request --> **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [x] I acknowledge that all my contributions will be made under the proj...
diff --git a/.changeset/tame-dingos-exercise.md b/.changeset/tame-dingos-exercise.md new file mode 100644 index 0000000000..c4d07fdf5e --- /dev/null +++ b/.changeset/tame-dingos-exercise.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/breadcrumb': minor +'@twilio-paste/core': minor +--- + +[Breadcrumbs] Enable Component to res...
7
7
1
[{"id": "G0", "claim": "Remove the leftover `// fix this test!!!!!!` TODO comment sitting in the HTML-attributes test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `HTML attributes` describe block name is misleading because it checks customization...
null
twilio-labs__paste__1897
twilio-labs/paste
1,897
defect
87c5aaabf55fb7baa90730cb17a77947c757ed00
f41d492fdcc451ced88a234132226c499860fb96
feat(combobox): add element customization
<!-- Describe your Pull Request --> **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [ ] I acknowledge that all my contributions will be made under the proj...
diff --git a/packages/paste-core/components/combobox/src/Combobox.tsx b/packages/paste-core/components/combobox/src/Combobox.tsx index ccb99c9368..7ba58c2bee 100644 --- a/packages/paste-core/components/combobox/src/Combobox.tsx +++ b/packages/paste-core/components/combobox/src/Combobox.tsx @@ -138,7 +138,7 @@ const Com...
3
3
0
[{"id": "G1", "claim": "The ref callback parameter renamed to elementItem should be named currentElement, since it is the element the reference currently points to (explicit nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The pre-existing T...
null
twilio-labs__paste__1903
twilio-labs/paste
1,903
defect
36cc8dce42f4abe357779c6fb80af6c2cd6abd52
b37edd6393cda52619655cb37f1c0f1a2949de01
feat(modal): customization
<!-- Describe your Pull Request --> **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [x] I acknowledge that all my contributions will be made under the proj...
diff --git a/packages/paste-core/components/modal/src/Modal.tsx b/packages/paste-core/components/modal/src/Modal.tsx index 1179dae2aa..f5e8ebcdd8 100644 --- a/packages/paste-core/components/modal/src/Modal.tsx +++ b/packages/paste-core/components/modal/src/Modal.tsx @@ -1,8 +1,9 @@ import * as React from 'react'; imp...
2
2
2
[{"id": "G0", "claim": "The pull request is missing unit tests and a changeset.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `element` prop should be added to the propTypes of all the components touched by the pull request.", "category": "correctn...
null
twilio-labs__paste__1907
twilio-labs/paste
1,907
defect
36cc8dce42f4abe357779c6fb80af6c2cd6abd52
c09220b0bef34809d9c5c2a6363df17c9f0a6aa3
feat(alert): add customization
Adds element customization to Alert, including stories and tests.
diff --git a/.changeset/neat-countries-live.md b/.changeset/neat-countries-live.md new file mode 100644 index 0000000000..3b4ff00e50 --- /dev/null +++ b/.changeset/neat-countries-live.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/alert': minor +'@twilio-paste/core': minor +--- + +[Alert] Enable component to respect element c...
2
2
1
[{"id": "G0", "claim": "The `element` parameter of `renderAlertIcon` is typed as `Pick<BoxProps, 'element'>`, which is an object type, whereas the code the reviewer expects is `BoxProps['element']` (the element string itself).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
twilio-labs__paste__1950
twilio-labs/paste
1,950
defect
4d87a7c9a9a1349db51824fb0a827ec5eaa2cf18
d026f00b02a8856d608286803eb759a435aac3b5
Customization/badge
<!-- Describe your Pull Request --> **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [ ] I acknowledge that all my contributions will be made under the proj...
diff --git a/.changeset/shy-zebras-rest.md b/.changeset/shy-zebras-rest.md new file mode 100644 index 0000000000..b141025a97 --- /dev/null +++ b/.changeset/shy-zebras-rest.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/badge': minor +'@twilio-paste/core': minor +--- + +[Badge] Fix virtualization bug and add virtualization to ...
2
1
1
[{"id": "G0", "claim": "The changeset file describes an unrelated virtualization bug fix instead of this PR's badge customization change; its text should be replaced with the description the reviewer suggested.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
twilio-labs__paste__1977
twilio-labs/paste
1,977
defect
193f0d122893a6d165b93d2ca561621c58f9e39d
6a879f5801988fd02f7b2d1632c0dde675c176bc
fix(button): remove extra padding for invisible children
No longer using a Stack to space multiple Button children. Now the parent element has a `columnGap` property, so non-visual components (like Screen Reader Only) don't add unwanted padding. Also added tests and a story for VRT. [Ticket](https://issues.corp.twilio.com/secure/RapidBoard.jspa?rapidView=748&projectKey=DSYS&...
diff --git a/packages/paste-core/components/button/__tests__/button.test.tsx b/packages/paste-core/components/button/__tests__/button.test.tsx index de6da95e35..82c8422c5f 100644 --- a/packages/paste-core/components/button/__tests__/button.test.tsx +++ b/packages/paste-core/components/button/__tests__/button.test.tsx @...
1
1
0
[{"id": "G0", "claim": "The pull request needs a changeset (a patch changeset) so its change is included in the next version bump.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
twilio-labs__paste__2013
twilio-labs/paste
2,013
defect
995e2110f90ac313dc37b11913b0d105875f2d19
1cd6362369b2d682f3ed1c9f5ecf538ecbb79552
feat(button): add icon-specific variants
Added icon-specific variants. Working on the docs changes now. - [x] Colors are as specified[ in this table](https://docs.google.com/spreadsheets/d/14ZwZHgYKFK0-xht_4l_zIODLEfJLnHiMZthehkZ4dj4/edit#gid=0) - [x] docs will specify to use `size="reset"` to eliminate padding for use in things like close buttons, and th...
diff --git a/packages/paste-core/components/button/__tests__/button.test.tsx b/packages/paste-core/components/button/__tests__/button.test.tsx index 4c84e0076e..a12ae70503 100644 --- a/packages/paste-core/components/button/__tests__/button.test.tsx +++ b/packages/paste-core/components/button/__tests__/button.test.tsx @...
6
5
2
[{"id": "G0", "claim": "The new icon-button accessibility tests should render under the `default` theme instead of `console` from now on.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The third icon-button accessibility test should be titled after the ...
null
twilio-labs__paste__2029
twilio-labs/paste
2,029
defect
5fe0831a6c5def59e0381730d3c643bc9eac70d7
3fbd6d06962b1407a8fc57bb58689edeff8e1cb3
Badge ref fix
If the Badge is focusable, the ref is passed to the wrapper component instead of the span. Also export the BadgeProps type. **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is p...
diff --git a/.changeset/perfect-countries-speak.md b/.changeset/perfect-countries-speak.md new file mode 100644 index 0000000000..3ba815b60c --- /dev/null +++ b/.changeset/perfect-countries-speak.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/badge': patch +'@twilio-paste/core': patch +--- + +Export the BadgeProps type and co...
1
1
0
[{"id": "G0", "claim": "In case new variants are added, isFocusableElement should be explicit (`as === 'a' || as === 'button'`) instead of `as !== 'span'`, so it does not depend on another component's internals.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
twilio-labs__paste__2060
twilio-labs/paste
2,060
defect
f8bdf2e03608ac027eac81dd6789774ed2344a2c
1a438641866902c0476a916265256cf795febefa
chore(cypress): add spec for docs site search
## Description Add basic cypress test suite to verify our site search functionality. A new test suite has been added under the `/integrations` folder to test the site search on the website homepage. ### Testing the following expected behavior: - site search input should be focusable and visible (for non-mobile scr...
diff --git a/cypress.json b/cypress.json index 1a021e408a..8fc879fd9c 100644 --- a/cypress.json +++ b/cypress.json @@ -7,5 +7,7 @@ "runMode": 2, "openMode": 0 }, - "blockHosts": "*.google-analytics.com" + "blockHosts": "*.google-analytics.com", + "testFiles": ["**/**/*.spec.ts"], + "experimentalNetwork...
4
4
0
[{"id": "G0", "claim": "The `verifyExpectedQuery` command declaration carries only a `@TODO add notes/docs here.` placeholder, and the documentation it asks for should be written.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Starting to use `exp...
null
twilio-labs__paste__2083
twilio-labs/paste
2,083
defect
1b4111d4a47ea3af35a26605d8174d4290a04f4e
a416ca897bc1c086542da90076bf2ff6f08579a1
chore: replace close icon with `secondary_icon` variant in Alert, Modal, Popover, Toast
[Ticket](https://issues.corp.twilio.com/browse/DSYS-2269) **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [ ] I acknowledge that all my contributions will ...
diff --git a/.changeset/big-coins-hunt.md b/.changeset/big-coins-hunt.md new file mode 100644 index 0000000000..95288c5526 --- /dev/null +++ b/.changeset/big-coins-hunt.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/toast': patch +'@twilio-paste/core': patch +--- + +[Toast] Update close button to use `secondary_icon` button v...
3
3
0
[{"id": "G0", "claim": "Merge the PR's four separate changeset files into one changeset, since it is just one change across multiple packages.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Update the Alert close icon's title from 'dismiss this ...
null
twilio-labs__paste__2167
twilio-labs/paste
2,167
defect
04de0d1de8428ba5e0fd04c1ec94639c78cab6cc
e0e2606a40c6cc8b3ff715bccae4499a8b499448
fix(checkbox): hide icon when not checked
- [x] hide check icon with display prop when the checkbox is not checked - [x] explicitly sets if the component is controlled or uncontrolled, so the icon renders correctly Fixes a bug found in: https://github.com/twilio-labs/paste/discussions/2165 **Contributing to Twilio** > All third-party contributors ac...
diff --git a/.changeset/fifty-shirts-know.md b/.changeset/fifty-shirts-know.md new file mode 100644 index 0000000000..7c72075d09 --- /dev/null +++ b/.changeset/fifty-shirts-know.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/checkbox': patch +'@twilio-paste/core': patch +--- + +[Checkbox] Hide check icon when not checked diff...
2
2
2
[{"id": "G0", "claim": "The `hidden` attribute is never rendered on the SVG element in the DOM, so the check icon is not actually hidden when unchecked, and the fix needs a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The check icon must sti...
null
twilio-labs__paste__2229
twilio-labs/paste
2,229
defect
f696cb17ec84bb315fc8672493800c044e866a1d
632450a50dc7d31df18306baf7d4bd75a24299eb
fix(website): fixes sidebar page selection on page load
Currently, loading the Paste docs on a nested route doesn't expand the sidebar or select the current active path (try: https://paste.twilio.design/components/alert-dialog/). I investigated the root cause to be that we were relying on the `window.location` object which isn't available when we SSR our pages. I migrated o...
diff --git a/cypress/integration/sidebar-navigation/index.spec.ts b/cypress/integration/sidebar-navigation/index.spec.ts index ebd04b9acf..668467445a 100644 --- a/cypress/integration/sidebar-navigation/index.spec.ts +++ b/cypress/integration/sidebar-navigation/index.spec.ts @@ -56,6 +56,19 @@ describe('Sidebar navigati...
3
1
1
[{"id": "G0", "claim": "Gloriliale questions whether the bug actually popped up on second load rather than first load, implying the new cypress test may target the wrong scenario.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Opening the SidebarNavigatio...
null
twilio-labs__paste__2234
twilio-labs/paste
2,234
defect
4aefbe75d7c34ebdab209be14073426c1632d8a9
3cfbfe0195a0f0ac943235916c5c7fb56ebe64f5
feat(toast): add i18n props
- [x] add `i18nDismissLabel` prop for dismiss button - [x] add `i18nErrorLabel`, `i18nNeutralLabel`, `i18nSuccessLabel`, `i18nWarningLabel` props for icons of variants - [x] add i18n story - [x] add tests for default and custom i18n props - [x] add example to website - [x] add prop to Popover prop list on we...
diff --git a/.changeset/fluffy-sheep-try.md b/.changeset/fluffy-sheep-try.md new file mode 100644 index 0000000000..d65841004c --- /dev/null +++ b/.changeset/fluffy-sheep-try.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/toast': patch +'@twilio-paste/core': patch +--- + +[Toast] add i18n props for variants to support i18n di...
3
2
0
[{"id": "G0", "claim": "The Toast props table in the docs should populate the Default field for the i18n props so the table is easier to scan.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The i18n icon tests may not be effective long term becaus...
null
twilio-labs__paste__2253
twilio-labs/paste
2,253
defect
c867e3f48d739409d1f54fa18c4d2bee1d9242cf
41d5c8ac3f8f6aaf29c01baf7642d03223f7ecee
feat(alert): add i18n props
- [x] add i18nDismissLabel prop for dismiss button - [x] add i18nErrorLabel, i18nNeutralLabel, i18nWarningLabel props for icons of variants - [x] add i18n story - [x] add tests for default and custom i18n props - [x] add example to website - [x] add prop to alert prop list on website **Contributing to Twi...
diff --git a/.changeset/sweet-days-talk.md b/.changeset/sweet-days-talk.md new file mode 100644 index 0000000000..c86dc97242 --- /dev/null +++ b/.changeset/sweet-days-talk.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/alert': patch +'@twilio-paste/core': patch +--- + +[Alert] add i18n props to support i18n diff --git a/packa...
1
1
1
[{"id": "G0", "claim": "The new Internationalization docs copy says \"For a `success` variant, for example, set the `i18nSuccessLabel` prop.\", but no success variant or i18nSuccessLabel prop exists; it should read \"For an `error` variant, for example, set the `i18nErrorLabel` prop.\".", "category": "documentation", "...
null
twilio-labs__paste__2304
twilio-labs/paste
2,304
defect
304450633cf5d587cd9078681d60482502d5be8d
231f3335507664968d05265fce40ddd1fd73e392
feat(button): add i18n props
- [x] add i18nExternalLinkLabel for external link icon - [x] add i18n stories - [x] add tests for default and custom i18n props - [x] add example to website - [x] add prop to Button prop list on website - [x] make title not required for Spinner Note: don't need to update spinner page on website because it ...
diff --git a/.changeset/happy-boats-collect.md b/.changeset/happy-boats-collect.md new file mode 100644 index 0000000000..b4b81fbc09 --- /dev/null +++ b/.changeset/happy-boats-collect.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/button': patch +'@twilio-paste/core': patch +--- + +[Button] add i18n props to support i18n diff...
1
1
1
[{"id": "G0", "claim": "Spinner's title prop is required even when the spinner is decorative; make it optional (throwing an error when decorative={false} and no title is passed) so that Button does not need an i18nLoadingLabel prop.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
twilio-labs__paste__2306
twilio-labs/paste
2,306
defect
b8e8ab217f072836cbb73be3d04f285f03db962b
c36961fe5da00a94c15658e6d3733674624db7e4
feat(anchor): add i18n prop
- [x] add i18nExternalLinkLabel prop - [x] add i18n story - [x] add tests for i18n prop - [x] add example to website - [x] add prop to Anchor prop list on website **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source ...
diff --git a/.changeset/neat-apples-boil.md b/.changeset/neat-apples-boil.md new file mode 100644 index 0000000000..fbf4eeaa28 --- /dev/null +++ b/.changeset/neat-apples-boil.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/anchor': minor +'@twilio-paste/core': minor +--- + +[Anchor] add `i18nshowExternalLinkLabel`prop to Ancho...
3
2
0
[{"id": "G0", "claim": "The added i18nExternalLinkLabel row makes the Anchor props table wrap awkwardly on the website, and the author asks how to fix the wrapping.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changeset should be a minor bump ...
null
twilio-labs__paste__2323
twilio-labs/paste
2,323
defect
27f0b5573416a74f523ddcc0d6b394f940faadb6
18bb92da334ab68e86ab23f77d2fa094bdc488b4
fix(website): fix buggy tokens list filter
- [X] Query runs on backspace as well as letter key down (and same results are displayed in either direction) - [X] Query params in url are updated in real time when the input value changes - [X] Enter button / submitting form does nothing (removed the form altogether) - [X] Correctly sets input value on page load w...
diff --git a/packages/paste-website/src/components/tokens-list/index.tsx b/packages/paste-website/src/components/tokens-list/index.tsx index 9c2f8eb34a..de35da4994 100644 --- a/packages/paste-website/src/components/tokens-list/index.tsx +++ b/packages/paste-website/src/components/tokens-list/index.tsx @@ -1,12 +1,17 @@...
4
3
2
[{"id": "G0", "claim": "The token search filter should stay contained in a form element for accessibility, with the form's default submit prevented via onSubmit, rather than being changed to a div.", "category": "accessibility", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Th...
null
twilio-labs__paste__2390
twilio-labs/paste
2,390
defect
dee7d9b01c0b7b2fee64f7a01cadd1238521ab8f
5b20ea7ea402eda1fd47ce4109afd49e9017912a
feat(website): add TokenCard component and rgbToHex util
- [x] Adds a new TokenCard component that will render out token previews on the WIP tokens list page - [x] Adds a preview for just BackgroundColor tokens. More to come in a later PR - [x] Adds a RGB to HEX color utility with tests
diff --git a/packages/paste-website/src/__tests__/utils/rgbToHex.test.tsx b/packages/paste-website/src/__tests__/utils/rgbToHex.test.tsx new file mode 100644 index 0000000000..a31a4c2ba1 --- /dev/null +++ b/packages/paste-website/src/__tests__/utils/rgbToHex.test.tsx @@ -0,0 +1,38 @@ +import {rgbToHex} from '../../util...
2
2
0
[{"id": "G0", "claim": "Delete the commented-out import line \"// import {Text, TextProps} from '@twilio-paste/text';\" left in token-card/index.tsx.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use the `paddingX` shorthand instead of the equi...
null
twilio-labs__paste__2473
twilio-labs/paste
2,473
defect
8a7e4eeb2cfb6495c77afbdc1cc4fdea92307709
96ab7211325f8dccf0e9d19183d0575b5d5c70dd
Feat/token card
* Implements new Token Card design for all token types * Adds new util function for providing contrast rating scores * Includes stories for various Token Card cases * Includes tests for Token Card component and contrast rating util
diff --git a/packages/paste-website/src/__tests__/tokenCard.test.tsx b/packages/paste-website/src/__tests__/tokenCard.test.tsx new file mode 100644 index 0000000000..7bd5335108 --- /dev/null +++ b/packages/paste-website/src/__tests__/tokenCard.test.tsx @@ -0,0 +1,89 @@ +import * as React from 'react'; +import {Theme} f...
8
7
1
[{"id": "G0", "claim": "The icon in IconSizeExample should be rendered as decorative instead of decorative={false} with a title.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Ag' sample text in LineHeightExample should get aria-hidden=\"true\"...
null
twilio-labs__paste__2501
twilio-labs/paste
2,501
defect
8a7e4eeb2cfb6495c77afbdc1cc4fdea92307709
5c2594c32771b669b240879b89b36be2c361c362
feature(chat-log): add Chat Attachment and related components
<!-- Describe your Pull Request --> **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under. - [ ] I acknowledge that all my contributions will be made under the proj...
diff --git a/.changeset/clean-dryers-hope.md b/.changeset/clean-dryers-hope.md new file mode 100644 index 0000000000..160f0f053a --- /dev/null +++ b/.changeset/clean-dryers-hope.md @@ -0,0 +1,5 @@ +--- +'@twilio-paste/icons': minor +--- + +[Icons] Add the new icon "CloseCircleIcon" diff --git a/.changeset/twelve-seahor...
1
1
1
[{"id": "G0", "claim": "ChatAttachmentDescription spreads raw props onto the Text element instead of using safelySpreadTextProps, and spreads them after the style props so callers can override fontSize/color/etc. — the reviewer asks whether that ordering is intended.", "category": "correctness", "verdict": "supported",...
null
twilio-labs__paste__2537
twilio-labs/paste
2,537
defect
167cf490db54c4e7859fe529cc97aa7f475e3212
0a52336eb8910fe1bcb7f5d64080bb6b3e3f94c8
Tokens Page: Inverse Token Previews
* Feature Branch Merge to website/new-tokens-page * Adds support for inverse background colors on Token Previews for inverse tokens * Adds test and stories
diff --git a/packages/paste-website/src/__tests__/tokenCard.test.tsx b/packages/paste-website/src/__tests__/tokenCard.test.tsx index 2aff065031..ea06d2cd14 100644 --- a/packages/paste-website/src/__tests__/tokenCard.test.tsx +++ b/packages/paste-website/src/__tests__/tokenCard.test.tsx @@ -11,6 +11,7 @@ describe('Token...
6
6
1
[{"id": "G0", "claim": "Add comments above the token example background color lookups in tokens-list/index.tsx explaining what they are for, because the code is hard to grok at a glance.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TokenCard sho...
null
twilio-labs__paste__2582
twilio-labs/paste
2,582
defect
610bf635c55fc73154db464a0e91c57f96173edc
577a80c28e24db648e1569cb25d35b136cee11d0
feat(button): add toggle button
## Changes in this PR * add toggle button option for secondary and secondary_icon variants * add a storybook example for toggle buttons * add documentation to the docs site **Contributing to Twilio** > All third-party contributors acknowledge that any contributions they provide will be made under the same open...
diff --git a/.changeset/khaki-pigs-remember.md b/.changeset/khaki-pigs-remember.md new file mode 100644 index 0000000000..73e11bbb7f --- /dev/null +++ b/.changeset/khaki-pigs-remember.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/box': patch +'@twilio-paste/core': patch +--- + +[Box] add pressed_focus and pressed_hover pseud...
3
3
1
[{"id": "G0", "claim": "Add tests around the toggle button checking that aria-pressed is set on the element correctly and that the pressed styles are applied in the pressed state, with test cases for all states on all variants.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
twilio-labs__paste__2938
twilio-labs/paste
2,938
defect
3d186edc4720b5928b0f3a3bba9088aa06d02c6d
f70dba35338beca9fe127de3eebb2cd1e6dde08a
chore: update card and side modal
Update styles in 2 packages (Card and Side Modal) to reflect the new theme. Also updates tests and docs where necessary.
diff --git a/.changeset/khaki-sloths-watch.md b/.changeset/khaki-sloths-watch.md new file mode 100644 index 0000000000..e3e6ee9364 --- /dev/null +++ b/.changeset/khaki-sloths-watch.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/card': patch +'@twilio-paste/core': patch +--- + +[Card] Update styles to align with new Paste Twil...
1
1
0
[{"id": "G0", "claim": "The Card docs page's anatomy section should be removed entirely instead of updated, since the team has been moving away from anatomy sections on the docs site.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
twilio-labs__paste__2949
twilio-labs/paste
2,949
defect
3d186edc4720b5928b0f3a3bba9088aa06d02c6d
67af826d7beb6d1470a76178608bf242882bb71b
fix(combobox): listbox overflow scrolling containers
## In this PR: * Wrap the listbox in single and multiselect combobox in a Reakit Portal * Position the portal next to the combobox input with @radix-ui/react-use-rect * useRect returns the dimensions of an element in the dom and updates the dimensions if its resized * I need to use this because if I just use `g...
diff --git a/.changeset/breezy-bottles-listen.md b/.changeset/breezy-bottles-listen.md new file mode 100644 index 0000000000..abc0fc7285 --- /dev/null +++ b/.changeset/breezy-bottles-listen.md @@ -0,0 +1,6 @@ +--- +'@twilio-paste/combobox': minor +'@twilio-paste/core': minor +--- + +[Combobox] Render the listbox in a p...
4
3
0
[{"id": "G0", "claim": "The changeset should declare patch version bumps instead of minor for the bug fix.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out useRect snippet should be removed from the source.", "category": "maintainabi...
null
twilio-labs__paste__4359
twilio-labs/paste
4,359
defect
c0eff2ddc326bba633ebe9e03814d5a494ee66d2
85561f72d36bdc0ab99da086fd9af5366825a285
fix: makes productIcon optional in ProductSwitcherItem
Twilio teams (Twilio, Segment, and SendGrid) are updating the design of the unified identity product switcher. Currently, we're hacking in a solution by setting `productIcon={<></>}` or similar and passing custom styles to adjust the padding. This works for now, but ideally we should make this property optional for thi...
diff --git a/.changeset/great-frogs-grin.md b/.changeset/great-frogs-grin.md new file mode 100644 index 0000000000..cf249aa1d9 --- /dev/null +++ b/.changeset/great-frogs-grin.md @@ -0,0 +1,5 @@ +--- +"@twilio-paste/product-switcher": patch +--- + +[ProductSwitcherItem] made productIcon optional diff --git a/packages/pa...
2
2
1
[{"id": "G0", "claim": "The new WithoutProductIcons story needlessly wraps its content in a CustomizationProvider with unrelated element overrides, and the reviewer asks whether it was copied from a previous story and suggests removing it since the change introduces nothing new to customize.", "category": "maintainabil...
null
twilio-labs__paste__598
twilio-labs/paste
598
defect
cfa5708334e21d37edb997eec1177a39c675c69e
2325db47366b9a2c071a8d6cfff2a20f3a290e33
feat(disclosure): add state prop
- [x] Add `state` prop - [x] Add example story - [x] Add tests - [x] Update Disclosure doc with `state` example
diff --git a/packages/paste-core/components/disclosure/__tests__/disclosure.test.tsx b/packages/paste-core/components/disclosure/__tests__/disclosure.test.tsx index bef59259d1..3f67ebaddc 100644 --- a/packages/paste-core/components/disclosure/__tests__/disclosure.test.tsx +++ b/packages/paste-core/components/disclosure...
3
2
0
[{"id": "G0", "claim": "Drop the separate LooseObject interface and declare the [key: string]: any index signature directly as a property on the DisclosureStateReturn interface.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs copy claims...
null
twilio-labs__paste__599
twilio-labs/paste
599
defect
9c20ebf8e3dcb9cd7a5a1ebf2a368c579092c6a8
1d44a9ce6939d2fa69cadd0ac7ed50ea12d2d7db
fix(radio): allow passing disable to individual radio in radioGroups
Fixes https://github.com/twilio-labs/paste/discussions/535 - [x] Allow passing props directly to Radio, instead of solely retrieving them via RadioGroup. Defaults to direct props, fallback to context from RadioGroup. - [x] Radios now work in a controlled manner, and without RadioGroups. - [x] Updated types to all...
diff --git a/packages/paste-core/components/form/__tests__/radio.test.tsx b/packages/paste-core/components/form/__tests__/radio.test.tsx index 163d2495d5..14c988d6e2 100644 --- a/packages/paste-core/components/form/__tests__/radio.test.tsx +++ b/packages/paste-core/components/form/__tests__/radio.test.tsx @@ -133,7 +13...
3
1
0
[{"id": "G0", "claim": "The test should assert against defaultProps.name instead of the hard-coded literal 'bar', since the author was unsure how the hard-coded expectation had worked before.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Now that Hidde...
null
twilio-labs__paste__608
twilio-labs/paste
608
defect
1b6ac7adea3a7f8904e4600137b5f0884dd2a0d7
9c36cfa5f711335fedd05a3b47ff93245d7d8ff0
feat:(combobox): option groups and controlled input
This PR introduces the ability to create options groups and use Combobox as a controlled input. - Add the ability to create options groups within the Combobox Listbox. - Add necessary props to use Combobox as a controlled component. - Document options groups and controlled component
diff --git a/packages/paste-core/components/combobox/__tests__/index.spec.tsx b/packages/paste-core/components/combobox/__tests__/index.spec.tsx index 60839c69a9..cdd841f2e5 100644 --- a/packages/paste-core/components/combobox/__tests__/index.spec.tsx +++ b/packages/paste-core/components/combobox/__tests__/index.spec.t...
8
5
0
[{"id": "G0", "claim": "Remove the leftover console.log debugging statement from the controlled Combobox example's onInputValueChange handler in the documentation examples file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The imported component...
null
twilio-labs__paste__836
twilio-labs/paste
836
defect
7b34b4af994258e26c6f6d4ac82ae9a7ec7d38df
5676979c435972085225be56e29aad9663152054
test: setup up cypress website tests
- [x] Set up cypress - [x] Add initial tests for sidebar, token list, and theme switcher
diff --git a/.eslintrc.js b/.eslintrc.js index 2c3cb0018b..676bde9478 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,6 +11,7 @@ module.exports = { 'airbnb-typescript', 'plugin:@typescript-eslint/recommended', 'plugin:eslint-comments/recommended', + 'plugin:cypress/recommended', 'plugin:jest/...
3
2
1
[{"id": "G0", "claim": "SiTaggart does not see how both theme radio buttons can end up checked in the theme-switcher spec.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "SiTaggart asks whether the Cypress tests run against the Vercel deployment or aga...
null
twilio-labs__paste__858
twilio-labs/paste
858
defect
19bc359d0dbfabc1dfc9cf2d0d78a74000bc766f
4b4ec7609a2aeadf5022bac1482ce4627a772091
fix(checkbox): use context for CheckboxGroup
- [x] Allow passing props directly to Checkbox, instead of retrieving them via CheckboxGroup. Defaults to direct props, fallback to context from CheckboxGroup. - [x] Use Box for HiddenCheckbox
diff --git a/packages/paste-core/components/checkbox/__tests__/checkbox.test.tsx b/packages/paste-core/components/checkbox/__tests__/checkbox.test.tsx index 84022facb0..6ae9480918 100644 --- a/packages/paste-core/components/checkbox/__tests__/checkbox.test.tsx +++ b/packages/paste-core/components/checkbox/__tests__/che...
2
2
0
[{"id": "G0", "claim": "CheckboxGroup's onChangeHandler should be memoized with React.useCallback instead of React.useMemo, which may be more valid for a callback handler.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Props spread onto HiddenCh...
null
twilio-labs__paste__875
twilio-labs/paste
875
defect
a523c1ee8fb304b120958703b69da1acafd7023b
9e05e611d540ccb95fd6e08b721b078eaaf61621
feat(codemods): add barreled-to-unbarreled codemod
## What changed (non-technical) We have added a system to allow downstream teams to run automatic code updates, called "codemods". Learn more about them here https://github.com/facebook/codemod#background ## What changed (technical) This PR creates a new `paste-codemods` folder in our monorepo that publishes t...
diff --git a/packages/paste-codemods/README.md b/packages/paste-codemods/README.md new file mode 100644 index 0000000000..4f9ed41fae --- /dev/null +++ b/packages/paste-codemods/README.md @@ -0,0 +1,51 @@ +## @twilio-paste/codemods + +This repository contains a collection of codemod scripts for use with +[JSCodeshift](h...
4
4
1
[{"id": "G0", "claim": "The deprecated-package exclusion would be easier to maintain as an array of deprecated packages checked for membership instead of an if statement with or'd comparisons, though the reviewer says it is easy enough not to worry about.", "category": "maintainability", "verdict": "supported", "priori...
null
twilio-labs__paste__892
twilio-labs/paste
892
defect
d70ca5ba38a7be3874e3d6b295c45e3aff52341c
5d3a9ef07de4cbf07593df56b10eb73b5370f663
feat(breadcrumb): add alpha component package
- [x] Add alpha Breadcrumb package - [x] Add Breadcrumb package to Core
diff --git a/packages/paste-core/components/breadcrumb/CHANGELOG.md b/packages/paste-core/components/breadcrumb/CHANGELOG.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/paste-core/components/breadcrumb/__tests__/breadcrumb.spec.tsx b/packages/paste-core/components/breadcrumb/__tests__/breadc...
6
4
0
[{"id": "G0", "claim": "Give the BreadcrumbSeparator's Text element role=\"presentation\" so the slash separator is not exposed to assistive technology.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Restructure the BreadcrumbItem API so it renders an An...
null
twilio-labs__paste__916
twilio-labs/paste
916
defect
a523c1ee8fb304b120958703b69da1acafd7023b
ff19c970a3032b7a664281b69e11c0eb25227ad2
feat(button): add icon_small size
- [x] Added `icon_small` size, VRT, and test - [x] Added examples to doc page
diff --git a/packages/paste-core/components/button/__tests__/button.test.tsx b/packages/paste-core/components/button/__tests__/button.test.tsx index d60c8bfab8..4802b7886b 100644 --- a/packages/paste-core/components/button/__tests__/button.test.tsx +++ b/packages/paste-core/components/button/__tests__/button.test.tsx @...
2
2
0
[{"id": "G0", "claim": "The button doc page examples should be converted to use Stack now that the div wrapper is being removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out icon_small/fullWidth validation block in handleProp...
null
twilio-labs__paste__997
twilio-labs/paste
997
defect
60f73b1a3a971fae3c378662a7276843e8523f8f
a220a0e2e37774787a019ab3895e699dcaa06b6a
fix(help-text): stop icon from shrinking with long error text
- [x] Fixes icon shrinking when error text is really long - [x] Added VRT stories to input Fixes: https://github.com/twilio-labs/paste/issues/972
diff --git a/packages/paste-core/components/help-text/__tests__/__snapshots__/helptext.test.tsx.snap b/packages/paste-core/components/help-text/__tests__/__snapshots__/helptext.test.tsx.snap index d93548b266..c613e37ea0 100644 --- a/packages/paste-core/components/help-text/__tests__/__snapshots__/helptext.test.tsx.snap...
2
1
0
[{"id": "G0", "claim": "Similar long-error-text stories should also be added to the Textarea, Select, and Combobox components, not just Input.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The HelpText snapshot test should be removed because visual regre...
null
twitchtv__twirp__102
twitchtv/twirp
102
defect
df9edc88b8f808cd4c5e83622564f34e0c8a44bf
974d4dfdd94d2f04934eb0200af64b060c6f05f3
Add support for import map and import prefix
*Issue #, if available:* Refs #13. *Description of changes:* Provides the same support that `protoc-gen-go` supports for import mapping and import prefix. I haven't written any docs on this... By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 licens...
diff --git a/protoc-gen-twirp/generator.go b/protoc-gen-twirp/generator.go index 3849a4ce..19c293c5 100644 --- a/protoc-gen-twirp/generator.go +++ b/protoc-gen-twirp/generator.go @@ -44,6 +44,9 @@ type twirp struct { pkgs map[string]string pkgNamesInUse map[string]bool + importPrefix string //...
7
6
2
[{"id": "G0", "claim": "It would be better to encourage people to use `option go_package` to indicate how things should be imported.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Besides the protoc-gen-go-compatible `M` format, the generator should also...
null
twitchtv__twirp__124
twitchtv/twirp
124
defect
cafc5e80fca7798e94ce566e8c4890460884a66f
dd2a0586274e8c2ebb144be8a8a82941a37b36e3
Fix bug with code generation of service with a method of the same name.
Issue #123 The generated api.twirp.go file will not compile if a service contains a method with the same name as the services name. This is because the generated code uses an embedded struct. This fix uses the embedded structs name when making a call to the method. I can't see any unit tests for the generated...
diff --git a/protoc-gen-twirp/generator.go b/protoc-gen-twirp/generator.go index c693b906..8df1058c 100644 --- a/protoc-gen-twirp/generator.go +++ b/protoc-gen-twirp/generator.go @@ -987,6 +987,7 @@ func (t *twirp) generateServerMethod(service *descriptor.ServiceDescriptorProto, func (t *twirp) generateServerJSONMetho...
2
2
2
[{"id": "G0", "claim": "The PR should add a test case under internal/twirptest (a .proto file, a gen.go and a compile _test.go following the proto test's pattern, with code regenerated via make test_all) covering the service/method same-name fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope...
null
twitchtv__twirp__167
twitchtv/twirp
167
defect
c2eb3694bf0e974ece04549c885837ad6246e86a
d469b8ee2a17423c00189496c718451b500948d1
Add PathPrefix to the generated TwirpServer interface.
*Issue:* #158 *Description of changes:* The generated code implements the new function by returning the existing const for this value. Having an interface method provides consistent access for all TwirpServer instances, rather than having to use a instance specific constant. **Note:** If the `Dockerfile` isn'...
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..9fcf60b7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:1.12 + +RUN apt-get update &&\ + apt-get install -y --no-install-recommends unzip python-dev python-pip && \ + pip install virtualenv + +WORKDIR /go/src/github.com/twitch...
5
5
3
[{"id": "G0", "claim": "The godoc comment emitted for PathPrefix should be rephrased to say that it returns the HTTP URL path prefix for the service's methods and can be used with an HTTP mux, as the reviewer's suggested wording does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in...
null
twitchtv__twirp__182
twitchtv/twirp
182
defect
337e90237d72193bf7f9fa387b5b9946436b7733
0506dd51669507489b3f101f15c6abf6fa33efbe
Improve handling of malformed requests
*Description of changes:* - Adds (tested) specific handling for malformed JSON/protobuf requests. This can happen easily if a hand-crafted client is sending a mistyped attribute, or in general if there is bad behavior around the protobuf message definitions (i.e. changing a type on a message without moving to a new at...
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index 5d3bda9c..79e65796 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -236,7 +236,7 @@ func (s *comp...
4
2
2
[{"id": "G0", "claim": "The error code that malformed requests produce should be changed from invalid_argument — suggested alternatives were bad_route, a brand-new code such as malformed mapping to HTTP 400, or keeping the internal code but sending HTTP status 400.", "category": "design", "verdict": "supported", "prior...
null
twitchtv__twirp__227
twitchtv/twirp
227
defect
9132c3ed9bbe402c1ade4a1ce7294b34761b394a
5dc4495bb82db80a079e03b1dcaa57db1e4d3088
AddHTTPResponseHeader to allow responseWriter.Header().Add() in addition to Set
*Description of changes:* Hi! I always use your wonderful library `twirp`. I'd like to set multiple variables to the response header in the same key. So I replaces `responseWriter.Header().Set()` with `responseWriter.Header().Add()`. By submitting this pull request, I confirm that my contribution is made unde...
diff --git a/context.go b/context.go index c12afb43..383b7e4d 100644 --- a/context.go +++ b/context.go @@ -123,3 +123,34 @@ func SetHTTPResponseHeader(ctx context.Context, key, value string) error { return nil } + +// AddHTTPResponseHeader adds an HTTP header key-value pair using a context +// provided by a twirp-...
4
4
2
[{"id": "G0", "claim": "Changing SetHTTPResponseHeader to append values instead of replacing existing ones, and to accept a variadic parameter, breaks the function's documented replace behavior and may break users expecting the exact signature.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
twitchtv__twirp__241
twitchtv/twirp
241
defect
2bffe5f9b8c3d2ffbbbe8a0ea7ecf7b3368fbbe9
9a34c6677713411a67f1aaf5a5f1f903e8e498ff
Clarify generator language server and client support, add twirpy
*Issue #, if available:* #185 , #220 *Description of changes:* - Clarifies state of go, python client and server codegen support in official repo - Adds [twirpy](https://github.com/verloop/twirpy) for python3 - Completes an [old promise](https://github.com/twitchtv/twirp/pull/208#discussion_r359831855) ...
diff --git a/README.md b/README.md index 9a168a28..eb11ba87 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,9 @@ For other languages, there are third-party generators available: | Language | Clients | Servers | Repository | |----------------|---------|---------|------------| +| **Go** | ✓ | ...
1
1
0
[{"id": "G0", "claim": "Remove the official Go and Python rows from the third-party generators table in README.md, since the sentences above the table already clarify official support, while keeping the references to issue #185 (and addressing #220) in that prose section.", "category": "documentation", "verdict": "supp...
null
twitchtv__twirp__251
twitchtv/twirp
251
defect
3c8a4fc2a5106e4ba5c77b4e68a6756d6a6f7551
b1c5f0de3fd57b7de3e15eda135698b4cfbeaf08
fix context is used in response hook after request
*Issue #, if available:* Fixes #250 *Description of changes:* Context object is returned from doJSONRequest and doProtobufRequest so changes made to context are provided to ResponseReceived client hook By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 lice...
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index 29cd223f..6d544cfe 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -78,7 +78,7 @@ func (c *compat...
2
2
0
[{"id": "G0", "claim": "The named return variables of doProtobufRequest (which is generated code) should be made unnamed — ultimately just `(_ context.Context, err error)` — since the code does not use a naked return and relies on the named behaviour for only the error value.", "category": "maintainability", "verdict":...
null
twitchtv__twirp__270
twitchtv/twirp
270
defect
9692e85d951b514acab428dc9d2d289f90fec73b
b91c264711b696d071861501fd11ca3efabd0780
ResourceExhausted error code to HTTP 429 status code
Followup after PR: #258 After all the analysis done in #258, we decided to re-map `ResourceExhausted` to 429 `Too Many Requests`, instead of adding a new status code. See PR comments for more details. ### Backwards compatibility This is a non-backwards compatible change, although it may only affect servers and...
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index ed16f0c1..2dfb521a 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -817,7 +817,9 @@ func twirpErr...
2
2
0
[{"id": "G0", "claim": "The resource_exhausted row in docs/spec_v7.md should mention rate-limiting in its description (e.g. wording like \"Some resource has been exhausted or rate-limited\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comm...
null
twitchtv__twirp__299
twitchtv/twirp
299
defect
d5c9709cf03dec20669963d3d1da1e14970e12db
4430bcf53e7c736566b8bcff0feef52006b6cecb
Allow JSON lowerCamelCase names
Relates to #84. My organization has some tooling that expects lowerCamelCase fields and Twirp currently does not allow you configure this behavior. Mirrors implementation of similar option added in https://github.com/twitchtv/twirp/pull/271.
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index c64e6794..fccc7643 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -313,10 +313,11 @@ func (c *co...
5
5
3
[{"id": "G0", "claim": "The implications of enabling/disabling lowerCamelCase JSON field names should be documented, inline on the server_options.go file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new option must be made to play well with...
null
twitchtv__twirp__39
twitchtv/twirp
39
defect
5939611c8fa6cef59ca7a9d78cdf3073f806f035
9a68e089a83ee40e8de2816902d1a6ae1bcc3c85
Replace *http.Client in client constructors with new HTTPClient interface
*Issue #, if available:* #12 *Description of changes:* Proof-of-concept work for resolving issue #12 *ToDo:* - [x] Check implementation since this is PR is from a GoLang beginner. - [x] Replace the `type HTTPClient interface` comment with proper english. - [x] Check if the name for the interface `HTTPClient`...
diff --git a/protoc-gen-twirp/generator.go b/protoc-gen-twirp/generator.go index 54eeadf5..5a4a8cc2 100644 --- a/protoc-gen-twirp/generator.go +++ b/protoc-gen-twirp/generator.go @@ -294,6 +294,13 @@ func (t *twirp) generateUtilImports() { // These should be generated just once per package. func (t *twirp) generateUt...
2
2
1
[{"id": "G0", "claim": "Revise the generated HTTPClient doc comment to the reviewer's proposed wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test in internal/twirptest/client_test.go that verifies custom HTTPClients are used, via a...
null
twitchtv__twirp__47
twitchtv/twirp
47
defect
5939611c8fa6cef59ca7a9d78cdf3073f806f035
d85f6880addfb3edbf5b88f03f779812c60fdbeb
protoc-gen-twirp: skip Go import for proto files in the same package
The Go interface generator makes sure that all messages that are used in RPCs are imported, but it can go too far by attempting to write a Go `import` line for protobuf messages that are defined in a different protobuf file in the same protobuf package. Instead of checking if the protobuf filenames match to determin...
diff --git a/internal/twirptest/multiple/multiple2.pb.go b/internal/twirptest/multiple/multiple2.pb.go index 201cfc45..99b64138 100644 --- a/internal/twirptest/multiple/multiple2.pb.go +++ b/internal/twirptest/multiple/multiple2.pb.go @@ -28,13 +28,15 @@ func init() { func init() { proto.RegisterFile("multiple2.proto"...
2
1
1
[{"id": "G0", "claim": "The import decision should compare the Go import path (`importPath`), not `file.GetPackage()`, since the protobuf package name is not necessarily the import path and may be unset, and a pair of .proto files with the same (or unset) package but different `option go_package` would produce an inval...
null
twitchtv__twirp__49
twitchtv/twirp
49
defect
4458f30605beb541dbe6eeb00d36c17a71922e8f
86dc60780a2f455e1162a585422f0cc969261fed
adding context-metadata to client
*Issue #, if available:* #45 *Description of changes:* Adding some metadata to context passed to httpClient. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index be6c49b6..ee6aefae 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -89,6 +89,9 @@ func NewCompatS...
2
2
2
[{"id": "G0", "claim": "Add the context values (package, service, method) to the generated Protobuf client as well, since S1 only added them to the generated JSON client.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test that makes sure all ...
null
twitchtv__twirp__66
twitchtv/twirp
66
defect
07e8fb7dce68316ad1270c5b5c0a2157f03ee031
50b76094d709f2da8c95caf45539367ea9177bf0
Return Close() errors instead of logging
*Issue #, if available:* This is one half of #4 . The other half is to fix servers to never log. *Description of changes:* It's best not to call the standard library's logger default logger, so this changes clients to return errors encountered when calling `resp.Body.Close()` instead of logging them. If the c...
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index c8d6c64b..03aa06d1 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -561,13 +561,11 @@ func getCus...
2
1
1
[{"id": "G0", "claim": "In the generated closebody, silence errcheck with `_ = body.Close()` (possibly with the comment from the next line) instead of assigning to err and then blank-assigning it.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Pha...
null
twitchtv__twirp__83
twitchtv/twirp
83
defect
cd0b39f5593e592143319c86233faf76913d6b73
b6b754d67af2155afb892d32c62bcbe3f17baa4f
Set Accept header in generated client requests
fixes #81 Added Accept header to JSON and protobuf clients and ran make. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
diff --git a/clientcompat/internal/clientcompat/clientcompat.twirp.go b/clientcompat/internal/clientcompat/clientcompat.twirp.go index bd6bae3d..40771344 100644 --- a/clientcompat/internal/clientcompat/clientcompat.twirp.go +++ b/clientcompat/internal/clientcompat/clientcompat.twirp.go @@ -778,6 +778,8 @@ func doProtob...
1
1
1
[{"id": "G0", "claim": "The generated client unconditionally sets the Accept header, overriding an Accept header the user supplied via WithHTTPRequestHeaders; the reviewer asked to rearrange things so the user's header wins (or else document the override), preferring the rearrangement.", "category": "correctness", "ver...
null
twitter__GraphJet__104
twitter/GraphJet
104
defect
1cd4fb147b57da6a82b224cd4fd47e456ab3c2ce
96814c1a83a42fe762ca7dfd5d1f1e60f641d75f
Add author blacklist filter
Thiss PR adds a new filter for filtering out tweets coming from certain authors. Originally, there is only a "whitelist" author filter to permit tweets from certain users. The blacklist filter is built on top of the existing whitelist filters, and shares the same parent class TweetAuthorFilterBase.
diff --git a/graphjet-adapters/pom.xml b/graphjet-adapters/pom.xml index d62887b1..ee8bc791 100644 --- a/graphjet-adapters/pom.xml +++ b/graphjet-adapters/pom.xml @@ -5,12 +5,12 @@ <parent> <groupId>com.twitter</groupId> <artifactId>graphjet</artifactId> - <version>1.1.10-SNAPSHOT</version> + <versio...
1
1
0
[{"id": "G0", "claim": "Calling getLeftNodeEdges inside the for loop over tweetAuthors is expensive because it retrieves all engagements for every user in tweetAuthors, and combining the whitelist and blacklist in the same filter would mean iterating through all the edges only once.", "category": "performance", "verdic...
null
twitter__GraphJet__106
twitter/GraphJet
106
defect
3c8f83cb2107c293b6807dc56ad7d64af003e251
21db9e8f96fc7638cd5abab678241a792881a957
Add fix to cover an edge case in tweet unfavorite path
Background: In the previous pull request I added the functionality to index unfavorite edges, so they can be used to "remove" the corresponding favorite edges. The core idea is that, for each tweet (nodeInfo), check both favorite edges and unfavorite edges, find intersection, remove the intersection, and lastly remove...
diff --git a/graphjet-adapters/pom.xml b/graphjet-adapters/pom.xml index d36844d6..e25eafc7 100644 --- a/graphjet-adapters/pom.xml +++ b/graphjet-adapters/pom.xml @@ -5,12 +5,12 @@ <parent> <groupId>com.twitter</groupId> <artifactId>graphjet</artifactId> - <version>1.1.12-SNAPSHOT</version> + <versio...
1
1
0
[{"id": "G0", "claim": "The author should add comments explaining why this change (narrowing the guard to only unfavSocialProofs being null) is necessary.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
twitter__GraphJet__109
twitter/GraphJet
109
defect
9861bd2b7512c087510b76818f3bc2e5e6877637
dbfd78642615f86549d0108d205ca159646b7c05
Remove Unfavorited edges from social proof recommendations
This review adds the ability to remove "unfavorited" social proofs from the social proof recommendation pipeline. Mainly, it removes unfavorited social proofs for tweets. It achieves this by doing the following: 0. Relocated removeUnfavoritedSocialProofs(NodeInfo) method from counting/ directory to algorithm/ director...
diff --git a/graphjet-adapters/pom.xml b/graphjet-adapters/pom.xml index f36d0f87..1b908878 100644 --- a/graphjet-adapters/pom.xml +++ b/graphjet-adapters/pom.xml @@ -5,12 +5,12 @@ <parent> <groupId>com.twitter</groupId> <artifactId>graphjet</artifactId> - <version>1.1.14-SNAPSHOT</version> + <versio...
1
1
0
[{"id": "G0", "claim": "Request objects should not be created/rewritten inside the algorithm; instead of constructing a new SocialProofRequest to add Unfavorite, the collect step should just take the new social proof types (e.g. newSocialProofTypes).", "category": "design", "verdict": "supported", "priority": "P2", "sc...
null
twitter__GraphJet__37
twitter/GraphJet
37
defect
ec1735be852f4f3346b240cc4705956160c3b0ea
35dd4a59eafa6deb9229b679a638d64c31dc8651
GraphJet adapters for Cassovary graphs
Initial implementation of GraphJet adapters for Cassovary graphs. This is so we can benchmark GraphJet vs. Cassovary in a common framework.
diff --git a/graphjet-adapters/pom.xml b/graphjet-adapters/pom.xml new file mode 100644 index 00000000..7bd73948 --- /dev/null +++ b/graphjet-adapters/pom.xml @@ -0,0 +1,43 @@ +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.ap...
2
2
2
[{"id": "G0", "claim": "The pom should not include the com.twitter.common:metrics dependency, since it is not used in graphjet-adapter and the metrics library was deliberately removed from GraphJet before open sourcing.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
twitter__GraphJet__41
twitter/GraphJet
41
defect
cc2cdd86a4797a38c90187986c7328cc56a090b4
b9025d151090740876bb794914e0af65f6f08307
Initial PageRank implementation
Pretty basic PageRank implementation. The interface will no doubt evolve as we implement more algorithms, but this is a start.
diff --git a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/PageRank.java b/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/PageRank.java new file mode 100644 index 00000000..fb2f3cab --- /dev/null +++ b/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/PageRank.java @@ -0,0 +1,156 @@...
9
7
0
[{"id": "G0", "claim": "Lines in PageRank.java should be kept under 100 characters (move dampingFactor onto its own line in the constructor signature and rewrap the long javadoc lines).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PageRank...
null
twitter__GraphJet__43
twitter/GraphJet
43
defect
0dfe34512edab33214382c502bc8dea3c9b106b7
ce329708ed04e8c214a347ec552085bd10a36c46
Gtang/top second degree user support
Refactored TopSecondDegreeByCount to add support for user recommendations. Refactored original interface to TopSecondDegreeByCountForUser, and added new TopSecondDegreeByCountForTweet. Along the way, refactored common components such as TopSecondDegreeByCountRequests. Also added unit tests for user recommendations
diff --git a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/RecommendationInfo.java b/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/RecommendationInfo.java index 10e2e163..0fcf52f3 100644 --- a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/RecommendationInfo.java +++ b/graphjet-...
33
29
1
[{"id": "G0", "claim": "The @param maxSocialProofTypeSize javadoc in TopSecondDegreeByCountRequestForUser should be made consistent with the base class TopSecondDegreeByCountRequest, where it is described as the number of social proof types in the graph.", "category": "documentation", "verdict": "supported", "priority"...
null
twitter__GraphJet__44
twitter/GraphJet
44
defect
daa3e486d422999d86c0607fed3d12c6d2dfd37d
9c470e0b0e28cd0f6fc9922aec2ca365d6380b3e
PageRank performance benchmark comparing Cassovary and GraphJet
Benchmarks PageRank on a GraphJet graph vs. PageRank on a Cassovary graph.
diff --git a/graphjet-demo/pom.xml b/graphjet-demo/pom.xml index 51f7f26f..662a4379 100644 --- a/graphjet-demo/pom.xml +++ b/graphjet-demo/pom.xml @@ -17,11 +17,22 @@ <url>http://graphjet.io</url> <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <vers...
4
3
0
[{"id": "G0", "claim": "Make the `entries` list in TopNodes.getNodes() final, since computing it mutates the queue and the method should therefore be a one-shot \"compute once\" operation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reducing ...
null
twitter__GraphJet__51
twitter/GraphJet
51
defect
c1559cc2ae3e121b4bbf33e0e3e9594c2db3ae3f
a8314868e311c0b9c6e866bda4c35d34897f3be2
Change graph type for user recommendations. Also bug fix in user rec
1. Changed the type of graph used by user recommendation to LeftLeftIndexedPowerLawMultiSegmentBipartiteGraph, whereas originally it uses NodeMetadata which serves little purpose. 2. Added a new parameter to user recommendation function all (maxNumSocialProof) to limit the number of social proofs returned for each us...
diff --git a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/counting/TopSecondDegreeByCount.java b/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/counting/TopSecondDegreeByCount.java index d49ea731..39f3bce6 100644 --- a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/counting/TopS...
1
1
0
[{"id": "G0", "claim": "Add a space before the return statement in the getMaxNumSocialProofs getter.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
twitter__GraphJet__74
twitter/GraphJet
74
defect
b1f349f5922d2310935f53a7218e17166a707151
95a9ac6ff3b99b94e0756cfea34e4ab20cd6cf99
Mrossides/generic social proof
1) Update the type of the graph used in SocialProof from NodeMetadataLeftIndexedMultiSegmentBipartiteGraph to LeftIndexedMultiSegmentBipartiteGraph. 2) Update the naming to make it more generic. 3) Update the interface to take IDMask and RecommendationType on a per SocialProofGenerator base.
diff --git a/graphjet-adapters/pom.xml b/graphjet-adapters/pom.xml index a745b564..345fd4ee 100644 --- a/graphjet-adapters/pom.xml +++ b/graphjet-adapters/pom.xml @@ -5,12 +5,12 @@ <parent> <groupId>com.twitter</groupId> <artifactId>graphjet</artifactId> - <version>1.0.22-SNAPSHOT</version> + <versio...
14
11
1
[{"id": "G0", "claim": "Copy the original description of ID masks into the IDMask interface's javadoc so the usage of the class is easier to tell.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the @Override annotation to IdentityIDMask.restor...
null
twitter__GraphJet__75
twitter/GraphJet
75
defect
54447b4159dfe5eca4861ae68e030a45fe94d5a6
c8ff971262ba1e09a3f09f68dc8ecbeeb257eecc
Jjiang/add big long array
Add BigLongArray and ShardedBigLongArray to store long metadata per edge. The interface and implementation are mostly copied from BigIntArray and ShardedBigIntArray. Java Generics do not support primitives and that is why I do not use Generics here.
diff --git a/graphjet-core/src/main/java/com/twitter/graphjet/hashing/BigLongArray.java b/graphjet-core/src/main/java/com/twitter/graphjet/hashing/BigLongArray.java new file mode 100644 index 00000000..5ad018b8 --- /dev/null +++ b/graphjet-core/src/main/java/com/twitter/graphjet/hashing/BigLongArray.java @@ -0,0 +1,58 ...
2
2
0
[{"id": "G0", "claim": "Add the copyright comment at the top of each file, and make sure it is for 2017.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Typo in the Javadoc: \"conversations\" should be \"conversions\".", "category": "documentation"...
null
twitter__GraphJet__81
twitter/GraphJet
81
defect
8a4c0ed7eee190efa160d86ffede7678b5ab02b8
06d7c4fad67ac21170b4d4255d90017eee60450a
Jjiang/add edge timestamp filter rb
1. Add edge time stamp age filter in all counting based algorithms. In the case of moment and user algorithms, their constructors in Scala will set the edge timestamp limit to Long.Max for now. 2. Move right node age filter from filter chain, RecentTweetFilter, to isEdgeUpdateValid function inside the algorithm. Again...
diff --git a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/RecentTweetFilter.java b/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/RecentTweetFilter.java index a52ffc93..b8a090b5 100644 --- a/graphjet-core/src/main/java/com/twitter/graphjet/algorithms/RecentTweetFilter.java +++ b/graphjet-cor...
2
1
0
[{"id": "G0", "claim": "The javadoc for isEdgeUpdateValid's rightNode parameter reads \"th RHS node\" and should read \"the RHS node\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why IS_MENTIONED and IS_MEDIATAGGED edge times...
null
twitter__GraphJet__92
twitter/GraphJet
92
defect
9a052b4d3001150e739933a9183f8afecc49a550
5c577d46456991fafea32d65c4818c553cfa2ff6
Add metadata edge filter
This Pull Request mainly accomplishes 2 things: 1. Moved all remaining filter classes under the "filter" folder 2. Added a new filter based on edge's metadata. The new filter, RecentEdgeMetadataFilter, is based on the edge metadata field and assumes the metadata represents a timestamp. This filter will filter out all...
diff --git a/graphjet-adapters/pom.xml b/graphjet-adapters/pom.xml index 6888d57b..02131f26 100644 --- a/graphjet-adapters/pom.xml +++ b/graphjet-adapters/pom.xml @@ -5,12 +5,12 @@ <parent> <groupId>com.twitter</groupId> <artifactId>graphjet</artifactId> - <version>1.1.2-SNAPSHOT</version> + <version...
3
3
0
[{"id": "G0", "claim": "The new test file's copyright header says 2016 but should say 2017.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Iterate the metadata array with an enhanced-for loop (for (long timestamp : allMetadata)) instead of the ind...
null
twitter__pelikan__124
twitter/pelikan
124
defect
bd3237b5df3b5c0fc9782b6251bbf28ebe8f1d7d
8e0eea6a0e9509bd47ef1789471de244a0273b26
make twemcache deal with partial request value
This is the first diff to address issue #122 Subsequent diff will add more unit tests, as well as handle partial value when writing responses (when wbuf is full)
diff --git a/src/core/data/worker.c b/src/core/data/worker.c index c0c9efee9..35423aaeb 100644 --- a/src/core/data/worker.c +++ b/src/core/data/worker.c @@ -84,6 +84,7 @@ worker_close(struct buf_sock *s) { log_info("worker core close on buf_sock %p", s); + processor->post_error(&s->rbuf, &s->wbuf, &s->data);...
14
9
4
[{"id": "G0", "claim": "The `printf(\"foo\\n\")` added in test_setup is debug leftover that was probably not meant to be committed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test's assertions run strspn on item_data(it), which is not nu...
null
twitter__pelikan__165
twitter/pelikan
165
defect
f9799b293306124400d6bc36ed200a9cb134420f
f26459c291234284a473ab67f703e0eff17282fc
add remove_val API implementation, allow found to only return state
the remove val API makes it easier to implement list command such as LREM. allow find to accept `NULL` for both `ze` and `idx` so we can call this function just to check if a value exists or not, which is useful in testing and some higher level APIs.
diff --git a/src/data_structure/ziplist/ziplist.c b/src/data_structure/ziplist/ziplist.c index 5f36d90b9..f6d8eed86 100644 --- a/src/data_structure/ziplist/ziplist.c +++ b/src/data_structure/ziplist/ziplist.c @@ -290,9 +290,6 @@ ziplist_find(zipentry_p *ze, int64_t *idx, const ziplist_p zl, const struct blob if (z...
1
1
0
[{"id": "G0", "claim": "Count 0 meaning remove all is misleading and an alternative signaling value should be found.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
twitter__pelikan__193
twitter/pelikan
193
defect
bcd1f4de273f0e0ec0492d9200e89087d4bdb393
2f4e5832d19c12790a4210b5a406335c4a3345e7
Use INT32_MAX for unbounded expiry
Addresses #189. I believe using UINT32_MAX - 1 was in reaction to cuckoo, where we assumed that timestamp will be less than UINT32_MAX for the sake of expiry based eviction. This change updates the behavior to use INT32_MAX to mean unbounded expiry in all places, and slightly changes the behavior of cuckoo's selection ...
diff --git a/src/server/redis/data/cmd_list.c b/src/server/redis/data/cmd_list.c index e4929d3f3..337a16120 100644 --- a/src/server/redis/data/cmd_list.c +++ b/src/server/redis/data/cmd_list.c @@ -34,7 +34,7 @@ _add_key(struct response *rsp, struct bstring *key) return NULL; } else { /* TODO: fig...
4
4
0
[{"id": "G0", "claim": "For consistency, the finer grain timestamp conversion functions should return INT64_MAX instead of INT64_MAX - 1 for t == 0, matching the second-grain function's use of INT32_MAX.", "category": "consistency", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
twitter__pelikan__201
twitter/pelikan
201
defect
3656d0b68224bcba814ac1def6b34010dd68e545
2cedd004b7b5bc64db2e298be051f344a3f85ec4
add some redis list commands
- added support for some redis list commands - expanded ziplist API to contain trim, and added unit tests - some minor item API additions for slabbed storage
diff --git a/src/data_structure/ziplist/ziplist.c b/src/data_structure/ziplist/ziplist.c index 8cd6da197..ff4c04e8c 100644 --- a/src/data_structure/ziplist/ziplist.c +++ b/src/data_structure/ziplist/ziplist.c @@ -201,7 +201,7 @@ _ziplist_prev(zipentry_p ze) return ze - *(ze - 1); /* *(ze - 1) : length of the previ...
7
5
0
[{"id": "G0", "claim": "Inline item_will_fit, make the slab profile visible so it can be defined in the header, and implement it as a direct profile comparison instead of item_slabid's binary search through the profile array.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
twitter__pelikan__282
twitter/pelikan
282
defect
a9966ec9a77236cdf824953a7277f549b78bade4
6124807c05cf529fa60f13e90d366fd927e68296
Support resp3 style attributes
Main ideas are described in ` src/protocol/data/resp/attribute.md` Summary of main changes: - update token handling to recognize attribute and new null representation, making composite type such as `array` and `attribute` more like normal types (taking up a token slot, parse/compose using the same function, etc); ...
diff --git a/src/protocol/data/resp/CMakeLists.txt b/src/protocol/data/resp/CMakeLists.txt index 4658a30b8..f29799fc6 100644 --- a/src/protocol/data/resp/CMakeLists.txt +++ b/src/protocol/data/resp/CMakeLists.txt @@ -1,4 +1,5 @@ set(SOURCE + attribute.c compose.c parse.c request.c diff --git a/src/pr...
4
4
1
[{"id": "G0", "claim": "The key-type check (and the following clause) in _parse_req_attrib would be more readable as a for loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lookup loop should compare against ATTRIB_SENTINEL rather than RE...
null
twitter__pelikan__79
twitter/pelikan
79
defect
ec749dcfab94fd6e5c085c08bd1983fed20cd296
b12de6674b15cf89e60f0dba31dda1d5a9e6829e
pelikan changes needed to refactor option/setup
This works with (locally merged) ccommon PR of the same purpose. It's a lot of changes. But the point is basically illustrated in the `main.c`'s, note it is noticeably shorter and more regular to setup an application (https://github.com/thinkingfish/pelikan/blob/option_refactor/src/twemcache/main.c vs. the current way...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8252c3192..4eaccdd8f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,13 +108,10 @@ include_directories(${include_directories} "${PROJECT_BINARY_DIR}" "${CCOMMON_SOURCE_DIR}/include" "${PROJECT_SOURCE_DIR}/src" - "${PROJECT_SOURCE_DIR}/client/...
6
3
1
[{"id": "G0", "claim": "Use strncpy instead of strcpy when copying the configured klog backup path into the fixed-size backup_path buffer, to avoid a potential buffer overflow.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "In klog_setup, use goto erro...
null
twitter__pelikan__86
twitter/pelikan
86
defect
c7b24fe6ae9f348d90d44e02f6f3ef3eb7a0d220
bdf7223a5cc274f5eb8087b623879c722535a38e
pelikan changes to use refactored timing wheel
tested with locally merged ccommon, but the deps are not part of this diff
diff --git a/src/core/admin/admin.c b/src/core/admin/admin.c index ceaa54499..53f10a68d 100644 --- a/src/core/admin/admin.c +++ b/src/core/admin/admin.c @@ -201,20 +201,6 @@ _admin_event(void *arg, uint32_t events) } } -rstatus_i -core_admin_add_tev(struct timeout_event *tev) -{ - ASSERT(!__atomic_load_n(&ad...
2
1
0
[{"id": "G0", "claim": "Remove the always-true `recur` parameter from `core_admin_register` and pass \"true\" directly when calling `timing_wheel_insert`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new option entries in the SLIMCACHE_OPTION and T...
null
twitter__typeahead.js__59
twitter/typeahead.js
59
defect
f0a449177fe90d211718062e8a850db37b7ca945
126e7803de15c5f66f64bf388ccb12041a377465
Add destroy method
This will allow typeaheads to be reinitialized: ``` javascript // create $('.typeahead').typeahead({ /* ... */ }); // destroy $('.typeahead').typeahead('destroy'); // create again, this time with different datasets/settings $('.typeahead').typeahead({ /* ... */ }); ``` I need to add some tests, but the code should ...
diff --git a/src/js/dataset.js b/src/js/dataset.js index 1f4923bf..282e1437 100644 --- a/src/js/dataset.js +++ b/src/js/dataset.js @@ -20,7 +20,7 @@ var Dataset = (function() { this.limit = o.limit || 10; this._customMatcher = o.matcher || null; this._customRanker = o.ranker || null; - this._ttl_ms = ...
1
1
1
[{"id": "G0", "claim": "The destroy functionality added by this pull request is untested, and the reviewer asks whether it is worth testing even if only each individual destroy method can be tested rather than the whole.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
twmb__franz-go__1038
twmb/franz-go
1,038
defect
37eecbb8927fce0aede1d6af39849839f7b0b3cf
4ffa501ec850655acf7514fa348394407e22d365
sr: add new `Client.RegisterSchema` function
First of all, apologies for submitting a PR with a new feature without starting a discussion about it first. I thought this feature is simple enough and justified to just submit it for inclusion. We recently migrated our Kafka cluster from Confluent 6.2.x to 7.8.x. In our setup, we have the ACL authorizer plugin co...
diff --git a/pkg/sr/api.go b/pkg/sr/api.go index 8bb04339b..dbf95cf01 100644 --- a/pkg/sr/api.go +++ b/pkg/sr/api.go @@ -348,30 +348,25 @@ func (cl *Client) Schemas(ctx context.Context, subject string) ([]SubjectSchema, return schemas, firstErr } -// CreateSchema attempts to create a schema in the given subject. +...
10
9
2
[{"id": "G0", "claim": "The doc comment should say `version` instead of `versionID` (with the corresponding change at the other location).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc sentence `the same identifier will be returned` could...
null