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
stoqey__ibkr__59
stoqey/ibkr
59
defect
2405b5c465566ffdf211c809b8965d9f5f6719e3
66ece6616abb16cf5220915f0742ef17846416d6
For Price Updates, use the conId internally instead of the symbol
This patch avoids conflicts for symbols in different marketplaces by using the `conId` where possible instead of the `symbol`. In more detail: - uses `conId` as a key where possible instead of `symbol` - fixes errors on unsubscribe where the old subscriptions weren't removed from the internal map/array - added ...
diff --git a/src/contracts/contracts.interfaces.ts b/src/contracts/contracts.interfaces.ts index c5e71ed..5318284 100644 --- a/src/contracts/contracts.interfaces.ts +++ b/src/contracts/contracts.interfaces.ts @@ -13,12 +13,12 @@ export interface ContractObject { comboLegsDescrip?: string; } -interface Contracts...
3
1
1
[{"id": "G0", "claim": "The setTimeout wrapper is unnecessary in unsubscribeAllSymbols() and should be removed.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The two lines resetting tickerIdToData and keyToTickerId inside the delayed timeout wipe all ot...
null
storaged-project__blivet-gui__154
storaged-project/blivet-gui
154
defect
94b70f2aadbeeb36cd51ea4bfaa82630eab1ff8e
a440073cb48a9672582e9d138660cc35be683ff4
Multiple mountpoints in the UI
This takes care of both displaying and unmounting devices that are mounted at multiple locations. ![image](https://user-images.githubusercontent.com/5063197/75098683-8c565400-55b9-11ea-80c7-92a402812b68.png)
diff --git a/blivetgui/blivet_utils.py b/blivetgui/blivet_utils.py index e43bac9e..c8cc6674 100644 --- a/blivetgui/blivet_utils.py +++ b/blivetgui/blivet_utils.py @@ -1336,6 +1336,10 @@ def get_supported_filesystems(self, installer_mode=False): def get_default_filesystem(self): return self.storage.default...
1
1
0
[{"id": "G0", "claim": "Use bool(device.format.system_mountpoint) instead of assigning the raw mountpoint string for the is_mounted check, since that would make more sense.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storaged-project__blivet-gui__182
storaged-project/blivet-gui
182
defect
e831bba6cab5bd6fecf2df5f6f7afd6b0e58b034
c6d528a4ab3b6cd53cac6f5606e48befd1781d77
Refactor checking for device resizability
We currently decide if the device is resizable completely in the GUI using the "_allow_resize_device" function which makes some of the devices not resizable even if they can be resized. To properly decide we usually need to call "update_size_info" on the format first. This change moves the decision to the backend ...
diff --git a/blivetgui/blivet_utils.py b/blivetgui/blivet_utils.py index 68af384f..1fdc1c37 100644 --- a/blivetgui/blivet_utils.py +++ b/blivetgui/blivet_utils.py @@ -70,6 +70,8 @@ def __init__(self, disk, dev_id): self.is_disk = False self.isleaf = True self.direct = True + self._resi...
1
1
0
[{"id": "G0", "claim": "In `device_resizable`, the `protected` and `children` checks should be moved before the format-type and resize-tools-availability checks because those reasons are \"stronger\".", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storaged-project__blivet-gui__48
storaged-project/blivet-gui
48
defect
1b6dd4a40ae84021c97a653ee7096683621199c1
fb7365e1dc88bd7a3418cbbbbbc46df508dcabe9
Few fixes for Anaconda
Fixes for few bugs found during blivet-gui Anaconda test day. Updates image to test this (including some Anaconda changes): https://vtrefny.fedorapeople.org/img/bg-td.img
diff --git a/blivetgui/dialogs/edit_dialog.py b/blivetgui/dialogs/edit_dialog.py index b6bc75b1..51ec2410 100644 --- a/blivetgui/dialogs/edit_dialog.py +++ b/blivetgui/dialogs/edit_dialog.py @@ -202,7 +202,11 @@ def validate_user_input(self): return False if self.installer_mode and selected_...
1
1
0
[{"id": "G0", "claim": "The decrypt button's tooltip should say \"Unlock\" instead of \"Decrypt\", which doesn't make much sense there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storaged-project__blivet-gui__55
storaged-project/blivet-gui
55
defect
2da7ea9a76fdc2ef959075fc4b3fbdaf27e3cf79
53e793de35ce71aaba2b18a9a24f03aa808fded4
Few more fixes for Anaconda
Third batch of fixes for bugs found during blivet-gui in Anaconda test day.
diff --git a/blivetgui/blivet_utils.py b/blivetgui/blivet_utils.py index cd8acbe3..17551b28 100644 --- a/blivetgui/blivet_utils.py +++ b/blivetgui/blivet_utils.py @@ -468,11 +468,13 @@ def _delete_disk_label(self, disk_device): return ProxyDataContainer(success=True, actions=[action], message=None, exception...
1
1
0
[{"id": "G0", "claim": "The device-specification string in ConfirmDeleteDialog is wrapped in _() with a TRANSLATORS comment although there is nothing meaningful for translators to translate there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storaged-project__udisks__559
storaged-project/udisks
559
defect
4d18369549838831c1e99b2c0e3dae8b764f22a8
a162aac4bccd100b3c533d02426be92872d6d484
Leaking fds
Various fixes collected by running the test suite. Fixes: #324
diff --git a/data/org.freedesktop.UDisks2.xml b/data/org.freedesktop.UDisks2.xml index 15906618ba..fb1e0d3b5e 100644 --- a/data/org.freedesktop.UDisks2.xml +++ b/data/org.freedesktop.UDisks2.xml @@ -2217,7 +2217,7 @@ This property corresponds to the <literal>sync_action</literal> sysfs file, see t...
3
3
1
[{"id": "G0", "claim": "Running ./udisks-test aborts with \"udisksthreadedjob.c:416:udisks_threaded_job_threaded_job_completed_default: assertion failed: (error != NULL)\", i.e. the threaded-job completed path crashes when no error is set.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ...
null
storj__storj__1145
storj/storj
1,145
defect
8ba4b61e590aae44adb4d11ac33125c49d758d22
80a93640636ba10eec6d2d3df1429615838a1cf9
identity cleanup
+ pluggable logging in key generation + remove old `SetupIdentity` and `SetupCA`
diff --git a/cmd/identity/certificate_authority.go b/cmd/identity/certificate_authority.go index 04ef82657780..b97bbf0f40a8 100644 --- a/cmd/identity/certificate_authority.go +++ b/cmd/identity/certificate_authority.go @@ -5,6 +5,7 @@ package main import ( "fmt" + "os" "github.com/spf13/cobra" @@ -81,7 +82,7...
2
2
0
[{"id": "G0", "claim": "The status line should be written with fmt.Fprintf(opts.Logger, ...) instead of building a string and calling opts.Logger.Write.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The every-100th-key check should be inlined a...
null
storj__storj__2586
storj/storj
2,586
defect
20a7748fb3d4b8071ce88c74ac9789e058cadffe
56f3a7defc14fb9cacbdfc275337ca7766c9b679
satellite/console: add lowercase to reset password email input
What: Implemented normalized_email field to users table to have opportunity to compare emails without changing user email representation Why: User is unable to reset password if enter email with any UpperCase letter example@storj.io not the same as Example@storj.io Please describe the tests: - Test 1: -...
diff --git a/satellite/console/consoleweb/consoleql/query.go b/satellite/console/consoleweb/consoleql/query.go index 72916043c9e1..d8c4e0b0c6d8 100644 --- a/satellite/console/consoleweb/consoleql/query.go +++ b/satellite/console/consoleweb/consoleql/query.go @@ -6,6 +6,7 @@ package consoleql import ( "errors" "fmt...
3
1
1
[{"id": "G0", "claim": "The lower-casing should be moved out of the GraphQL resolver into the service layer (with normalization applied across the board, including the database) instead of being done at the query.go call site.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
storj__storj__2745
storj/storj
2,745
defect
1f837c53eb238ec38a342e77542ad45b92487732
d33c4102567ed451beabcf21307575ab4cc9b86a
satellite/rewards: update current reward to be finished once redemption cap has reached
What: - when valid reward constraint fails, we should update current reward to be done Why: If current active reward has reached it's maximum redemption capacity, we need to update it to be done and the active offer will fall back to use the default offer Please describe the tests: - Test 1: - Test 2: ...
diff --git a/satellite/console/consoleweb/consoleql/mutation_test.go b/satellite/console/consoleweb/consoleql/mutation_test.go index 5cac1dcaa92f..7ba394e24d9e 100644 --- a/satellite/console/consoleweb/consoleql/mutation_test.go +++ b/satellite/console/consoleweb/consoleql/mutation_test.go @@ -88,7 +88,7 @@ func TestGr...
7
4
1
[{"id": "G0", "claim": "Other usercredit db methods may not use the existing transaction that Create relies on, which could cause problems if a transaction is in progress.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The shouldCreate switch could ...
null
storj__storj__2752
storj/storj
2,752
defect
1f837c53eb238ec38a342e77542ad45b92487732
e1a74c481ba9d4ad1ed4c54ee7d0db3841079a9d
satellite/console: project members refactoring
What: Project members queries and service refactored to have code consistency for all Paged requests Why: Please describe the tests: - Test 1: - Test 2: Please describe the performance impact: ## Code Review Checklist (to be filled out by reviewer) - [ ] Does the PR describe what changes are be...
diff --git a/satellite/console/consoleweb/consoleql/mutation_test.go b/satellite/console/consoleweb/consoleql/mutation_test.go index 5cac1dcaa92f..4dd87b8e5efa 100644 --- a/satellite/console/consoleweb/consoleql/mutation_test.go +++ b/satellite/console/consoleweb/consoleql/mutation_test.go @@ -415,7 +415,7 @@ func Test...
5
4
1
[{"id": "G0", "claim": "The helper fromMapProjectMembersCursor should be renamed to cursorArgsToProjectMembersCursor.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The order direction for the page is not set, so the direction used in the projec...
null
storj__storj__2771
storj/storj
2,771
defect
c57aaee6645d9f0babdb4398f413353984c8d6da
115836158f3268522811b6923f09558908373b5b
uplink/piecestore: handle Download errors better
What: Handle errors better such that we can call close without context cancellation problems. This should also get rid of the potential double closing of download. Why: Please describe the tests: - Test 1: - Test 2: Please describe the performance impact: ## Code Review Checklist (to be filled out by r...
diff --git a/uplink/piecestore/download.go b/uplink/piecestore/download.go index b98d341c05fa..13aa9852a0e1 100644 --- a/uplink/piecestore/download.go +++ b/uplink/piecestore/download.go @@ -10,6 +10,7 @@ import ( "github.com/zeebo/errs" + "storj.io/storj/internal/errs2" "storj.io/storj/pkg/identity" "storj.i...
4
2
1
[{"id": "G0", "claim": "Read should return an error (even when the number of bytes read is larger than 0) when client.unread is pending an error, instead of returning (read, nil).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In some cases errors are...
null
storj__storj__2775
storj/storj
2,775
defect
89a8d32733fdce61e749dad8dba77444fc4b3705
391c330e0ec3e6edb3f9bd4490f809a065dceb5f
storagenode/piecestore + uplink/piecestore: return `PieceHash` and original `OrderLimit` during GET_REPAIR
What: Update the PieceDownloadResponse protocol buffer and alter the storage node code to populate `PieceHash` and `OrderLimit` when the `OrderLimit` `Action` is `GET_REPAIR` (repair downloads). Adds `GetHashAndLimit()` to download client, which allows us to access the piece's hash and original order limit during ...
diff --git a/pkg/pb/piecestore2.pb.go b/pkg/pb/piecestore2.pb.go index d7d559550ff0..835c2d488c5b 100644 --- a/pkg/pb/piecestore2.pb.go +++ b/pkg/pb/piecestore2.pb.go @@ -10,6 +10,8 @@ import ( proto "github.com/gogo/protobuf/proto" _ "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" + c...
6
4
1
[{"id": "G0", "claim": "The new GET_REPAIR hash/limit code may not need the back-and-forth pointer/value conversion and the possible additional allocation.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new comments in the GET_REPAIR block of stor...
null
storj__storj__2801
storj/storj
2,801
defect
497f10d7b148ee553908d12d215df76b3e968a8d
fa42df1a4feb814b380665d2b7c5ac67af64b998
storagenode: Don't exit with fatal error when unsent orders aren't found
What: The Storage Node shouldn't stop if some unsent orders aren't found for being archived. Why: Because it can cause a Storage Node to stop without having a grave problem. This is a real problem for one of our Storage Node operators, please see https://storjlabs.atlassian.net/browse/V3-2434 for more information...
diff --git a/pkg/process/exec_conf.go b/pkg/process/exec_conf.go index 4965d98c5d65..67ecfcdcde11 100644 --- a/pkg/process/exec_conf.go +++ b/pkg/process/exec_conf.go @@ -282,11 +282,11 @@ func cleanup(cmd *cobra.Command) { err = workErr if err != nil { - logger.Sugar().Fatal(err) - _ = logger.Sync() - os...
1
1
0
[{"id": "G0", "claim": "The errHandle helper closure could be dropped in favour of writing the log.Error calls and errList.Add directly in each error-check branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storj__storj__2803
storj/storj
2,803
defect
bf681f32afbd1a8b12c60d001d75d533a22b9930
a9ec81cf50aa0e069ad28dd924eaa872f0b1ff28
satellite/satellitedb: persist piece counts to/from db
What: Load last known piece counts from the nodes table when the gc service starts and save piece counts to the db when they're updated during gc. Why: So that first iteration of gc bloom filters are optimal after a satellite restart. See [V3-2157](https://storjlabs.atlassian.net/browse/V3-2157) Please describe t...
diff --git a/satellite/gc/piecetracker.go b/satellite/gc/piecetracker.go index 0472e308cd11..6f6104ba4b57 100644 --- a/satellite/gc/piecetracker.go +++ b/satellite/gc/piecetracker.go @@ -20,7 +20,10 @@ type PieceTracker struct { log *zap.Logger config Config creationDate time.Time - pieceCounts ma...
14
12
4
[{"id": "G0", "claim": "The multi-statement SQL built in UpdatePieceCounts (\"UPDATE nodes SET ( piece_count ) = ( %d ) WHERE id == ?;\") will fail on postgres — multiple commands in one prepared statement, no == operator, and a parenthesized SET clause — and the id should be passed as a parameter (or the query rewritt...
null
storj__storj__2831
storj/storj
2,831
defect
95c88b803c388d80a44108ebcb1598d2cf6683f7
18bba586bf0e290a9383b52ccf0da11c3eb751d8
pkg/peertls: extension handling refactor
What: + convert `extensions.AllHandlers` to `extensions.DefaultHandlers` + register configurable handlers explicitly, based on respective config struct Why: To cover the nil revocation db case and clean up a bit. Please describe the tests: `TestWithOptions_NilRevocationDB` asserts that if the revocation ...
diff --git a/bootstrap/peer.go b/bootstrap/peer.go index 8528e131cc64..fb0410b3bf93 100644 --- a/bootstrap/peer.go +++ b/bootstrap/peer.go @@ -18,7 +18,6 @@ import ( "storj.io/storj/pkg/identity" "storj.io/storj/pkg/kademlia" "storj.io/storj/pkg/pb" - "storj.io/storj/pkg/peertls/extensions" "storj.io/storj/pkg/...
2
1
1
[{"id": "G0", "claim": "The pull request removes the earlier change that ensured databases are constructed outside of peers / uplink, dropping the externally constructed revocation DB from bootstrap.New and the other peer constructors.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
storj__storj__2855
storj/storj
2,855
defect
12d50ebb995f782ff654104aafe78629fe1ce26d
6fc98268a000fda26f6f01e7496e07e02ae9890b
uplink/paths/encryption: support commandline argument to override path cipher to be urlsafe base64 for lists and deletes
What: allow listing and removal on base64-encoded, but encrypted paths Why: let's say you have api key access to a full bucket. someone uploaded things with the wrong encryption key and now you can't see them. you don't have the encryption key but you'd like to remove them. this lets you find and remove things without...
diff --git a/cmd/uplink/cmd/ls.go b/cmd/uplink/cmd/ls.go index d102f2bb9759..c2e3154b86b1 100644 --- a/cmd/uplink/cmd/ls.go +++ b/cmd/uplink/cmd/ls.go @@ -17,7 +17,8 @@ import ( ) var ( - recursiveFlag *bool + lsRecursiveFlag *bool + lsEncryptedFlag *bool ) func init() { @@ -26,7 +27,8 @@ func init() { Short...
13
5
1
[{"id": "G0", "claim": "encryptPathComponent (and likewise decryptPathComponent and encryptPath) appears not to encrypt path components for EncURLSafeBase64 and is polluted with the base64 special-casing, so the reviewers ask that the functions be renamed (e.g. to encodePathComponent) or that this logic be moved outsid...
null
storj__storj__2858
storj/storj
2,858
defect
357a4cdf5ed62a48e9563aba97a3900ea12c641f
ca9a650c7aa82391b4655e9d7279feea0b360d11
satellite/nodestats: return storage usage in Byte*hours
What: Make satellite nodestats endpoint return storage usage in Byte*hours instead of trying to query raw Byte values. Why: Storage usage intended to give user information about expected payout, as we form our payouts table using Byte*hours from `accounting_rollups` table it makes more sense to show it this way to S...
diff --git a/internal/dbutil/nulltime.go b/internal/dbutil/nulltime.go index 4f6e392e5ff4..538cf5a4020f 100644 --- a/internal/dbutil/nulltime.go +++ b/internal/dbutil/nulltime.go @@ -9,7 +9,8 @@ import ( ) const ( - sqliteTimeLayout = "2006-01-02 15:04:05-07:00" + sqliteTimeLayout = "2006-01-02 15:04:05-07:00...
8
6
2
[{"id": "G0", "claim": "The fmt.Println debug lines added in QueryStorageNodeUsage do not need to be there and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In TestStorageUsage the last-rollup timestamp lookup returns nil wit...
null
storj__storj__2882
storj/storj
2,882
defect
106a21ebe0e29d223fec98e641732dd4f38a465e
2006a87c842adea6628806fcb73883e68e16c817
satellite/metainfo: Improve metainfo ListSegments
What: Improve metainfo `ListSegments` method with recent change about not encrypting a number of segments in metadata. With a known number of segments, we can just calculate result without many pointerDB calls. The implementation supports old and new way. Why: We don't want to query pointerDB for each segment separa...
diff --git a/internal/testplanet/uplink.go b/internal/testplanet/uplink.go index cfed63c64fc5..c53f3e5b06c8 100644 --- a/internal/testplanet/uplink.go +++ b/internal/testplanet/uplink.go @@ -210,6 +210,26 @@ func (client *Uplink) UploadWithExpirationAndConfig(ctx context.Context, satelli return nil } +// UploadWit...
4
4
0
[{"id": "G0", "claim": "The `TODO cleanup int32 vs int64` left in ListSegments should be resolved before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `TODO think about better implementation` on the manual segment-listing loop shou...
null
storj__storj__2911
storj/storj
2,911
defect
8a5db77e04dbf7ad5f8ff87b921ac567145ded69
31a00e1b9e8a720d1b7309e760b2ee852310be7f
storagenode/storageusage: add summary, rename timestamp to interval_start
What: storagenode/storageusage: rename timestamp to interval_start, as we now store GB*hours instead of plain GB's `interval_start` is more descriptive in a way that it start point of calcualtions. Added `Summary`, `SatelliteSummary` queries to receive summaries for all satellites and for particular one respectivel...
diff --git a/storagenode/nodestats/service.go b/storagenode/nodestats/service.go index 724a63b6d34b..e13f5cfd4ef9 100644 --- a/storagenode/nodestats/service.go +++ b/storagenode/nodestats/service.go @@ -156,9 +156,9 @@ func fromSpaceUsageResponse(resp *pb.DailyStorageUsageResponse, satelliteID stor for _, pbUsage :...
11
10
1
[{"id": "G0", "claim": "The Summary doc comment in storagenodedb is missing a trailing period.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Summary monkit task should record the from and to parameters via defer mon.Task()(&ctx, from, to)(&er...
null
storj__storj__2925
storj/storj
2,925
defect
adfa16188ba2b03c327b72576266f01649a01747
24838526249015554fab8df22079aa66bd16bf8c
Repair with hashes
What: Create a specialized ecclient for the repairer that does additional verification: * Gets uplink-signed piece hashes and signed original order limits from storagenodes during download * Verifies piece hash and order limit signature * Calculates piece hash of downloaded data from storagenode, and verifies that...
diff --git a/satellite/peer.go b/satellite/peer.go index 2ca8c637fbdd..0b4fd0c2b2d0 100644 --- a/satellite/peer.go +++ b/satellite/peer.go @@ -452,12 +452,11 @@ func New(log *zap.Logger, full *identity.FullIdentity, db DB, revocationDB exten peer.Log.Named("repairer"), peer.DB.RepairQueue(), &config.Repaire...
15
13
2
[{"id": "G0", "claim": "The Repair doc comment contains the typo \"prolvided\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Get validation error should say \"number of limits\" instead of \"dataSize of limits slice\".", "category": "documen...
null
storj__storj__2971
storj/storj
2,971
defect
c35ad5cbfc0482e2cdd9c9223742ead4d6301ca5
b0f77ec0074020a34a9177b32485884cb16854e6
pkg/certificates: add authorization endpoint and refactor
What: Add authorization http endpoint for creating authorizations within a trusted network environment. Why: [V3-2382](https://storjlabs.atlassian.net/browse/V3-2382?atlOrigin=eyJpIjoiNGUwYzUwMTlmN2U3NGUwZGIyMTllYTFhYzliYzg0NzUiLCJwIjoiaiJ9) Please describe the tests: `authorizations_test.go` - Add `TestNewDBFr...
diff --git a/cmd/certificates/auth.go b/cmd/certificates/auth.go index 54d78962e57f..e40d6e5e8fc4 100644 --- a/cmd/certificates/auth.go +++ b/cmd/certificates/auth.go @@ -70,7 +70,7 @@ func cmdCreateAuth(cmd *cobra.Command, args []string) error { if err != nil { return errs.New("Count couldn't be parsed: %s", args...
31
27
15
[{"id": "G0", "claim": "The way the test creates its temporary authorizations DB file may not be the right way, since temp files are created differently elsewhere.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The empty-user-ID check could compare string...
null
storj__storj__2972
storj/storj
2,972
defect
60eba990ebe7468597de7bc1043a7d795f57c486
c5518cff9883b75016b2c41ffeeca53dc8d03d03
storagenode/pieces: fix race condition in cache service
What: Add a mutex lock in `PersistCacheTotals` Why: When data is uploaded to a storage node it writes the amount to a map to be periodically synced to the database. If a write occurs simultaneously with a sync, it can result in a race condition https://storjlabs.atlassian.net/browse/V3-2568 Please describe the...
diff --git a/storagenode/pieces/cache.go b/storagenode/pieces/cache.go index f55e0f92b308..ee6b75692cc9 100644 --- a/storagenode/pieces/cache.go +++ b/storagenode/pieces/cache.go @@ -75,6 +75,8 @@ func (service *CacheService) Run(ctx context.Context) (err error) { // values without needing to recalculate since that co...
2
1
1
[{"id": "G0", "claim": "All goroutines must finish before exiting the test: TestConcurrency starts a goroutine and returns without waiting for it to finish.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The fix may not make the code completely race fre...
null
storj__storj__3048
storj/storj
3,048
defect
ca058e606f590357bf771b14ff166c94f96ab5d7
c8434edf2b70accd838603f63c00fa7a1c3b256e
pkg/pb: minor changes to contact.proto
What: Why: This PR makes a few minor changes to the new contact proto [per the discussion on this other PR](https://github.com/storj/storj/pull/2952#discussion_r321805861): - pb.InfoResponse also has a Version field which we need in contact proto since won't come from node discovery anymore. - 'Checkin' changed t...
diff --git a/pkg/pb/contact.pb.go b/pkg/pb/contact.pb.go index f9a854971eff..00112265a70b 100644 --- a/pkg/pb/contact.pb.go +++ b/pkg/pb/contact.pb.go @@ -23,8 +23,9 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package -type Checkin...
1
1
0
[{"id": "G0", "claim": "The method dialling the peer (newClient) could take the target as a string rather than a *pb.NodeAddress.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storj__storj__3065
storj/storj
3,065
defect
69aa0c6cc43ae42d1dcafefe0f870b167a7277b9
aef781cb5924faa18384c8b9eaf1e8d2d06fedf4
Add the tempDir as parameter
What: When creating a new Uplink I wanted to provide a temp-directory to use - this is necessary at least on Android. Why: Otherwise Uploads (and presumably Downloads) on Android won't work. Please describe the tests: Tested it with my .Net-Wrapper (uplink.NET). Please describe the performance impact: Sh...
diff --git a/lib/uplinkc/testdata/helpers.h b/lib/uplinkc/testdata/helpers.h index 7e5b89a17178..cb8f01747f7b 100644 --- a/lib/uplinkc/testdata/helpers.h +++ b/lib/uplinkc/testdata/helpers.h @@ -30,6 +30,7 @@ void with_test_project(void (*handleProject)(ProjectRef)) { char *satellite_addr = getenv("SATELLITE_0_A...
2
1
1
[{"id": "G0", "claim": "The automatic tests need to be updated to match the new new_uplink signature for the change to be complete (they were failing otherwise).", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "tempDir should be made part of UplinkConfig ...
null
storj__storj__3107
storj/storj
3,107
defect
cfe058d190c6c9c5dff24516f9340d3af2262e2e
bf5f496125764ef2be254ebadfa91a985a12756d
pkg/certificates: move certificate package to root
What: + Move the certificate package to the root instead. + Add the certificates peer to the list of peers to be checked. Why: The certificates package now has a proper peer and it wasn't being included in this check. Please describe the tests: - Test 1: - Test 2: Please describe the performance impact...
diff --git a/scripts/check-peer-constraints.go b/scripts/check-peer-constraints.go index a2a86d360b8d..e9d464459a63 100644 --- a/scripts/check-peer-constraints.go +++ b/scripts/check-peer-constraints.go @@ -36,6 +36,7 @@ var Peers = []string{ "storj.io/storj/bootstrap/...", "storj.io/storj/versioncontrol/...", "s...
1
1
1
[{"id": "G0", "claim": "The certificates peer should be listed as the top-level package `storj.io/storj/certificate` (as the package is actually named), not `storj.io/storj/pkg/certificates/...`, because peers are kept at the top level and `pkg/...` paths are considered libraries that would then depend on the peer.", "...
null
storj__storj__3132
storj/storj
3,132
defect
c8aa821ccbf539407a14de8a29733016f41a7a19
eceae4c74f172aee083d7991606cc807d848946d
internal/testplanet: fix conn leak
What: Fix Testplanet memory leak Remove kademliaClient_test.go Check race condition between Local() and UpdateSelf() within contact service Mutex doesn’t need to be a pointer, use mu Why: Small fixes from kademlia replacement code review Please describe the tests: Tests that Local() and UpdateSelf() don't ...
diff --git a/internal/testplanet/planet_test.go b/internal/testplanet/planet_test.go index bf75013c8915..ce0a73c45ad4 100644 --- a/internal/testplanet/planet_test.go +++ b/internal/testplanet/planet_test.go @@ -51,6 +51,7 @@ func TestBasic(t *testing.T) { Operator: &node.Operator, }) require.NoError(t, ...
1
1
1
[{"id": "G0", "claim": "The immediate conn.Close() inside the loop should instead be deferred so the connection is not closed before it is used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
storj__storj__3174
storj/storj
3,174
defect
7ceaabb18ee72a55c841c9eea0018f1c909c8ca6
f0b1820536877cd91450f82c6206491c5f198f30
satellite/gracefulexit: add transfer queue for pieces
What: Add chore to populate graceful exit transfer queue for exiting nodes. https://storjlabs.atlassian.net/browse/V3-2595 Why: This will be used by the graceful exit endpoint to return pieces that need to be transferred by the exiting storage node. Please describe the tests: - Test 1: TestChore: Uploads ...
diff --git a/docs/blueprints/storagenode-graceful-exit/pieces.md b/docs/blueprints/storagenode-graceful-exit/pieces.md index 167f7adb03c1..165a8d99da4e 100644 --- a/docs/blueprints/storagenode-graceful-exit/pieces.md +++ b/docs/blueprints/storagenode-graceful-exit/pieces.md @@ -18,7 +18,7 @@ We need a service on the sa...
9
8
4
[{"id": "G0", "claim": "The metainfoService field is not used anywhere in PathCollector (and the same leftover field in Chore), so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error from GetExitingNodesLoopIncomplete ...
null
storj__storj__3189
storj/storj
3,189
defect
4a86906e11073f3bb5e93e13b07beac62e8404e8
77a5aa7de091894ab335dd6923f766d6bb724d9a
cmd/storagenode: enable migration of configs of different types
What: change previous deprecated config migration to allow for migration of different data types. To add a new config to be migrated, add the old config struct to the `Deprecated` struct in `cmd/storagenode/deprecated.go` and make each field of type `string` with a default tag of `undefined` and a hidden tag of `true`....
diff --git a/cmd/storagenode/deprecated.go b/cmd/storagenode/deprecated.go new file mode 100644 index 000000000000..a2ac0c94933d --- /dev/null +++ b/cmd/storagenode/deprecated.go @@ -0,0 +1,116 @@ +// Copyright (C) 2019 Storj Labs, Inc. +// See LICENSE for copying information. + +package main + +import ( + "fmt" + "ref...
4
1
0
[{"id": "G0", "claim": "The deprecated config fields should default to empty string instead of the \"undefined\" sentinel value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deprecation-migration log message should be logged at info level instead o...
null
storj__storj__3211
storj/storj
3,211
defect
a744fdfef07b06fa3a0e30aa593418a0ff9ad0a5
71414a6a840e641d0aa4a109fe69ee98799f16e4
satellite/overlay: do not include gracefully exiting nodes in node selection
What: Do not include nodes that are gracefully exiting in node selection. This also adds graceful exit fields to the node dossier to make those values more easily accessible. Why: When repairing or uploading a new segment, we do not want the new nodes we select to be gracefully exiting. Otherwise we would be giv...
diff --git a/satellite/overlay/selection_test.go b/satellite/overlay/selection_test.go index ff1b3a5947de..87cf88c3921e 100644 --- a/satellite/overlay/selection_test.go +++ b/satellite/overlay/selection_test.go @@ -6,6 +6,7 @@ package overlay_test import ( "runtime" "testing" + "time" "github.com/stretchr/test...
1
1
0
[{"id": "G0", "claim": "The `ExitStatus ExitStatusRequest` field on NodeDossier should be removed from this PR — returning a `Request` type there is weird, and ethanadams plans to add a proper `ExitStatus` in another PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storj__storj__3213
storj/storj
3,213
defect
10b364a2da7db958c81235de1486e21ecb74bb3f
19efac8841f2816784c8800b03584b6731c396a6
satellite/accounting: add redis support to live accounting
What: add support for redis backend for live accounting cache https://storjlabs.atlassian.net/browse/V3-1836 Why: So multiple servers can access live accounting data Please describe the tests: - Test 1: test that redis backend works - Test 2: Please describe the performance impact: ## Code Review Chec...
diff --git a/satellite/accounting/live/live.go b/satellite/accounting/live/live.go index c385f7e48592..e66e10989b30 100644 --- a/satellite/accounting/live/live.go +++ b/satellite/accounting/live/live.go @@ -6,7 +6,6 @@ package live import ( "context" "strings" - "sync" "github.com/skyrings/skyring-common/tools...
19
17
5
[{"id": "G0", "claim": "Satellite services should not depend directly on a database implementation; the live accounting interface should live in an abstraction package so adding a backend does not make it a dependency of a specific binary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr...
null
storj__storj__3215
storj/storj
3,215
defect
f75893c1ba44c8cb4bae636f833a29b7b439a7ae
f0eef2ce307bf6b3693f504a130424ab995dbf59
pkg/rpc: defeat MITM attacks in most cases
This change adds a trusted registry (via the source code) of node address to node id mappings (currently only for well known Satellites) to defeat MITM attacks to Satellites. It also extends the uplink UI such that when entering a satellite address by hand, a node id prefix can also be added to defeat MITM attacks with...
diff --git a/pkg/peertls/tlsopts/tls.go b/pkg/peertls/tlsopts/tls.go index 3eeaf94eef41..18782378677d 100644 --- a/pkg/peertls/tlsopts/tls.go +++ b/pkg/peertls/tlsopts/tls.go @@ -6,6 +6,7 @@ package tlsopts import ( "crypto/tls" "crypto/x509" + "strings" "google.golang.org/grpc" "google.golang.org/grpc/crede...
3
1
0
[{"id": "G0", "claim": "DialAddressInsecureBestEffort should take a storj.NodeURL (checking that nodeurl.Address is non-empty) instead of parsing a bespoke nodeURL string.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why ClientTLSConfig...
null
storj__storj__3242
storj/storj
3,242
defect
91fcabd83ca87ec7bbd5cc0c7d2e3770f9865f06
13786d50d69f034242d05dcf0c16b0f846cd4436
satellite/payments: account balance
What: Added functionality to retrieve stripe customers balance Why: Due to our payment service needs Please describe the tests: - "Can not insert duplicate customerID": checks that we are not able to have 2 same customers id - "GetCustomerID": receives customerID from db by userID Please describe the perf...
diff --git a/satellite/payments/account.go b/satellite/payments/account.go index 38191e27c62a..056f1409a113 100644 --- a/satellite/payments/account.go +++ b/satellite/payments/account.go @@ -13,4 +13,7 @@ import ( type Accounts interface { // Setup creates a payment account for the user. Setup(ctx context.Context,...
3
3
1
[{"id": "G0", "claim": "The first return value of Balance should be declared without a name (e.g. `_ int64`) rather than a named `balance int64`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Balance should avoid the naked `return` on the GetCustomerID ...
null
storj__storj__3259
storj/storj
3,259
defect
96aeedcdee206654a1399ab3bfe199c1a88303b0
84e2599a92161c7740a144e3acba3e3f6190deb2
cmd/identity: allow using redis for RevocationDB
What: Makes sure revocation db has redis support. Sets up storj-sim run redis-server for live accounting and revocation db. Why: We need a central db for revocation when we split up the satellites. Tests: Added TestRevocationDB_List to test this method works for both redis and bolt ## Code Review Checklist (to...
diff --git a/cmd/identity/revocations.go b/cmd/identity/revocations.go index aed3a2bb447e..446c5eb845be 100644 --- a/cmd/identity/revocations.go +++ b/cmd/identity/revocations.go @@ -6,7 +6,6 @@ package main import ( "encoding/base64" "fmt" - "path/filepath" "time" "github.com/spf13/cobra" @@ -27,7 +26,7 @@ ...
3
2
1
[{"id": "G0", "claim": "GetAll in the generic redis client should not print to stdout using fmt.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Nothing revocationDB-specific belongs in the generic redis client; the mget 'wrong number of argument...
null
storj__storj__3262
storj/storj
3,262
defect
b185dbbee210430058cc8b57b4fe5eb6e03bc4f6
57f0385480112449bcc0fe11080c76cfd1914d5b
storagenode/gracefulexit: Add graceful exit chore and worker.
What: Add a chore that checks for satellites the node is exiting and starts a worker process per satellite. Worker in this PR is just stubbed out. Another PR for https://storjlabs.atlassian.net/browse/V3-2613 will implement the worker process. Why: This chore is needed to process the graceful exit transfers u...
diff --git a/internal/testplanet/storagenode.go b/internal/testplanet/storagenode.go index cd59b371441f..7cfbc8f67a36 100644 --- a/internal/testplanet/storagenode.go +++ b/internal/testplanet/storagenode.go @@ -25,6 +25,7 @@ import ( "storj.io/storj/storagenode/collector" "storj.io/storj/storagenode/console/console...
8
7
0
[{"id": "G0", "claim": "The value returned by chore.Loop.Run should conventionally be named `err` instead of `retval` in Chore.Run.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `peer.GracefulExit.Chore` is potentially confusing next to...
null
storj__storj__3310
storj/storj
3,310
defect
f4162bd33f5c61649d0eaeb47d92d9975c3099b6
094ac1b5abf3377b127ce48e2bee416fa7913b09
cmd/uplink: add metadata access
What: Add to the uplink CLI the ability to fetch and set (on upload only) object metadata. Why: Metadata is a useful feature of Storj and it isn't exposed via the CLI at this time. Please describe the tests: - Test 1: ``` $ ./uplink cp --metadata '{"SyncedAt": "Thu 17 Oct 2019 02:04:30 PM EDT"}' /dev...
diff --git a/cmd/uplink/cmd/cp.go b/cmd/uplink/cmd/cp.go index c3cea21e417e..95a837d85d8b 100644 --- a/cmd/uplink/cmd/cp.go +++ b/cmd/uplink/cmd/cp.go @@ -5,6 +5,7 @@ package cmd import ( "context" + "encoding/json" "errors" "fmt" "io" @@ -24,6 +25,7 @@ import ( var ( progress *bool expires *string + m...
10
7
3
[{"id": "G0", "claim": "The new file metaget.go should be named meta_get.go so that its scope is easier to find.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The --metadata flag help text should warn that the JSON object must have fields of st...
null
storj__storj__3311
storj/storj
3,311
defect
f4162bd33f5c61649d0eaeb47d92d9975c3099b6
ef0883754e2a59eb04d69da942bea2adb3ebb25f
satellite/metainfo: pass streamID/segmentID between Batch request/response
What: Handle passing parameters (only StreamID/SegmentID for now) between response/request in metainfo.Batch. Why: We want to utilize metainfo.Batch to combine multiple requests into one chain of requests sent with one call (to avoid round trips). This change helps constructing batch will more requests because now i...
diff --git a/pkg/pb/metainfo.pb.go b/pkg/pb/metainfo.pb.go index 253388844a9b..33e921d4afb5 100644 --- a/pkg/pb/metainfo.pb.go +++ b/pkg/pb/metainfo.pb.go @@ -3223,7 +3223,7 @@ var xxx_messageInfo_SegmentMakeInlineResponse proto.InternalMessageInfo type SegmentBeginDeleteRequest struct { Header *Requ...
6
5
2
[{"id": "G0", "claim": "Remove the TODO comment suggesting reflection, since code using reflection is harder to understand and reflection should be avoided.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "If a batch response item's protobuf mes...
null
storj__storj__3318
storj/storj
3,318
defect
1814fbfa89647891d14cbba64418b3acb93528bd
2bfa5b0152571c603ac574058dca53d26802d2ca
satellite/payments: add payments loop, update pending transactions
What: add payments clearing loop, update pending transactions in cycle. Why: we don't know when customer has successfully completed deposit transaction, or it was cancelled/timeout, so we need to continuously ask coinpayments for status updates in order to apply tokens to customers balance on stripe when `pending` -...
diff --git a/satellite/api.go b/satellite/api.go index 1c8881221a0e..05c58ba68b18 100644 --- a/satellite/api.go +++ b/satellite/api.go @@ -41,6 +41,7 @@ import ( "storj.io/storj/satellite/nodestats" "storj.io/storj/satellite/orders" "storj.io/storj/satellite/overlay" + "storj.io/storj/satellite/payments" "storj...
2
1
0
[{"id": "G4", "claim": "Keep the Service transactionCycle field public so tests can control it when necessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G5", "claim": "The reviewer questions why the payments.Clearing interface is necessary and wonders whether mock...
null
storj__storj__3371
storj/storj
3,371
defect
0b678c23c7fed1a14d6433073df952cd6c822228
12a50c80c7f0459767cc8883d4cb608f343dd590
storagenode/gracefulexit + satellite/gracefulexit: add storagenode-side transfer validation
**NOTE** - most of the code changes in `storagenode/gracefulexit/worker.go` were simply to move transfer logic to a helper function (ad7d752). There are some additional validation steps that were added but the majority of the code there is the same. What: * Make the exiting node check piece hashes, piece IDs, and pi...
diff --git a/storagenode/gracefulexit/worker.go b/storagenode/gracefulexit/worker.go index 2051774aca36..5ea89ca9c3ac 100644 --- a/storagenode/gracefulexit/worker.go +++ b/storagenode/gracefulexit/worker.go @@ -4,6 +4,7 @@ package gracefulexit import ( + "bytes" "context" "io" "os" @@ -14,6 +15,7 @@ import ( ...
3
3
2
[{"id": "G0", "claim": "Use `==` to compare the piece IDs instead of `!bytes.Equal` on their byte slices.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Handle the transfer errors at a separate layer rather than inline in these locations, becaus...
null
storj__storj__3398
storj/storj
3,398
defect
da2eaa70854fca5d1f978911bd19708ed9cbadfc
1dcef928cac90a63f9a9e6ffc4342c20266bf51c
satellite/metainfo: fix index out of range error for validate pointer
What: - check piece num before using it to access a limit Why: - As a bad uplink I tried to commit a pointer with an invalid PieceNum. Satellite is crashing. This would be terrible on a production satellite. - https://storjlabs.atlassian.net/browse/V3-2719?atlOrigin=eyJpIjoiZDFjM2ZjODgyYjkwNGJhMTljNTllNmI1MmIyYjBh...
diff --git a/satellite/metainfo/validation.go b/satellite/metainfo/validation.go index fd779f324424..efe80054a73d 100644 --- a/satellite/metainfo/validation.go +++ b/satellite/metainfo/validation.go @@ -305,6 +305,10 @@ func (endpoint *Endpoint) validatePointer(ctx context.Context, pointer *pb.Point } for _, pi...
1
1
0
[{"id": "G0", "claim": "Add a test covering the invalid piece number case added by this PR.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storj__storj__3399
storj/storj
3,399
defect
9905f2c61e3add486a4ed4a80af89fab69f5fa01
513c11240a196efafafb25a5fd72201f7bc3e26f
storagenode/gracefulexit: Exclude finished exits from chore/worker processing. Fix update status bug
What: Exclude finished exits from chore/worker processing so we don't continue to try and exit the node. Fix update status bug. Update fields were switched. Why: We don't want to keep trying the exit if it is finished. Please describe the tests: - Test 1: updated added getter and updated TestGracefulExitDB...
diff --git a/storagenode/gracefulexit/chore.go b/storagenode/gracefulexit/chore.go index c35a46ab1087..776f59fe109e 100644 --- a/storagenode/gracefulexit/chore.go +++ b/storagenode/gracefulexit/chore.go @@ -78,6 +78,9 @@ func (chore *Chore) Run(ctx context.Context) (err error) { } for _, satellite := range sate...
1
1
1
[{"id": "G0", "claim": "CompleteGracefulExit needs a test so this kind of update-status bug can be detected in the future.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
storj__storj__3401
storj/storj
3,401
defect
5b0398a7182587d3548ef75d4f7cd1a271aadc71
7cddf2f804487c93d8a4c7e8085017b44f6a0911
storagenode/pieces: Add migration from v0 piece to v1 piece
What: Add functionality to migrate a v0 piece to a v1 piece. Why: In preparation for moving pieces to a "staging" location before deleting after garbage collection, we want to only deal with v1 pieces. This task adds a simple way to migrate v0 pieces to v1 pieces. Please describe the tests: - Test 1: New tests ...
diff --git a/internal/testblobs/slow.go b/internal/testblobs/slow.go index 464303801a81..ef1e07f336c3 100644 --- a/internal/testblobs/slow.go +++ b/internal/testblobs/slow.go @@ -84,6 +84,12 @@ func (slow *SlowBlobs) Delete(ctx context.Context, ref storage.BlobRef) error { return slow.blobs.Delete(ctx, ref) } +// ...
7
5
3
[{"id": "G0", "claim": "Concurrent deletes could make the move effectively execute twice, and the file-not-found safety net assumes rename is atomic, which may not hold on all supported filesystems (e.g. FAT32 or SMB/NFS mounts).", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existin...
null
storj__storj__3422
storj/storj
3,422
defect
59f81a4a0d7acfd29c296527399eff659a5dd868
a2c497e9e9f282034ed6d8cbf9399c8aed479f92
storagenode-updater: add autoupdating
What: Part of #3338 extracted to simplify review and testing. Why: Part of work for storagenode-updater autoupdating. https://storjlabs.atlassian.net/browse/V3-2882 Please describe the tests: - Test 1: automatic test added Please describe the performance impact: ## Code Review Checklist (to be filled ou...
diff --git a/cmd/storagenode-updater/main.go b/cmd/storagenode-updater/main.go index aaee2836bb70..69204be2aacb 100644 --- a/cmd/storagenode-updater/main.go +++ b/cmd/storagenode-updater/main.go @@ -9,6 +9,7 @@ import ( "bytes" "context" "errors" + "fmt" "io" "io/ioutil" "log" @@ -37,10 +38,15 @@ import ( ...
10
9
0
[{"id": "G0", "claim": "The updater binary path should be assigned to a named variable instead of passing os.Args[0] inline as the update call argument.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The error logging for the updater's own updat...
null
storj__storj__3434
storj/storj
3,434
defect
ecde507e4e4ecfed218b8d71a5ade6ca1991bea7
e7575d9fdf95addb79e135be85f0aad5cf683004
satellite/gracefulexit: Check if node already has a piece in the pointer
What: Adds `func (s *Service) UpdatePiecesCheckDuplicates(ctx context.Context, path string, ref *pb.Pointer, toAdd, toRemove []*pb.RemotePiece, checkDuplicates bool) (pointer *pb.Pointer, err error)` to allow the option to check if the node already exists in the pointer. Why: It is currently possible to have the ...
diff --git a/satellite/gracefulexit/endpoint.go b/satellite/gracefulexit/endpoint.go index 53d3d0d1cd43..59634a8e611a 100644 --- a/satellite/gracefulexit/endpoint.go +++ b/satellite/gracefulexit/endpoint.go @@ -410,9 +410,8 @@ func (endpoint *Endpoint) doProcess(stream processStream) (err error) { default: } ...
8
8
1
[{"id": "G0", "claim": "nodePieceMap should be updated alongside pieceMap in the toRemove and toAdd loops; in particular the toAdd loop should set nodePieceMap[piece.NodeId] = piece so that adding two pieces with the same node ID in one call is caught.", "category": "correctness", "verdict": "supported", "priority": "P...
null
storj__storj__3481
storj/storj
3,481
defect
19a59c9d59a4c36a602cd3ab2476facfdde1b339
d7e668742c55c7699d1749c18799b383cc5c8d19
satellite/gracefulexit: Check if pointer has been overwritten or deleted before sending transfer message.
What: Add the root pieceID to the `graceful_exit_transfer_queue` so we can check if the pointer has changed since since the transfer queue item was created. https://storjlabs.atlassian.net/browse/V3-3088 Why: Minimize the number of transfer failures due to a pointer being updated. Please describe the test...
diff --git a/satellite/gracefulexit/chore_test.go b/satellite/gracefulexit/chore_test.go index 68d8c7dec375..0dd73c88fc77 100644 --- a/satellite/gracefulexit/chore_test.go +++ b/satellite/gracefulexit/chore_test.go @@ -79,6 +79,7 @@ func TestChore(t *testing.T) { require.Len(t, incompleteTransfers, 2) for _, inco...
8
5
1
[{"id": "G0", "claim": "The test should initiate the exit by adding an exit status to the satellite DB and calling TriggerWait instead of dialing and setting up a client, which seemed less relevant to the test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
storj__storj__3495
storj/storj
3,495
defect
0e3f0eeb12e8e36a549f83e8f08323a3a0b147b0
0e153abeaa5b4512d50011860cd7b2c7f8507a9b
satellite/rewards: fixes from review comments
What: Follow-up to https://github.com/storj/storj/pull/3275. Please describe the tests: - Test 1: - Test 2: Please describe the performance impact: ## Code Review Checklist (to be filled out by reviewer) - [x] NEW: Are there any Satellite database migrations? Are they forwards _and_ backwards compatible...
diff --git a/satellite/console/consoleweb/consoleql/mutation_test.go b/satellite/console/consoleweb/consoleql/mutation_test.go index ff12701ebf14..c19e2140aea6 100644 --- a/satellite/console/consoleweb/consoleql/mutation_test.go +++ b/satellite/console/consoleweb/consoleql/mutation_test.go @@ -161,7 +161,7 @@ func Test...
3
3
0
[{"id": "G0", "claim": "The comment on ErrReachedMaxCapacity should end with a period to complete the sentence, per the suggested line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment on ErrOfferNotExist should end with a period to comp...
null
storj__storj__3513
storj/storj
3,513
defect
994a69cfdc91a72fc96372fa90cedf826f4c5cbc
9b6072e13f874960f680aa7585ad505c68868ee0
satellite/metainfo: fix some uses of metainfo.Delete
Calling `Delete` directly is usually very dangerous, because the pointerdb is changing all the time. Any time we call directly delete we must ensure that there are no changes. Hence: 1. Rename `Delete` to `UnsynchronizedDelete` to make it more obvious that it's dangerous. 2. Add new method `Delete` that takes th...
diff --git a/satellite/audit/reverify_test.go b/satellite/audit/reverify_test.go index 75270e610beb..0010bdbc90a6 100644 --- a/satellite/audit/reverify_test.go +++ b/satellite/audit/reverify_test.go @@ -243,7 +243,7 @@ func TestReverifyFailMissingShareNotVerified(t *testing.T) { require.NoError(t, err) // updat...
2
1
1
[{"id": "G0", "claim": "CommitObject should use the synchronized Delete (verifying the pointer bytes) instead of UnsynchronizedDelete when deleting the last segment path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider using a synchronized d...
null
storj__storj__3544
storj/storj
3,544
defect
69b0ae02bfb8ef5fe1aecb80ad8cbe0af98fa415
50729f8c45b717975f92e1705d6fc81f136b8783
satellite/gracefulexit: add count for order limits sent from satellite to exiting node
What: - Adds new column `order_limit_send_count` to `graceful_exit_transfer_queue` to track how many times the satellite has sent a order limit (transfer message) for a node to transfer a piece. - Per piece failure count is incremented if the node has not responded to (default 3) piece transfer messages from t...
diff --git a/internal/testplanet/satellite.go b/internal/testplanet/satellite.go index 5546405162aa..e7b2c0c9513f 100644 --- a/internal/testplanet/satellite.go +++ b/internal/testplanet/satellite.go @@ -374,8 +374,9 @@ func (planet *Planet) newSatellites(count int) ([]*SatelliteSystem, error) { EndpointBatchSize: ...
8
8
0
[{"id": "G0", "claim": "The test should also check that FinishedAt is not nil.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded loop value (3) should be replaced with the actual maxOrderLimitSendCount config value from testplanet.", "categor...
null
storj__storj__3594
storj/storj
3,594
defect
fdcf328469a8fee6ee73ff82ecdd10d792df350d
de9a95272e2747f7794907774dcb1954365536e3
satellitedb: bucket search fixed
What: bucket search fixed. Search request on existing bucket now returns expected result Why: Search request on existing bucket returned nothing Please describe the tests: - Test 1: - Test 2: Please describe the performance impact: ## Code Review Checklist (to be filled out by reviewer) - [x] NEW:...
diff --git a/satellite/satellitedb/projectaccounting.go b/satellite/satellitedb/projectaccounting.go index 2d35bace8ce9..ce7faeecf15d 100644 --- a/satellite/satellitedb/projectaccounting.go +++ b/satellite/satellitedb/projectaccounting.go @@ -329,7 +329,7 @@ func (db *ProjectAccounting) GetBucketTotals(ctx context.Cont...
2
2
2
[{"id": "G0", "claim": "bucket_name is a bytea, so comparing it directly with LIKE against a text pattern is wrong — it should be converted/encoded to text first (or, per the reply, the search string should be encoded into bytes instead).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "...
null
storj__storj__3598
storj/storj
3,598
defect
8ea09d55561a0a5aa441a8d1237859818e60df98
de7dbee82ded9fb3d5516b474767efe40708aef3
cmd/segment-reaper: add detecting and printing zombie segments
What: This change will add to command `segment-reaper detect` logic to detect zombie segments and prints them out to the result file. Why: Change for https://storjlabs.atlassian.net/browse/V3-3156 Please describe the tests: - Test 1: will be added in next separate PR Please describe the performance impact: ...
diff --git a/cmd/segment-reaper/detect.go b/cmd/segment-reaper/detect.go index b897c8fae188..d61f621936f4 100644 --- a/cmd/segment-reaper/detect.go +++ b/cmd/segment-reaper/detect.go @@ -5,9 +5,11 @@ package main import ( "context" + "encoding/base64" "encoding/csv" "os" "strconv" + "time" "github.com/go...
15
12
6
[{"id": "G0", "claim": "The per-object loop over raw bits of object.segments allocates on every iteration (millions expected) and is hard to unit test, so a new uint64-based type should encapsulate all bitmask operations.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
storj__storj__3646
storj/storj
3,646
defect
388f33b84dd464d82890bc450250720ed7a700e3
d20b419647243ecd4a516d7891a5f127a5f83003
crdb uses namespaced db for each test
Why: We are adding support for cockroachDB for the satelliteDB for horizontal scalability. Testplanet needs to have support to use cockroachDB for testing. Currently there are many hard coded areas that use schemas (i.e. namespaces) with postgres for testplanet, however cockroachDB doesn’t support having multiple sc...
diff --git a/private/testplanet/run.go b/private/testplanet/run.go index 06ae1285b7f9..f1bc27a7c65d 100644 --- a/private/testplanet/run.go +++ b/private/testplanet/run.go @@ -14,7 +14,6 @@ import ( "storj.io/storj/private/testcontext" "storj.io/storj/satellite" "storj.io/storj/satellite/metainfo" - "storj.io/stor...
5
5
1
[{"id": "G0", "claim": "In CreateMasterDB's default case, satellitedb.New should be given dbInfo.URL instead of dbInfo.Name, and a named logger like the other cases get.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CREATE DATABASE statement (a...
null
storj__storj__3660
storj/storj
3,660
defect
56f8fd2dd7c0145359ef313dfd39db0d1c5ae286
f08b6d3a0da7fc056eceeec1902172d80fd46fe2
segment-reaper: delete command logic
What: Logic for `segment-reaper delete` command. Command takes file with results from `detect` command and iterates over each record and tries to delete segement from DB. Why: We want to delete zombie segments https://storjlabs.atlassian.net/browse/V3-3155 Please describe the tests: - Test 1: unit test added ...
diff --git a/cmd/segment-reaper/delete.go b/cmd/segment-reaper/delete.go index cd1e143b3293..27eb7fa6828d 100644 --- a/cmd/segment-reaper/delete.go +++ b/cmd/segment-reaper/delete.go @@ -4,15 +4,23 @@ package main import ( + "context" + "encoding/base64" "encoding/csv" + "io" "os" + "time" + "github.com/gogo/...
12
10
0
[{"id": "G0", "claim": "Set the FieldsPerRecord and ReuseRecord fields on the csv.Reader instance.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a variable to count invalid records and another to count segments not deleted because of an error, ...
null
storj__storj__3706
storj/storj
3,706
defect
1df7b360d791fa134b960cdaaefb81d49c036221
0c1e68cd5534af7e5916afe7a022d9f7377f5086
satellite/satellitedb: ensure migration tests run
satellitedb migration tests ran against multiple base versions, however after the merging all the steps the base versions didn't exists anymore - which meant none of the migration tests were actually running. Please describe the tests: - Test 1: - Test 2: Please describe the performance impact: ## Code Re...
diff --git a/satellite/satellitedb/migrate.go b/satellite/satellitedb/migrate.go index 1f52bf6d2710..58790a349afb 100644 --- a/satellite/satellitedb/migrate.go +++ b/satellite/satellitedb/migrate.go @@ -68,7 +68,6 @@ func (db *DB) PostgresMigration() *migrate.Migration { return &migrate.Migration{ Table: "versions...
1
1
1
[{"id": "G0", "claim": "Switching to base := snapshots.List[0] looks like a no-op — the old code would run the same way — so the change does not ensure the migration tests actually run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
storj__storj__3831
storj/storj
3,831
defect
4d91533a3f3206ca66142e67ea7088c01fe25cf7
5508a0602622b0b436b33e29676c9de327c423f7
satellite/overlay: combine SelectStorageNodes and SelectNewStorageNodes
What: - combines SelectStorageNodes and SelectNewStorageNodes Why: - consolidating the two functions to one means only one trip to the db Please describe the tests: - TestEnsureMinimumRequested makes sure that the correct number of total nodes requested is returned, and that the correct number of reputable an...
diff --git a/satellite/overlay/service.go b/satellite/overlay/service.go index 7590ad8d0ce6..bc15bf12dbd7 100644 --- a/satellite/overlay/service.go +++ b/satellite/overlay/service.go @@ -37,10 +37,7 @@ var ErrNotEnoughNodes = errs.Class("not enough nodes") // architecture: Database type DB interface { // SelectStor...
11
9
5
[{"id": "G0", "claim": "The reviewer asks what the performance impact of this change is.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The query should use array parameters rather than a repeated list of `?` placeholders.", "category": "design", "v...
null
storj__storj__3846
storj/storj
3,846
defect
6492b13d81140565217d4db227fa2dd3faa8d171
5e5e5b2aba1cbb48ac62c68db4db24e1722811a5
satellite/overlay: add selected node cache
Change-Id: Ia54a1943e0707a77189bc5f4a9aaa8339c98d99a **What:** Add a cache that stores nodes that can be selected to upload data to. This PR only implements the cache, there will be another PR to use with uploads. **Why:** When the uplink uploads a file, the FindStorageNode part of the upload is the slo...
diff --git a/satellite/audit/disqualification_test.go b/satellite/audit/disqualification_test.go index 3c4b901d2e4c..b3e584c37c07 100644 --- a/satellite/audit/disqualification_test.go +++ b/satellite/audit/disqualification_test.go @@ -176,7 +176,6 @@ func TestDisqualifiedNodesGetNoUpload(t *testing.T) { MinimumRequ...
16
13
2
[{"id": "G0", "claim": "Mutex fields should sit directly above the exact data they protect, separated by whitespace.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The cache may want an atomically swapped value with an RWMutex for infrequent sys...
null
storj__storj__3888
storj/storj
3,888
defect
47def02094482874fa6c3a485e3abd2df82c7161
6db16501c8a10a2b1880e4b06b21f45459aa4544
satellite/admin: add delete project endpoint
What: Adds delete project endpoint Why: it is handy to have. Please describe the tests: - Test 1: added delete test Please describe the performance impact: ## Code Review Checklist (to be filled out by reviewer) - [x] NEW: Are there any Satellite database migrations? Are they forwards _and_ backwards c...
diff --git a/satellite/admin/README.md b/satellite/admin/README.md index a8ef716f4f0d..5d9c227cffa5 100644 --- a/satellite/admin/README.md +++ b/satellite/admin/README.md @@ -54,6 +54,10 @@ Updates usage limit for a project. Updates rate limit for a project. +## DELETE /api/project/{projectid} + +Deletes the proje...
3
3
2
[{"id": "G0", "claim": "The README's DELETE endpoint heading should use the `{project-id}` placeholder, following the `{project-id}` convention used elsewhere in the file, instead of `{projectid}`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
storj__storj__3891
storj/storj
3,891
defect
16abf02b35bf348f1255a75309972323cff0035a
d30c7d0bfe56d2fab5573e31c2f96dcc3d9c74ff
satellite/admin: add coupon creation and listing
What: Adds coupon creation and listing. I had to adjust our coupon handling internally to properly return the information after an insert or update similar to what all other DB interfaces do. Why: it is useful.. Please describe the tests: - Test 1: Adding a coupon - Test 2: Listing a coupon ## Code Re...
diff --git a/satellite/admin/README.md b/satellite/admin/README.md index 75295bf0c2fe..fc5bb9210163 100644 --- a/satellite/admin/README.md +++ b/satellite/admin/README.md @@ -50,10 +50,70 @@ A successful response: "description": "Project to store data.", "ownerId": "12345678-1234-1234-1234-123...
10
9
1
[{"id": "G0", "claim": "The if statements validating the add-coupon input should be written as a switch statement (raised as a nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment '// do not change the project limit' above the coupon...
null
storj__storj__4073
storj/storj
4,073
defect
23c8331d1fa65d2545ec64bd9f8828b812fb6efb
6534bdc353be13b9ee356b1244bd66d9338c9c30
satellite/analytics: Add analytics for user signed in, project created, and access grant created
What: Add analytics for user signed in, project created, and access grant created Why: Please describe the tests: - Test 1: - Test 2: Please describe the performance impact: ## Code Review Checklist (to be filled out by reviewer) - [x] NEW: Are there any Satellite database migrations? Are they forwa...
diff --git a/satellite/analytics/service.go b/satellite/analytics/service.go index 8989921fb2be..0e2ea02b303c 100644 --- a/satellite/analytics/service.go +++ b/satellite/analytics/service.go @@ -11,7 +11,10 @@ import ( ) const ( - eventAccountCreated = "Account Created" + eventAccountCreated = "Account Created"...
5
3
2
[{"id": "G0", "claim": "The newly added `PlainOffset: item.PlainOffset,` line in ListSegments needs to be removed because it is causing the build to fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The newly added `peer.Analytics.Service` argume...
null
storj__storj__4138
storj/storj
4,138
defect
072dd24696566f1c6effcb021c5ae70911b750fa
d16bccf3b7c03239e327a0908e60b254521d8355
StorageNode rejects slow upload client
**What**: - Sample upload rate per upload request - Set `MinUploadSpeed` in `StorageNode.Config` as bytes-per-second, to indicate the limit for flagging a slow upload conenction - If average upload rate falls below `MinUploadSpeed` and total number of alive connections rise already above 80% (if `MaxConcurrentReq...
diff --git a/storagenode/piecestore/endpoint.go b/storagenode/piecestore/endpoint.go index e7179508d34f..b09a5f5220ed 100644 --- a/storagenode/piecestore/endpoint.go +++ b/storagenode/piecestore/endpoint.go @@ -63,8 +63,8 @@ type Config struct { RetainTimeBuffer time.Duration `help:"allows for small difference...
18
18
2
[{"id": "G0", "claim": "MinUploadSpeed should be of type memory.Size instead of float64, so users can specify the value with suffixes like 1MB.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Comment sentences in the slow-upload helper should start with c...
null
storj__storj__5350
storj/storj
5,350
defect
5d956c9dc5bcf4399b13d6a1319c94775c9111e7
9f81283fb5fd67f3f71c4ed9d5bce23f5aa3904d
satellite/metabase/rangedloop: measure observer duration
Only review last commit, preceeding commits have their own PR. First review https://github.com/storj/storj/pull/5334 Track duration of all segment loop observers. Factor out functions to reduce size. Still need to send them out via monkit. ## Code Review Checklist (to be filled out by reviewer) - [x] NEW: Ar...
diff --git a/satellite/metabase/rangedloop/observer.go b/satellite/metabase/rangedloop/observer.go index ca01bfcba94c..d8e6cca7f257 100644 --- a/satellite/metabase/rangedloop/observer.go +++ b/satellite/metabase/rangedloop/observer.go @@ -7,14 +7,13 @@ import ( "context" "time" - "storj.io/storj/satellite/metabas...
10
6
0
[{"id": "G0", "claim": "The new tests should use testcontext.New(t), which enables a test timeout by default, instead of context.Background().", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The time.Duration(0) value should be put directly into the crea...
null
storj__storj__5364
storj/storj
5,364
defect
9d7e94b57b300ed5cf83b7792ebebfff0f6ab6cb
91f531b84456d2a3b001c3c020a1a47fca1267a7
satellite/metabase/rangedloop: cancellation
Only review the last commit, preceeding commits have their own PR's. First review https://github.com/storj/storj/pull/5350 Support interruption of the ranged segment loop through context. Part of https://github.com/storj/storj/issues/5223 ## Code Review Checklist (to be filled out by reviewer) - [x] NEW: Are...
diff --git a/satellite/metabase/rangedloop/rangedlooptest/infiniteprovider.go b/satellite/metabase/rangedloop/rangedlooptest/infiniteprovider.go new file mode 100644 index 000000000000..f9cff8a5e487 --- /dev/null +++ b/satellite/metabase/rangedloop/rangedlooptest/infiniteprovider.go @@ -0,0 +1,33 @@ +// Copyright (C) 2...
2
2
0
[{"id": "G0", "claim": "TestLoopCancellation would more robustly guarantee the loop has been entered before cancellation if it cancelled from inside an observer's OnProcess callback instead of sleeping 100ms and then cancelling.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
storybookjs__addon-svelte-csf__201
storybookjs/addon-svelte-csf
201
defect
967fe8d224ddc782af942ea38b9536e8de404aee
beb7a42af39c11185b9a4d2b3f12ff567fcfc06d
fix(parser): Resolve `autodocs` tag issue and extracting `rawCode`
Resolves #199 Updated reproduction for manual testing in development mode: https://stackblitz.com/edit/sveltejs-kit-template-default-132muy ## Fixed: 1. Analyzing `Attribute` AST node value when it can be a single `ExpressionTag` 2. Walking on compiled Stories component function to extract `Story` definitions...
diff --git a/package.json b/package.json index acc72587..00f7231c 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "rimraf": "^5.0.7", "rollup": "^4.18.0", "storybook": "^8.2.2", - "svelte": "5.0.0-next.155", + "svelte": "5.0.0-next.215", "svelte-check": "^3.8.4", "tslib": "...
3
2
1
[{"id": "G0", "claim": "In storyNameFromAttribute, destructuring `const { attributes } = component;` before the `if (component)` guard would throw when component is undefined, and if the condition is actually needed it should be reversed into an early return.", "category": "correctness", "verdict": "supported", "priori...
null
storybookjs__storybook__16404
storybookjs/storybook
16,404
defect
98fe88eac22d67ccdf6433e99867e3a1c5c9132e
1c13920f5084900fe68c789f29acdefc12d27486
Core: Fix module loading support
Issue: https://github.com/storybookjs/storybook/issues/16257 ## What I did Added exception to allow loading of `<script type="module">`. It was not possible as all types were overwritten to `text/javascript`. This prevented modern javascript from being loaded. ## How to test - [x] Is this testable with Jest ...
diff --git a/lib/preview-web/src/simulate-pageload.test.ts b/lib/preview-web/src/simulate-pageload.test.ts new file mode 100644 index 000000000000..9548dbbf262a --- /dev/null +++ b/lib/preview-web/src/simulate-pageload.test.ts @@ -0,0 +1,44 @@ +import global from 'global'; +import { simulatePageLoad } from './simulate-...
1
1
0
[{"id": "G0", "claim": "An example demonstrating the module-script e2e should be added to one of the projects under `examples`, suggested in `web-components-kitchen-sink`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
storybookjs__storybook__17156
storybookjs/storybook
17,156
defect
c2eeedc61e431427de4b669ee1501ce1a1a60228
f5b884bba7500bcb35aa6958e59bc81b48fa0e97
Angular: Use ɵReflectionCapabilities to find component & module metadata
Issue: #11613 #14828 Surly several with angular 13 or 12 where the recovery of input / output was important. for exemple And when the ngOnChanges didn't work. Link to my comment here : https://github.com/storybookjs/storybook/issues/11613#issuecomment-1006417910 link here too : https://github.com/storybookj...
diff --git a/addons/docs/angular/README.md b/addons/docs/angular/README.md index 48c2c5f10d7a..c2a0781f8ff2 100644 --- a/addons/docs/angular/README.md +++ b/addons/docs/angular/README.md @@ -210,12 +210,6 @@ And for `MDX` you can modify it as an attribute on the `Story` element: Storybook Docs renders all Angular st...
1
1
1
[{"id": "G0", "claim": "It looks like this change breaks a few of the snapshot tests in CI.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
storybookjs__storybook__17447
storybookjs/storybook
17,447
defect
6ef1aef94be44cce9454bf1b46f5db01c80e59e2
c49fbf093ca613c69cbcd5bc0b254a1377205508
Core/CLI: Add `extract` function to `PreviewWeb` and use it in `sb extract` if available
Issue: #13561 (related) `StoryStore.extract()` would hang if there was an error in `preview.js`, as the store doesn't know about errors at that level. This would trip up the extract script and tools like Chromatic. ## What I did Add `PreviewWeb.extract()` which encapsulates a bunch of different logic required ...
diff --git a/lib/cli/src/extract.ts b/lib/cli/src/extract.ts index 92adfb024989..ef8b7f9fb3d2 100644 --- a/lib/cli/src/extract.ts +++ b/lib/cli/src/extract.ts @@ -12,7 +12,7 @@ const read = async (url: string) => { await page.goto(url); await page.waitForFunction( - 'window.__STORYBOOK_STORY_STORE__ && windo...
2
2
1
[{"id": "G0", "claim": "Fall back to window.__STORYBOOK_STORY_STORE__ when window.__STORYBOOK_PREVIEW__.extract doesn't exist, so that running `npx sb extract` against an older version of Storybook doesn't error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
storybookjs__storybook__29453
storybookjs/storybook
29,453
defect
6098c0118b044749a4de9e60779c5ad78122f98a
4d6f029c37fa258bb0d1f5985bfc5b42b5ab747a
Composition: Fix composed story search
Closes #29268 ## What I did This PR resolves the issue of composition failures by including external Storybook entries in the index data. Previously, the current story ID was only searched in the internal Storybook index, which caused mismatches. By incorporating external Storybook IDs into the combined index, fu...
diff --git a/code/core/src/manager/components/mobile/navigation/MobileNavigation.tsx b/code/core/src/manager/components/mobile/navigation/MobileNavigation.tsx index fdc7de9651db..ddef2c0f2de4 100644 --- a/code/core/src/manager/components/mobile/navigation/MobileNavigation.tsx +++ b/code/core/src/manager/components/mobi...
3
1
1
[{"id": "G0", "claim": "Style: a potential race condition exists if ref.index is modified during iteration; consider using Object.entries and destructuring for safer iteration.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Logic: check node.parent'...
null
storybookjs__storybook__30852
storybookjs/storybook
30,852
defect
a7e37793d18ea4e499fb533f8b4592863423abd2
c19271685d0d5425758265490076bcdc9e3438c1
Svelte: Adjust Svelte typings to include Svelte 5 function components
Reverts storybookjs/storybook#30851 Closes #29308 ## What I did Svelte 5 components that only use runes and none of the legacy stuff (events, slots) are typed as function components. This adjusts the types to include that shape. Note that for Svelte 5 components you need to do `Meta<typeof MyComponent>` ins...
diff --git a/code/renderers/svelte/src/__test__/ButtonV5.svelte b/code/renderers/svelte/src/__test__/ButtonV5.svelte new file mode 100644 index 000000000000..86f940b6ff04 --- /dev/null +++ b/code/renderers/svelte/src/__test__/ButtonV5.svelte @@ -0,0 +1,15 @@ +<script lang="ts"> + interface Props { + disabled: boole...
3
1
0
[{"id": "G0", "claim": "ButtonV5.svelte is missing a semicolon after the `clicked?: (e: MouseEvent) => void` function type definition in the Props interface.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test component should use `on:click` instead o...
null
storybookjs__storybook__32558
storybookjs/storybook
32,558
defect
1a31c483439db120527779d291e7acf50d34c0d6
24f1e6153c94b3df17fc0e34a0b2c9299ef2900a
AutoMigration: Fix sb10 migration when main config contains `require`
## What I did This ensures 2 things: 1. the upgrade command does not fail when trying to load an faux-ESM file The work around is: we create a temp copy of the main config file, prepend a compat-banner, load and then delete it. 2. add an auto-migration to turn the faux ESM file into valid ESM-file by adding ...
diff --git a/code/lib/cli-storybook/src/automigrate/fixes/index.ts b/code/lib/cli-storybook/src/automigrate/fixes/index.ts index 143a0702a574..1ba4dcbee380 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/index.ts +++ b/code/lib/cli-storybook/src/automigrate/fixes/index.ts @@ -20,6 +20,7 @@ import { wrapGetAbs...
3
3
2
[{"id": "G0", "claim": "Switching getStorybookData to return a ConfigFile (AST wrapper) instead of a raw StorybookConfig breaks consumers that access properties like mainConfig.framework or mainConfig.stories.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
storybookjs__storybook__32656
storybookjs/storybook
32,656
defect
2e08667ea202a7d1c8af4ee9aa732ecb614c3b0d
74c6c63f8cc69eb76d36733fb6e3c545bcd9a1b7
A11y: Add aria-selected attribute to tab buttons
Fixes screen reader announcing incorrect selected state on non-selected tabs. Added aria-selected attribute to TabButton components to properly communicate tab state to assistive technologies like Windows Narrator. Closes #32654 ## What I did Added `aria-selected` attribute to TabButton components in the Tabs co...
diff --git a/code/core/src/components/components/tabs/tabs.tsx b/code/core/src/components/components/tabs/tabs.tsx index 771e79f07ccd..92569bc5f602 100644 --- a/code/core/src/components/components/tabs/tabs.tsx +++ b/code/core/src/components/components/tabs/tabs.tsx @@ -227,6 +227,7 @@ export const Tabs: FC<TabsProps> ...
2
1
0
[{"id": "G0", "claim": "For complete WCAG/ARIA tab pattern compliance, consider also adding `aria-controls` to link each tab to its panel and ensuring the panels have `role=\"tabpanel\"` and `aria-labelledby` — a broader enhancement beyond the current fix.", "category": "correctness", "verdict": "supported", "priority"...
null
storybookjs__storybook__32694
storybookjs/storybook
32,694
defect
e9a2317cea0c3b0fb25de5b63ddd6531e547abfb
be44bdfd91eec47b18e307cab37de4830ebf88dd
Upgrade: Enhance ESM compatibility checks and banner generation
Closes #32598 ## What I did - Updated `fix-faux-esm-require` to analyze compatibility needs for ESM files, including checks for `require` and `__dirname` usage. - Added new tests to validate the detection of `__dirname` and `require` usage, as well as the generation of appropriate compatibility banners. - Refac...
diff --git a/code/lib/cli-storybook/src/automigrate/fixes/fix-faux-esm-require.test.ts b/code/lib/cli-storybook/src/automigrate/fixes/fix-faux-esm-require.test.ts index 05aadc126244..cf4aa842cf27 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/fix-faux-esm-require.test.ts +++ b/code/lib/cli-storybook/src/auto...
14
6
3
[{"id": "G0", "claim": "The fixer emits import.meta.url as a quoted string literal (and the test snapshots assert it), so migrated configs get fileURLToPath(\"import.meta.url\")/createRequire(\"import.meta.url\") instead of a real import.meta.url expression, which throws at load time.", "category": "correctness", "verd...
null
storybookjs__storybook__32695
storybookjs/storybook
32,695
defect
e9a2317cea0c3b0fb25de5b63ddd6531e547abfb
5d1c0c57821bc1e8dc5e7a5e0fe42de756e88f36
CSF: Fix `play-fn` tag for methods
Closes #32687 ## What I did - [x] Handle object method play fn in both meta and story - [x] Unit tests for both ## Checklist for Contributors ### Testing <!-- Please check (put an "x" inside the "[ ]") the applicable items below to communicate how to test your changes --> #### The changes in this PR...
diff --git a/code/core/src/csf-tools/CsfFile.test.ts b/code/core/src/csf-tools/CsfFile.test.ts index 17487fea5750..2a08795ecc6e 100644 --- a/code/core/src/csf-tools/CsfFile.test.ts +++ b/code/core/src/csf-tools/CsfFile.test.ts @@ -1788,6 +1788,67 @@ describe('CsfFile', () => { `); }); + it('play method...
3
1
0
[{"id": "G0", "claim": "The hasMount function only checks arrow functions and function declarations, so a play function defined with object-method syntax and a mount parameter (e.g. `play({ mount }) {}`) won't be detected as a mount.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_e...
null
storybookjs__storybook__32762
storybookjs/storybook
32,762
defect
f47e8612526ddf5d5343ee47e832df4429c922fa
9ec584f9ce7e6e3754b719e9ac2858e64a0f56ef
A11y: Persist tab/highlight across docs navigation
Problem: The A11y panel UI state (selected tab and highlight toggle) is lost when navigating Stories → Docs → Stories. See #32634. Solution: Persist the A11y panel UI state with useAddonState so preferences survive navigation between Stories and Docs. - Persisted UI state: selected tab and highlighted are stored ...
diff --git a/code/addons/a11y/src/components/A11yContext.test.tsx b/code/addons/a11y/src/components/A11yContext.test.tsx index 3496ba2cb100..729e0d409dda 100644 --- a/code/addons/a11y/src/components/A11yContext.test.tsx +++ b/code/addons/a11y/src/components/A11yContext.test.tsx @@ -13,7 +13,8 @@ import { import type {...
11
4
1
[{"id": "G0", "claim": "The setTimeout callback checks the captured `status` value rather than the latest state, so the status may never transition from 'ran' to 'ready'; guard using the updater form instead.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G2", "...
null
storybookjs__storybook__33039
storybookjs/storybook
33,039
defect
5df8b2f02ba9fdfe2f7155f5b09fea5bc5b521cc
e783ba4b8cb7c4ac2cb84abcbd060ad3bce6a10f
Build: Add Rsbuild-based sandboxes
Closes # <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current releas...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 03b288e6a061..7613b1e62adf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -925,7 +925,7 @@ jobs: shell: bash.exe test-init-features: executor: - class: medium+ + class: small ...
19
2
1
[{"id": "G0", "claim": "Address the type incompatibility behind the newly added `as unknown as JsPackageManager` double casts (e.g. by typing PackageManagerProxy's constructor to return JsPackageManager) instead of suppressing TypeScript's checking with double casting.", "category": "maintainability", "verdict": "uncer...
null
storybookjs__storybook__33277
storybookjs/storybook
33,277
defect
7bd55eb6936e48e6e8bded78fb138e0a1f637a9b
94747c7aaa3795f60c673b9821a40384e5ae3c05
Build: Fix ecosystem CI resolution handling
Follow-up to https://github.com/storybookjs/storybook/pull/33270 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `nex...
diff --git a/package.json b/package.json index 5add9b064b81..29f27ba05969 100644 --- a/package.json +++ b/package.json @@ -26,16 +26,16 @@ "nx": "nx", "pretty-docs": "cd scripts; yarn install >/dev/null; yarn docs:prettier:write", "start": "yarn task --task dev --template react-vite/default-ts --start-fr...
5
1
0
[{"id": "G0", "claim": "Consider adding an explicit existence check for the sandbox directory in scripts/ecosystem-ci/before-test.sh before cd-ing into it, so a missing directory produces a clear error message instead of the generic 'No such file or directory' failure.", "category": "maintainability", "verdict": "uncer...
null
storybookjs__storybook__33280
storybookjs/storybook
33,280
defect
7bd55eb6936e48e6e8bded78fb138e0a1f637a9b
1366dcc83023ee55a9a59f28e5aaa62c5b46ff3d
Docs: Support Rolldown bundler module namespace objects
## What I did When using vite-rolldown, bundled code creates different object references for the same module imported from multiple files. This caused Map.get() lookups to fail since Maps use object identity. - Add fallback lookup by .default property in resolveModuleExport() - Handles bundlers that don't preser...
diff --git a/code/core/src/preview-api/modules/preview-web/docs-context/DocsContext.test.ts b/code/core/src/preview-api/modules/preview-web/docs-context/DocsContext.test.ts index 736cc763ad2e..b66887e32a1b 100644 --- a/code/core/src/preview-api/modules/preview-web/docs-context/DocsContext.test.ts +++ b/code/core/src/pr...
1
1
0
[{"id": "G0", "claim": "The test assertion in the 'throws for non-module objects (components)' case checks only a prefix of the error message and should instead assert the complete message, including the sentence 'Did you mistakenly reference your component instead of your CSF file?'.", "category": "testing", "verdict"...
null
storybookjs__storybook__33285
storybookjs/storybook
33,285
defect
9548e928ae6055cf770dc856082d113ba0210c1c
21967485987d0bdf65a11ce06446d5e03cc04c99
Telemetry: Await pending operations in getLastEvents to prevent race conditions
Closes # <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current releas...
diff --git a/code/core/src/telemetry/event-cache.ts b/code/core/src/telemetry/event-cache.ts index 97c4e60da254..6f7516afdfdd 100644 --- a/code/core/src/telemetry/event-cache.ts +++ b/code/core/src/telemetry/event-cache.ts @@ -34,6 +34,10 @@ export const get = async (eventType: EventType): Promise<CacheEntry | undefine...
1
1
1
[{"id": "G0", "claim": "The pull request makes getLastEvents await pending operations but contains no test demonstrating the race condition this change is meant to prevent; such a test should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
storybookjs__storybook__33368
storybookjs/storybook
33,368
defect
8b8df12234a1cfe9ddf745aff9ae52c67506ba4c
7d9ca10bf1245844d81a923b51438667c7f3f7f8
Interactions: Add disable parameter for interactions panel
Adds support for disabling the interactions panel on a per-story basis using the `interactions.disable` parameter. Fixes #33339 Problem The interactions panel could not be disabled for specific stories, unlike other addons (a11y, viewport, backgrounds, etc.). This caused performance issues when the panel tried t...
diff --git a/code/core/src/component-testing/constants.ts b/code/core/src/component-testing/constants.ts index d096abc1f3f1..8a7fb0a80792 100644 --- a/code/core/src/component-testing/constants.ts +++ b/code/core/src/component-testing/constants.ts @@ -1,5 +1,6 @@ export const ADDON_ID = 'storybook/interactions'; expor...
2
1
1
[{"id": "G0", "claim": "The new tests replicate the disable logic inline instead of importing and testing the actual implementation, so they would still pass if the manager.tsx logic changed and give false confidence; the logic should be extracted into an exported function used by both the tests and the panel registrat...
null
storybookjs__storybook__33562
storybookjs/storybook
33,562
defect
8486c72ce5fc4946755cafdcdb671f6f5dd9937d
897c6662c92faa936873995b232ca5e6152a14d6
Vue: Make globals reactive in decorators
Closes #23655 ## What I did * Allowed globals to be reactive * Added stories and E2E tests to avoid regressions * Documented code patterns for Vue decorators with reactivity ## Checklist for Contributors ### Testing #### The changes in this PR are covered in the following automated tests: Unit tests...
diff --git a/code/renderers/vue3/src/render.test.ts b/code/renderers/vue3/src/render.test.ts index 98e48b86fd57..f4fb1c38a082 100644 --- a/code/renderers/vue3/src/render.test.ts +++ b/code/renderers/vue3/src/render.test.ts @@ -1,7 +1,9 @@ import { describe, expect, it } from 'vitest'; +import type { Args, Globals } ...
3
2
0
[{"id": "G0", "claim": "Add some test story to showcase the new reactive-globals decorator behaviour beside the unit tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Changing globals from the toolbar used to cause a full re-render so decorators upd...
null
storybookjs__storybook__33673
storybookjs/storybook
33,673
defect
113350724a2eec4b78e545900662fc2c413a6f2f
8e623b7a97ac50f054969d64a308acc806fa876b
CSF-Factories: Fix codemod for preview files without exports
Closes #33640 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current release...
diff --git a/code/lib/cli-storybook/src/codemod/helpers/config-to-csf-factory.test.ts b/code/lib/cli-storybook/src/codemod/helpers/config-to-csf-factory.test.ts index 48aa77ccff9b..ced4afaba4f9 100644 --- a/code/lib/cli-storybook/src/codemod/helpers/config-to-csf-factory.test.ts +++ b/code/lib/cli-storybook/src/codemod...
3
1
1
[{"id": "G0", "claim": "The Scenario 4 branch fires for any preview file that yields no config._exportsObject or defineConfigProps even when it does contain export declarations such as re-exports, which can add a second default export or unexpected output; gate the branch on a true no-exports check (e.g. exportDecls.le...
null
storybookjs__storybook__33698
storybookjs/storybook
33,698
defect
b18d12ed2bfc73753d56fe090b03880ebd2cdd3b
1442ca266faacd61b5a13b5ddaee3d8708077a54
Core: Resolve .js imports to .ts files in TypeScript loader
Closes #32757 ## What I did Added support for resolving JavaScript extension imports to their TypeScript equivalents in the esbuild loader. **The Problem:** ...
diff --git a/code/core/src/bin/loader.ts b/code/core/src/bin/loader.ts index 7c98ffb4df72..0479833064df 100644 --- a/code/core/src/bin/loader.ts +++ b/code/core/src/bin/loader.ts @@ -27,13 +27,49 @@ export const supportedExtensions = [ '.tsx', ] as const; +const jsToTsExtensionMap: Record<string, readonly string[...
5
3
1
[{"id": "G0", "claim": "Reverse the check order so TypeScript alternatives (.ts/.tsx, .mts, .cts) are tried before an existing .js/.mjs/.cjs file, matching TypeScript Node16/NodeNext resolution, otherwise stale or incorrect JavaScript files can be loaded instead of the TypeScript sources.", "category": "correctness", "...
null
storybookjs__storybook__33820
storybookjs/storybook
33,820
defect
5f5ad4e5f3bc90aebce5c241a71ef00cb24bc689
a4436cc1401cbbc19f0a964386271572eae786d2
Core: Require token for websocket connections
See also https://github.com/storybookjs/storybook/pull/33835 ## What I did Added token validation for websocket connections. ## Checklist for Contributors ### Testing #### The changes in this PR are covered in the following automated tests: - [ ] stories - [x] unit tests - [ ] integration tests - [...
diff --git a/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts b/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts index ab35c51aece8..7b5644297a8f 100644 --- a/code/builders/builder-webpack5/src/preview/iframe-webpack.config.ts +++ b/code/builders/builder-webpack5/src/preview/iframe...
10
3
2
[{"id": "G0", "claim": "Passing `core?.channelOptions?.token` (possibly undefined) to `getServerChannel`, whose `token` parameter is typed `string`, violates the type contract and, when no token is configured, makes every WebSocket upgrade fail with 403, silently breaking the dev server channel; the token should be val...
null
storybookjs__storybook__33828
storybookjs/storybook
33,828
defect
40e556abc3292427209418929d8b0f334e69139f
75ca8c9967d01c97620f22a79c10751a6f40aa0a
Preact: Support inferring props from component types
Relates to https://github.com/storybookjs/storybook/discussions/33749 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next...
diff --git a/code/renderers/preact/src/public-types.test.tsx b/code/renderers/preact/src/public-types.test.tsx new file mode 100644 index 000000000000..eb7a3f44035d --- /dev/null +++ b/code/renderers/preact/src/public-types.test.tsx @@ -0,0 +1,206 @@ +// @vitest-environment happy-dom +/** @jsxImportSource preact */ +//...
3
1
1
[{"id": "G0", "claim": "Preact's StoryObj is missing the AddMocks<TArgs, DefaultArgs> wrapper that React uses, so mock functions created with fn() and given to meta.args lose their Mock type in story args; add the AddMocks type definition, use it in the StoryObj return type, and add matching test coverage.", "category"...
null
storybookjs__storybook__33868
storybookjs/storybook
33,868
defect
72d301d2d0bf6c21e9aa666774a5c2a81f2fcdaa
dc7d85344aa3c358594f532f1a6a0540bc0a5afb
Core: Sanitize inputs for save from controls
Closes # <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current releas...
diff --git a/code/core/src/core-server/server-channel/create-new-story-channel.ts b/code/core/src/core-server/server-channel/create-new-story-channel.ts index 94967d7e3e17..c524d7dc4da2 100644 --- a/code/core/src/core-server/server-channel/create-new-story-channel.ts +++ b/code/core/src/core-server/server-channel/creat...
10
5
2
[{"id": "G0", "claim": "The regex /['\"\\\\\\b\\f\\n\\r\\t]/g matches backspace, form feed and tab, but the codes mapping has no entries for them, so those characters pass through unescaped via the `|| char` fallback; add the missing mappings or drop the characters from the regex.", "category": "correctness", "verdict"...
null
storybookjs__storybook__33885
storybookjs/storybook
33,885
defect
558bede3668dcaddaffd3a1ce69b528e998756c8
0e1741015df8833cc9d50ed7f372d2dad013be0c
CSF-Factories: Fix ConfigFile parser false warning on `definePreview({...}).type<T>()` export default
- [x] Understand the issue: `ConfigFile` parser warns on `definePreview({...}).type<{...}>()` in `export default` - [x] Fix `ExportDefaultDeclaration` handler in `ConfigFile.ts` to unwrap chained calls like `.type<T>()` - [x] Add test case for `definePreview({...}).type<{...}>()` in `ConfigFile.test.ts` - [x] Run tests...
diff --git a/code/core/src/csf-tools/ConfigFile.test.ts b/code/core/src/csf-tools/ConfigFile.test.ts index f702579aeecd..191989b1751b 100644 --- a/code/core/src/csf-tools/ConfigFile.test.ts +++ b/code/core/src/csf-tools/ConfigFile.test.ts @@ -293,6 +293,23 @@ describe('ConfigFile', () => { ) ).toEqu...
2
1
0
[{"id": "G0", "claim": "Fix the linting issues in the pull request's code as described in .github/copilot-instructions.md.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new regression test should also explicitly assert that no warning is em...
null
storybookjs__storybook__33910
storybookjs/storybook
33,910
defect
5a2c607219babe52ba4d3f87ae823a6ab4d35ad7
bc5c582f907af88457db3c022d634fd1bab5333f
Telemetry: Add project age
Closes N/A ## What I did Collect the project age so we can understand whether Storybook is being installed into new projects ## Checklist for Contributors ### Testing #### The changes in this PR are covered in the following automated tests: - [ ] stories - [x] unit tests - [ ] integration tests - [...
diff --git a/code/core/src/telemetry/anonymous-id.test.ts b/code/core/src/telemetry/anonymous-id.test.ts index 8277ca547e85..91c8e9796cd9 100644 --- a/code/core/src/telemetry/anonymous-id.test.ts +++ b/code/core/src/telemetry/anonymous-id.test.ts @@ -1,6 +1,17 @@ -import { describe, expect, it } from 'vitest'; +import ...
6
4
2
[{"id": "G0", "claim": "The docs example shows \"projectSince\": \"1717334400000\" as a string, but the implementation serializes getProjectSince()?.getTime() so the value should be shown as the number 1717334400000.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
storybookjs__storybook__33970
storybookjs/storybook
33,970
defect
b7355d87686664ea6031c7c966b97efabc2e9934
33b24225957f773a6d63599da193bf3a16311b2b
A11y: Add aria-live announcements via @react-aria/live-announcer
Storybook UI lacks a centralized approach for managing `aria-live` announcements, making screen reader users unable to perceive status changes (test results, loading states, errors, etc.). ### Changes - **`extend-to-be-announced` integration** — Added <a href="https://github.com/AriPerkkio/extend-to-be-announced">`ex...
diff --git a/code/core/package.json b/code/core/package.json index 84a1d70cb445..42bb68565584 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -263,6 +263,7 @@ "@radix-ui/react-slot": "^1.0.2", "@react-aria/interactions": "^3.25.5", "@react-aria/landmark": "^3.0.8", + "@react-aria/l...
11
6
4
[{"id": "G0", "claim": "Make the LiveRegion component's aria-live region use aria-relevant=\"all\" by default and adjust tests and stories to verify that.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the useAnnouncer hook and LiveRegion componen...
null
storybookjs__storybook__34003
storybookjs/storybook
34,003
defect
20887f19d26d1f6e74712eeec4812f325031420b
5f27e882807b4816fba5d30490232706dc8354e7
Hotfix: Backport host/origin validation to requests and websocket connections
## What I did This is a backport of #33835 for Storybook v9.1. ## Checklist for Contributors ### Testing <!-- Please check (put an "x" inside the "[ ]") the applicable items below to communicate how to test your changes --> #### The changes in this PR are covered in the following automated tests: - [ ...
diff --git a/.gitignore b/.gitignore index 19177a9e9365..962ed197a479 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,6 @@ tsconfig.vitest-temp.json !/**/.yarn/versions !/**/.yarn/patches /**/.pnp.* -!/node_modules # test-storybooks test-storybooks/ember-cli/ember-output diff --git a/code/builders/builder-...
3
1
0
[{"id": "G0", "claim": "The allowedHosts value captured from the first presets.apply('core') pass may drift from what runtime enforcement uses if a later preset pass mutates core.allowedHosts, so the warning and startup output can diverge from actual behavior; the author should re-read allowedHosts from the final prese...
null
storybookjs__storybook__34089
storybookjs/storybook
34,089
defect
282c04920b40e8580c2e8cde965693556b612c22
944b91a47caaae4ccb9389bd9f9db21669bcc641
ESLint: bail out config setup if eslint-plugin-storybook is already imported
When `configureFlatConfig` ran against a config that already imported `eslint-plugin-storybook` under a custom alias, it skipped adding a duplicate import but still appended `...storybook.configs["flat/recommended"]` — referencing an undefined `storybook` variable. **Example of broken output:** ```js // user's existin...
diff --git a/code/core/src/cli/eslintPlugin.test.ts b/code/core/src/cli/eslintPlugin.test.ts index d265bc298d1f..6c09361caa44 100644 --- a/code/core/src/cli/eslintPlugin.test.ts +++ b/code/core/src/cli/eslintPlugin.test.ts @@ -583,6 +583,28 @@ describe('configureEslintPlugin', () => { export default someCustom...
1
1
1
[{"id": "G0", "claim": "The bailout check only scans top-level statements and should instead walk the AST for ImportDeclaration nodes, because projects can use dynamic import() expressions (e.g. via eslint-flat-config-utils) that the current check misses.", "category": "correctness", "verdict": "supported", "priority":...
null
storybookjs__storybook__34116
storybookjs/storybook
34,116
defect
1ba2d0721a9b5e50dcb3974bae7f40d10d71c043
176129680668bb96c25c0dd0fc6598c7858959e0
Vue: Make globals reactive in decorators
This reverts commit 07f07ec33f1ff3cbebb5d2354f553e22f1780bb4. ## Checklist for Contributors ### Testing #### Manual testing See https://github.com/storybookjs/storybook/pull/33562 ### 🦋 Canary release <!-- CANARY_RELEASE_SECTION --> This PR does not have a canary release associated. You can request ...
diff --git a/code/e2e-tests/framework-vue3.spec.ts b/code/e2e-tests/framework-vue3.spec.ts new file mode 100644 index 000000000000..fbb76c026ccc --- /dev/null +++ b/code/e2e-tests/framework-vue3.spec.ts @@ -0,0 +1,49 @@ +import { expect, test } from '@playwright/test'; +import process from 'process'; + +import { SbPage...
4
2
1
[{"id": "G0", "claim": "updateArgs returns early when nextArgs is empty, skipping the deletion pass and leaving stale keys in reactiveArgs/reactiveGlobals, so resetting args or clearing toolbar globals back to {} keeps old values alive in Vue decorators.", "category": "correctness", "verdict": "supported", "priority": ...
null
storybookjs__storybook__34163
storybookjs/storybook
34,163
defect
546aece1ec7381700b603eece590c0048d16205d
d34b80ed16e154e2e3aa9db00dd71ece5cd79550
UI: Ensure Link without href is keyboard-reachable
## What I did Tied the `isButton` logic of the `Link` component to the absence of a `href`. Without a `href`, an HTML anchor will not be keyboard-reachable. This implies buttons that use the `Link` styling with `<Link isButton onClick={() => ... } />` are not accessible. As all our usages of `<Link isBUtton` are ...
diff --git a/MIGRATION.md b/MIGRATION.md index 2b6ba2137b9c..f429b9790e34 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -23,6 +23,7 @@ - [Renamed: Modal.Dialog.Close and Modal.CloseButton](#renamed-modaldialogclose-and-modalclosebutton) - [ListItem, TooltipLinkList and TooltipMessage are deprecated](#list...
5
1
0
[{"id": "G0", "claim": "The no-`href` rendering path should set an explicit `type=\"button\"` on the rendered native `<button>` element, because without it HTML defaults to `type=\"submit\"`, which can cause unintended form submissions if the Link is used inside a form.", "category": "correctness", "verdict": "uncertai...
null
storybookjs__storybook__34193
storybookjs/storybook
34,193
defect
d3073e793723700d35bac25e0121391ba4398bf7
7695cbc2ed9b4d81b341961a79cdf21a55afd1d8
Addon-Vitest: Streamline vite(st) config detection across init and postinstall
Closes # <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current release. Sto...
diff --git a/code/addons/vitest/src/postinstall.ts b/code/addons/vitest/src/postinstall.ts index f11c43eeff99..7c426e701c9e 100644 --- a/code/addons/vitest/src/postinstall.ts +++ b/code/addons/vitest/src/postinstall.ts @@ -1,4 +1,3 @@ -import { existsSync } from 'node:fs'; import * as fs from 'node:fs/promises'; impo...
6
5
0
[{"id": "G0", "claim": "Remove the added comment in updateVitestFile.ts listing the helper names now imported from 'storybook/internal/babel', which just restates the import statement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the te...
null
storybookjs__storybook__34204
storybookjs/storybook
34,204
defect
1ba2d0721a9b5e50dcb3974bae7f40d10d71c043
b4ca4d3d8d68af5223f28b3f7b4b966f4e6ca4e5
A11y: Improve boolean control contrast in forced colors mode
Closes #31695 ## What I did - improved the Boolean control styling in forced colors mode so the selected state is clearly distinguishable - replaced the previous underline-only selected-state treatment with explicit system-color fill, text color, and outline - hid the native checkbox from visual rendering while...
diff --git a/code/addons/docs/src/blocks/controls/Boolean.test.tsx b/code/addons/docs/src/blocks/controls/Boolean.test.tsx new file mode 100644 index 000000000000..96fe68929367 --- /dev/null +++ b/code/addons/docs/src/blocks/controls/Boolean.test.tsx @@ -0,0 +1,65 @@ +// @vitest-environment happy-dom +import { describe...
6
5
0
[{"id": "G0", "claim": "Consider adding a dark-theme test case so the forced-colors styles are confirmed consistent regardless of theme base.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the shared sr-only helper instead of maintaining a local dup...
null
storybookjs__storybook__34249
storybookjs/storybook
34,249
defect
87733f1a77f5a0cdb7889ec30eaeedbfb3acf491
05daa6f0bce77f65862de7927236bc8ea4d6f4d6
CLI: Fix Next.js Vite automigration corrupting configs already using `@storybook/nextjs-vite`
## What does this PR do? Fixes a bug in the `nextjs-to-nextjs-vite` automigration where the regex `/@storybook\/nextjs/g` matches as a substring inside `@storybook/nextjs-vite`, rewriting it to `@storybook/nextjs-vite-vite`. ## How to reproduce Projects that had both `@storybook/nextjs` and `@storybook/nextjs-vite` ...
diff --git a/code/lib/cli-storybook/src/automigrate/fixes/nextjs-to-nextjs-vite.test.ts b/code/lib/cli-storybook/src/automigrate/fixes/nextjs-to-nextjs-vite.test.ts index f09e8ad5e96e..7aa94adcce74 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/nextjs-to-nextjs-vite.test.ts +++ b/code/lib/cli-storybook/src/a...
1
1
0
[{"id": "G0", "claim": "Move the inline mock setup in the new regression test into a `beforeEach` block (e.g. a nested `describe` + `beforeEach` for tests that need vite installed), for consistency with the file's test mocking convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
storybookjs__storybook__34273
storybookjs/storybook
34,273
defect
cd857b9bc913121ee6f18a456057c96f78254e03
8a1f3553c74dc2ef1037834b0dc1a514d366348c
Bug: Skip re-processing already transformed config files for CSF factories
…orues Fix in next release <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific ...
diff --git a/code/lib/cli-storybook/src/codemod/helpers/config-to-csf-factory.ts b/code/lib/cli-storybook/src/codemod/helpers/config-to-csf-factory.ts index c289c247ff51..d7dafa956e38 100644 --- a/code/lib/cli-storybook/src/codemod/helpers/config-to-csf-factory.ts +++ b/code/lib/cli-storybook/src/codemod/helpers/config...
3
3
3
[{"id": "G0", "claim": "The early-return detection won't recognize already-transformed default exports when the `export default` expression is wrapped in TS syntax like `as ...`/`satisfies ...` (it only checks `node.declaration` directly), so those files may be re-printed/re-formatted; consider unwrapping with `config....
null
storybookjs__storybook__34281
storybookjs/storybook
34,281
defect
da2f32e85bc6055488deca62e3be3460f22c2cab
d910f6e67ffd21794e1209977953458a8dbee3af
Core: Fix WebSocket connection for StackBlitz/WebContainers
Closes #34226 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current r...
diff --git a/code/core/package.json b/code/core/package.json index bb195e3cbf40..ed2ed441dc68 100644 --- a/code/core/package.json +++ b/code/core/package.json @@ -234,6 +234,7 @@ "@testing-library/user-event": "^14.6.1", "@vitest/expect": "3.2.4", "@vitest/spy": "3.2.4", + "@webcontainer/env": "^1.1.1...
4
1
1
[{"id": "G0", "claim": "Consider adding a test case for a missing origin header with skipValidation: true to mirror the existing 'rejects connections without origin header' test and ensure full parity in coverage.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
storybookjs__storybook__34283
storybookjs/storybook
34,283
defect
c25004ac1b7d88c5f57f5e17abc1e96ada8ed95a
e73920dd2f3f5f8535bb410858284fe20669b721
Manager: URL-based tag filter state + filter-aware initial story selection
Closes #34252 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current r...
diff --git a/code/core/src/manager-api/modules/stories.ts b/code/core/src/manager-api/modules/stories.ts index 15803f447faa..a0e10df344c4 100644 --- a/code/core/src/manager-api/modules/stories.ts +++ b/code/core/src/manager-api/modules/stories.ts @@ -20,6 +20,8 @@ import { UPDATE_STORY_ARGS, } from 'storybook/inter...
11
6
4
[{"id": "G0", "claim": "The filtered-fallback redirect always reuses the preview-emitted viewMode, so a docs-only match such as ?tags=$docs can produce /story/<docsId> instead of /docs/<docsId>; restrict the fallback to stories or derive the route from the matched entry type.", "category": "correctness", "verdict": "un...
null
storybookjs__storybook__34290
storybookjs/storybook
34,290
defect
a5658d31cae046e1c7b832cbe82719ee315d0bc4
c5f438e6e376d105ee7e409a92d8dfd7d0ab3de5
CLI: Add automigrate check for 'storybook' package name conflict
When a project's package.json name is 'storybook', it shadows the real storybook package in node_modules within npm/pnpm/yarn workspaces, causing 'Cannot find module storybook/internal/...' errors. This adds a notification-type automigrate fix that warns users and suggests renaming their package. Related to #2...
diff --git a/code/lib/cli-storybook/src/automigrate/fixes/index.ts b/code/lib/cli-storybook/src/automigrate/fixes/index.ts index 159da1a65cbe..45a6adb1057c 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/index.ts +++ b/code/lib/cli-storybook/src/automigrate/fixes/index.ts @@ -17,6 +17,7 @@ import { removeDocs...
4
4
0
[{"id": "G0", "claim": "The '.eslintrc' snippet in docs/configure/integration/eslint-plugin.mdx (lines 43-46, and 95-100, 108-115, 123-135) still uses single-quoted strings and should be normalized to double quotes for consistency.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_e...
null
storybookjs__storybook__34305
storybookjs/storybook
34,305
defect
09a3460d197b07e4f8201a4ba21f846eb3416fcc
40a470ee497cc231e42ea34a01b8955e7d0916a1
StatusValue: Add 'status-value:<new|modified|affected>'
Closes https://github.com/storybookjs/storybook/issues/34292 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` b...
diff --git a/code/addons/vitest/src/use-test-provider-state.ts b/code/addons/vitest/src/use-test-provider-state.ts index 57ef86103464..1d2eaf787c65 100644 --- a/code/addons/vitest/src/use-test-provider-state.ts +++ b/code/addons/vitest/src/use-test-provider-state.ts @@ -20,7 +20,12 @@ import { import { ADDON_ID, STATU...
6
2
2
[{"id": "G0", "claim": "Narrowing StatusValueToStoryIds to TestStatusValue while casting `status.value as TestStatusValue` can index a missing key in statusValueToStoryIdsMap and crash on `.push` for the newly added status values; the path should be safely exhaustive or explicitly guarded.", "category": "correctness", ...
null
storybookjs__storybook__34316
storybookjs/storybook
34,316
defect
09a3460d197b07e4f8201a4ba21f846eb3416fcc
5a631192a1bb3f5782a5b85f2761bf30d837f689
CLI: Prompt for init crash reports
Closes # <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current releas...
diff --git a/code/core/src/core-server/withTelemetry.test.ts b/code/core/src/core-server/withTelemetry.test.ts index a46488bbe561..7f17248f5835 100644 --- a/code/core/src/core-server/withTelemetry.test.ts +++ b/code/core/src/core-server/withTelemetry.test.ts @@ -1,6 +1,6 @@ -import { beforeEach, describe, expect, it, v...
1
1
1
[{"id": "G0", "claim": "withTelemetry should not prompt for crash-report consent when handling non-blocking errors (blocking: false), or the prompting behaviour for that scenario should be reconsidered; Sidnioulz additionally suggests using a distinct prompt message for init errors that did not abort the install.", "ca...
null
storybookjs__storybook__34323
storybookjs/storybook
34,323
defect
db1ddc8e390e80df62a3cf2a92d0b92faab2c3f4
11d7074521585d371b771527f324573feb479120
Builder-Vite: Add onModuleGraphChange method
Closes #34251 <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current r...
diff --git a/code/builders/builder-vite/src/index.test.ts b/code/builders/builder-vite/src/index.test.ts new file mode 100644 index 000000000000..2500e7906ed1 --- /dev/null +++ b/code/builders/builder-vite/src/index.test.ts @@ -0,0 +1,334 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; + +...
14
8
3
[{"id": "G0", "claim": "bail() removes the watcher handler with off('change') although start() registered it on 'all', so the handler is never detached and leaks across restarts, and the bail test asserts the incorrect 'change' event.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
storybookjs__storybook__34345
storybookjs/storybook
34,345
defect
18ca3df5fc554f1c7b2e2ac5484b3975a968a0a1
927225a4cce8880b3dc101011fa3ce10dd4f777a
CLI: Add `storybook ai` command for init prompts
Closes # <!-- If your PR is related to an issue, provide the number(s) above; if it resolves multiple issues, be sure to break them up (e.g. "closes #1000, closes #1001"). --> <!-- Thank you for contributing to Storybook! Please submit all PRs to the `next` branch unless they are specific to the current release....
diff --git a/code/core/src/telemetry/types.ts b/code/core/src/telemetry/types.ts index 31a8427d43a6..5da399db85d1 100644 --- a/code/core/src/telemetry/types.ts +++ b/code/core/src/telemetry/types.ts @@ -44,7 +44,8 @@ export type EventType = | 'preview-first-load' | 'doctor' | 'share' - | 'ghost-stories'; + |...
15
8
5
[{"id": "G0", "claim": "aiInit's catch block calls process.exit(1) from inside the helper, skipping the normal error/telemetry wrapping in bin/run.ts and withTelemetry; it should throw a handled error instead and let the CLI boundary decide whether to print and exit.", "category": "design", "verdict": "supported", "pri...
null