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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
yorkie-team__yorkie__1450 | yorkie-team/yorkie | 1,450 | defect | 813071407b46f743a40698c5f21d02e17a22a186 | c16284b4f892386043854dd2de7f7bdab93a625c | Refine server configuration defaults and tests | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Update `ensureDefaultValue` and `config.sample.yml` to updated config
- Delete unused configuration variable
- Add tests related to config.go
**Which issue(s) this PR fixes**:
Subtask of #1446
<!--
*Automatically closes ... | diff --git a/cmd/yorkie/server.go b/cmd/yorkie/server.go
index 835ef97e6..b35b54eab 100644
--- a/cmd/yorkie/server.go
+++ b/cmd/yorkie/server.go
@@ -51,7 +51,7 @@ var (
authGitHubDeviceAuthURL string
housekeepingInterval time.Duration
- clientDeactivateThreshold string
+ clientDeactivateThreshold time.... | 12 | 4 | 2 | [{"id": "G0", "claim": "The expected error substrings in the housekeeping validation test should quote the invalid value (invalid argument \"5d\") because Validate() error strings typically include quotes, and without them Contains may fail.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "i... | null |
yorkie-team__yorkie__1463 | yorkie-team/yorkie | 1,463 | defect | aeb1b83b4795757710ce428e93f72f688bc05d25 | bb1762b21710b188f35aa567e514dad265df5566 | Optimize Client.Deactivate by removing N+1 query | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
In `Yorkie.DeactivateClient`, firstly it finds attached or attaching documents to detach via DB query.
Previously, the number of query is N+1 (1 for `FindClientInfo`, N for `FindDocInfoByRefKey`) to find it.
Execute `N * FindDoc... | diff --git a/server/backend/database/database.go b/server/backend/database/database.go
index b9fb72da5..0fdc77e2c 100644
--- a/server/backend/database/database.go
+++ b/server/backend/database/database.go
@@ -236,6 +236,13 @@ type Database interface {
docKeys []key.Key,
) ([]*DocInfo, error)
+ // FindDocInfosByI... | 17 | 5 | 0 | [{"id": "G0", "claim": "Mongo FindDocInfosByIDs should filter out removed documents (\"removed_at\": {\"$exists\": false}) to match FindDocInfosByKeys semantics, otherwise removed docs can surface in callers like the Deactivate flow causing unnecessary detach attempts and behavior drift.", "category": "correctness", "v... | null |
yorkie-team__yorkie__1468 | yorkie-team/yorkie | 1,468 | defect | f43357681857cb37de057d7e2ada6ac4ebf18b91 | 71a858db7f35d2b00a9801cabcce07ea7acd1796 | Optimize queries by removing N+1 problem | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
### 1. Optimize `FindCompactionCandidatesPerProject`
Condition of returning `DocInfo` in `FindCompactionCandidatesPerProject` is below.
- server_seq ≥ compactionMinChanges
- Document must not be attached to any client
- maxim... | diff --git a/server/backend/database/database.go b/server/backend/database/database.go
index 0fdc77e2c..d5666503f 100644
--- a/server/backend/database/database.go
+++ b/server/backend/database/database.go
@@ -197,9 +197,12 @@ type Database interface {
// after handling PushPull.
UpdateClientInfoAfterPushPull(ctx co... | 9 | 4 | 0 | [{"id": "G0", "claim": "The memory backend's FindAttachedClientCountsByDocIDs counts attached documents regardless of client activation while the Mongo implementation counts only activated clients, so the two backends disagree on the new API.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope... | null |
yorkie-team__yorkie__1472 | yorkie-team/yorkie | 1,472 | defect | 127a51e75c787d1d4dc50a45feec1fd6c86ef171 | 76493bd9f301ef904946ab2a3abdfedb51be8ea5 | Introduce client cache for faster client retrieval | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This change adds an in-memory cache to improve the performance of
client operations by reducing repeated lookups. The cache is refreshed
or invalidated during attach, deactivate, and update flows to prevent
stale data and keep... | diff --git a/server/backend/database/mongo/client.go b/server/backend/database/mongo/client.go
index 77becc0df..7df5dea06 100644
--- a/server/backend/database/mongo/client.go
+++ b/server/backend/database/mongo/client.go
@@ -51,6 +51,7 @@ type Client struct {
config *Config
client *mongo.Client
+ clientCache *lru... | 12 | 4 | 2 | [{"id": "G0", "claim": "On cache hits FindClientInfoByRefKey returns the cached info without advancing updated_at, so housekeeping may collect actively used clients (premature deactivation); the review asks for a best-effort touch on cache hits.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "sc... | null |
yorkie-team__yorkie__1482 | yorkie-team/yorkie | 1,482 | defect | 61dbd8ee54ccd2e9e6cbdbae68846ce88ccd4acb | b836e318801ff77a21d167cb01ab739b2804d6ea | Increase cache hit rate with refined logging and DB fixes | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Increase cache hit rate with refined logging and DB fixes
This commit primarily increases the client cache hit rate by ensuring
that cache entries are updated immediately after writes, which reduces
stale reads and improves ... | diff --git a/server/backend/database/mongo/client.go b/server/backend/database/mongo/client.go
index 396a48172..d2e15018f 100644
--- a/server/backend/database/mongo/client.go
+++ b/server/backend/database/mongo/client.go
@@ -377,15 +377,16 @@ func (c *Client) ensureDefaultUserInfo(
"username": candidate.Username,
... | 16 | 1 | 0 | [{"id": "G0", "claim": "The projection in FindClosestSnapshotInfo uses the key \"Snapshot\" but the field is stored lowercase as \"snapshot\", so the projection won't exclude the snapshot payload and full snapshot bytes are read unnecessarily.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scop... | null |
yorkie-team__yorkie__1496 | yorkie-team/yorkie | 1,496 | defect | 63523f0a82686c6d309bb5967617a5401654c784 | 54430870dc079faadf10ef955c653766ad2e7c62 | Add project-level RemoveOnDetach setting | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Add `Remove On Detach` feature in cluster server DetachDocument API
- The Remove on Detach setting is a project-level configuration that automatically applies the document removal behavior to all documents within the project, wi... | diff --git a/api/converter/from_pb.go b/api/converter/from_pb.go
index 20e9af68f..dbbce1212 100644
--- a/api/converter/from_pb.go
+++ b/api/converter/from_pb.go
@@ -74,6 +74,7 @@ func FromProject(pbProject *api.Project) *types.Project {
MaxSubscribersPerDocument: int(pbProject.MaxSubscribersPerDocument),
MaxAttac... | 17 | 2 | 2 | [{"id": "G0", "claim": "The CLI update logic only applies the flag when its value is true, so users cannot set remove-on-detach back to false on a project that already has it enabled; use the flag's Changed bit to distinguish provided from not provided.", "category": "correctness", "verdict": "supported", "priority": "... | null |
yorkie-team__yorkie__1499 | yorkie-team/yorkie | 1,499 | defect | 98ee1169764a2aeae510eefac9c9dd61a55157b1 | c00a49856bb954e017b87073cdce4839f454f00e | Refactor RPC logging and client deactivation | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This commit unifies RPC logging by applying consistent severity levels
across both unary and streaming calls, making the logs clearer and
easier to interpret.
It also reworks asynchronous client deactivation to run as a mana... | diff --git a/server/clients/clients.go b/server/clients/clients.go
index dc6abd62b..b26abef81 100644
--- a/server/clients/clients.go
+++ b/server/clients/clients.go
@@ -119,12 +119,11 @@ func DeactivateAsync(
bgCtx := context.Background()
// Start deactivation in a goroutine
- go func() {
+ be.Background.AttachGo... | 7 | 1 | 0 | [{"id": "G0", "claim": "In DeactivateAsync, pass the context provided by AttachGoroutine to both Deactivate and LogError instead of context.Background(), and remove the now-unused bgCtx and its comment.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
yorkie-team__yorkie__1509 | yorkie-team/yorkie | 1,509 | defect | 443d03694267f095bdaf41f1a8b280f59fd09c68 | 1ac2d85f9a38fce69fde298aff7cbc2edfd3fb6d | Reduce unnecessary DB updates when vectors are already in sync | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Reduces unnecessary database updates when version vectors are already in sync, improving efficiency.
```
> k6 run -e TEST_MODE=even -e CONCURRENCY=10000 test/k6/presence.ts
```
Before:
<img width="1274" height="617" al... | diff --git a/pkg/document/change/checkpoint.go b/pkg/document/change/checkpoint.go
index d4a5ccffd..cdeb62593 100644
--- a/pkg/document/change/checkpoint.go
+++ b/pkg/document/change/checkpoint.go
@@ -97,7 +97,7 @@ func (cp Checkpoint) SyncClientSeq(clientSeq uint32) Checkpoint {
// Forward updates the given checkpoin... | 9 | 1 | 1 | [{"id": "G0", "claim": "The new VersionVector.Equal is too strict: its length check makes vectors that omit zero-value entries compare unequal even when semantically equal, which can cause unnecessary DB updates.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
yorkie-team__yorkie__1513 | yorkie-team/yorkie | 1,513 | defect | 8458791d11fbf126c3f4cd5f2a2c7f3c1b2f0444 | bfbab842f5e6d2831720c90cd4449e8f91ec22e7 | Add configurable cache sizes for MongoDB | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Add configurable cache sizes for MongoDB
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #
**... | diff --git a/cmd/yorkie/server.go b/cmd/yorkie/server.go
index e3e069527..089c5c668 100644
--- a/cmd/yorkie/server.go
+++ b/cmd/yorkie/server.go
@@ -60,6 +60,10 @@ var (
mongoMonitoringSlowQueryThreshold string
mongoCacheStatsEnabled bool
mongoCacheStatsInterval time.Duration
+ mongoClientCac... | 9 | 1 | 1 | [{"id": "G0", "claim": "If CacheStatsEnabled is true and CacheStatsInterval is empty (e.g. set via YAML), ParseCacheStatsInterval() will os.Exit(1); ensureMongoDefaultValue should set the default interval to keep behaviour consistent with the CLI flag default.", "category": "correctness", "verdict": "supported", "prior... | null |
yorkie-team__yorkie__1522 | yorkie-team/yorkie | 1,522 | defect | a910f3e82c133a9f3ab31a9df12baf2a05a5dc77 | 60976f02054bf925e5c3e732ce7aa9bf104336c6 | Refactor leadership to membership | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Refactor leadership to membership
This commit refactored leadership into membership to better reflect
its expanded role in managing cluster memberlist, as introduced in #1502.
Along with the renaming, it has been moved to `B... | diff --git a/server/backend/backend.go b/server/backend/backend.go
index 978aaa84e..9b90c7865 100644
--- a/server/backend/backend.go
+++ b/server/backend/backend.go
@@ -21,6 +21,7 @@ package backend
import (
"context"
+ "errors"
"fmt"
"os"
@@ -33,6 +34,7 @@ import (
memdb "github.com/yorkie-team/yorkie/ser... | 16 | 2 | 1 | [{"id": "G0", "claim": "A nil or empty membership config (as with deployments whose YAML predates the Membership block) reaches membership.New and panics on startup instead of falling back to defaults; guard against nil/empty in backend.New, membership.New or the parsers.", "category": "correctness", "verdict": "uncert... | null |
yorkie-team__yorkie__1539 | yorkie-team/yorkie | 1,539 | defect | 20b8576a30e78b46cb00d47b00a5f2ef8b3c73a0 | d059f3b679567bd5cd40eaf4bbdffae9949fd850 | Improve diagnostics by including details on Webhook failure | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
im angry. Improves error messages in webhook client by including response body when JSON decoding fails or unexpected responses are received.
Changes:
- modified `pkg/webhook/client.go` to read and include response body in e... | diff --git a/pkg/webhook/client.go b/pkg/webhook/client.go
index 5cf241a51..ec91b61cb 100644
--- a/pkg/webhook/client.go
+++ b/pkg/webhook/client.go
@@ -26,6 +26,7 @@ import (
"encoding/json"
goerrors "errors"
"fmt"
+ "io"
"math"
"net/http"
"syscall"
@@ -108,8 +109,13 @@ func (c *Client[Req, Res]) Send(
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Returning the webhook server's raw response body to clients in the error message may expose sensitive data (API keys, tokens, PII, internal details), so the body should not be sent to clients; log it server-side and send a more granular client-facing error like \"invalid json response\" instead.... | null |
yorkie-team__yorkie__154 | yorkie-team/yorkie | 154 | defect | c98eece047915a29468cf6ed4825417e28fdae2f | 31c08e501045e345686238ecb7dbbca3a08182bd | Add PubSub unit tests and code cleanup | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Add PubSub unit tests and code cleanup.
Before implementing etcd-based PubSub, add test code to check whether it works properly.
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
... | diff --git a/yorkie/backend/sync/etcd/client.go b/yorkie/backend/sync/etcd/client.go
index c51c634b8..2f4cb51c5 100644
--- a/yorkie/backend/sync/etcd/client.go
+++ b/yorkie/backend/sync/etcd/client.go
@@ -102,34 +102,6 @@ func (c *Client) Close() error {
return c.client.Close()
}
-type internalLocker struct {
- se... | 1 | 1 | 0 | [{"id": "G0", "claim": "The tests of the memory package details added in pubsub_test.go should be moved from the sync directory into the sync/memory directory (and, analogously, etcd pubsub tests into sync/etcd) so the packages' details can be managed separately.", "category": "maintainability", "verdict": "supported",... | null |
yorkie-team__yorkie__1553 | yorkie-team/yorkie | 1,553 | defect | 9095bf6b87259a17618fc017d70e0b351861b091 | c6f78af97dbed4b12a9f2b58f3cf684722960bdd | Add InvalidateCache RPC for cluster-wide cache invalidation | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This commit introduces InvalidateCache in ClusterService, enabling
targeted cache invalidation by type and key. The backend now broadcasts
invalidation requests across all cluster nodes to ensure cache
consistency in distribut... | diff --git a/admin/client.go b/admin/client.go
index 896fca3a2..057e84eb0 100644
--- a/admin/client.go
+++ b/admin/client.go
@@ -238,6 +238,21 @@ func (c *Client) UpdateProject(
return converter.FromProject(response.Msg.Project), nil
}
+// RotateProjectKeys rotates the API keys of a project.
+func (c *Client) Rota... | 5 | 1 | 1 | [{"id": "G0", "claim": "The `defer clusterClient.Close()` inside the broadcast loop keeps every dialed cluster client connection open until the function returns, which with many cluster nodes could lead to resource exhaustion; close each client inside the loop instead.", "category": "correctness", "verdict": "supported... | null |
yorkie-team__yorkie__1569 | yorkie-team/yorkie | 1,569 | defect | c80c4facbdc56b602eea4386cb9c2b52380399a6 | e81716275c4be20ac6390638ecb4a43ba0fc1e4a | Add channel metrics and heap-based top-N session tracking | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Add metrics for channel information
- channel total: this metric can find in total channel count per hostname and project
- channel session total: this metric can find in total channel session count per hostname and proje... | diff --git a/pkg/heap/heap.go b/pkg/heap/heap.go
new file mode 100644
index 000000000..62f313c1c
--- /dev/null
+++ b/pkg/heap/heap.go
@@ -0,0 +1,149 @@
+/*
+ * Copyright 2025 The Yorkie Authors. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file ex... | 9 | 2 | 2 | [{"id": "G0", "claim": "CleanupExpired only checks m.metrics != nil before dereferencing m.metrics.Metrics, so a caller passing a partially initialized Metrics would panic; tighten the guard to also require m.metrics.Metrics != nil.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
yorkie-team__yorkie__1628 | yorkie-team/yorkie | 1,628 | defect | d202b008d760930228d84fbbe779271ef3c38bc6 | 524e2a4b02f4f47173e80af5996c5e682c76e7f0 | Add role-based authorization to project management | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This change introduces role-based access control for project management.
Projects now support Owner, Admin, and Member roles, and authorization
checks are enforced to ensure that only permitted users can perform
sensitive oper... | diff --git a/server/backend/database/database.go b/server/backend/database/database.go
index 56b92221e..783d6115c 100644
--- a/server/backend/database/database.go
+++ b/server/backend/database/database.go
@@ -122,29 +122,16 @@ type Database interface {
RemoveClusterNodes(ctx context.Context) error
// FindClusterN... | 20 | 3 | 1 | [{"id": "G0", "claim": "When FindMemberInfo fails, the role lookups (GetUserRole/FindUserRole and GetUserRoleByName/FindUserRoleByName) replace the original error with ErrProjectNotFound, masking real database errors; only a genuine member-not-found should be converted (if at all) and other errors should propagate.", "... | null |
yorkie-team__yorkie__1635 | yorkie-team/yorkie | 1,635 | defect | b0fd893263dc6df10d03214b9a69818e6351390b | f37dbd7dc479ebbcb40ef4d0cc58998e404a2cac | Handle invite error for owner accepting invites | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Handle invite error for owner accepting invites
It also updates membership creation logic to use upsert semantics,
ensuring duplicate member records are not created even in edge cases.
**Which issue(s) this PR fixes**:
... | diff --git a/server/backend/database/database.go b/server/backend/database/database.go
index 783d6115c..be835fa00 100644
--- a/server/backend/database/database.go
+++ b/server/backend/database/database.go
@@ -93,9 +93,6 @@ var (
// ErrInviteExpired is returned when the invite is expired.
ErrInviteExpired = errors.I... | 2 | 1 | 0 | [{"id": "G0", "claim": "ErrInviteExpired is duplicated in server/backend/database/database.go as an unused definition after the PR moved it into server/invites/invites.go; remove the database-package definition and keep only the one in the invites package to avoid duplication.", "category": "maintainability", "verdict"... | null |
yorkie-team__yorkie__1636 | yorkie-team/yorkie | 1,636 | defect | e87f9871728444abe3364eb560dc5ef0cfc84f8d | 4495366a95efa6238cc90911c45df917e2c75e60 | Batch cluster.GetChannels to reduce cluster RPC calls | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Refactor ClusterService GetChannels API to support multiple channel retrieval.
- Before: `room-1` request and the `room-1.user-1` request were made separately.
- After: `room-1` request and the `room-1.user-1` request are... | diff --git a/api/docs/yorkie/v1/admin.openapi.yaml b/api/docs/yorkie/v1/admin.openapi.yaml
index 21683921b..c1eca50ff 100644
--- a/api/docs/yorkie/v1/admin.openapi.yaml
+++ b/api/docs/yorkie/v1/admin.openapi.yaml
@@ -1107,6 +1107,9 @@ components:
Wrapper message for `bool`.
The JSON representation ... | 13 | 7 | 2 | [{"id": "G0", "claim": "Clients created in setupHierarchicalChannels() (125-500 per scenario) and in runUserJourney() (one new unclosed client per iteration) are never closed and accumulate across all b.N iterations, invalidating the benchmark measurements and risking OOM; close the clients in both, and consider runnin... | null |
yorkie-team__yorkie__1653 | yorkie-team/yorkie | 1,653 | defect | 93d46d137597f883bcd3af25d9d8aed132599ec3 | 426a75af56d785ba69201f0c0519058bf561657b | Add channel session count caching in GetChannels API | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This PR adds caching for channel session counts in the `GetChannels` API to reduce network overhead between AdminServer and ClusterServer.
- Cache Implementation
- Add `SessionCount` cache field to `cache.Manager` using `LR... | diff --git a/server/backend/backend.go b/server/backend/backend.go
index 82871aef4..f370b8201 100644
--- a/server/backend/backend.go
+++ b/server/backend/backend.go
@@ -107,9 +107,11 @@ func New(
// 02. Create the cache manager, pubsub, lockers, and background task manager.
cacheManager, err := cache.New(cache.Op... | 2 | 1 | 0 | [{"id": "G0", "claim": "The TTL validation error message references a `--session-count-cache-ttl` CLI flag that is not registered (the field is set via YAML), and asks to remove or correct the reference to avoid confusing users.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
yorkie-team__yorkie__1667 | yorkie-team/yorkie | 1,667 | defect | 416ebbd17ba09852e76f9e0aeebc1d54ca4b7f12 | 3d9db4366f55119316c1f67202c960194df8a188 | Add max concurrent cluster RPCs configuration | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Introduces a new configuration option for the maximum number of concurrent cluster RPC calls, preventing potential goroutine explosion when cluster peers are slow or unresponsive.
- The new flag `--max-concurrent-cluster-rpcs... | diff --git a/cmd/yorkie/server.go b/cmd/yorkie/server.go
index 334ecf909..353085a29 100644
--- a/cmd/yorkie/server.go
+++ b/cmd/yorkie/server.go
@@ -54,8 +54,10 @@ var (
channelSessionCleanupInterval time.Duration
channelSessionCountCacheTTL time.Duration
channelSessionCountCacheSize int
- clusterRPCTimeout ... | 5 | 3 | 1 | [{"id": "G1", "claim": "TestSemaphoreFanOutPattern re-implements the fan-out/semaphore pattern inline instead of calling backend.FanOut, so a regression in FanOut would go undetected; consider adding a test that calls backend.FanOut directly.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "... | null |
yorkie-team__yorkie__1674 | yorkie-team/yorkie | 1,674 | defect | 550adf001e1447b5dcc33bcabde291a8b3808484 | 6aa0519182ab0d29f8964d5c52efb1a6225f1a08 | Enhance configuration tests and refactor backend config initialization | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Adds assertions for new channel session configuration parameters in the config tests.
- Refactors the backend and related configurations in test files to utilize shared helper functions for cleaner and more maintainable code. ... | diff --git a/server/backend/config.go b/server/backend/config.go
index 1baf6f56e..5b83b7631 100644
--- a/server/backend/config.go
+++ b/server/backend/config.go
@@ -164,18 +164,18 @@ func (c *Config) Validate() error {
c.ChannelSessionCountCacheSize,
)
}
- if c.MaxConcurrentClusterRPCs <= 0 {
- return fmt.Err... | 3 | 1 | 1 | [{"id": "G0", "claim": "TestHousekeepingConfig() omits CompactionMinChanges, leaving it at zero for the test files that call the helper directly, and the reviewer asks to include it in the helper or, if intentional, to add a comment.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "i... | null |
yorkie-team__yorkie__1677 | yorkie-team/yorkie | 1,677 | defect | eb4e197e7df4cc593bd34ce24eca1da2a89ea4f8 | 012c76b4a19632bbee3562ea31c2fa2a58cf2c73 | Optimize FindCompactionCandidates query with compound index | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This PR optimizes the `FindCompactionCandidates` query which was causing periodic slow query logs.
**Problem:**
- The existing query used `_id` index for scanning and filtered `server_seq` condition **after** fetching documen... | diff --git a/server/backend/database/database.go b/server/backend/database/database.go
index 9b1ba580a..cea25f144 100644
--- a/server/backend/database/database.go
+++ b/server/backend/database/database.go
@@ -254,8 +254,9 @@ type Database interface {
ctx context.Context,
candidatesLimit int,
compactionMinChang... | 5 | 3 | 0 | [{"id": "G0", "claim": "The compaction log line in server.go prints only currentLastID and omits currentLastServerSeq even though the cursor is now a compound (server_seq, _id) pair, making pagination harder to debug in production; include currentLastServerSeq in the log.", "category": "maintainability", "verdict": "su... | null |
yorkie-team__yorkie__1702 | yorkie-team/yorkie | 1,702 | defect | 3f8248fd700804eae26e09c54cac90a9b97d5982 | f99ffd8d69cc036a619c87b0ab2fe159e8fdd43d | Add CompactDocumentByAdmin RPC to AdminService | ## Summary
- Add `CompactDocumentByAdmin` RPC to AdminService with `force` flag support
- Add `force` field to `ClusterServiceCompactDocumentRequest` for force compaction on attached documents
- Propagate `force` parameter through the full call chain: AdminService → packs.Compact
- Support single-server mode by callin... | diff --git a/api/docs/yorkie/v1/admin.openapi.yaml b/api/docs/yorkie/v1/admin.openapi.yaml
index 72c3b8100..8e8fb689a 100644
--- a/api/docs/yorkie/v1/admin.openapi.yaml
+++ b/api/docs/yorkie/v1/admin.openapi.yaml
@@ -34,6 +34,18 @@ paths:
$ref: '#/components/responses/connect.error'
tags:
- yor... | 3 | 3 | 1 | [{"id": "G0", "claim": "In CompactDocumentByAdmin, docInfo is read before the document lock is acquired, so another writer can advance server state in that window and compaction may run using stale docInfo; acquire the lock first, then fetch docInfo.", "category": "correctness", "verdict": "supported", "priority": "P1"... | null |
yorkie-team__yorkie__1714 | yorkie-team/yorkie | 1,714 | defect | 2052f16204a2845767a64dd1f23d6728ed58a888 | 3339430fd42d242972e5c628afd1d2a58bf7e036 | Add document epoch for compaction-aware client recovery | ## Summary
- Add an `Epoch` field (monotonically increasing int64) to `DocInfo` and `ClientDocInfo` that increments on every document compaction
- Detect stale clients in `preparePack` by comparing epochs before `serverSeq` validation, returning a dedicated `ErrEpochMismatch` (FailedPrecondition) instead of the ambigu... | diff --git a/docs/design/README.md b/docs/design/README.md
index afc4769ae..dc70c0398 100644
--- a/docs/design/README.md
+++ b/docs/design/README.md
@@ -31,6 +31,7 @@
- [Membership Management](membership.md): Leader-member structure for managing cluster node lifecycle
- [PubSub](pub-sub.md): Client-side event sharing... | 9 | 5 | 1 | [{"id": "G0", "claim": "The design doc says compaction always resets `serverSeq` to 1, but the implementation can reset it to 0 when no compacted change is stored, so the doc should say `0 or 1` to avoid reader confusion.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
yorkie-team__yorkie__1722 | yorkie-team/yorkie | 1,722 | defect | 44b7ac78a5e89669e87ebb8c6e4dbf9bf83d3b3e | 04f470a9d0e9cf00b8081f371829b9710609d6ce | Fix convergence bugs in concurrent tree merge/split | ## Summary
Fix convergence bugs in `CRDTTree.Edit` for concurrent merge/split operations. Enable 7 of 10 previously-skipped integration tests.
## Changes
### Merge fixes
**Split sibling cascade delete** (`collectBetween`): When an element node is deleted, cascade to split siblings via `InsNextID` chain if the versi... | diff --git a/docs/design/README.md b/docs/design/README.md
index dc70c0398..50129ece0 100644
--- a/docs/design/README.md
+++ b/docs/design/README.md
@@ -17,6 +17,7 @@
- [Garbage Collection](garbage-collection.md): Removing tombstones in CRDT
- [Garbage Collection for Text Type](gc-for-text-type.md): Garbage collectio... | 6 | 5 | 2 | [{"id": "G0", "claim": "The design doc still documents the reverted detach-first approach as 'Fix 1' and attributes visible-length updates to RemoveChild, so it should be rewritten to match the shipped merge behavior (toBeMergedNodes guard plus leftmost redirect).", "category": "documentation", "verdict": "supported", ... | null |
yorkie-team__yorkie__1723 | yorkie-team/yorkie | 1,723 | defect | a50c968f32fc0bee4f09c8bca86fdcbcadc50227 | 2383ada24d9beed6fd19b837d76cb80baeb76544 | Fix split sibling convergence via position forwarding | ## Summary
- Add `advancePastUnknownSplitSiblings` to follow InsNextID chain past element-type split siblings not covered by the editor's version vector
- Insert the forwarding step between position resolution (Step 01) and `collectBetween` (Step 02) in `Tree.Edit`
- Skip advancement when `leftNode == parent` (leftmos... | diff --git a/docs/design/concurrent-merge-split.md b/docs/design/concurrent-merge-split.md
index 4fc976657..1c7d3dc53 100644
--- a/docs/design/concurrent-merge-split.md
+++ b/docs/design/concurrent-merge-split.md
@@ -100,9 +100,9 @@ All 27 cases from `tree.md` converge:
| Contained | split + insert (at split position)... | 6 | 2 | 1 | [{"id": "G0", "claim": "Step 3-2 in docs/design/tree.md says nodes are marked with tombstones \"in the IndexTree\", which is imprecise because tombstones are applied to CRDT nodes and IndexTree traversal/length only reflects that state.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "... | null |
yorkie-team__yorkie__1724 | yorkie-team/yorkie | 1,724 | defect | 1a6e36b607aec50e86ef9bd5dc00e78ef256cd3c | 8b801e8e3ab9150657efda5be352a4cae5d0c1d4 | Fix multi-level split + merge divergence via mergedFrom | ## Summary
- Add `mergedFrom` runtime-only field to `TreeNode` to track children moved by merge operations
- `SplitElement` skips merge-moved children (keeps them in original node instead of split sibling)
- Fix the last remaining convergence issue: multi-level split (splitLevel ≥ 2) + cross-boundary merge
- Enable th... | diff --git a/docs/design/concurrent-merge-split.md b/docs/design/concurrent-merge-split.md
index 3a514beb9..a52f675e7 100644
--- a/docs/design/concurrent-merge-split.md
+++ b/docs/design/concurrent-merge-split.md
@@ -101,7 +101,7 @@ All 27 cases from `tree.md` converge:
| Contained | split + delete contents | ✅ | exis... | 4 | 4 | 3 | [{"id": "G0", "claim": "SplitText creates a fresh right text node without copying mergedFrom, so if the split boundary lands inside a merge-moved text node the right fragment loses the marker and can still be relocated into the split sibling, reopening the divergence this fix is trying to close.", "category": "correctn... | null |
yorkie-team__yorkie__198 | yorkie-team/yorkie | 198 | defect | e2fa1165903fb38e866d6c3f5fb95264ce2745ec | 562f0dfdf47592965fe4b9639b8206e47781bdab | Merge PubSub, LockerMap into Coordinator | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Merge PubSub, LockerMap into Coordinator.
The sync package started with PubSub and Locker, but its role was increased by adding MemberMap to support cluster mode. We added `Coordinator` type to collect coordination functions s... | diff --git a/test/stress/sync_stress_test.go b/test/stress/sync_stress_test.go
index a245fc311..01a8a0ec1 100644
--- a/test/stress/sync_stress_test.go
+++ b/test/stress/sync_stress_test.go
@@ -35,7 +35,7 @@ func TestSyncStress(t *testing.T) {
t.Run("lock/unlock stress test", func(t *testing.T) {
start := time.Now(... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'Proposal Details' section of design/pub-sub.md still mentions the `PubSub.Publish(...)` function, which this PR's merge of PubSub into Coordinator supersedes, and the reviewer suggests fixing the document in this PR.", "category": "documentation", "verdict": "supported", "priority": "P2", "... | null |
yorkie-team__yorkie__211 | yorkie-team/yorkie | 211 | defect | 7aafb1d453b4d92e213b36f5a0bde3048f0036fc | a134af26c74355d8cc1083a683c1c338cb8488ba | Check authorization in WatchDocument | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Check authorization in WatchDocument.
If an error occurs before starting the watch, there is no way to deliver
the error when waiting synchronously.
So, watch-started event is added and start the watch asynchronously.
*... | diff --git a/client/client.go b/client/client.go
index 3e3f28c23..4a6f0c5b5 100644
--- a/client/client.go
+++ b/client/client.go
@@ -90,6 +90,7 @@ type WatchResponseType string
// The values below are types of WatchResponseType.
const (
+ WatchStarted WatchResponseType = "watch-started"
DocumentsChanged Watch... | 2 | 2 | 0 | [{"id": "G0", "claim": "The '// 01. PeersChanged is triggered as a new client watches the document' comment is stale because WatchStarted is what fires when the actual watching is guided, and the test's name should be changed to match.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "p... | null |
yorkie-team__yorkie__212 | yorkie-team/yorkie | 212 | defect | a9c60b25a8530be7105f180c49a489de645c4a70 | d76ba51b4f80fe9df25726915474b3455e96463b | Add authorization webhook retry logic | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
When the webhook is executed, it should be able to safely retry the request based on the webhook server response.
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<is... | diff --git a/test/integration/auth_webhook_test.go b/test/integration/auth_webhook_test.go
index a41be96fb..048ef5a35 100644
--- a/test/integration/auth_webhook_test.go
+++ b/test/integration/auth_webhook_test.go
@@ -57,6 +57,30 @@ func newAuthServer(t *testing.T) (*httptest.Server, string) {
})), token
}
+func ne... | 9 | 9 | 1 | [{"id": "G0", "claim": "The new backend config fields should carry JSON tags like the neighbouring fields, and the wait-interval field's name should express its unit (suggested AuthorizationWebhookMaxWaitIntervalSec).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
yorkie-team__yorkie__230 | yorkie-team/yorkie | 230 | defect | f7734e8a98eb5532d0ecec037c45f3a28ef0f318 | 846ba6321145f024c346e7543e3b9deb3ad55573 | Implement etcd config validation | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Check if endpoints, username, password is empty
- Add config validation test in etcd/client_test.go
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue numbe... | diff --git a/test/helper/helper.go b/test/helper/helper.go
index 4df05aa9c..1c65fd9b2 100644
--- a/test/helper/helper.go
+++ b/test/helper/helper.go
@@ -52,6 +52,8 @@ const (
// Below are the values of the related ETCD config.
var (
ETCDEndpoints = []string{"localhost:2379"}
+ ETCDUserName = "username"
+ ETCDPassw... | 6 | 6 | 1 | [{"id": "G0", "claim": "The test helper defines ETCD username/password authentication values although authentication is not enabled on the etcd used for testing, so this authentication information appears unnecessary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
yorkie-team__yorkie__231 | yorkie-team/yorkie | 231 | defect | f7734e8a98eb5532d0ecec037c45f3a28ef0f318 | 865dd113bfadf3f4ea09bc326aa829910cb00d13 | Resolve deprecated linter warnings | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Remove `interfacer`
- Replace `golint` with `revive`
- Update `golangci-lint` version to 1.41.1
+ `golangci-lint` supports `revive` since 1.37.0 ([source](https://golangci-lint.run/usage/linters/#disabled-by-default-linter... | diff --git a/.golangci.yml b/.golangci.yml
index e50ceb971..6287b95d3 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -9,10 +9,9 @@ linters:
- gocyclo
- gofmt
- goimports
- - golint
+ - revive
- goprintffuncname
- gosec
- - interfacer
- lll
- misspell
- nakedret
diff -... | 1 | 1 | 0 | [{"id": "G0", "claim": "In internalLocker.Unlock, return the error from il.session.Close() directly instead of assigning it to a local variable first, as the change made for revive is not needed here.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
yorkie-team__yorkie__312 | yorkie-team/yorkie | 312 | defect | acdefd4ba30b79ae8cc7aa761bbcbc2da89dd90a | 4f5f18f552df9ff9cfba95fca622d676dde0ecf7 | Add direction to ListDocuments API | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Add direction to ListDocuments API to navigate to the next and previous pages.
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste li... | diff --git a/api/admin.pb.go b/api/admin.pb.go
index 85c278d42..94969eba7 100644
--- a/api/admin.pb.go
+++ b/api/admin.pb.go
@@ -29,6 +29,7 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ListDocumentsRequest struct {
PreviousId string `protobuf:"bytes,1,opt,name=previo... | 2 | 1 | 0 | [{"id": "G0", "claim": "Restructure the docInfo pagination test in yorkie/backend/db/memory/db_test.go along the lines of the suggested code to improve its readability.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Does MongoDB work in the same order (... | null |
yorkie-team__yorkie__335 | yorkie-team/yorkie | 335 | defect | e87d9d351ed08d5f305f6090bc1c301bba92057e | eab887fb1e895dfa1331c55556ec55334cc806f9 | Introduce generics to cache.go | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Introduce generics to cache.go
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Address #304
**Special ... | diff --git a/Makefile b/Makefile
index f3f3269d8..c3f712cdc 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ fmt: ## applies format and simplify codes
gofmt -s -w $(GO_SRC)
lint: ## runs the golang-ci lint, checks for lint violations
- golangci-lint run ./...
+ golangci-lint run ./...
test: ## runs integ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The generic type constraint on LRUExpireCache is too narrow; since the cache does not manipulate the value type it should be constrained to `any` (suggested `type LRUExpireCache[V any] struct {`).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
yorkie-team__yorkie__336 | yorkie-team/yorkie | 336 | defect | e87d9d351ed08d5f305f6090bc1c301bba92057e | efd4dba74a4bb88302b3626172cbed041d0a05f3 | Introduce generics to priority queue | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Introduce generics to priority queue
To apply generics to priority queue, make interface "ComparableValue"
which is a 'Value' and comaparable and apply generic to all structs
and functions refer to 'Value'.
**Which issue(... | diff --git a/pkg/document/json/rht_pq_map.go b/pkg/document/json/rht_pq_map.go
index e15a374c9..0e60da832 100644
--- a/pkg/document/json/rht_pq_map.go
+++ b/pkg/document/json/rht_pq_map.go
@@ -69,14 +69,14 @@ func (n *RHTPQMapNode) Element() Element {
// Max Heap, the recently inserted value from the logical clock is ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Release() must compare with Less() instead of ==, since == on a comparable value can mistake different values for equal.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
yorkie-team__yorkie__353 | yorkie-team/yorkie | 353 | defect | e50b8f48e612cb4d2ad82c13ab72784635a40cf0 | f509cc684307f92e60c462820fd69e28628b37f3 | Implement the option to change maximum message size the client can receive | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Implement the option to change maximum message size the client can receive.
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link ... | diff --git a/client/client.go b/client/client.go
index fc98c2cee..584c0840d 100644
--- a/client/client.go
+++ b/client/client.go
@@ -128,6 +128,10 @@ func New(opts ...Option) (*Client, error) {
dialOptions = append(dialOptions, grpc.WithUnaryInterceptor(authInterceptor.Unary()))
dialOptions = append(dialOptions, gr... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the option field to MaxCallRecvMsgSize so users can match it to the MaxCallRecvMsgSize feature in the gRPC reference.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
yorkie-team__yorkie__354 | yorkie-team/yorkie | 354 | defect | f11d9336454042c5476c0806468f5c46cd77b566 | 0605f589e0c9e44073b7d2a3491436ccaf1ffb54 | Apply gRPC error details to update project api | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- [x] deliver information for error details to [where the error convert to status](https://github.com/yorkie-team/yorkie/blob/f6a4aa15ea4cf3a13ae1288e1f9b191ac536aee0/server/grpchelper/status.go#L37)
- delivered via custom e... | diff --git a/api/types/updatable_project_fields.go b/api/types/updatable_project_fields.go
index ebfc022d0..1428273d9 100644
--- a/api/types/updatable_project_fields.go
+++ b/api/types/updatable_project_fields.go
@@ -23,6 +23,7 @@ import (
"regexp"
"github.com/go-playground/validator/v10"
+ "google.golang.org/gen... | 2 | 2 | 1 | [{"id": "G0", "claim": "ErrorWithDetails should use generics instead of an untyped details interface{} field, which erases type information and forces unchecked type assertions at the call site.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ErrEmpty... | null |
yorkie-team__yorkie__399 | yorkie-team/yorkie | 399 | defect | 513582cafbd37124220e8b0221471f818250306c | fee5cd30641cb3c508fa46e5d79f82d71fa143b1 | Add fields validation when creating or updating the project | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- [x] Add project name validation when creating a project
- [x] Add AuthWebhookURL validation when updating a project
- [x] Print error details when creating/updating a project with command
AS-IS
- don't know which fields ... | diff --git a/admin/client.go b/admin/client.go
index 2c5bf1bc0..2491a9b91 100644
--- a/admin/client.go
+++ b/admin/client.go
@@ -18,10 +18,13 @@ package admin
import (
"context"
+ "fmt"
"go.uber.org/zap"
+ "google.golang.org/genproto/googleapis/rpc/errdetails"
"google.golang.org/grpc"
"google.golang.org/gr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The admin client should return an error instead of printing field-violation details itself; the actual I/O output should be handled in the CLI (cmd packages) for consistency.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
yorkie-team__yorkie__407 | yorkie-team/yorkie | 407 | defect | 486a2698f5533d2d9432db0f02c909d632d6293a | b55a5c0eafa7303f61bf506ff60d798456cc89dd | Add signup validation | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Add signup validation.
The rule of username is applied the same as the project name
because the username can be used as a slug.
Slug contains only `ALPHA / DIGIT / "-" / "." / "_" / "~"` [ref) URI Unreserved Characters](ht... | diff --git a/api/types/create_project_fields.go b/api/types/create_project_fields.go
index 7d1deb83a..4d3ea35bb 100644
--- a/api/types/create_project_fields.go
+++ b/api/types/create_project_fields.go
@@ -24,7 +24,7 @@ import (
// CreateProjectFields is a set of fields that use to create a project.
type CreateProject... | 3 | 2 | 1 | [{"id": "G0", "claim": "Rename the variable `testRegexs` to `testRegexes` in hasAlphaNumSpecial.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not have to include the Protobuf-generated files (api/yorkie/v1/*.pb.go).", "... | null |
yorkie-team__yorkie__441 | yorkie-team/yorkie | 441 | defect | 7f7ea6097cd43dba612d14df09e946a298717abf | e1544c9abdc030fc1935ada26dc273fcb6585643 | Fix the value type of Counter and remove double type from Counter | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
To prevent dynamic type change of Counter, explicit type specification is required in Counter constructor. Moreover, double type is removed in Counter to mitigate confusion.
**Which issue(s) this PR fixes**:
<!--
*Automaticall... | diff --git a/api/converter/converter_test.go b/api/converter/converter_test.go
index b69138fff..33cb30b9b 100644
--- a/api/converter/converter_test.go
+++ b/api/converter/converter_test.go
@@ -27,6 +27,7 @@ import (
"github.com/yorkie-team/yorkie/api/types"
api "github.com/yorkie-team/yorkie/api/yorkie/v1"
"githu... | 1 | 1 | 0 | [{"id": "G0", "claim": "NewCounter and Increase duplicate the same logic that casts the given value to the predefined counter type; the reviewer asks to define castInt and castLong helpers and remove the duplicated logic from both functions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
yorkie-team__yorkie__477 | yorkie-team/yorkie | 477 | defect | 101df332f1c4f6fd95e9e8828aeeae44631fcf31 | 630596a7bce3ae7687c30644e29cf12c4e6aa06f | Add ClientDeactivateThreshold field in admin CLI project list | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
1. Add `ClientDeactivateThreshold` field in project list admin CLI.
`ClientDeactivateThreshold` field was omitted in project list in admin CLI.
~~2. Set minimum value limit on `ClientDeactivateThreshold` by restricting stri... | diff --git a/cmd/yorkie/project/list.go b/cmd/yorkie/project/list.go
index 578ec64a7..834dca480 100644
--- a/cmd/yorkie/project/list.go
+++ b/cmd/yorkie/project/list.go
@@ -64,6 +64,7 @@ func newListCommand() *cobra.Command {
"SECRET KEY",
"AUTH WEBHOOK URL",
"AUTH WEBHOOK METHODS",
+ "CLIENT DEACTIVA... | 1 | 1 | 1 | [{"id": "G0", "claim": "The hour-prefix requirement in timeDurationFormatRegexString is out of scope for a variable that only validates time duration string format, so the change should trust users to set appropriate values and not enforce a leading `1h`.", "category": "design", "verdict": "supported", "priority": "P1"... | null |
yorkie-team__yorkie__479 | yorkie-team/yorkie | 479 | defect | bc3f59b6b1c7370baebb7c803b44c7565002a50c | 79e2f9c5dc52624b533bc6c46f3f10f90479aa60 | Lock watchDocuments depending on the client | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
If a client requests to attach to multiple documents simultaneously,
the existing connection will be disconnected and reconnected.
Depending on the order of the published events, problems may occur on the client.
If the `... | diff --git a/server/backend/sync/memory/pubsub.go b/server/backend/sync/memory/pubsub.go
index b28d554a8..c5d4e8593 100644
--- a/server/backend/sync/memory/pubsub.go
+++ b/server/backend/sync/memory/pubsub.go
@@ -200,7 +200,8 @@ func (m *PubSub) Publish(
if logging.Enabled(zap.DebugLevel) {
logging.From(ct... | 3 | 3 | 3 | [{"id": "G0", "claim": "If `s.watchDocs` returns an error, the lock is never released, so `locker.Unlock` should be moved (via defer) to just below `locker.Lock`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`locker.Unlock` may not run when the st... | null |
yorkie-team__yorkie__483 | yorkie-team/yorkie | 483 | defect | bc3f59b6b1c7370baebb7c803b44c7565002a50c | 6abacb916d4e2a3ee1d72283c05b0db65f455f89 | Allow uppercase letters(A-Z) for document keys | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
To support capital letters, a validation regExp is modified.
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
... | diff --git a/internal/validation/validation.go b/internal/validation/validation.go
index 7847638b4..55080d955 100644
--- a/internal/validation/validation.go
+++ b/internal/validation/validation.go
@@ -32,7 +32,7 @@ const (
// NOTE(DongjinS): regular expression is referenced unreserved characters
// (https://datatra... | 1 | 1 | 1 | [{"id": "G0", "claim": "Define a separate regex for the document key instead of modifying the existing slug regex, since the slug regex reflects URL slug best practices.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
yorkie-team__yorkie__522 | yorkie-team/yorkie | 522 | defect | 969e50939710629c54da13d2581111512b80530f | 459a0872782f0a119a121459472ec55ceeb11100 | Remove panic method in crdt text | Remove panic method in crdt text
- go sdk crdt text has the condition that cause panic
- remove panic prevent shutdown server when crdt text error occurred
<!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linke... | diff --git a/pkg/document/crdt/array.go b/pkg/document/crdt/array.go
index df5be3e4e..aa7d293f6 100644
--- a/pkg/document/crdt/array.go
+++ b/pkg/document/crdt/array.go
@@ -17,6 +17,8 @@
package crdt
import (
+ "fmt"
+
"github.com/yorkie-team/yorkie/pkg/document/time"
)
@@ -95,16 +97,20 @@ func (a *Array) Stru... | 2 | 1 | 0 | [{"id": "G0", "claim": "Removing all panics from crdt.Text also requires removing the panics in RGATreeSplit (rga_tree_split.go:49, 351, 367); the SplayTree panic, which is also used by Array, is better deferred to a separate PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_exist... | null |
yorkie-team__yorkie__548 | yorkie-team/yorkie | 548 | defect | 0ce364b62d487aa1a6cc26f059f3eb6cfefb19eb | 001ca09b27f44559288ce6367e88bd8b4855e264 | Add TLS Option & Insecure Flag in Admin CLI | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Add TLS option & insecure flag in admin CLI.
This is to set TLS connectivity between hosted server (`api.yorkie.dev`) and admin CLI.
Also, `--insecure` global flag is added to disable the TLS connection of the client when nee... | diff --git a/admin/client.go b/admin/client.go
index b07821a76..bf7a29610 100644
--- a/admin/client.go
+++ b/admin/client.go
@@ -22,8 +22,11 @@ import (
"fmt"
"strings"
+ "crypto/tls"
+
"go.uber.org/zap"
"google.golang.org/grpc"
+ "google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/inse... | 2 | 2 | 1 | [{"id": "G0", "claim": "The status-code assertion in TestAdminRPCServerBackend was replaced by a bare assert.Error without a stated reason; the check that the error is codes.Unauthenticated should be kept.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
yorkie-team__yorkie__586 | yorkie-team/yorkie | 586 | defect | 1b557be51471337d3c6949d5f9ed5634b3a677e2 | 9141a7d3f9a0cdb4accb8381cdab63083fe26d63 | Cache project info | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Cache ProjectInfo to improve response time.
For caching I used the existing LRU cache implementation because it seems there is no external cache layer like redis.
In cluster mode, each node has its own cache, so there is st... | diff --git a/server/rpc/interceptors/context.go b/server/rpc/interceptors/context.go
index 62cb393c0..298bdbe59 100644
--- a/server/rpc/interceptors/context.go
+++ b/server/rpc/interceptors/context.go
@@ -19,7 +19,12 @@ package interceptors
import (
"context"
+ "fmt"
"strings"
+ "time"
+
+ "github.com/yorkie-tea... | 3 | 3 | 3 | [{"id": "G0", "claim": "The project info cache size constant is 1, so the cache only holds one project at a time, which the reviewer asks whether it is intended.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "After the caching change, the `authoriza... | null |
yorkie-team__yorkie__596 | yorkie-team/yorkie | 596 | defect | 1b557be51471337d3c6949d5f9ed5634b3a677e2 | 78825d314b1b2272a495d5b625cf16d99fb7ffcb | Remove panic from crdt.RGATreeList | **What this PR does / why we need it**:
This removes panic in `crdt/rga_tree_list` that should be avoided in production.
**Which issue(s) this PR fixes**:
Related to #497
**Special notes for your reviewer**:
I guess it would be good to add some test cases for errors.
Would you mind giving me some comments ab... | diff --git a/api/converter/from_bytes.go b/api/converter/from_bytes.go
index 6f0b6e8fa..04662aded 100644
--- a/api/converter/from_bytes.go
+++ b/api/converter/from_bytes.go
@@ -147,7 +147,9 @@ func fromJSONArray(pbArr *api.JSONElement_JSONArray) (*crdt.Array, error) {
if err != nil {
return nil, err
}
- elem... | 4 | 3 | 1 | [{"id": "G0", "claim": "ElementRHT.DeleteByCreatedAt's error should avoid the \"failed to\" wording and follow the Uber Go style guide's error-wrapping practice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Related tests should be added for th... | null |
yorkie-team__yorkie__598 | yorkie-team/yorkie | 598 | defect | c6ed71ba24040bac694028be9e18be022795a0db | fd8f68d1957efc799e509d0784f3cc027c2db485 | Remove panic from crdt counter | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Remove the panic methods in `crdt/counter.go`
- Before, there were panic methods to reveal errors in development environment, but because it risks stopping the server in production, so those panics were replaced with error metho... | diff --git a/api/converter/from_bytes.go b/api/converter/from_bytes.go
index 04662aded..3c18f9971 100644
--- a/api/converter/from_bytes.go
+++ b/api/converter/from_bytes.go
@@ -267,12 +267,19 @@ func fromJSONCounter(pbCnt *api.JSONElement_Counter) (*crdt.Counter, error) {
if err != nil {
return nil, err
}
+ coun... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `unsupported type` error message duplicated across several places in pkg/document/crdt/counter.go should be extracted into a shared error type `ErrUnsupportedType`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
yorkie-team__yorkie__615 | yorkie-team/yorkie | 615 | defect | cf74a806a0c71d6480d08cb5a358b6666bb39bb6 | bc8fb3b8e5a2c447050d269c99046a7ea4326c3c | Fix treePos calculating logic for text node | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Fix `toTreePos` to calculate treePos of text node correctly
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
... | diff --git a/pkg/document/crdt/tree.go b/pkg/document/crdt/tree.go
index a29d26d5f..149490828 100644
--- a/pkg/document/crdt/tree.go
+++ b/pkg/document/crdt/tree.go
@@ -831,24 +831,22 @@ func (t *Tree) toTreePos(pos *TreePos) *index.TreePos[*TreeNode] {
Offset: 0,
}
} else {
- leftSiblingOffset, err := parent... | 2 | 2 | 1 | [{"id": "G0", "claim": "toTreePos discards the error from FindOffset (returning nil) instead of returning it to the caller.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When a tree with tombstones is loaded from a snapshot loaded from the server, ... | null |
yorkie-team__yorkie__624 | yorkie-team/yorkie | 624 | defect | da12ec0aae786765c58f734d7a4e53bbf473cfec | 05479b1757bbd348628b464adabd00e299f277da | Support multi-level and partial element selection | **What this PR does / why we need it**:
Support the below features by introducing tree traversal to Tree.Edit.
- Select multiple nodes in a multi-level range.
- Select a part of nodes (ex. selecting only the closing tag of the node).
It also removes every skip in test cases for Tree.
However, after introducing t... | diff --git a/pkg/document/crdt/tree.go b/pkg/document/crdt/tree.go
index 6533c5b6e..209b6736a 100644
--- a/pkg/document/crdt/tree.go
+++ b/pkg/document/crdt/tree.go
@@ -285,10 +285,9 @@ func (n *TreeNode) SplitElement(offset int) (*TreeNode, error) {
}
// remove marks the node as removed.
-func (n *TreeNode) remove... | 3 | 3 | 2 | [{"id": "G0", "claim": "The same multi-level and partial element selection task should also be applied to the JS SDK, since fully testing the Tree feature's integration with ProseMirror is crucial.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The Style t... | null |
yorkie-team__yorkie__639 | yorkie-team/yorkie | 639 | defect | 3ff801a81d8f1e9c65f7ecc96d95c38614eed8c5 | d7ab7cd877cd9e17f38478714179b5482f719ff9 | Support concurrent formatting of Text | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Currently, we are unable to check for concurrent cases when applying the `Text.Style` operation. This pull request introduces a `map` called `latestCreatedAtMapByActor` to track the causality between the operations of the two cli... | diff --git a/api/converter/from_pb.go b/api/converter/from_pb.go
index dcc119b6f..a1b3f623e 100644
--- a/api/converter/from_pb.go
+++ b/api/converter/from_pb.go
@@ -440,6 +440,12 @@ func fromStyle(pbStyle *api.Operation_Style) (*operations.Style, error) {
if err != nil {
return nil, err
}
+ createdAtMapByActor, ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new `created_at_map_by_actor` field should be added at the end of the Style operation message (field number 6) instead of being inserted in the middle, to preserve the protocol's wire compatibility with the previous version.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
yorkie-team__yorkie__749 | yorkie-team/yorkie | 749 | defect | 3b712df6c3d03029a1cf565070f0cfc2bf960abe | 371c0bd95a6892335823be6c16cf67f40ef96c04 | FIx Finding Housekeeping Candidates and Modify Housekeeping Structure | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
- Refactored the `FindDeactivateCandidates` function, moving it from the Database Layer to the Service Layer
- Due to the change in the function's layer, the Housekeeping-related tests from the Database Layer have been reloc... | diff --git a/server/backend/database/memory/database.go b/server/backend/database/memory/database.go
index 7a45335cb..1b47a4f7c 100644
--- a/server/backend/database/memory/database.go
+++ b/server/backend/database/memory/database.go
@@ -224,8 +224,8 @@ func (d *DB) CreateProjectInfo(
return info, nil
}
-// listPro... | 3 | 3 | 0 | [{"id": "G0", "claim": "The error check after `opts.SetLimit` in the mongo `listProjectInfos` looks useless and should have no reason to exist.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The memDB cycling query may repeat for pageSize minus ... | null |
yorkie-team__yorkie__752 | yorkie-team/yorkie | 752 | defect | 6936d2bc9ec4cdd1a33167457b22391ed1dc89f1 | 3d2207011e3bdf1c4ba47ed37170fdb1752f4dda | Fix RHT.Remove and Add test code | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
* Fixed nil pointer dereference error in `RHT.Remove`.
* Fixed `RHT.Len` to exclude the removed elements.
* Fixed `RHT.Nodes` to exclude the removed elements.
* Fixed an error in `RHT.Set` when modifying an already deleted key... | diff --git a/pkg/document/crdt/rht.go b/pkg/document/crdt/rht.go
index b7784020f..8410aebfe 100644
--- a/pkg/document/crdt/rht.go
+++ b/pkg/document/crdt/rht.go
@@ -48,7 +48,7 @@ func (n *RHTNode) Remove(removedAt *time.Ticket) {
}
func (n *RHTNode) isRemoved() bool {
- return n.removedAt != nil
+ return n.removedA... | 4 | 4 | 1 | [{"id": "G0", "claim": "The added removedAt/updatedAt comparison in RHTNode.isRemoved should be explained or simplified (suggesting an isRemoved flag instead).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Whether a node is removed could be expressed wi... | null |
yorkie-team__yorkie__755 | yorkie-team/yorkie | 755 | defect | 6936d2bc9ec4cdd1a33167457b22391ed1dc89f1 | cd8f9be232a145fa52405635fcd63e3e930a74bb | Add API for Retrieving All Documents | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This PR introduces additional functionality required for the creation and retrieval of documents through REST API. Specifically, it adds the following enhancements:
* Authentication via Project Secret Key: Previously, authentica... | diff --git a/server/backend/database/database.go b/server/backend/database/database.go
index be0118e2f..468c05e30 100644
--- a/server/backend/database/database.go
+++ b/server/backend/database/database.go
@@ -68,6 +68,12 @@ type Database interface {
publicKey string,
) (*ProjectInfo, error)
+ // FindProjectInfoB... | 6 | 3 | 2 | [{"id": "G0", "claim": "Rename the comment and identifier 'FindUserInfoById' to 'FindUserInfoByID' (suggestion block).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetProjectFromSecretKey returning the default project when no secretKey is pass... | null |
yorkie-team__yorkie__756 | yorkie-team/yorkie | 756 | defect | 6936d2bc9ec4cdd1a33167457b22391ed1dc89f1 | 2dd589108f3234e95ff00a41a852e83f106cceb7 | Introduce object creation interface with initial values | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
---
There was no way to set nested object in one set operation.
So It needed multiple set operation.
To resolve this issues, this pr modify the set operation to create a nested object in one operation.
More details refer t... | diff --git a/pkg/document/crdt/root.go b/pkg/document/crdt/root.go
index 791a77c9f..b3fc09e66 100644
--- a/pkg/document/crdt/root.go
+++ b/pkg/document/crdt/root.go
@@ -76,15 +76,41 @@ func (r *Root) FindByCreatedAt(createdAt *time.Ticket) Element {
}
// RegisterElement registers the given element to hash table.
-f... | 8 | 8 | 4 | [{"id": "G0", "claim": "buildCRDTElement is named as if it builds a crdt.Element, but it returns a json element and excludes primitives.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why buildCRDTElement registers the element itself, i... | null |
yorkie-team__yorkie__803 | yorkie-team/yorkie | 803 | defect | 0987cbc0964c049bc38b3707750cea02cabd75b5 | f4f9f0878fc8419d672f6fdf81eb6ad0deac716a | Move Client.Watch inside Client.Attach | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Move `Client.Watch()` inside `Client.Attach()` to hide it from external interface.
This PR also introduces `Client.Subscribe()` which performs similar functionality with other SDKs.
This PR is recreated from https://github.c... | diff --git a/client/client.go b/client/client.go
index f1673a9ac..9c1ecdabd 100644
--- a/client/client.go
+++ b/client/client.go
@@ -28,6 +28,7 @@ import (
"os"
"path/filepath"
"strings"
+ "sync/atomic"
"connectrpc.com/connect"
"github.com/rs/xid"
@@ -72,12 +73,22 @@ var (
// ErrInitializationNotReceive... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request should also apply the SyncMode setting introduced in the JS SDK (yorkie-js-sdk#772), pairing the two changes together.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The check-then-act sequence (isSubscribed.Load fol... | null |
yorkie-team__yorkie__821 | yorkie-team/yorkie | 821 | defect | c86999de8dd107bfcc2fd5fa202ef4cea07c3967 | 18fb4641e445c4c9622cd7a4a5d81f99a6625c27 | Fix logic errors in TreeNode.DeepCopy | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Fix logic errors in TreeNode.DeepCopy
This PR addresses the following logic errors in `TreeNode.DeepCopy`:
1. Missing insPrevID and insNextID - resolved in https://github.com/yorkie-team/yorkie-js-sdk/pull/756 and ported acco... | diff --git a/pkg/document/crdt/tree.go b/pkg/document/crdt/tree.go
index ad160a420..9704c6b2a 100644
--- a/pkg/document/crdt/tree.go
+++ b/pkg/document/crdt/tree.go
@@ -361,6 +361,8 @@ func (n *TreeNode) DeepCopy() (*TreeNode, error) {
}
clone.RemovedAt = n.RemovedAt
+ clone.InsPrevID = n.InsPrevID
+ clone.InsNex... | 2 | 2 | 0 | [{"id": "G0", "claim": "The IsRemoved guard and UpdateAncestorsSize call added to SetChildren do not exist in the JS SDK equivalent and should be explained or replaced by copying Index.Length in DeepCopy instead of updating ancestors' size in SetChildren.", "category": "design", "verdict": "supported", "priority": "P2"... | null |
yorkie-team__yorkie__824 | yorkie-team/yorkie | 824 | defect | 0987cbc0964c049bc38b3707750cea02cabd75b5 | e24079bce7467767c802d6412dff471e9013a8a8 | Fix incorrect calculation in `indexTree.treePosToPath` operation | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This patch addresses an issue arising from the `tree.edit` operation in response to problem with calculating the `fromPath` when multiple `treePos` represent a single index-based coordinate, leading to inaccuracies.
This PR co... | diff --git a/pkg/document/crdt/tree.go b/pkg/document/crdt/tree.go
index ad160a420..98ba2065f 100644
--- a/pkg/document/crdt/tree.go
+++ b/pkg/document/crdt/tree.go
@@ -917,7 +917,7 @@ func (t *Tree) FindTreeNodesWithSplitText(pos *TreePos, editedAt *time.Ticket) (
*TreeNode, *TreeNode, error,
) {
// 01. Find the ... | 3 | 3 | 1 | [{"id": "G0", "claim": "ToPath should return nil instead of make([]int, 0) on error, per the Uber Go style guide (nil is a valid slice).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "HasTextChild's len(n.children) check does not filter out tomb... | null |
yorkie-team__yorkie__881 | yorkie-team/yorkie | 881 | defect | 6367d90ed6def5cc65c9d7078593bd524faf5e18 | dadc9872f3baf9d96abbb70df9a3f3271430858b | Fix incorrect tree snapshot encoding/decoding | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
Fix incorrect tree snapshot encoding/decoding
**Which issue(s) this PR fixes**:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Address ht... | diff --git a/api/converter/converter_test.go b/api/converter/converter_test.go
index 682a70cd6..a4dc4f589 100644
--- a/api/converter/converter_test.go
+++ b/api/converter/converter_test.go
@@ -268,4 +268,29 @@ func TestConverter(t *testing.T) {
clone := converter.FromPresenceChange(pbChange)
assert.Equal(t, chang... | 4 | 1 | 0 | [{"id": "G0", "claim": "The comment for UpdateDescendantsSize incorrectly states it updates the size of ancestors and should be corrected to say descendants.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment for UpdateAncestorsSize is a b... | null |
yorkie-team__yorkie__932 | yorkie-team/yorkie | 932 | defect | b468f8b711a1ca4144c6957be20be2cacda74c71 | 82843be8b5183fed1b8a594d5530c3b0b696b2db | Enhance housekeeping to add variety of tasks | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
This commit enhances Housekeeping to enable the addition of a variety
of tasks. Previously, Housekeeping was limited to only Client
Deactivation task.
In this update, the actual tasks are implemented in the service
package(... | diff --git a/go.mod b/go.mod
index 1b71cea9b..3174eb884 100644
--- a/go.mod
+++ b/go.mod
@@ -5,6 +5,7 @@ go 1.21
require (
connectrpc.com/connect v1.12.0
connectrpc.com/grpchealth v1.3.0
+ github.com/go-co-op/gocron/v2 v2.10.1
github.com/go-playground/locales v0.14.0
github.com/go-playground/universal-translat... | 10 | 1 | 0 | [{"id": "G0", "claim": "The deferred function should handle the locker.Unlock error more gracefully and log it with more context (e.g. Errorf \"failed to unlock: %v\").", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the backend supports bulk ... | null |
yorkie-team__yorkie__939 | yorkie-team/yorkie | 939 | defect | b494fa2d02c17e229ad3fc5cebaa7ea33231077a | 04666490033c3fe5d923617168731209cb8fedea | Improve performance for creating crdt.TreeNode | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
The time complexity of creating crdt.TreeNode is O(N^2), potentially causing performance bottlenecks. It's optimized to O(n).
While this may not be a significant issue currently, there is a risk that as the number of tree node... | diff --git a/api/converter/from_pb.go b/api/converter/from_pb.go
index 7bb740049..450403a42 100644
--- a/api/converter/from_pb.go
+++ b/api/converter/from_pb.go
@@ -583,18 +583,15 @@ func FromTreeNodes(pbNodes []*api.TreeNode) (*crdt.TreeNode, error) {
}
root := nodes[len(nodes)-1]
+ depthTable := make(map[int32]... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should add a benchmark test file (test/bench/tree_editing_bench_test.go) with the tree test code to measure tree performance.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
yorkie-team__yorkie__958 | yorkie-team/yorkie | 958 | defect | b468f8b711a1ca4144c6957be20be2cacda74c71 | 592302a8d78460ea4668e50a8dc6265ce6f9b655 | Modify health check endpoint and add HEAD method | <!-- Thanks for sending a pull request! -->
**What this PR does / why we need it**:
In PR #952 , There were issues with existing health checks needing to support HEAD methods for UptimeRobot and overlapping with envoy's health check path.
So I added the HEAD method and test code, and modified the health check end... | diff --git a/server/rpc/httphealth/httphealth.go b/server/rpc/httphealth/httphealth.go
new file mode 100644
index 000000000..cc185ce89
--- /dev/null
+++ b/server/rpc/httphealth/httphealth.go
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2024 The Yorkie Authors. All rights reserved.
+ *
+ * Licensed under the Apache License, Versi... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `service` parameter in `NewHandler` is not validated or sanitized before use, which can lead to potential security vulnerabilities, so validation logic should be considered.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
yorukot__superfile__1012 | yorukot/superfile | 1,012 | defect | 77a63fea407fc3738bb938fff6f0ec66c3f7db67 | 2afb3c79cb728c33b4fe7ebc609ef9fd628ecb36 | fix: Move utility functions to utils package |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- Improved file preview content access for consistent previews.
- Bug Fixes
- Fixed garbled characters from files with UTF-8 BOM in previews.
- Refactor
- Centralized file reading and line-truncat... | diff --git a/src/internal/file_operation_compress_test.go b/src/internal/file_operation_compress_test.go
index 88decbea1..b489e3ff6 100644
--- a/src/internal/file_operation_compress_test.go
+++ b/src/internal/file_operation_compress_test.go
@@ -12,6 +12,7 @@ import (
"github.com/stretchr/testify/require"
"github.... | 16 | 1 | 1 | [{"id": "G0", "claim": "Add GoDoc comments beginning with the symbol name to the exported FilePreviewPanel type and its GetContent method so linters and GoDoc requirements pass.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CI's go fmt check fail... | null |
yorukot__superfile__1021 | yorukot/superfile | 1,021 | defect | 77a63fea407fc3738bb938fff6f0ec66c3f7db67 | 60125eeab6a2115972ecd0d14e17c170216306d2 | feat: Preview panel seperation |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- Unified file preview panel with a dedicated preview model supporting text, image, and directory previews with smarter syntax highlighting.
- Refactor
- Replaced direct state access with a stable ... | diff --git a/.gitignore b/.gitignore
index 7fdddd928..b0690713c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,6 @@ testsuite/.venv/
# macOS-specific files
.DS_Store
+
+# Agent configs
+CLAUDE.md
diff --git a/src/internal/default_config.go b/src/internal/default_config.go
index ae77f420e..7b6a55cf2 100644
--... | 10 | 5 | 2 | [{"id": "G0", "claim": "renderTextPreview (the preview text-rendering code, first in src/internal/file_preview.go and later in src/internal/ui/preview/model.go) has three blocks with nested conditional logic, violating the critical 'Bumpy Road Ahead' code health rule and failing the quality gate.", "category": "maintai... | null |
yorukot__superfile__1044 | yorukot/superfile | 1,044 | defect | 982d5a66a860eec0fcd5137023d2373e338ce0fd | 54185c667251b6eae6db34dc777771812642313c | refactor(ansi): Migrate from github.com/charmbracelet/x/exp/term/ansi to github.com/charmbracelet/x/ansi | This PR replaces all usages of the experimental ANSI package with the stable version.
Changes include:
- Updated all imports of github.com/charmbracelet/x/exp/term/ansi to github.com/charmbracelet/x/ansi.
- Modified the ReadFileContent function in utils/file_utils.go to use the stable ansi package.
- Ran `go mod ... | diff --git a/go.mod b/go.mod
index 8a08f5901..f052d4043 100644
--- a/go.mod
+++ b/go.mod
@@ -33,6 +33,7 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indire... | 10 | 3 | 1 | [{"id": "G0", "claim": "The explicit `golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect` require added to go.mod isn't imported anywhere, so `go mod tidy` should be run to drop it.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The m... | null |
yorukot__superfile__1077 | yorukot/superfile | 1,077 | defect | d337ba6c822e39b9aa5809068c80c37cfcc965f7 | b8b9e6dad7ea430d2cf080ef995f1a74ea0c00d2 | fix(#1073): Tech debt fix | Should clear the issues in 1073
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- Bug Fixes
- Image previews no longer fail due to a strict dimension pre-check; rendering and fallback behavior unchanged.
- Chores
- Fixed a typo in a debug log and adjusted comme... | diff --git a/src/pkg/file_preview/image_preview.go b/src/pkg/file_preview/image_preview.go
index a879956f5..f931ddb2e 100644
--- a/src/pkg/file_preview/image_preview.go
+++ b/src/pkg/file_preview/image_preview.go
@@ -264,10 +264,6 @@ func (p *ImagePreviewer) ImagePreview(path string, maxWidth int, maxHeight int,
// Im... | 6 | 2 | 2 | [{"id": "G0", "claim": "Alacritty does not support the kitty graphics protocol, so the \"alacritty\" entry this pull request added to knownTerminals in isKittyCapable should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Run `go fmt ./..... | null |
yorukot__superfile__1100 | yorukot/superfile | 1,100 | defect | b69ac02c1ba374234a38a26372092444c4e2bd0f | 8ed2f8cb3e3b86218da2abfe81a0b8fb5a17c9b7 | refactor: simplify renameIfDuplicate function and add comprehensive … | ## Summary
- Refactored `renameIfDuplicate` function to eliminate high code duplication between file and directory handling
- Unified the logic into a single, cleaner implementation
- Added comprehensive test coverage including edge cases and benchmarks
- Added safety limit (10,000 attempts) to prevent inf... | diff --git a/src/internal/function.go b/src/internal/function.go
index b41ef6eec..1334afdee 100644
--- a/src/internal/function.go
+++ b/src/internal/function.go
@@ -266,61 +266,39 @@ func checkFileNameValidity(name string) error {
}
}
-// This functions has very high code duplication. Need to refactor the logic in... | 8 | 1 | 0 | [{"id": "G0", "claim": "CodeScene flags Benchmark_renameIfDuplicate as a 'Bumpy Road Ahead' violation because its three b.Run blocks contain nested conditional logic beyond the allowed threshold.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
yorukot__superfile__1104 | yorukot/superfile | 1,104 | defect | 322c956fae50cff1ae81fb27f09bdbae3f57c7f5 | 3b99503f250573c6c88d3a0e40dcc77729e1945d | feat: Async zoxide |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- Zoxide modal now updates results asynchronously as you type.
- New rendering with scores, truncated paths, and scroll indicators.
- Improved navigation (JK/arrow keys), selection, and escape-to... | diff --git a/src/internal/function.go b/src/internal/function.go
index b41ef6eec..40a2b6e93 100644
--- a/src/internal/function.go
+++ b/src/internal/function.go
@@ -16,6 +16,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
"github.com/yorukot/superfile/src/internal/ui/processbar"
+ zoxideui "github.com/yoru... | 3 | 1 | 0 | [{"id": "G0", "claim": "The available-path-width calculation in renderVisibleResults is wrong: the comment claims width - 12 accounts for borders, padding, score and separator, but the format string plus the modal chrome consume about 15 columns, so paths are truncated too late and rendered lines can overflow the modal... | null |
yorukot__superfile__1171 | yorukot/superfile | 1,171 | defect | fd2abeed4e58035c95e11de4dcc7a79b6e41e82c | 555597ae17a7c658a56d145b9e6a10c464095c6d | feat: link icon and metadata | user request: #1150
1. If a file or directory is a symbolic link, it will be shown in the metadata to which file it points.
<img width="239" height="170" alt="image" src="https://github.com/user-attachments/assets/baa5fc12-ba7d-40b0-bac9-525f966d3bc6" />
2. If a file or directory is a symbolic link it have spec... | diff --git a/src/config/icon/icon.go b/src/config/icon/icon.go
index 594767413..d9273094a 100644
--- a/src/config/icon/icon.go
+++ b/src/config/icon/icon.go
@@ -108,6 +108,7 @@ var Icons = map[string]Style{
"ko": {Icon: "\uebc6", Color: "#9b59b6"}, // Printable Rune : ""
"kt": {Icon: "\ue63... | 2 | 1 | 0 | [{"id": "G0", "claim": "The \\uf482 icon code is the wrong glyph (a \"mask\" glyph in Nerd Fonts) for the link_folder entry and a proper folder-symlink icon should be used instead.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The symlink destination... | null |
yorukot__superfile__1177 | yorukot/superfile | 1,177 | defect | d9ad4dba3a89ea9ec642e0dc3b8f5379062d9dae | 74a8e44664e16d079b1207fe9028e70a9775e99a | feat: allow hover to file | - Fixes #826
```
➜ 100_files new_spft ./test_1.txt ./test_49.txt ./test_99.txt ~/Pictures/jin.jpg
./build.sh 1.70s user 0.65s system 107% cpu 2.174 total
Error ┃ missing fields: [show_select_icons]
To add missing fields to configuration file automatically run superfile with the --fix-config-file flag `spf --fix... | diff --git a/md b/md
new file mode 100644
index 000000000..e69de29bb
diff --git a/plan.md b/plan.md
new file mode 100644
index 000000000..07aa18cf2
--- /dev/null
+++ b/plan.md
@@ -0,0 +1,73 @@
+# Goal
+Open a file path by placing the cursor on that file within its parent directory.
+
+Current: `spf "/a/b/file.txt"` ope... | 2 | 1 | 0 | [{"id": "G0", "claim": "The cursor-positioning block added inside getFilePanelItems pushes the function further over the CI cognitive-complexity threshold (33 > 20); extract it into a helper method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
yorukot__superfile__1191 | yorukot/superfile | 1,191 | defect | 82e0fa419e4f28993066c55ab846d87008c0b1e5 | 7ae13547e70b30c4c04a3b0662331ad150a188bc | chore(deps): update dependency go to v1.25.5 | This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [go](https://redirect.github.com/actions/go-versions) | uses-with | patch | `1.25.0` → `1.25.5` |
---
### Release Notes
<details>
<summary>actions/go-versions (go)</summary>
### [`v1.25.5`](https://redirect.github.com/... | diff --git a/.github/workflows/superfile-build-test.yml b/.github/workflows/superfile-build-test.yml
index fa0a92707..ee1112c20 100644
--- a/.github/workflows/superfile-build-test.yml
+++ b/.github/workflows/superfile-build-test.yml
@@ -30,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
... | 3 | 1 | 0 | [{"id": "G0", "claim": "Wrap the go-version value in quotes (go-version: \"1.25.5\") in .github/workflows/testsuite-run.yml to follow the actions/setup-go@v6 documented best practice and avoid YAML parsing issues.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3"... | null |
yorukot__superfile__1201 | yorukot/superfile | 1,201 | defect | c93c16e74a4cf21993c64051157556ed3c8889de | f0aedb64a811478c46835d159e9e18c5c25545fd | fix: Use async methods to send input to prevent race condition in tests | # Issue
The race condition is between:
1. Manual update: m.getFocusedFilePanel().rename.SetValue("file2.txt") directly sets the value
2. Event loop update: focusPanel.rename, cmd = focusPanel.rename.Update(msg) overwrites the entire
rename model
// Test does this:
m.getFocusedFilePanel().rename.Set... | diff --git a/src/internal/handle_file_operations.go b/src/internal/handle_file_operations.go
index 31b306c8b..de593a963 100644
--- a/src/internal/handle_file_operations.go
+++ b/src/internal/handle_file_operations.go
@@ -97,6 +97,9 @@ func (m *model) panelItemRename() {
m.fileModel.renaming = true
panel.renaming = ... | 3 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo in the TODO comment added in panelItemRename: \"gargage\" should be \"garbage\".", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G7", "claim": "Consider using the processbar-based completion check (GetProcesses with CompressPr... | null |
yorukot__superfile__1220 | yorukot/superfile | 1,220 | defect | 22adcd2de94daaf18bd375290af535ca3e783069 | 324055f1f6f443335f689819611b00b6e147bbfe | feat: Enable fast configurable navigation |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor**
* Centralized and simplified file-panel navigation and cursor movement for more consistent behavior.
* **New Features**
* Added a configurable page scroll size toggle to control PgUp/PgDown step si... | diff --git a/src/internal/common/config_type.go b/src/internal/common/config_type.go
index b4bee0397..4c0af1234 100644
--- a/src/internal/common/config_type.go
+++ b/src/internal/common/config_type.go
@@ -84,6 +84,7 @@ type ConfigType struct {
Debug bool `toml:"debug" comment:"\nWhether to enable d... | 3 | 1 | 0 | [{"id": "G0", "claim": "The faster navigation implemented in this pull request does not load its scroll amount from config yet.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The imports in navigation_test.go are not properly formatted per goimports, ... | null |
yorukot__superfile__1228 | yorukot/superfile | 1,228 | defect | 8aa5fef6a76270c23dbc7733ccab3482c6acb348 | c6a0c4c76cf0aa633386923857f9e0a8b8a1081c | feat: Layout validation and sidebar dimension fix |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor**
* Simplified navigation method signatures by removing height parameters; dimensions now managed internally within components.
* Reorganized sidebar and process bar to encapsulate height and width t... | diff --git a/src/internal/key_function.go b/src/internal/key_function.go
index 61bb70685..dab14d6f5 100644
--- a/src/internal/key_function.go
+++ b/src/internal/key_function.go
@@ -25,9 +25,9 @@ func (m *model) mainKey(msg string) tea.Cmd { //nolint: gocyclo,cyclop,funlen //
case slices.Contains(common.Hotkeys.ListUp... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo in the error log message in SetHeight: \"hight\" should be \"height\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
yorukot__superfile__1237 | yorukot/superfile | 1,237 | defect | 83dd77fe18ae2b3f819470423060e2a069f8f557 | 8d652ae553d30f8617e77ec6f4215b59e201e8a4 | fix: Allow natural_sort as sort option | ## Summary
This PR fixes #962
## Changes
- `src/internal/common/config_type.go`
- `src/internal/ui/filepanel/sort.go`
- `src/internal/ui/filepanel/sort_test.go`
- `src/superfile_config/config.toml`
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**... | diff --git a/src/internal/common/config_type.go b/src/internal/common/config_type.go
index 56cfae8e3..456933ab8 100644
--- a/src/internal/common/config_type.go
+++ b/src/internal/common/config_type.go
@@ -80,6 +80,7 @@ type ConfigType struct {
DefaultSortType int `toml:"default_sort_type" comment:"\nDefault... | 4 | 4 | 3 | [{"id": "G0", "claim": "Natural sort should be implemented as a new value (4) of the existing DefaultSortType setting rather than as a completely new natural_sort config option.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should use a well-test... | null |
yorukot__superfile__1241 | yorukot/superfile | 1,241 | defect | 83dd77fe18ae2b3f819470423060e2a069f8f557 | a11466c73a1a2424fbef6fa43e8ff952c0a27973 | fix: small optimization file panel | fix: File panel rendering optimization
removed TODO:
```
// TODO : Fix this, this is O(n^2) complexity. Considered a file panel with 200 files, and 100 selected
```
PS preparing for multicolumn
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor**
* ... | diff --git a/src/internal/ui/filepanel/render.go b/src/internal/ui/filepanel/render.go
index 4bdba93db..707ac0413 100644
--- a/src/internal/ui/filepanel/render.go
+++ b/src/internal/ui/filepanel/render.go
@@ -4,7 +4,6 @@ import (
"fmt"
"os"
"path/filepath"
- "slices"
"github.com/charmbracelet/lipgloss"
@@ -... | 3 | 2 | 1 | [{"id": "G0", "claim": "Building the selected set from the Selected slice on every render is expensive because render is called very frequently; the Selected slice should be eliminated entirely and the set used everywhere.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
yorukot__superfile__1250 | yorukot/superfile | 1,250 | defect | 03e9f345ceba81043422bcb8da306e9634a86ef7 | 7f111112aba292dc5458a3267310ad248ba99ac4 | feat: add terminal stdout support for shell commands | Fixes
- #1166
## Changes
- Display shell command stdout in the prompt result message
- Trim whitespace from output before displaying
- Add test coverage for output display scenarios
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Shell ... | diff --git a/src/internal/ui/prompt/model.go b/src/internal/ui/prompt/model.go
index 6eb6b7ac5..2fbda2922 100644
--- a/src/internal/ui/prompt/model.go
+++ b/src/internal/ui/prompt/model.go
@@ -107,12 +107,13 @@ func (m *Model) handleNormalKeyInput(msg tea.KeyMsg) tea.Cmd {
}
// After action is performed, model will... | 4 | 1 | 1 | [{"id": "G0", "claim": "Extremely long shell output (e.g., thousands of lines) may cause UI rendering issues, so truncating the output before display is worth considering, though it can be deferred.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Raw... | null |
yorukot__superfile__1255 | yorukot/superfile | 1,255 | defect | 2874ef7f5ef2e3cda78802ce78c6246349dfd37b | 28521bbef05836f019ac5c64755b4aa751c14629 | feat: add configurable border option for file preview panel and pre-release 1.5.0-rc1 | Fixes
- https://github.com/yorukot/superfile/issues/827
Note - I was planning to tag 1.4.1, but will have to use 1.5.0 as there are too many changes.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added a configuration option to enable ... | diff --git a/src/internal/common/config_type.go b/src/internal/common/config_type.go
index 56cfae8e3..cb51d7087 100644
--- a/src/internal/common/config_type.go
+++ b/src/internal/common/config_type.go
@@ -86,12 +86,13 @@ type ConfigType struct {
IgnoreMissingFields bool `toml:"ignore_missing_fields" comment:"\nWhethe... | 1 | 1 | 0 | [{"id": "G1", "claim": "The zero value of the Renderer struct is unsafe (panics on AddLines) and is still used in the code, so a tech-debt-labelled GitHub issue should be created to track eliminating its usage.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
yorukot__superfile__1266 | yorukot/superfile | 1,266 | defect | aef80f8e04873f4e62970cdf2533819bad3f6745 | 3ebcbda22ada679012e596c3773305bc3955210d | fix: Processbar improvement | - https://github.com/yorukot/superfile/issues/883
Tests
<img width="397" height="207" alt="image" src="https://github.com/user-attachments/assets/4264ab24-2d3d-4ceb-918d-450d99cb969d" />
<img width="438" height="206" alt="image" src="https://github.com/user-attachments/assets/331a03dd-9b90-4bc0-961d-e7677725b... | diff --git a/src/internal/file_operations.go b/src/internal/file_operations.go
index 2c0f88c54..f09d3c911 100644
--- a/src/internal/file_operations.go
+++ b/src/internal/file_operations.go
@@ -16,7 +16,6 @@ import (
"github.com/rkoesters/xdg/trash"
variable "github.com/yorukot/superfile/src/config"
- "github.com/... | 3 | 2 | 1 | [{"id": "G0", "claim": "The error message \"File already exist\" set in zipSources should read \"File already exists\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GetDisplayName test table should include a case for the Failed state, whose ... | null |
yorukot__superfile__1267 | yorukot/superfile | 1,267 | defect | e5cc991c83cea975d02489ffb1e5491e8189c4be | 64ff9b36916eba5cec8aef885d203e803b46c771 | fix: use rendering.MinHeightForBorder while checking for border, and more fixes | - https://github.com/yorukot/superfile/issues/1092
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Border rendering now enforces minimum dimensions (2x2) to ensure proper display.
* **Chores**
* Adjusted JSON config file initialization flow.
... | diff --git a/src/cmd/main.go b/src/cmd/main.go
index 8ace95f4d..d5859d419 100644
--- a/src/cmd/main.go
+++ b/src/cmd/main.go
@@ -190,10 +190,6 @@ func InitConfigFile() {
if err := writeConfigFile(variable.HotkeysFile, common.HotkeysTomlString); err != nil {
utils.PrintlnAndExit("Error writing config file:", err)
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Line 28 of the added comment in src/internal/default_config.go contains the typo \"thumnailGeneratorNeeded\", which should be \"thumbnailGeneratorNeeded\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In FilePreviewPanelR... | null |
yorukot__superfile__1300 | yorukot/superfile | 1,300 | defect | 7960ce7e545cf72d4064b61c6e666fc09f52d508 | 3fb877e82048f78a60c51c9ab8f64597bef78e08 | fix: Prune Inaccessible Items from clipboard before pasting | Fixes https://github.com/yorukot/superfile/issues/577
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Bug Fixes**
* Clipboard now synchronizes with the filesystem and automatically filters out inaccessible or deleted items before paste operations, preventing f... | diff --git a/src/internal/handle_file_operations.go b/src/internal/handle_file_operations.go
index fdcb99501..eb5ba5a44 100644
--- a/src/internal/handle_file_operations.go
+++ b/src/internal/handle_file_operations.go
@@ -215,7 +215,7 @@ func (m *model) copyMultipleItem(cut bool) {
}
func (m *model) getPasteItemCmd(... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rename the misspelled function `pruneInaccssibleItems` (and its call site) to `pruneInaccessibleItems`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stale TODO about unit testing from `PruneInaccessibleItemsA... | null |
yorukot__superfile__1323 | yorukot/superfile | 1,323 | defect | aff7ddf9d3e2fb2c27fa479a3d91ebeef299116e | d3e7a1a6a17889c12ba39a3fca07d7a31e6b08b8 | feat: add configuration options for sidebar section visibility and ordering | ## Description
Adds configuration options to customize sidebar section visibility and ordering, along with visual refinements to the sidebar's structure (lowkey just for the home divider).
## Problem
Currently, the sidebar has a fixed structure (Home > Pinned > Disks) that cannot be modified. Users cannot hide sec... | diff --git a/src/internal/common/config_type.go b/src/internal/common/config_type.go
index 9d23b24f6..852397afa 100644
--- a/src/internal/common/config_type.go
+++ b/src/internal/common/config_type.go
@@ -88,13 +88,17 @@ type ConfigType struct {
FilePanelExtraColumns int `toml:"file_panel_extra_columns" comment:"\nC... | 11 | 10 | 5 | [{"id": "G0", "claim": "pinnedIndexRange can return start > end when the pinned divider is last or is immediately followed by another divider (pinned section enabled but empty), which can trip callers that index directly; it should return (-1, -1) when no pinned entries exist.", "category": "correctness", "verdict": "s... | null |
yorukot__superfile__1328 | yorukot/superfile | 1,328 | defect | f804bf069bb079b7a6613b4640a3cc90a17b8c56 | d1492b7930e3e961ce14cfb7e157ae5573234b94 | feat(metadata): add binary architecture detection for ELF, PE, and Mach-O | # Description
This PR adds binary architecture detection for ELF, PE, and Mach-O (including Universal/Fat) formats to the metadata panel. Users can now view architecture details such as `x86-64`, `ARM64`, or `Universal` directly in the UI when inspecting regular binary files.
# Related Issues
N/A
# ✅ Pre-Su... | diff --git a/src/internal/ui/metadata/architecture.go b/src/internal/ui/metadata/architecture.go
new file mode 100644
index 000000000..41c8163c4
--- /dev/null
+++ b/src/internal/ui/metadata/architecture.go
@@ -0,0 +1,150 @@
+package metadata
+
+import (
+ "debug/elf"
+ "debug/macho"
+ "debug/pe"
+ "errors"
+ "fmt"
+ "s... | 3 | 2 | 2 | [{"id": "G0", "claim": "The prefix check `len(arch) >= 3` is insufficient for the `arch[:6] == \"Mach-O\"` comparison, so a 3-5 character architecture string could panic with index out of bounds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TestEl... | null |
yorukot__superfile__1340 | yorukot/superfile | 1,340 | defect | aff7ddf9d3e2fb2c27fa479a3d91ebeef299116e | b9b2507a793f1ae9577a12f91aefe71a60c73089 | feat: Focus on current directory on navigation to parent directory in a filepanel | problem:
0) The process starts in the directory "~/repo/golang/superfile-klepov".
<img width="378" height="388" alt="image" src="https://github.com/user-attachments/assets/aae5a61f-fa84-4e1c-a76a-8c871c188f46" />
1) I try to go up to the parent directory. However, the focused directory is not "superfile-klepov", w... | diff --git a/src/internal/model_navigation_test.go b/src/internal/model_navigation_test.go
index bd5e0f805..0ed9ac251 100644
--- a/src/internal/model_navigation_test.go
+++ b/src/internal/model_navigation_test.go
@@ -88,10 +88,10 @@ func TestFilePanelNavigation(t *testing.T) {
searchBarClear: true,
},
{
- n... | 3 | 2 | 2 | [{"id": "G0", "claim": "The PR author asks whether the directory-records cache is needed in UpdateCurrentFilePanelDir, since cache misses there seem inevitable and positioning errors may likewise result from the cache.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G... | null |
yorukot__superfile__1359 | yorukot/superfile | 1,359 | defect | 9c54fddd431f472cedb3ccca45db983a7ae67874 | c1aced473b59bb659fc103893a62df0039c72cf1 | fix: Remove panic statements in production code | PR #1358 merged a panic statement. Even though that was in unexpected part of code, its not good to have panic.
Now its programmatically guaranteed, without any error handling required. The function used in production doesn't returns error in any case and always guarantees a valid Renderer pointer
cc : @Simpaqt... | diff --git a/src/internal/ui/rendering/renderer.go b/src/internal/ui/rendering/renderer.go
index 0f7258c57..8f3a9a897 100644
--- a/src/internal/ui/rendering/renderer.go
+++ b/src/internal/ui/rendering/renderer.go
@@ -86,13 +86,10 @@ type RendererConfig struct {
Border lipgloss.Border
RendererName string
-
-... | 3 | 3 | 0 | [{"id": "G0", "claim": "The unexported createRendererWithConfig helper assumes its caller already validated the config, so a brief doc comment should document that precondition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manual border-di... | null |
yorukot__superfile__1370 | yorukot/superfile | 1,370 | defect | c48efc315cdd1f87f9a1c2fa7637afe0b2f9cf53 | cd11367e0e77931eb7d81c3439ee6230b5b87438 | fix: removed showing two fractional digits of Byte for files with small size | issue #1368
Removed showing two fractional digits of Byte for files with small size
before fix:
<img width="640" height="561" alt="image" src="https://github.com/user-attachments/assets/3137bf97-3ed5-4174-b8ea-fc20b23b427f" />
after fix:
<img width="807" height="512" alt="image" src="https://github.com/user-att... | diff --git a/src/internal/common/string_function.go b/src/internal/common/string_function.go
index 524c60a72..bbbcc37f8 100644
--- a/src/internal/common/string_function.go
+++ b/src/internal/common/string_function.go
@@ -136,23 +136,30 @@ func FileNameWithoutExtension(fileName string) string {
return fileName
}
-f... | 2 | 1 | 0 | [{"id": "G0", "claim": "unitsDec() and unitsBin() build a fresh slice on every FormatFileSize() call, and package-level unit tables would avoid that allocation churn without changing behavior.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added... | null |
yorukot__superfile__759 | yorukot/superfile | 759 | defect | 9653d8a88daa46a0dd70bb7201e1e3c57c6db206 | 5a5291ac860eec87d64cb3a828226f3ca0c687e0 | feat: Allow specifying multiple panels at startup | Fixes
- #286
Test
```
➜ ~/Workspace/kuknitin/superfile git:(multiple_panel_at_startup) [7:07:36] spft "~" "." "/"
➜ ~/Workspace/kuknitin/superfile git:(multiple_panel_at_startup) [7:11:18]
```
<img width="1147" alt="image" src="https://github.com/user-attachments/assets/3a214f1f-f9b6-417b-96cb-47fc799... | diff --git a/src/cmd/main.go b/src/cmd/main.go
index e6a8f38b0..3ea6800b2 100644
--- a/src/cmd/main.go
+++ b/src/cmd/main.go
@@ -84,9 +84,9 @@ func Run(content embed.FS) {
},
Action: func(c *cli.Context) error {
// If no args are called along with "spf" use current dir
- path := ""
+ firstFilePanelDirs :=... | 4 | 2 | 1 | [{"id": "G0", "claim": "defaultFilePanel should validate the directory path so that a specified directory that does not exist is handled gracefully instead of being used as the panel location.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The initi... | null |
yorukot__superfile__812 | yorukot/superfile | 812 | defect | 639fa6940418b9562bd5716b0a1011ce3ffbce83 | 8e296feb9817d5d1ee533062114648908f1d058f | Chooser file option, --lastdir-file option, and improvements in quit, and bug fixes. |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Added a new CLI flag to specify a "chooser file," enabling the application to write the selected file path to a user-defined file before exiting.
- Enhanced the "path-list" command with a flag... | diff --git a/src/cmd/main.go b/src/cmd/main.go
index d5e2b9d26..f3d47f11e 100644
--- a/src/cmd/main.go
+++ b/src/cmd/main.go
@@ -41,7 +41,11 @@ func Run(content embed.FS) {
Name: "path-list",
Aliases: []string{"pl"},
Usage: "Print the path to the configuration and directory",
- Action: func(_ *cl... | 33 | 7 | 1 | [{"id": "G0", "claim": "TestMain discards the result of m.Run(), so the process always exits 0 and CI passes even when tests fail or panic.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The shared defaultTestModel instance is reused across actualTest... | null |
yorukot__superfile__887 | yorukot/superfile | 887 | defect | a9f4d96835263c5569c1f748a9e2024c6e086468 | a7be0c1efb5048110583665534876906b5a0ba3d | fix: prevent pasting a directory into itself, avoiding infinite loop | fix #570
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Introduced a notification modal displaying important messages with a title and content, featuring a single "Okay" button for acknowledgment.
- Enhanced paste operations by preventing ... | diff --git a/src/internal/handle_file_operations.go b/src/internal/handle_file_operations.go
index 8cabb8dea..0a1d37d5e 100644
--- a/src/internal/handle_file_operations.go
+++ b/src/internal/handle_file_operations.go
@@ -389,6 +389,40 @@ func (m *model) pasteItem() {
panel := &m.fileModel.filePanels[m.filePanelFocusI... | 7 | 6 | 4 | [{"id": "G0", "claim": "The invalid-paste notification is emitted with warnType confirmDeleteItem, so acknowledging the notification runs the delete flow and the new notificationWarn branch never executes, which may delete files.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduce... | null |
yorukot__superfile__896 | yorukot/superfile | 896 | defect | a9f4d96835263c5569c1f748a9e2024c6e086468 | ee0b544dff0b1dfa7ab659102e1d316219d82204 | fix: Add clipboard clearing check in Paste test |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Tests**
* Expanded paste-operation tests with explicit clipboard state verification (cleared vs. retained) after each scenario, improving coverage and confidence in expected behavior.
* **Style**
* Cleaned up ... | diff --git a/src/internal/handle_file_operation_test.go b/src/internal/handle_file_operation_test.go
index 27234da2f..2c3975665 100644
--- a/src/internal/handle_file_operation_test.go
+++ b/src/internal/handle_file_operation_test.go
@@ -1,6 +1,7 @@
package internal
import (
+ "log/slog"
"os"
"path/filepath"
"... | 7 | 1 | 1 | [{"id": "G0", "claim": "Replace the hard-coded time.Sleep/SendAllMsg waits in TestPasteItem with proper synchronization or waiting for specific conditions, because fixed sleep durations can make the test flaky and add unnecessary delays.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "intro... | null |
yorukot__superfile__906 | yorukot/superfile | 906 | defect | fe25847620fbb17a124a1de893ba8043eb4d2b28 | 58ce3da40430de55d1019de9a59aa61760a823fd | fix: clear search bar value on parent directory reset | fix #903
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Improved directory navigation with enhanced state management for file panels, preserving cursor and render positions per directory.
* **Bug Fixes**
* The search bar now clears automat... | diff --git a/src/internal/handle_panel_movement.go b/src/internal/handle_panel_movement.go
index 62c017089..fcf9226ca 100644
--- a/src/internal/handle_panel_movement.go
+++ b/src/internal/handle_panel_movement.go
@@ -41,6 +41,7 @@ func (m *model) parentDirectory() {
panel.cursor = 0
panel.render = 0
}
+ panel.s... | 3 | 3 | 2 | [{"id": "G0", "claim": "The search bar value should also reset when the directory is changed by other mechanisms, such as selecting a directory in the sidebar or using the cd command, not only when moving to the parent directory.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
yorukot__superfile__931 | yorukot/superfile | 931 | defect | e7a74834fefbf9e596c8b1291d1a5a58c3de982f | 5baf557e22a5d1456e39df0ea53f2afe25e4df33 | fix: Improve command tokenization to handle quotes and escapes | fix #834
* Removed the simple tokenization using `strings.Fields(command)` and switched to the new **`tokenizeWithQuotes`** function.
* Parses single (`'`) and double (`"`) quotes as well as back-slash escapes, allowing paths with spaces to be split safely.
* Detects unterminated quotes or lone back-slashes... | diff --git a/src/internal/ui/prompt/tokenize.go b/src/internal/ui/prompt/tokenize.go
index e1859145a..260193873 100644
--- a/src/internal/ui/prompt/tokenize.go
+++ b/src/internal/ui/prompt/tokenize.go
@@ -7,6 +7,7 @@ import (
"os"
"strings"
"time"
+ "unicode"
"github.com/yorukot/superfile/src/internal/utils"
... | 5 | 5 | 4 | [{"id": "G0", "claim": "Unit tests should be updated to cover the new tokenization behaviour, including end-to-end tests in model_prompt_test.go for directory names with spaces and quotes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A unit test for s... | null |
yorukot__superfile__941 | yorukot/superfile | 941 | defect | 0dd32e7e9337793860fcb0559908addedcb19f86 | 0c80c77ac4105416271b29d3cae545a1580bc811 | fix: windows test ci | I've fixed the windows build test CI mentioned in issue #938, I adjusted the workflow to run on my branch to make sure it works, all tests passed.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Summary by CodeRabbit
* **Tests**
* Improved file compression ... | diff --git a/.github/workflows/superfile-build-test.yml b/.github/workflows/superfile-build-test.yml
index f49ab8067..b995f5586 100644
--- a/.github/workflows/superfile-build-test.yml
+++ b/.github/workflows/superfile-build-test.yml
@@ -38,12 +38,18 @@ jobs:
- name: Install dependencies
run: go mod do... | 10 | 6 | 1 | [{"id": "G0", "claim": "The pull request's changes appear to have created a bunch of CI annotations for linux and macos.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The actions/cache path should also include the custom GOMODCACHE directory (${{ r... | null |
yorukot__superfile__945 | yorukot/superfile | 945 | defect | 0dd32e7e9337793860fcb0559908addedcb19f86 | aa87f8b0ad0df2c795b5e39f27e07f2eaa94fcb9 | feat: Metadata without channels |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added asynchronous metadata fetching and display for selected files, with improved loading and caching states.
* Metadata is now updated only for the currently selected file, ensuring accurac... | diff --git a/src/internal/file_panel.go b/src/internal/file_panel.go
index d0a39db6e..4db6f49d5 100644
--- a/src/internal/file_panel.go
+++ b/src/internal/file_panel.go
@@ -9,10 +9,20 @@ import (
)
func (panel *filePanel) getSelectedItem() element {
- // TODO: Have a bound check here, and return empty element in ca... | 10 | 4 | 0 | [{"id": "G0", "claim": "Synchronously computing dirSize() could freeze the UI on large directories, so the size should be shown as a placeholder and calculated asynchronously (or lazily/cached) instead of inline.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1... | null |
yorukot__superfile__950 | yorukot/superfile | 950 | defect | 29dc4d040166ce6f2193f74a5f311afb460e60af | c20f5e677013fa05c68e0f0ae986dbb0a03a7756 | feat: Metadata panel into separate package, UI bug fixes, Code improvements | Also fixes
- https://github.com/yorukot/superfile/issues/955
- https://github.com/yorukot/superfile/issues/870
Related issues
- https://github.com/yorukot/superfile/issues/819
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Introd... | diff --git a/src/internal/default_config.go b/src/internal/default_config.go
index 296dc0452..637f943c8 100644
--- a/src/internal/default_config.go
+++ b/src/internal/default_config.go
@@ -3,6 +3,7 @@ package internal
import (
"path/filepath"
+ "github.com/yorukot/superfile/src/internal/ui/metadata"
"github.com/... | 10 | 6 | 2 | [{"id": "G0", "claim": "The method name `SetMedatada` is misspelled and should be `SetMetadata` (definition and both call sites).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The key-truncation condition `utils.FooterWidth(0)-sprintfLen-3 < ut... | null |
yorukot__superfile__987 | yorukot/superfile | 987 | defect | 4b888a18a6fbef5ff08c707f03f422e59d3a5385 | 263f14420a7eac41972aac9766cd656398df31c7 | feat: added option to permanently delete files |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added a Permanent Delete option with a dedicated confirmation for irreversible deletion.
* **New Hotkeys**
* Default hotkey: D triggers Permanent Delete in normal mode (standard and Vim profi... | diff --git a/src/internal/common/config_type.go b/src/internal/common/config_type.go
index 9a868a0f8..7ada988ba 100644
--- a/src/internal/common/config_type.go
+++ b/src/internal/common/config_type.go
@@ -133,10 +133,11 @@ type HotkeysType struct {
FilePanelItemCreate []string `toml:"file_panel_item_create" comment:"... | 30 | 19 | 5 | [{"id": "G0", "claim": "The permanent-delete test's final assertion repeats os.IsNotExist(err1) and never checks errTrash, which can mask unexpected errors; it should check os.IsNotExist(errTrash).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "defa... | null |
yoshuawuyts__futures-concurrency__218 | yoshuawuyts/futures-concurrency | 218 | defect | 808a174f343da7de6724df47d55e63752846bd62 | 046bf16f9b214132eb808594a80c738e04c22f4c | Fix pin violations | Remove `slab` in favor of a new internal `ChunkedVec`. It keeps a `Vec<Box<[T; chunk_size]>>`, allocating new chunks when necessary (and never moving any chunk), while keeping access `O(1)`
Also added a couple of tests to verify that the `ChunkedVec` is not moving (it catches the slab moving)
fix #188 and opens t... | diff --git a/Cargo.toml b/Cargo.toml
index 657d7c2c..82277225 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,14 +29,13 @@ harness = false
[features]
default = ["std"]
std = ["alloc", "futures-lite/std"]
-alloc = ["dep:fixedbitset", "dep:slab", "dep:smallvec", "dep:futures-buffered", "futures-lite/alloc"]
+alloc = [... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `assert!(true, \"all futures completed without moving\")` line is a pointless construct; the author should replace it, perhaps with a `println!`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "One small nit remains to be fixe... | null |
you-dont-need__You-Dont-Need-Lodash-Underscore__160 | you-dont-need/You-Dont-Need-Lodash-Underscore | 160 | defect | 6f008f5871a7bd89b2382ef1f4e9c861d5d2d33d | 5c96b063eb41a5aaa576a879928abf063cca2b69 | added padStart and padEnd | Fixes #126
- [x] Added documentation for `_.padStart` and `_.padEnd` (lodash only)
- [x] Added rules for `_.padStart` and `_.padEnd` (lodash only)
- [x] Added tests for `_.padStart` and `_.padEnd` (lodash only) | diff --git a/README.md b/README.md
index 375c4f12..b9ded67b 100644
--- a/README.md
+++ b/README.md
@@ -155,6 +155,7 @@ then Lodash/Underscore is the better option.*
**[String](#string)**
+1. [_.padStart and _.padEnd](#_padstart-and-_padend)
1. [_.repeat](#_repeat)
1. [_.template](#_template)
1. [_.toLower](#_to... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new padStart/padEnd README section is missing the back-to-top link that the other sections have; add it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The self-link '[_.padStart and _.padEnd](#_padstart-and-_padend)' a... | null |
you-dont-need__You-Dont-Need-Lodash-Underscore__179 | you-dont-need/You-Dont-Need-Lodash-Underscore | 179 | defect | 57fd46e9b24d69ed9b0397096c295d80e97a799a | b366a6e3e7dd458572fd8b40adb7d89182da376b | Fix _.get | This PR addresses 2 issues with `_.get` as reported [here](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/178). | diff --git a/README.md b/README.md
index 1e66bc45..af82986b 100644
--- a/README.md
+++ b/README.md
@@ -1836,8 +1836,8 @@ Gets the value at path of object.
// output: 3
// Native
- const get = (obj, path, defaultValue) => path.split(".")
- .reduce((a, c) => (a && a[c] ? a[c] : (defaultValue || null)), obj)
+... | 4 | 4 | 3 | [{"id": "G0", "claim": "The changed _.get snippet has no unit tests; add tests like the existing ones in tests/unit/all.js.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The _.get snippet returns the default instead of the value when the path traverses... | null |
you-dont-need__You-Dont-Need-Lodash-Underscore__199 | you-dont-need/You-Dont-Need-Lodash-Underscore | 199 | defect | 8ab43af7155f39b27b4ad2e2143b0d9f31e61f2b | 62a4a8e6ae9a9ab769287f599d81d670abbf960b | Add _.isNil rule | Fixes #196 | diff --git a/lib/rules/rules.json b/lib/rules/rules.json
index aef31e0d..0bad7927 100644
--- a/lib/rules/rules.json
+++ b/lib/rules/rules.json
@@ -154,6 +154,11 @@
"alternative": "Number.isNaN()",
"ES6": true
},
+ "isNil": {
+ "ruleName": "is-nil",
+ "compatible": false,
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new isNil entry marks the rule as not compatible (`compatible: false`), but it should be `true` since the alternative `value === null || value === undefined` fully replaces `_.isNil`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
you-dont-need__You-Dont-Need-Lodash-Underscore__219 | you-dont-need/You-Dont-Need-Lodash-Underscore | 219 | defect | 0e15da3742a56e614aee54586b63f626356f4075 | 243f3dd405ca79c01e3f0f98ad89af6a4bc644d3 | Fixing error for OOP isUndefined. | I believed I was able to fix it. While I was doing console.log's I realized that the callee objects for the two different lines (_(myVar).isUndefined() v.s. _.isUndefined(myVar)) didn't match. The former had a structure such that:
callee.object.callee.name = '_'
rather than,
callee.object.name = '_'
This mean... | diff --git a/lib/rules/all.js b/lib/rules/all.js
index 2cfe3401..0b279fb3 100644
--- a/lib/rules/all.js
+++ b/lib/rules/all.js
@@ -25,7 +25,7 @@ for (const rule in rules) {
return {
CallExpression(node) {
const callee = node.callee;
- const objectName = callee.name || (callee.object ... | 3 | 3 | 3 | [{"id": "G0", "claim": "A unit test should be added for the PR's OOP isUndefined change (suggested location test/unit/all.js).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added third clause in lib/rules/all.js reads callee.object.callee without g... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.