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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sopel-irc__sopel__2716 | sopel-irc/sopel | 2,716 | defect | cd94cae6a565a8c53a3db56c134bbf9a3bf034f3 | 49d9f945b91e99cfb65d0a061e699634b153cc33 | tests: mock IRC server's new shortcut methods | ### Description
When Sopel handles a trigger, it may execute commands in their own threads. This is the expected behavior. However, when testing Sopel's various commands, this may result in race conditions.
One use case is the INVITE event handler in the `admin` builtin plugin: because the handler is executed in ... | diff --git a/sopel/tests/__init__.py b/sopel/tests/__init__.py
index 24d2dcad06..c95d183970 100644
--- a/sopel/tests/__init__.py
+++ b/sopel/tests/__init__.py
@@ -4,8 +4,14 @@
"""
from __future__ import annotations
+from typing import TYPE_CHECKING
-def rawlist(*args):
+
+if TYPE_CHECKING:
+ from sopel.bot imp... | 16 | 10 | 1 | [{"id": "G0", "claim": "The code-scanning bot flags that the PR's new `if TYPE_CHECKING:` import of `sopel.bot` in sopel/tests/mocks.py begins an import cycle.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The free-standing `on_message` helper in... | null |
sopherapps__pydantic-redis__7 | sopherapps/pydantic-redis | 7 | defect | 4954b79186bfd0881de58d59fa1ff62fdf6f0a7e | 2edaa18c75e1ef672e7f625ade9f7a714eb04a44 | Handle models in List | Hello,
I have a case where a pydantic_redis model could not be serialized by orjson whereas pydantic could.
This allows to fallback and if pydantic can't serialize, it will throw the original TypeError so that's fine. Very plug&play.
Tell me if you want me to move that function somewhere else.
[Edit]
Issue #8 | diff --git a/pydantic_redis/abstract.py b/pydantic_redis/abstract.py
index a6633092..f7f584a0 100644
--- a/pydantic_redis/abstract.py
+++ b/pydantic_redis/abstract.py
@@ -21,6 +21,9 @@ class Config:
arbitrary_types_allowed = True
orm_mode = True
+def pydantic_serializer(data):
+ if isinstance(dat... | 4 | 3 | 1 | [{"id": "G0", "claim": "Share a sample model and add test case(s) in test_pydantic_redis.py for models with attributes annotated like List[Model] (and probably Dict[Any, Model], Tuple[Model]) so the bug scenario is covered by the test suite.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "i... | null |
sorbet__sorbet__10048 | sorbet/sorbet | 10,048 | defect | c90f12e4caee174477c29af9fd1e5e3d5c6bf493 | 54d60a2dd69a1bb06237cb7315f54014c92ad6aa | Fix RSpec describe class name collision for namespaced constants | ## Summary
When `--enable-experimental-rspec` is enabled, `RSpec.describe` with a namespaced constant generates a synthetic class using only the leaf constant name. This means `RSpec.describe Foo::Bar::Baz` and `RSpec.describe Foo::Qux::Baz` both produce `<describe 'Baz'>`, causing Sorbet to merge them into a single c... | diff --git a/rewriter/Minitest.cc b/rewriter/Minitest.cc
index 77f67114737..538b3f320b9 100644
--- a/rewriter/Minitest.cc
+++ b/rewriter/Minitest.cc
@@ -160,6 +160,17 @@ ast::ClassDef::RHS_store flattenDescribeBody(ast::ExpressionPtr body) {
return rhs;
}
+string constantToString(core::Context ctx, const ast::U... | 2 | 2 | 2 | [{"id": "G0", "claim": "The newly added constantToString helper in rewriter/Minitest.cc should be deleted.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In to_s, the constant branch should return the source text at the argument's location instead of the... | null |
sorbet__sorbet__10158 | sorbet/sorbet | 10,158 | defect | 3119ef5261ce5befc1208b458f4b2463f827d2d2 | d4d994d012bb045847e63e44fe8efb54e599f2dc | Allow new slow path edits to cancel preemption | When the slow path is running and we decide to schedule the preemption task, a new slow path edit arriving will be blocked from cancelling the slow path as long as preemptable tasks exist at the head of the queue. This will all resolve as soon as we start processing tasks during preemption (or those tasks at the head o... | diff --git a/main/lsp/LSPIndexer.cc b/main/lsp/LSPIndexer.cc
index de4e976a5ba..56d27140c02 100644
--- a/main/lsp/LSPIndexer.cc
+++ b/main/lsp/LSPIndexer.cc
@@ -12,6 +12,7 @@
#include "main/lsp/LSPConfiguration.h"
#include "main/lsp/ShowOperation.h"
#include "main/lsp/json_types.h"
+#include "main/lsp/notifications/... | 4 | 4 | 0 | [{"id": "G0", "claim": "jez asks why `absl::c_find_if_not` is used instead of `!task->canPreempt` with `c_find_if`, having had to look the function up, and the author agrees replacing it with `c_find_if` might be more readable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
sorbet__sorbet__10170 | sorbet/sorbet | 10,170 | defect | 8246827dfb77e83e23226fcc95fa8def0fbe770b | ce25961ec30a2142a016122e0d8096da6c992f30 | Allow preemption tasks to reschedule | This PR adds support for preemption tasks to reschedule themselves to run at a later stratum. It's prework for supporting preemption in package-directed mode, and won't have any effect on the current implementation's behavior.
The big change here is to plumb through the index of the stratum currently being typecheck... | diff --git a/core/lsp/PreemptionTask.h b/core/lsp/PreemptionTask.h
index b545ba8929a..1da2b4bdf09 100644
--- a/core/lsp/PreemptionTask.h
+++ b/core/lsp/PreemptionTask.h
@@ -1,6 +1,9 @@
#ifndef SORBET_LSP_PREEMPTION_TASK_H
#define SORBET_LSP_PREEMPTION_TASK_H
+#include <cstdint>
+#include <optional>
+
namespace sor... | 8 | 6 | 1 | [{"id": "G0", "claim": "The concurrent access patterns for the new atomic fields preemptionStratum and runnableAt should be made explicit (e.g. an ABSL_EXCLUSIVE_LOCKS_REQUIRED annotation), since it is not clear that plain atomics are sufficient versus mutex-guarded access.", "category": "correctness", "verdict": "supp... | null |
sorbet__sorbet__10196 | sorbet/sorbet | 10,196 | defect | 26af6535d9e95f89484159c8419ec0a94578bcb0 | e3f8bee50eaf330330aeca4babb7dc82b630ff76 | Support package-directed mode with preemption assertions | This PR sets us up for allowing the `preemptionsExpected` assertion to work with package-directed mode. Notably, it modifies the signature of `PreemptionTaskManager::tryRunScheduledPreemptionTask` and `PreemptionTask::run` to return more information about what the `PreemptionTask` did, so that it's now possible to diff... | diff --git a/core/lsp/PreemptionTask.h b/core/lsp/PreemptionTask.h
index 7c6e7b1e85b..d5a1cc3e48b 100644
--- a/core/lsp/PreemptionTask.h
+++ b/core/lsp/PreemptionTask.h
@@ -11,9 +11,22 @@ class PreemptionTask {
PreemptionTask() = default;
virtual ~PreemptionTask() = default;
+ struct RunResult {
+ ... | 4 | 3 | 0 | [{"id": "G0", "claim": "Introduce a real newtype for Stratum (for readability and to guard against >65k strata) instead of bare uint16_t, in a separate PR.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Document how tasksHandled and rescheduled relate (w... | null |
sorbet__sorbet__8173 | sorbet/sorbet | 8,173 | defect | 7f279d34b0670d69c4bd0f112c6b420d58d87ff5 | 12c260e09841c70c9de0b24b413d3acac1ff6f38 | Show doc comments above multiline sigs with braces | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
This adds support for showing documentation on hover for multi-line sigs that use braces. For example:
```ruby
# Show me!
sig {
void
}
def example!; end
```
This imp... | diff --git a/main/lsp/lsp_helpers.cc b/main/lsp/lsp_helpers.cc
index 0da5a774ac3..80d1cadf9b4 100644
--- a/main/lsp/lsp_helpers.cc
+++ b/main/lsp/lsp_helpers.cc
@@ -280,6 +280,41 @@ optional<string> findDocumentation(string_view sourceCode, int beginIndex) {
// Do nothing for a one-line sig block
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider factoring the code so that whitespace is stripped only once per loop iteration instead of possibly five times.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorbet__sorbet__8189 | sorbet/sorbet | 8,189 | defect | ed941c4176ecc02c6c73c80b44f64d0a4e984b27 | 95f636003f50bf79c7152c96d559da2923b340b3 | Add option for package directories that are constant names | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
This PR renames the `--extra-package-files-directory-prefix-slash` option to `--extra-package-files-directory-prefix-slash-deprecated`. Then, `--extra-package-files-directory-prefix... | diff --git a/core/GlobalState.cc b/core/GlobalState.cc
index f0c65864285..bba52fd8e3e 100644
--- a/core/GlobalState.cc
+++ b/core/GlobalState.cc
@@ -2387,6 +2387,7 @@ const packages::PackageDB &GlobalState::packageDB() const {
}
void GlobalState::setPackagerOptions(const std::vector<std::string> &extraPackageFilesD... | 3 | 3 | 0 | [{"id": "G0", "claim": "The help text of the renamed deprecated option should mention why it is deprecated (at least in favor of what).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The help-text example for the new slash option should use a Came... | null |
sorbet__sorbet__8239 | sorbet/sorbet | 8,239 | defect | 5688626dcb41dd0bd9da35c73b07ee082cf55925 | b96c35e9bd3de86b851f5607216b379d0bd2e2f2 | Only check strict_dependencies and layer options when --packager-layers flag is passed | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
This provides a way to enable the packaging system... | diff --git a/core/packages/PackageDB.cc b/core/packages/PackageDB.cc
index b50aeded632..57698adfd4c 100644
--- a/core/packages/PackageDB.cc
+++ b/core/packages/PackageDB.cc
@@ -217,6 +217,10 @@ const std::vector<core::NameRef> &PackageDB::layers() const {
return layers_;
}
+const bool PackageDB::layeringChecksE... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new PackageDB method should be named `enforceLayering` instead of `layeringChecksEnabled` to match the name of the lint rules.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the new raw.count... | null |
sorbet__sorbet__8264 | sorbet/sorbet | 8,264 | defect | 4dcd05eccb2abcc3e856bbc78934aa9c0ad47259 | e603a14b0ae3a732214cc0eba8ffff6dbbc91720 | Track indexing errors on files, instead of only parse errors | Instead of tracking only parse errors on files, track whether or not errors were raised during the indexing phase of the pipeline. This allows errors during the desugar, rewriter, and local_vars passes to also prevent the file from being cached.
### Motivation
Fixes #8263
### Test plan
<!-- If you did not write... | diff --git a/core/Files.cc b/core/Files.cc
index 1464670c523..7e13b8dda8a 100644
--- a/core/Files.cc
+++ b/core/Files.cc
@@ -107,7 +107,7 @@ bool File::isPackagePath(string_view path) {
}
File::Flags::Flags(string_view path)
- : cached(false), hasParseErrors(false), isPackagedTest(isTestPath(path)), isPackageRBI... | 4 | 2 | 1 | [{"id": "G1", "claim": "The completion.cc call site now checks hasIndexErrors instead of hasParseErrors, which is one place the behavior change could affect things — audit the call site to see whether it causes problems for what the typed-false completion nudge was meant to do.", "category": "correctness", "verdict": "... | null |
sorbet__sorbet__8303 | sorbet/sorbet | 8,303 | defect | c1678be7c00cd2beb40adc153ccce5c424fd57a2 | 33e5fc0064555dd6306cb5cbbeb16d23ab47a5be | Restructure how overloads are stored in the symbol table | Currently, methods with overloaded signatures present move the original definition's symbol out of the way with a special `MangleRenameOverload` name and give the first overload the method's original name. All subsequent overload sigs are given separate unique `Overload` names to indicate that they are the additional o... | diff --git a/core/GlobalState.cc b/core/GlobalState.cc
index 97f6821cf2c..430581fcf78 100644
--- a/core/GlobalState.cc
+++ b/core/GlobalState.cc
@@ -1810,17 +1810,17 @@ NameRef GlobalState::nextMangledName(ClassOrModuleRef owner, NameRef origName) {
return name;
}
-void GlobalState::mangleRenameMethodInternal(M... | 4 | 4 | 3 | [{"id": "G0", "claim": "It is an open question whether the namer must also iterate the overloads and apply the same name mangling, or whether it can rely on the resolver to do all of that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Having the na... | null |
sorbet__sorbet__8312 | sorbet/sorbet | 8,312 | defect | 65afa6eeb58c4b5b263ef1336e7f7f36d38851af | 704287bb7873db2f01debcfdd61a5abb7498bd1a | Parallelize `Packager::runIncremental` | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
Per the tin.
The change passes a worker pool into `Packager::runIncremental` and uses existing concurrency primitives to run the body of the function in parallel. Very similar t... | diff --git a/main/pipeline/pipeline.cc b/main/pipeline/pipeline.cc
index 8f569af70fc..2845b74e3b2 100644
--- a/main/pipeline/pipeline.cc
+++ b/main/pipeline/pipeline.cc
@@ -255,7 +255,7 @@ incrementalResolve(core::GlobalState &gs, vector<ast::ParsedFile> what,
// the package prefixes" with the later living... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the now-stale `// TODO(jez) Parallelize this` comment above the `Packager::runIncremental` call in main/pipeline/pipeline.cc, as was already done for the twin TODO in packager.cc.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorbet__sorbet__8518 | sorbet/sorbet | 8,518 | defect | 3ef93c36999670a287f9c933466e47a5703c9abe | 400680befabd5350ebae1e3d223ca02717d4c704 | Rework how the file table api interacts with shared_ptr values | The methods that manage the file table on `GlobalState` currently accept `const std::shared_ptr<core::File> &` values. This means that every time we enter a file into the file table we will at a minimum copy the `shared_ptr` in `enterFile` which will increment the ref count, and then destroy the original in the caller ... | diff --git a/core/GlobalState.cc b/core/GlobalState.cc
index 1da7e952917..4905fb821eb 100644
--- a/core/GlobalState.cc
+++ b/core/GlobalState.cc
@@ -1730,7 +1730,7 @@ NameRef GlobalState::freshNameUnique(UniqueNameKind uniqueNameKind, NameRef orig
return name;
}
-FileRef GlobalState::enterFile(const shared_ptr<... | 1 | 1 | 0 | [{"id": "G0", "claim": "The code should manipulate the strictLevel on `forWhat` before entering the file, rather than re-looking it up in the file table here and, presumably, in `decideStrictLevel`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
sorbet__sorbet__8560 | sorbet/sorbet | 8,560 | defect | fafc7c209d63f0f8c10f0755f05602df973df155 | c19b00ff2d198f08d3f186b8715001b97fc5555d | import LLVM's `TrailingObjects.h` | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
This PR is a little odd in that it doesn't add any... | diff --git a/core/TrailingObjects.h b/core/TrailingObjects.h
new file mode 100644
index 00000000000..36ec44cdd20
--- /dev/null
+++ b/core/TrailingObjects.h
@@ -0,0 +1,341 @@
+#ifndef SORBET_TRAILING_OBJECTS_H
+#define SORBET_TRAILING_OBJECTS_H
+
+#include "common/common.h"
+
+// This file is largely copied from LLVM's ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Make sure to mention which license the imported TrailingObjects.h code is under.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorbet__sorbet__8599 | sorbet/sorbet | 8,599 | defect | 33e70a6a58cbb03dc0440c9a88eddd1d404d0ed6 | 268b69241e28a8dc71b74937ac5323b061d9f71a | Check for valid file extensions in LSP | When canonicalizing edits in the `LSPPreprocessor`, ensure that files have an allowed extension, in addition to not being ignored.
### Motivation
Ensuring that we don't try to process ignored files in LSP.
### Test plan
<!-- If you did not write tests for this change, replace the message below explaining why not. Why... | diff --git a/main/lsp/LSPConfiguration.cc b/main/lsp/LSPConfiguration.cc
index b5b705d3015..4394f78fab0 100644
--- a/main/lsp/LSPConfiguration.cc
+++ b/main/lsp/LSPConfiguration.cc
@@ -274,6 +274,16 @@ bool LSPConfiguration::isFileIgnored(string_view filePath) const {
return FileOps::isFileIgnored(rootPath, filePa... | 2 | 2 | 1 | [{"id": "G0", "claim": "Set the default set of allowed extensions in options.h and delete the options.cc logic that fills it in when no --allowed-extension option is passed, so places that create a bare options struct no longer have to set it themselves.", "category": "design", "verdict": "supported", "priority": "P1",... | null |
sorbet__sorbet__8630 | sorbet/sorbet | 8,630 | defect | 4073d3e63acfebeb7721b02502397f4b84d456b4 | cc3fa6cb2982f85df4645441fe1d8b55f24ed8e8 | Add RBS comments for `T.let` assertions | ### Motivation
Introduce inline RBS comments to replace `T.let`:
```rb
x = foo #: String
```
is equivalent to:
```rb
x = T.let(foo, String)
```
This is done through a new `RBS Assertions` rewriter. Most of the complexity is handling cases we desugared in the previous pipeline step. I documented each ... | diff --git a/core/GlobalState.cc b/core/GlobalState.cc
index 832956f275c..eb43ebf5772 100644
--- a/core/GlobalState.cc
+++ b/core/GlobalState.cc
@@ -2082,6 +2082,7 @@ void GlobalState::copyOptions(const core::GlobalState &other) {
this->censorForSnapshotTests = other.censorForSnapshotTests;
this->sleepInSlowP... | 11 | 10 | 1 | [{"id": "G0", "claim": "The 'Caveats' section in website/docs/rbs-support.md should remain a top-level (##) heading because these caveats apply to both features.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'The Sorbet docs will continue usi... | null |
sorbet__sorbet__8641 | sorbet/sorbet | 8,641 | defect | 255d68549bb78bf01b3d4f6e7769006b2fb2ab65 | f635f04422c6dcb54bba7233057113cd07581ec7 | Cancelable indexer | Plumb cancelation support through the `pipeline::index` pass, in anticipation of supporting reindexing in the slow path in LSP. This is implemented in roughly the same way as cancellation for typechecking, adding a boolean parameter that we consult before checking for a cancelation, allowing batch mode to fully disable... | diff --git a/hashing/hashing.cc b/hashing/hashing.cc
index efc1e5f456a..760a1d89784 100644
--- a/hashing/hashing.cc
+++ b/hashing/hashing.cc
@@ -167,12 +167,16 @@ void Hashing::computeFileHashes(absl::Span<const shared_ptr<core::File>> files,
}
}
-vector<ast::ParsedFile> Hashing::indexAndComputeFileHashes(core:... | 3 | 3 | 0 | [{"id": "G0", "claim": "The #include \"ast/Trees.h\" this PR adds to hashing/hashing.h makes the forward declaration of sorbet::ast::ParsedFile below it redundant, so it can probably be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cop... | null |
sorbet__sorbet__8678 | sorbet/sorbet | 8,678 | defect | d9180005d326826231c11cb5cae0a1f8eeae6369 | 769863c66d47ffb296c1b32b1b7b8f7bbcbb790c | Store lineBreaks with uint32_t | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
This lets us not lie when we call `c_lower_bound`, becau... | diff --git a/ast/desugar/Desugar.cc b/ast/desugar/Desugar.cc
index ef0bd510792..2e1e419eee4 100644
--- a/ast/desugar/Desugar.cc
+++ b/ast/desugar/Desugar.cc
@@ -2346,9 +2346,9 @@ ExpressionPtr node2TreeImplBody(DesugarContext dctx, parser::Node *what) {
result = std::move(res);
},
... | 3 | 3 | 0 | [{"id": "G0", "claim": "Fix the typo in the lexer.rl comment so it reads 'greater than or equal to' instead of 'great than or equal to'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Change INVALID_POS_LOC to uint32_t on this PR so that the file-... | null |
sorbet__sorbet__8682 | sorbet/sorbet | 8,682 | defect | 4073d3e63acfebeb7721b02502397f4b84d456b4 | 8d78a4a4a0947a80b49ec616ca9439161068a3e8 | Add a new type for managing kvstore copies | This PR adds the `cache::SessionCache` type, which makes it easy to manage the lifetime of a copy of the kvstore that's only meant to live until the end of the current LSP session.
### Motivation
Make it easier to manage a copy of the kvstore for a single LSP session.
### Test plan
<!-- If you did not write tests for... | diff --git a/common/kvstore/KeyValueStore.cc b/common/kvstore/KeyValueStore.cc
index 0800c4d95e7..4e4ae51a1e0 100644
--- a/common/kvstore/KeyValueStore.cc
+++ b/common/kvstore/KeyValueStore.cc
@@ -482,4 +482,27 @@ unique_ptr<KeyValueStore> OwnedKeyValueStore::bestEffortCommit(spdlog::logger &l
return move(ownedKvs... | 7 | 4 | 0 | [{"id": "G0", "claim": "The error message added in OwnedKeyValueStore::copyTo assumes the function is only ever used from SessionCache::make, and the author is open to better wording.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The openCache he... | null |
sorbet__sorbet__8683 | sorbet/sorbet | 8,683 | defect | 4073d3e63acfebeb7721b02502397f4b84d456b4 | b267c2bd7341d9ad584ce4ffe65896f68e8c1b75 | Add concept of "cache-sensitive" options | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
1. The `--typed-super` feature is currently broken when... | diff --git a/ast/desugar/Desugar.cc b/ast/desugar/Desugar.cc
index ef0bd510792..4815060ea49 100644
--- a/ast/desugar/Desugar.cc
+++ b/ast/desugar/Desugar.cc
@@ -230,8 +230,9 @@ ExpressionPtr desugarBegin(DesugarContext dctx, core::LocOffsets loc, parser::No
}
core::NameRef maybeTypedSuper(DesugarContext dctx) {
- ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The CacheSensitiveOptions type added in main/options/options.h and the equivalent struct in core/GlobalState.h should be the same type (or otherwise kept in sync) so the two cannot drift apart.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
sorbet__sorbet__8727 | sorbet/sorbet | 8,727 | defect | dcbb2f3cdd968b9cebadd8c29f5d87c91447872e | 0c8d97e03e3bde5b7c5d7b2ae8d5f6ebbc0237e6 | Move some PackageSpec rewrites to `rewriter` | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
- This allows us to cache certain rewrites, which means ... | diff --git a/ast/packager/BUILD b/ast/packager/BUILD
new file mode 100644
index 00000000000..a42b7521a3c
--- /dev/null
+++ b/ast/packager/BUILD
@@ -0,0 +1,28 @@
+cc_library(
+ name = "packager",
+ srcs = glob(
+ [
+ "*.cc",
+ "*.h",
+ ],
+ exclude = [
+ "*_tes... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new rewriter/PackageSpec.h header carries only a \"TODO(jez) Document me\" placeholder instead of a real doc comment, and should be documented.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorbet__sorbet__8738 | sorbet/sorbet | 8,738 | defect | 1920d186acadb3a67a815fd69e90b57dcb581113 | afb9d459337a1eccea60abe2b5e4741c6b0e874a | Stop sending indexed trees to the typechecker | It's not necessary to send indexed trees to the typechecker thread now that we don't keep a cache of those trees for bootstrapping the slow path. Let's remove that field, and stop copying the trees to the typechecker thread.
This raises the question of what to do with the open files cache that the LSPTypechecker mai... | diff --git a/main/lsp/LSPFileUpdates.cc b/main/lsp/LSPFileUpdates.cc
index a5cd744b05e..a9a2d5b410b 100644
--- a/main/lsp/LSPFileUpdates.cc
+++ b/main/lsp/LSPFileUpdates.cc
@@ -11,25 +11,18 @@ void LSPFileUpdates::mergeOlder(const LSPFileUpdates &older) {
cancellationExpected = cancellationExpected || older.cancel... | 4 | 3 | 1 | [{"id": "G0", "claim": "The author would rather clean out the cache of indexed trees completely and wait for the fast path to repopulate it than keep the new cacheOpenFiles population on the slow path.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Calli... | null |
sorbet__sorbet__8739 | sorbet/sorbet | 8,739 | defect | 1920d186acadb3a67a815fd69e90b57dcb581113 | e87ca6609fd78d0fd4d3f2ef3b0ff96a07716505 | Stop copying the GlobalState from the indexer on the slow path | As we're no longer sending indexed trees from the indexer to the typechecker, there's now no reason to require a copy of the indexer's global state to bootstrap the slow path. This PR starts the slow path with a copy of the typechecker's global state with its symbol table reset to that of the payload.
This also mean... | diff --git a/core/serialize/serialize.cc b/core/serialize/serialize.cc
index 0ce2767dad3..218b40bb656 100644
--- a/core/serialize/serialize.cc
+++ b/core/serialize/serialize.cc
@@ -1125,6 +1125,31 @@ void Serializer::loadGlobalState(GlobalState &gs, const uint8_t *const symbolTab
}
}
+void Serializer::initForSl... | 11 | 6 | 0 | [{"id": "G0", "claim": "The slow-path copy helpers sit in odd places — a copy function in serialize.cc and a new payload method — and should be restructured as a GlobalState::copyForSlowPath method plus a pipeline::copyForSlowPath function instead.", "category": "design", "verdict": "supported", "priority": "P2", "scop... | null |
sorbet__sorbet__8759 | sorbet/sorbet | 8,759 | defect | 7e9360314c8ec116c325a677fa507f03edef4ef4 | 1f32b7f0494ff5f4fe1b8d450ea2e45540da4683 | Introduce `CommentsAssociator` to map nodes and comments for RBS translation | This PR is split into 3 commits:
1. Modified `Parser::run` and its usages to accommodate `ParseResult`, a struct that contains the collected comments as well as the ast.
2. `CommentsAssociator` that maps nodes and comments to be used for `SigsRewriter` and `AssertionsRewriter`, simplifying the overall implementation... | diff --git a/ast/desugar/test/desugar_test.cc b/ast/desugar/test/desugar_test.cc
index cc3f95d2f86..601098a4d97 100644
--- a/ast/desugar/test/desugar_test.cc
+++ b/ast/desugar/test/desugar_test.cc
@@ -28,7 +28,7 @@ TEST_CASE("SimpleDesugar") { // NOLINT
sorbet::core::FileRef fileId = gs.enterFile("<test>", "def ... | 15 | 14 | 3 | [{"id": "G0", "claim": "Convert the comment locations from std::pair<size_t, size_t> to core::LocOffsets in the parser driver; the author was blocked by a missing include and offered to refactor once unblocked.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
sorbet__sorbet__8787 | sorbet/sorbet | 8,787 | defect | 740033ffbc4deeb3f208fb68ef60edff978c8d30 | 07bfaaba655014c963609364d11a3f02b0db41d4 | Selectively recompute type members in finalizeSymbols | As we explicitly reset the resultType for symbols in the fast+incremental path, we also know which symbols we'll need to recompute later. This PR starts conditionally tracking those symbols, so that we can avoid traversing the whole symbol table when resolving type members.
### Motivation
Improving the performance of ... | diff --git a/main/pipeline/pipeline.cc b/main/pipeline/pipeline.cc
index 67013ad47f4..0f7395b80fb 100644
--- a/main/pipeline/pipeline.cc
+++ b/main/pipeline/pipeline.cc
@@ -1149,6 +1149,7 @@ incrementalResolve(core::GlobalState &gs, vector<ast::ParsedFile> what,
what = packager::Packager::runIncremental(gs... | 3 | 3 | 2 | [{"id": "G0", "claim": "The `sorbet::` prefixes on the `namer::Namer` and `resolver::Resolver` calls in `incrementalResolve` are unnecessary and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The new `symbolsToRecompute` par... | null |
sorbet__sorbet__8832 | sorbet/sorbet | 8,832 | defect | 5c72fd96fd4f5d515bfd7b21afeee0b6ec6625df | 70c21c1355c10e94809ac96ca886588c1da1d742 | Sync the file table between the typechecker and indexer after init | In #8807 we broke the connection between the typechecker and indexer, removing the copy of the global state from the `IndexerInitializationTask` message. This introduced a bug: the indexer uses presence in the file table to determine if a file is new, and now that the file tables don't agree opening a file forces the s... | diff --git a/main/lsp/LSPIndexer.cc b/main/lsp/LSPIndexer.cc
index 05b35a625c1..fc5ade95ac3 100644
--- a/main/lsp/LSPIndexer.cc
+++ b/main/lsp/LSPIndexer.cc
@@ -287,10 +287,24 @@ void LSPIndexer::transferInitializeState(InitializedTask &task) {
task.setKeyValueStore(std::move(this->kvstore));
}
-void LSPIndexer... | 3 | 1 | 0 | [{"id": "G0", "claim": "The files vector should be taken by rvalue reference instead of by value in LSPIndexer::initialize (and IndexerInitializationTask's constructor), so it is moved rather than copied.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
sorbet__sorbet__8863 | sorbet/sorbet | 8,863 | defect | 035cf4210fa33c849e3fee7f8a991f0bc7986755 | e5d531e345a56527829c44e29a546438f22a71f1 | Combine the 2 experimental RBS options into a single option | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
Deprecates `--enable-experimental-rbs-signatures` and `--enable-experimental-rbs-assertions` in favour of `--enable-experimental-rbs-comments`
### Motivation
<!-- Why make this ... | diff --git a/core/GlobalState.h b/core/GlobalState.h
index baff818dfaa..08546ca997b 100644
--- a/core/GlobalState.h
+++ b/core/GlobalState.h
@@ -328,11 +328,8 @@ class GlobalState final {
// Some calls to `super` are not type checked due to incomplete/imperfect information.
bool typedSuper = true;
-... | 4 | 3 | 3 | [{"id": "G0", "claim": "Do not add the DeprecatedOptionError ErrorClass; report the deprecated options during option parsing instead (the usual option-parser reporting), which also makes the extra fields in the CacheSensitiveOptions struct unnecessary.", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
sorbet__sorbet__8888 | sorbet/sorbet | 8,888 | defect | cd728f0b5b240b2366c0029a2bbf66a4f4f3ca05 | 304de26cce5460958de8787078df36d2eb294b19 | Compute the package graph condensation | Compute the condensation of the package graph, which we can then use to direct the pipeline. This runs Tarjan's algorithm twice: once for the regular imports of a package and once for the test imports. This yields two SCC IDs for each package: that of its application dependencies and that of its test dependencies. As i... | diff --git a/core/packages/Condensation.cc b/core/packages/Condensation.cc
new file mode 100644
index 00000000000..7817503c7ab
--- /dev/null
+++ b/core/packages/Condensation.cc
@@ -0,0 +1,85 @@
+#include "core/packages/Condensation.h"
+#include "core/GlobalState.h"
+
+using namespace std;
+
+namespace sorbet::core::pac... | 8 | 7 | 0 | [{"id": "G0", "claim": "Constructing the result spans during the traversal is fragile because a vector reallocation would invalidate them; storing start/length pairs instead might be safer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Building the cond... | null |
sorbet__sorbet__8895 | sorbet/sorbet | 8,895 | defect | 403b467413244eca1ce488ab4a5bfe3b9bc3d43c | 849f1624d0f4101796b99685094946354f4b4d1c | Distinguish between test helper and runnable test imports in package mode | This introduces a new form of test import, which is written as
```ruby
test_import PackageName, only: :test_rb
```
This also makes a distinction between "test helpers" (i.e. files defined in `/test/` that do _not_ end in `.test.rb`, which are expected to define helpers used in other tests) and "test units" (i.e... | diff --git a/core/Files.cc b/core/Files.cc
index 2c18ecf46d7..5c0348a277c 100644
--- a/core/Files.cc
+++ b/core/Files.cc
@@ -89,6 +89,10 @@ bool isTestPath(string_view path) {
return absl::EndsWith(path, ".test.rb") || absl::StrContains(path, "/test/");
}
+bool isTestHelperPath(string_view path) {
+ return a... | 12 | 10 | 3 | [{"id": "G0", "claim": "jez asks whether the addImport logic is missing an autocorrect that converts a test import to a test helper import, stressing that getting these autocorrects right is important.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
sorbet__sorbet__8961 | sorbet/sorbet | 8,961 | defect | 3e90617a9e09429439159ee3f841eb482f0dbfde | 1777ee501b1cb0276b5b72537bc0ac78ff1f9cd7 | Don't send responses to signatureHelp if funLoc doesn't exist | When responding to a `textDocument/signatureHelp` request, we may be witin a send that was synthesized to help inference (like with `<Magic>.<build-hash>`). In cases like this, we really don't want to respond with anything, as this method is an internal detail that isn't helpful to make the user aware of.
This PR fixe... | diff --git a/main/lsp/requests/signature_help.cc b/main/lsp/requests/signature_help.cc
index f0679604857..03d69173dbb 100644
--- a/main/lsp/requests/signature_help.cc
+++ b/main/lsp/requests/signature_help.cc
@@ -80,7 +80,13 @@ unique_ptr<ResponseMessage> SignatureHelpTask::runRequest(LSPTypecheckerDelegate
au... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using `funLoc.exists()` to decide that a send is synthetic is not 100% right — a non-synthetic send like `f.()` on a proc (which errors with 'Not enough arguments') may also have no funLoc, so signature help would be wrongly suppressed; the `hasAngleBrackets` helper used throughout completion.cc... | null |
sorbet__sorbet__8990 | sorbet/sorbet | 8,990 | defect | f04339c1be3a9d3b00dec2be1f214b7c92da3328 | 9c0329c901112bf14d362eb4f4a758e5b5831f52 | Small autogen memory improvements | We can free the trees given to autogen as soon as they're walked, which will make room for the string/msgpack allocations to follow.
We can also cut out 8 bytes from the `Reference` type by reorganizing fields to pack a bit better.
### Motivation
Improving autogen memory usage.
### Test plan
<!-- If you did ... | diff --git a/main/autogen/autogen.cc b/main/autogen/autogen.cc
index 43f1af5982d..bb8de6e33db 100644
--- a/main/autogen/autogen.cc
+++ b/main/autogen/autogen.cc
@@ -422,7 +422,7 @@ ParsedFile Autogen::generate(core::Context ctx, ast::ParsedFile tree, const Auto
pf.path = string(tree.file.data(ctx).path());
au... | 1 | 1 | 0 | [{"id": "G0", "claim": "CheckSize assertions should be added for the structs in main/autogen/data/definitions.h whose layout this PR touched (e.g. Definition and Reference).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorbet__sorbet__9106 | sorbet/sorbet | 9,106 | defect | 87286f8fe42a94bd25cfcaefcbe5a298e1d6bb3e | 460ee897a4df86627f5eefdab4496c52d619c38b | Use the current PID as the unique sufix for the session cache | Instead of picking a random number for the session cache suffix, use the PID of the current Sorbet process. This change means that we need to consider the case where a cache directory exists already, as we could be starting after a crash and thus may see a reused PID.
### Motivation
Working towards a process for re... | diff --git a/main/cache/cache.cc b/main/cache/cache.cc
index fdc5f7b9c34..1e3fccfa92f 100644
--- a/main/cache/cache.cc
+++ b/main/cache/cache.cc
@@ -208,26 +208,32 @@ unique_ptr<KeyValueStore> maybeCacheGlobalStateAndFiles(unique_ptr<KeyValueStore
return kvstore;
}
-SessionCache::SessionCache(string path) : pat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `#include <vector>` added to main/cache/cache.h may not be needed in the header anymore (a nit asking to drop it).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
sorbet__sorbet__9116 | sorbet/sorbet | 9,116 | defect | b8a0444709ef6ff421a9a82940f05397c6fb2412 | c04da8b26c9e75d1c89c41c5f36973982c73bb3d | Reap old session caches on startup | As crashes or other incorrect LSP shutdowns will leave sesesion caches around, this PR builds on #9106 to remove session caches that don't correspond to active Sorbet processes.
### Motivation
Avoiding unbounded cache growth that can arise from LSP session caches.
Fixes #9098
### Test plan
<!-- If you did n... | diff --git a/common/FileOps.h b/common/FileOps.h
index 5cf08331449..5c439d5b65a 100644
--- a/common/FileOps.h
+++ b/common/FileOps.h
@@ -53,6 +53,13 @@ class FileOps final {
WorkerPool &workers, bool recursive,
const... | 5 | 5 | 1 | [{"id": "G0", "claim": "listSubdirs returns without closing the DIR handle opened by opendir, leaking it on every call.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Nit: you can just pass the string_view `name` directly to emplace_back instead of ... | null |
sorbet__sorbet__9131 | sorbet/sorbet | 9,131 | defect | afdd2c0d0368464dce88a55b4539f488a4b06492 | 9d89daf61061ea1411ea2ae0961a522c36554928 | Add tests for Prism's direct desugaring | ### Motivation
When using Prism, an ever-increasing amount of the desugaring will be done immediately in `Translator.cc`. This PR adds a test that compares that logic to the original `Desugar.cc` codepath.
We use `ast::ExpressionPtr.structurallyEqual()` to do an in-memory comparison. If there's a discrepancy, we ... | diff --git a/parser/prism/Parser.cc b/parser/prism/Parser.cc
index 26b4e8f0c3c..3c8a773430c 100644
--- a/parser/prism/Parser.cc
+++ b/parser/prism/Parser.cc
@@ -7,12 +7,13 @@ using namespace std;
namespace sorbet::parser::Prism {
-unique_ptr<parser::Node> Parser::run(core::GlobalState &gs, core::FileRef file) {
+u... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new comparison code computes the showRawWithLocs diff when the trees are structurally equal and has no handling for when structurallyEqual returns false — the opposite of the behaviour the description states.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
sorbet__sorbet__9210 | sorbet/sorbet | 9,210 | defect | 50cbfe14035749ba89065993ba046bf879bc9157 | 20bdfd0182a682d5cbb6ae4e20cd0b5461239073 | Support RBS with Prism | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
Best reviewed commit by commit
Supports using RBS comments with the Prism parser by:
- Collecting comments parsed by Prism
- Changing the plumbing to access these comments from... | diff --git a/main/options/options.cc b/main/options/options.cc
index 83539748a5c..4320e3d8e92 100644
--- a/main/options/options.cc
+++ b/main/options/options.cc
@@ -1018,12 +1018,6 @@ void readOptions(Options &opts,
opts.stopAfterPhase = extractStopAfter(raw, logger);
opts.parser = extractParser(raw... | 4 | 3 | 1 | [{"id": "G0", "claim": "Collecting comment locations should be optional, returning an empty vector when RBS mode is not enabled, instead of always walking the comment list on every parse.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "An `ENFORCE(co... | null |
sorbet__sorbet__9224 | sorbet/sorbet | 9,224 | defect | fd325a60368174b9f857b6d36fa5c8da1ee9e270 | 6ed1c618c9f1ad3e5b61d7a6f66976758d1dd1e7 | Leak trees in autogen | I thought we used to do this, but it appears that we move ownership of trees into `Autogen::generate` and don't move them back out again. As a result, we'll free the trees in `Autogen::generate` instead of leaking the memory. This PR goes back to explicitly leaking the tree when we run autogen.
### Motivation
Perfo... | diff --git a/main/autogen/autogen.cc b/main/autogen/autogen.cc
index bb8de6e33db..61f97929c1f 100644
--- a/main/autogen/autogen.cc
+++ b/main/autogen/autogen.cc
@@ -4,6 +4,7 @@
#include "ast/ast.h"
#include "ast/treemap/treemap.h"
#include "common/common.h"
+#include "common/os/os.h"
#include "common/strings/format... | 1 | 1 | 0 | [{"id": "G0", "claim": "Trees are also leaked later on in main/realmain.cc (around line 908) and the reviewer asks whether that site also needs the same change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
sorbet__sorbet__9277 | sorbet/sorbet | 9,277 | defect | 8e87fb9961da27cbf78efea8632689d1ecb0c609 | 2c51ac40ca8a68c02923d532477dee94907fdebb | Fix ENFORCE failure in test_each+let support | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
See also: #2128 for original context of this.
We don't actually depend on this except via code in `Verifier::run`.
It appears that Sorbet is actually able to define and reso... | diff --git a/rewriter/Minitest.cc b/rewriter/Minitest.cc
index 9ee7acd06cb..8d0dd5d03dc 100644
--- a/rewriter/Minitest.cc
+++ b/rewriter/Minitest.cc
@@ -289,7 +289,13 @@ ast::ExpressionPtr runUnderEach(core::MutableContext ctx, core::NameRef eachName
if (argLiteral.isName()) {
auto declLoc... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `test_each` in the added test isn't actually required to trigger the ENFORCE, since removing it still triggers one.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sorbet__sorbet__9278 | sorbet/sorbet | 9,278 | defect | 8e87fb9961da27cbf78efea8632689d1ecb0c609 | 21aa7f837f5dc7fb4c67170c6726fb6eac1a9c87 | minitest: Also support `let!` and `subject` | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
Minitest natively includes support for `subject`:
... | diff --git a/core/tools/generate_names.cc b/core/tools/generate_names.cc
index bbb0f5b9300..0b8eeb3ebd2 100644
--- a/core/tools/generate_names.cc
+++ b/core/tools/generate_names.cc
@@ -156,6 +156,8 @@ NameDef names[] = {
{"assertType", "assert_type!"},
{"cast"},
{"let"},
+ {"let_bang", "let!"},
+ {... | 2 | 2 | 0 | [{"id": "G0", "claim": "The arity checks in the `let`/`let!`/`subject` condition are redundant with the same checks performed in `getLetNameAndDeclLoc`, so the condition could probably be simplified to checking for the method names only.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
sorbet__sorbet__9311 | sorbet/sorbet | 9,311 | defect | 5f82690d65c4e8300bdd01a46db44bef52a03c44 | 1e154a09304cb2a5b98d50c753f82db3aa4fd5d9 | Add support for RSpec's SharedExampleGroup | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
Attempting to recreate #9119, but with smaller pie... | diff --git a/core/tools/generate_names.cc b/core/tools/generate_names.cc
index 6110ba03038..bd92cdc2922 100644
--- a/core/tools/generate_names.cc
+++ b/core/tools/generate_names.cc
@@ -280,8 +280,16 @@ NameDef names[] = {
{"itAngles", "<it>"},
{"testEach", "test_each"},
{"testEachHash", "test_each_hash"}... | 4 | 1 | 0 | [{"id": "G0", "claim": "The changed condition at rewriter/Minitest.cc:311 almost looks like a De Morgan transformation that does not flip the sense of the `.size()` comparison, and the reviewer asks whether that is deliberate.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, ... | null |
sorbet__sorbet__9320 | sorbet/sorbet | 9,320 | defect | 975149994ba784ce0938a3d11f2d429a820bddc1 | dfb67b6c69afe8d0d1b4b2179f6e6bfdd7860160 | Add `--sorbet-packages` as an alias for `--stripe-packages` | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
Eventually we want this to be more widely used than just... | diff --git a/core/proto/proto.cc b/core/proto/proto.cc
index 8f42db4e2a1..0faf9d569b6 100644
--- a/core/proto/proto.cc
+++ b/core/proto/proto.cc
@@ -382,7 +382,7 @@ com::stripe::rubytyper::FileTable Proto::filesToProto(const GlobalState &gs,
const UnorderedMap<long... | 4 | 4 | 0 | [{"id": "G0", "claim": "The error message for --experimental-package-directed still names --stripe-packages mode and should be changed to --sorbet-packages mode.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message for --package-skip... | null |
sorbet__sorbet__9342 | sorbet/sorbet | 9,342 | defect | 68f9de6cc1e5109bf244370876233f35e9b50fa3 | ed0c428fe96dec45d373d020f22e904826b30358 | Move export handling to VisibilityChecker | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
Moving exports to VisibilityChecker
- Means tha... | diff --git a/core/packages/PackageInfo.cc b/core/packages/PackageInfo.cc
index 4a51836d7c2..30f067a7ce7 100644
--- a/core/packages/PackageInfo.cc
+++ b/core/packages/PackageInfo.cc
@@ -23,21 +23,12 @@ string_view strictDependenciesLevelToString(StrictDependenciesLevel level) {
}
}
-string FullyQualifiedName::sh... | 7 | 7 | 0 | [{"id": "G0", "claim": "The addExport autocorrect message should still say `Export ... in package ...`, to match what addImport's message says, instead of the new `Add ... in package ...` wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
sorbet__sorbet__9435 | sorbet/sorbet | 9,435 | defect | e7aa6985004e02219a2ed03d4d308e1951a78349 | 15230b20e7e691ebb79f1e41a2bfd331a2055afa | Add support for RSpec `its` test DSL | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
### Test plan
<!-- If you did not write tests for this ... | diff --git a/core/tools/generate_names.cc b/core/tools/generate_names.cc
index 62481eea4e0..d147f4348a5 100644
--- a/core/tools/generate_names.cc
+++ b/core/tools/generate_names.cc
@@ -279,6 +279,7 @@ NameDef names[] = {
{"focus"},
{"pending"},
{"skip"},
+ {"its"},
{"before"},
{"beforeAngles... | 1 | 1 | 1 | [{"id": "G0", "claim": "The its implementation does not model self properly inside the block; elliottt asked for tests using T.reveal_type(self) within the block of an its usage to make the current limitations obvious.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sorbet__sorbet__9445 | sorbet/sorbet | 9,445 | defect | aae2c6ceec1444f37674957cdf1b14fa75707d7d | 71e130a9806cfc07f421121ac644aec743a9a7c1 | Add a version of textDocument/references that includes parents | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
The implementation is working correctly on all test cases, and I think that the logic is pretty robust (it generalizes some concepts we used in the AbstractRenamer), so I think it... | diff --git a/README.md b/README.md
index 7f4abc1e93b..56aaa979832 100644
--- a/README.md
+++ b/README.md
@@ -856,6 +856,30 @@ an example.
To craft an update to an RBI file, use `.rbiupdate` instead of `.rbupdate`,
unless you mean to simulate the effect of converting an RBI file to an RB file.
+#### Testing `sorbet/... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new custom request's name `sorbet/hierarchyReferences` is a placeholder, and the author asks for feedback on what the feature should be called, especially what users would see in the VS Code UI.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
sorbet__sorbet__9484 | sorbet/sorbet | 9,484 | defect | e7aa6985004e02219a2ed03d4d308e1951a78349 | f39f327d24e717b4beedf5030d6ecc808df6300f | Detect `RSpec.describe` in addition to `describe` | The goal of this PR is to activate `RSpec` typing to ensure that `RSpec::Core::ExampleGroup` API is available in the nested `it` blocks. | diff --git a/core/GlobalState.h b/core/GlobalState.h
index eedff455ae1..c8996d2b800 100644
--- a/core/GlobalState.h
+++ b/core/GlobalState.h
@@ -360,6 +360,9 @@ class GlobalState final {
// problems.
bool requiresAncestorEnabled = false;
+ // Whether to enable experimental RSpec support for R... | 4 | 2 | 2 | [{"id": "G0", "claim": "Because filenames containing `__` are typechecked as one unit, the new rspec_describe__experimental.rb and rspec_describe.rb end up in a single typechecking unit, so one of them must be renamed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
sorbet__sorbet__9507 | sorbet/sorbet | 9,507 | defect | b661de736fa734965408e7c32dac434c0e01a95c | 92b43517dad5f51ab833ba90ba484ee261dfd1c1 | Support includes of paramaterized contexts | I noticed the `include_context 'my_context', 'my_param'` wasn't getting "go to definition" support.
| diff --git a/rewriter/Minitest.cc b/rewriter/Minitest.cc
index 9c1c2b5db08..e4b5f783d1a 100644
--- a/rewriter/Minitest.cc
+++ b/rewriter/Minitest.cc
@@ -460,7 +460,7 @@ ast::ExpressionPtr runUnderParameterized(core::MutableContext ctx, core::NameRef
case core::Names::includeExamples().rawId():
case ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Since the condition was loosened to accept two or more args, a test should cover calls with two (or more) arguments.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test file should be consolidated into the existing test/t... | null |
sorbet__sorbet__9523 | sorbet/sorbet | 9,523 | defect | 1d0393b9c70200f4f1ccc392646024bf0a07d959 | a41e2c4d3a04da2aee714f5113a791aaedd9e0a7 | Support it_behaves_like with isolated nested context | Support it_behaves_like – this is very similar to `include_context` but a bit different in that the `let` variables are not mixed into the context in which its included. | diff --git a/core/tools/generate_names.cc b/core/tools/generate_names.cc
index 8750ccef651..b16cf2c6d3b 100644
--- a/core/tools/generate_names.cc
+++ b/core/tools/generate_names.cc
@@ -294,6 +294,7 @@ NameDef names[] = {
{"sharedExamplesFor", "shared_examples_for"},
{"includeExamples", "include_examples"},
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new it_behaves_like case in rewriter/Minitest.cc should return early unless ctx.state.cacheSensitiveOptions.rspecRewriterEnabled is set, so the rewrite does not run when the experimental rspec rewriter is disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
sorbet__sorbet__9752 | sorbet/sorbet | 9,752 | defect | a5c1796e0f33158a6d0609d5d29977d5301b9e9e | 3797c174277c84f14695fbaf55068301fb82cfac | Make parser option cache sensitive | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
This commit ensures we do not share the cache between original and prism parser modes by adding it to the cache sensitive options.
### Motivation
<!-- Why make this change? De... | diff --git a/main/options/options.cc b/main/options/options.cc
index e9a097fb2ad..9b5af0b8684 100644
--- a/main/options/options.cc
+++ b/main/options/options.cc
@@ -1045,6 +1045,7 @@ void readOptions(Options &opts,
opts.stopAfterPhase = extractStopAfter(raw, logger);
opts.parser = extractParser(raw[... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should also remove `opts.parser` and replace its uses with `opts.cacheSensitiveOptions.usePrismParser`, so the parser choice is not stored in two places.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sorbet__sorbet__9807 | sorbet/sorbet | 9,807 | defect | 31f8567fc2a94ea542fbea2242d4170409b216b3 | 982507ae72e9279c466b7a64135d402d661d8cc9 | Add support for multi-arg RSpec.describe | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
Resolves https://github.com/sorbet/sorbet/issues/955... | diff --git a/rewriter/Minitest.cc b/rewriter/Minitest.cc
index ca593c1288b..e90c582b5f9 100644
--- a/rewriter/Minitest.cc
+++ b/rewriter/Minitest.cc
@@ -637,7 +637,7 @@ ast::ExpressionPtr runSingle(core::MutableContext ctx, bool isClass, const ast::
case core::Names::xcontext().rawId():
case core::Nam... | 3 | 1 | 0 | [{"id": "G0", "claim": "Real RSpec may allow RSpec.describe with zero arguments (yielding an anonymous example group), which the new arg-count guard rejects; the author offers to remove the check for RSpec if desired.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
sorbet__sorbet__9856 | sorbet/sorbet | 9,856 | defect | da204904045e03ff4a7f76c8e0a1d4904df0772e | 4f89d5d0fffd0daa30557ddd2e1147f9f1977135 | Implement --gen-packages-update-visibility-for flag | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
This PR adds a new CLI `--gen-packages-update-visibility-for` that takes in a package name parameter. When `--gen-packages-update-visibility-for Foo` is passed in, and some packag... | diff --git a/core/GlobalState.cc b/core/GlobalState.cc
index fe76ab0012e..00d5353047c 100644
--- a/core/GlobalState.cc
+++ b/core/GlobalState.cc
@@ -2078,7 +2078,8 @@ unique_ptr<GlobalState> GlobalState::copyForIndexThread(
const vector<string> &extraPackageFilesDirectorySlashDeprecatedPrefixes,
const vector<... | 4 | 3 | 0 | [{"id": "G0", "claim": "The TODO comment should read \"[A-Z][a-zA-Z0-9:]*\" (star, not plus), matching the reviewer's suggestion.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The function should early-exit so it avoids unconditionally mutating (... | null |
sorbet__sorbet__9896 | sorbet/sorbet | 9,896 | defect | faf9e2865a42a985b77bad95fe2b56648aa55e2c | 94506d34e389282228a6a12b8239c16ea7b6febd | Test Packages | Separate out tests from packages in the definition of `--sorbet-packages`, requiring tests to be defined in their own package.
The main change here to uses of `--sorbet-packages` is that `test_import` goes away completely, and new packages need to be introduced for test code. Those packages will be marked with a `te... | diff --git a/core/Files.cc b/core/Files.cc
index e783635425f..34868584242 100644
--- a/core/Files.cc
+++ b/core/Files.cc
@@ -286,6 +286,10 @@ string File::censorFilePathForSnapshotTests(string_view orig) {
}
}
+bool File::isTestPath() const {
+ return flags.isTestPath;
+}
+
bool File::isPackagedTest() const... | 15 | 11 | 1 | [{"id": "G0", "claim": "There should be an early return guarded on the `testPackages` flag (and maybe an error) in the `test!` handling branch of PackageSpecBodyWalk, which currently runs even when test packages are disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
sorbet__sorbet__9907 | sorbet/sorbet | 9,907 | defect | d3474ee4e2bfc17566a09f6d17cbd5cbeb79a22f | 9c562dc8f6ec368050560de12dc69c940914941b | Add flag to attribute errors to their enclosing package | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
### Motivation
<!-- Why make this change? Describe the problem, not the solution. This can also be a link to an issue. -->
This will help with certain analyses to determine the bl... | diff --git a/core/Error.cc b/core/Error.cc
index 92b12705b81..e85fd9da6a8 100644
--- a/core/Error.cc
+++ b/core/Error.cc
@@ -156,7 +156,25 @@ optional<ErrorSection> ErrorSection::Collector::toErrorSection() const {
string Error::toString(const GlobalState &gs) const {
stringstream buf;
- buf << RESET_STYLE <... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR should reject --package-attributed-errors given without --sorbet-packages mode, exiting with an error, as is done for the other package flags.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bool parameter the PR ad... | null |
sorbet__sorbet__9936 | sorbet/sorbet | 9,936 | defect | b4ff9798ea0513b08e28c1c79b73caf51f919696 | 1211f6d15b7db3b26350e0e2fd81514e14db7d0f | Implement `--allow-relaxing-test-visibility` | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
When this flag is passed in combination with `--update-visibility-for=<pkg>`, if there is a reference to `<pkg>` in a test file in some other package `<otherPkg>`, instead of inse... | diff --git a/core/GlobalState.cc b/core/GlobalState.cc
index 76e0a5f2b46..a68605023c0 100644
--- a/core/GlobalState.cc
+++ b/core/GlobalState.cc
@@ -2075,7 +2075,7 @@ unique_ptr<GlobalState> GlobalState::copyForIndexThread(
const vector<string> &extraPackageFilesDirectorySlashPrefixes,
const vector<string> &p... | 2 | 2 | 0 | [{"id": "G0", "claim": "The local variable `visibleToLoc` in `addVisibleToTests` should be named `visibleToOffset` to avoid confusion between `uint32_t` and `LocOffsets`/`Loc`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`source()` returns a ... | null |
sorbet__sorbet__9978 | sorbet/sorbet | 9,978 | defect | 54e0abfd34191fcd4feeb429c9aa575e7241d77e | 03813a15c9a9fdc8acd1a43bbc1f2e4d37f800cd | `--gen-packages` strict mode: no-op `__package.rb` writer | <!-- (optional) Explain your change, focusing on the details of the solution. This is a great place to call out user-visible changes. -->
This PR adds the skeleton of a new `--gen-packages-strict` mode, that aims to update `__package.rb` in a more "strict" mode: remove unused imports/exports, sort imports/exports, r... | diff --git a/core/AutocorrectSuggestion.h b/core/AutocorrectSuggestion.h
index 7d2eb019c90..cbd2166e116 100644
--- a/core/AutocorrectSuggestion.h
+++ b/core/AutocorrectSuggestion.h
@@ -18,8 +18,10 @@ struct AutocorrectSuggestion {
bool isDidYouMean;
- AutocorrectSuggestion(std::string title, std::vector<Edi... | 8 | 5 | 1 | [{"id": "G0", "claim": "renderPackageRbContents should use fmt::memory_buffer with fmt::format_to instead of string concatenation, similar to how show* works for trees.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'NOTE: This is duplicated wit... | null |
sorbet__sorbet__9987 | sorbet/sorbet | 9,987 | defect | 7510a62c080ef50e7d521629daef67cc41e59cdb | f4702f631cba472df43a765c8e7a2612213fb18d | Rework Prism's integration in the pipeline | ### Motivation
Part of #9065, stacked on #9982
The way the Prism phases were integrated into the pipeline was pretty rough, mainly complicated by the fact that a `pm_node_t *` is owned by the parser that allocated it, so we're not free to just return it.
This restructures the code so that `runParser()` and `ru... | diff --git a/ast/desugar/Desugar.cc b/ast/desugar/Desugar.cc
index 1908647db45..36051afd8e4 100644
--- a/ast/desugar/Desugar.cc
+++ b/ast/desugar/Desugar.cc
@@ -1069,7 +1069,7 @@ ExpressionPtr node2TreeImplBody(DesugarContext dctx, parser::Node *what) {
return MK::Hash(loc, move(keys), move(values)... | 5 | 1 | 0 | [{"id": "G0", "claim": "The RBS-rewrite wiring is repeated between main/pipeline/pipeline.cc and test/pipeline_test_runner.cc, and the author is not a fan of the repetition.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no --stop-after=rbs phas... | null |
sorenlouv__backport__141 | sorenlouv/backport | 141 | defect | e53de81321481d09741557a77a5926e1874fe2b1 | 968da39c531a28fc68092d780659c0a76ca9b0a7 | Add options to disable fork mode | Closes #140
Adds the ability to create backports in the origin repository instead of in a fork. Fork mode is still the default. To disable fork mode run `backport --fork=false` or add it to the project config:
```json
{
"upstream": "elastic/kibana",
"branches": [{ "name": "7.x", "checked": true }, "7.3", "7.... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3ba8b3e2..ae4eff96 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -22,6 +22,7 @@ node dist/index.js --branch 6.1 --upstream sqren/backport-demo --all
yarn global remove backport
npm -g uninstall backport
yarn unlink backport
+yarn unlink
yarn link
sudo ch... | 2 | 2 | 0 | [{"id": "G0", "claim": "It would be nice to have a spec that exercises the new fork: false option.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fork/origin remote-name logic is duplicated in git.ts and doBackportVersions.ts and should live in one ... | null |
sorintlab__stolon__434 | sorintlab/stolon | 434 | defect | bacae4ca24a21b700df04067b5274640326a1d56 | f436c6ca248dbc47257ca235caa91b7e543accc0 | Additional replication slots | @sgotti please review the pull request. If it is ok then let me create auto tests. This PR is the continuance of PR #410 started from the scratch | diff --git a/cmd/keeper/keeper.go b/cmd/keeper/keeper.go
index c73e9e53c..fa2a55e5b 100644
--- a/cmd/keeper/keeper.go
+++ b/cmd/keeper/keeper.go
@@ -842,6 +842,80 @@ func (p *PostgresKeeper) updateReplSlots(dbLocalState *DBLocalState, followersUI
return nil
}
+func (p *PostgresKeeper) recreateAddonReplicationSlots... | 17 | 17 | 6 | [{"id": "G0", "claim": "The len(s.AdditionalReplicationSlotNames) > 0 check wrapping the validation in ClusterSpec.Validate is unnecessary because the range below handles an empty slice by itself.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
sorintlab__stolon__494 | sorintlab/stolon | 494 | defect | 14547458b22d9cd8e58a03d508c3d2059028c537 | b3992d037d563c2ebdfdf9c97dd354dd0971e320 | sentinel: fix check for same reported vs spec sync standbys | When electing a new master we are swapping the new master uid with the old
master uid in the syncstandbys slice. This could end with an unordered slice in
the spec that will make the sentinel fail the check that the reported standbys
are the same of the spec one blocking any future syncstandby update.
Since the r... | diff --git a/cmd/sentinel/cmd/sentinel.go b/cmd/sentinel/cmd/sentinel.go
index f5471a9e5..0809c1bcd 100644
--- a/cmd/sentinel/cmd/sentinel.go
+++ b/cmd/sentinel/cmd/sentinel.go
@@ -304,8 +304,6 @@ func (s *Sentinel) updateKeepersStatus(cd *cluster.ClusterData, keepersInfo clus
db.Status.TimelinesHistory = dbs.Timel... | 1 | 1 | 0 | [{"id": "G0", "claim": "May want to add test cases where the two slices have different lengths, to cover the `if len(a) != len(b) { return false }` branch of the comparison helpers.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorintlab__stolon__651 | sorintlab/stolon | 651 | defect | a27bcae12959092a7ca659034ee1e9576f37b084 | 956394ae6dbebf44db7ffcde8a411fee97a50c44 | Store only last 2 postgres timeline histories | Fixes #629
We have made changes to **store last N (MaxPostgresTimelinesHistory) timeline histories**. We have set the default value as `1000`.
We introduced an interface `PGManager` to mock `GetTimelinesHistory` method in unit test.
Question:
- Does it make sense to make `MaxPostgresTimelinesHistory` configu... | diff --git a/cmd/keeper/cmd/keeper.go b/cmd/keeper/cmd/keeper.go
index f354e91f3..98ed969b2 100644
--- a/cmd/keeper/cmd/keeper.go
+++ b/cmd/keeper/cmd/keeper.go
@@ -57,6 +57,8 @@ var CmdKeeper = &cobra.Command{
Version: cmd.Version,
}
+const maxPostgresTimelinesHistory = 2
+
type KeeperLocalState struct {
UID ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Instead of an unclear user-defined limit on stored timeline histories, the keeper should just keep the last N (e.g. 2) timeline histories.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a `go:generate` comment above the PGMana... | null |
sorintlab__stolon__664 | sorintlab/stolon | 664 | defect | 19f1d2651d5c7ce0f1f15ab773d6ed67d45bd082 | 5f1ad8b1d6e533bad9077463c511f5f55af90216 | keeper: configurable wal_keep_segments | use the value provided in the pg parameters to set the instance
wal_keep_segments value.
The value is ignored if it's a bad value or lesser than the default value (8). | diff --git a/cmd/keeper/cmd/keeper.go b/cmd/keeper/cmd/keeper.go
index f248c3f69..909d7fee4 100644
--- a/cmd/keeper/cmd/keeper.go
+++ b/cmd/keeper/cmd/keeper.go
@@ -57,7 +57,10 @@ var CmdKeeper = &cobra.Command{
Version: cmd.Version,
}
-const maxPostgresTimelinesHistory = 2
+const (
+ maxPostgresTimelinesHistory =... | 1 | 1 | 0 | [{"id": "G0", "claim": "The constant the PR adds should maybe be named `minWalKeepSegments` instead of `defaultWalKeepSegments`, per hmac's suggestion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sorintlab__stolon__697 | sorintlab/stolon | 697 | defect | 80480574760322232647b89d8f00f42e52ec4e8d | 3705fb2220b0ac9d79ef05b8d5b415d8d86ef0e7 | Keepers that never become master/sync replica | Implements the proposal https://github.com/sorintlab/stolon/issues/696
| diff --git a/cmd/keeper/cmd/keeper.go b/cmd/keeper/cmd/keeper.go
index 225d842a6..2ab42e895 100644
--- a/cmd/keeper/cmd/keeper.go
+++ b/cmd/keeper/cmd/keeper.go
@@ -114,6 +114,9 @@ type config struct {
pgSUPasswordFile string
pgInitialSUUsername string
pgInitialSUPasswordFile string
+
+ neverMaster ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The negated keeper flags (neverMaster/neverSynchronousReplica) should be replaced by positive flags canBeMaster/canBeSynchronousReplica that default to true, with the keeper-side values made *bool defaulting to true when nil so an unupdated keeper is not treated as unable to take the role.", "ca... | null |
sorintlab__stolon__841 | sorintlab/stolon | 841 | defect | dc942da234caf016a69df599d0bb455c0716f5b6 | e125c4237f3d5b7d92c39cedc21f030741e2378f | Add ability to disable sync replication when there're not enough ready standbys. | Fixes issue #330 by adding support for `MinSynchronousStandbys == 0`, which removes fake sync replicas from the replica list.
Changes to `cluster config`:
- Removed check for `MinSynchronousStandbys > 0`
Changes to `sentinel`:
- Skip adding the `fakeStandbyName` sync standby when the available standbys are 0.
... | diff --git a/cmd/sentinel/cmd/sentinel.go b/cmd/sentinel/cmd/sentinel.go
index 96a44c59a..512172e6d 100644
--- a/cmd/sentinel/cmd/sentinel.go
+++ b/cmd/sentinel/cmd/sentinel.go
@@ -1078,7 +1078,7 @@ func (s *Sentinel) updateCluster(cd *cluster.ClusterData, pis cluster.ProxiesInf
newMasterDB.Spec.SynchronousStand... | 4 | 3 | 2 | [{"id": "G0", "claim": "The sentinel-logic changes affect multiple parts, so consider instead just allowing MinSynchronousStandbys to be set to 0 without changing the sentinel logic and without adding a new option (strictSyncRepl).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
sosedoff__pgweb__201 | sosedoff/pgweb | 201 | defect | 474c439076ba512f40175e1758435fa4d1d4d36a | 1b4902f1968186f2c187b89979b9f247a5f882b5 | Issue-189 : Allow connecting to bookmarked server from CLI | Resolves https://github.com/sosedoff/pgweb/issues/189
Tested that the feature works -
```
▶ cat ~/.pgweb/bookmarks/server.toml
host = "localhost"
port = 5432
user = "postgres"
database = "nice2"
ssl = "disable"
```
```
▶ ./pgweb --bookmark=server
Pgweb v0.9.5
Connecting to server...
Checking databa... | diff --git a/data/bookmark.toml b/data/bookmark.toml
index 05320ff48..55a1c7f9b 100644
--- a/data/bookmark.toml
+++ b/data/bookmark.toml
@@ -1,5 +1,5 @@
host = "localhost"
-port = "5432"
+port = 5432
user = "postgres"
database = "mydatabase"
ssl = "disable"
diff --git a/data/invalid_port.toml b/data/invalid_port.to... | 4 | 4 | 2 | [{"id": "G0", "claim": "Specifying a bookmark that cannot be loaded (typo, name mismatch, missing file or extension) results in a dial error or a panic instead of a useful error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do not use the custom E... | null |
sosedoff__pgweb__638 | sosedoff/pgweb | 638 | defect | 79bd9c2f4e9f8f77df3494f468e565a169df8522 | 7bd0e02a4ace1f163579b6e56b12a1596b937e5a | Add bookmark options to load username/password from env vars | We keep our configuration for pgweb in a private Git repository. Currently we still have to input the username and password every time, but it would be nice to refer to an environment variable in the bookmarks. That'll allow us to have the 'click-and-go' functionality without the security implications of keeping passwo... | diff --git a/pkg/bookmarks/bookmarks.go b/pkg/bookmarks/bookmarks.go
index d4d45fbaf..7862cabc7 100644
--- a/pkg/bookmarks/bookmarks.go
+++ b/pkg/bookmarks/bookmarks.go
@@ -1,21 +1,26 @@
package bookmarks
import (
+ "os"
+ "strings"
+
"github.com/sosedoff/pgweb/pkg/command"
"github.com/sosedoff/pgweb/pkg/shared... | 2 | 1 | 1 | [{"id": "G0", "claim": "Asks whether git-crypt is not an option, suggesting encrypted credentials could be stored securely right in the repo instead of the env-var approach this PR adds.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "ConvertToOptions shoul... | null |
sosedoff__pgweb__716 | sosedoff/pgweb | 716 | defect | 7ee3c61e3881af94a4caf30623d3d98fec026da7 | e23eefec5160417e4eeb39ff2bb59e9249755e82 | Add support for a bookmarks-only mode | This adds the ability to disable manually-entered connection details in favor of bookmarks.
Feel free to recommend any changes that better align with project directions.
The use-case for this self-hosting and avoiding users to ever provide connection details.
A connect backend is sortof similar, but bookmarks alre... | diff --git a/pkg/api/api.go b/pkg/api/api.go
index 05d293ab6..6d895817e 100644
--- a/pkg/api/api.go
+++ b/pkg/api/api.go
@@ -154,6 +154,8 @@ func Connect(c *gin.Context) {
if bookmarkID := c.Request.FormValue("bookmark_id"); bookmarkID != "" {
cl, err = ConnectWithBookmark(bookmarkID)
+ } else if command.Opts.Bo... | 3 | 3 | 2 | [{"id": "G0", "claim": "When pgweb runs in bookmarks-only mode and no bookmarks exist, it should display a message like \"No bookmarks available\" with an explanation that pgweb is running in bookmarks-only mode and connecting to custom databases is not allowed, instead of the current UI that leads to an error after cl... | null |
soundcloud__roshi__25 | soundcloud/roshi | 25 | defect | 8cc307524731085b67d97fc6100ef0f4abf4ac17 | d49baaf0c56ed33c71f633108ae5c1275f1c9713 | stopcursor | Implement `&stopcursor=<opaque string>` to act as an artificial terminus on a per-request basis.
| diff --git a/cluster/cluster.go b/cluster/cluster.go
index ca0d69ee..4ddf878b 100644
--- a/cluster/cluster.go
+++ b/cluster/cluster.go
@@ -43,7 +43,7 @@ type Inserter interface {
// Selecter defines the methods to retrieve elements from a sorted set.
type Selecter interface {
SelectOffset(keys []string, offset, lim... | 2 | 2 | 0 | [{"id": "G0", "claim": "The SelectCursor signature should use start/stop parameter names to make the bounded range obvious.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method would be better named SelectRange.", "category": "maintainabili... | null |
sourcebot-dev__sourcebot__1028 | sourcebot-dev/sourcebot | 1,028 | defect | 220a790d36e1ede69bfb8f44c9f5712daf17d9e7 | b16a95a2a3a55751ac5e72a67c9c7c1340193399 | feat: Add support for `topics` to Search Contexts | This commit updates Sourcebot to include support for using `topics` as
part of the Search Context definition.
As part of this:
* Updated `repoMetadataSchema` to store `topics` for `github` and
`gitlab` host types
* Populate the topic list when compiling GitHub and Gitlab repos
* Updated schemas to support `in... | diff --git a/docs/docs/features/search/search-contexts.mdx b/docs/docs/features/search/search-contexts.mdx
index 0ad36db55..3fc17fa79 100644
--- a/docs/docs/features/search/search-contexts.mdx
+++ b/docs/docs/features/search/search-contexts.mdx
@@ -106,6 +106,38 @@ Like other prefixes, contexts can be negated using `-`... | 5 | 1 | 1 | [{"id": "G0", "claim": "The SearchContext schema descriptions (in docs/snippets/schemas/v3/index.schema.mdx, packages/schemas/src/v3/index.schema.ts and schemas/v3/searchContext.json) should say \"repository topics\" instead of \"GitLab topics\", since topic filtering covers both GitHub and GitLab and the host-specific... | null |
sourcebot-dev__sourcebot__1077 | sourcebot-dev/sourcebot | 1,077 | defect | 05bb0c7e1facd78156cf8da100ff467e66865999 | bd134d9e0f5dae3ff0c4727fead124b6edcfe59c | feat: add GET /api/commit endpoint and improve git API response formats | ## Summary
- Adds `GET /api/commit?repo=<repo>&ref=<ref>` endpoint that returns commit details including parent commit SHAs
- Renames `author_name`/`author_email` to `authorName`/`authorEmail` in the commit schema (affects `/api/commits` response)
- Changes `oldPath`/`newPath` in `/api/diff` response from `"/dev/null"`... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e65168e0d..1c01e85dd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Added
+- Added `GET /api/commit` endpoint for retrieving details about a single com... | 4 | 2 | 2 | [{"id": "G0", "claim": "The commit tests in packages/web/src/features/git/listCommitsApi.test.ts pass camelCase author fields into mockGitLog while listCommits transforms raw git fields into camelCase, which is why the assertions at lines 345, 480 and 583 fail in CI; the mocks should feed snake_case git output with cam... | null |
sourcebot-dev__sourcebot__1122 | sourcebot-dev/sourcebot | 1,122 | defect | ed05fc4b08699c5d3d48d248a3ab7115355b76e2 | c967f271b33f74d4f1a74b043ed5d37ac1190932 | fix(worker): prefer newest refs when applying the 64 revision cap | Part of #1016
## Summary
Sourcebot currently caps explicit branch/tag indexing at 64 revisions. Before this change, matching refs were effectively pruned in ref-name order, which could cause older tags to be kept while newer tags were dropped.
This change applies sorting before truncation so the cap keeps the newest... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2cc17a67a..99c54ee82 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,29 +7,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+
+- Fixed revision selection so the 64-revision cap prefers the newest matc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new Unreleased changelog bullet is missing the required PR link suffix in the format [`#1122`](https://github.com/sourcebot-dev/sourcebot/pull/1122) per the project's coding guidelines.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
sourcebot-dev__sourcebot__1136 | sourcebot-dev/sourcebot | 1,136 | defect | beff3b76e98ff7ab8298cc302bf6a492f0aad8a1 | cb00385b4d332e95159daa83bb7cc867819384b9 | fix(web): prevent XSS via OAuth redirect URI scheme injection | Fixes SOU-928
## Summary
- Block `javascript:`, `data:`, and `vbscript:` URI schemes across the full OAuth redirect flow to resolve CodeQL `js/xss-through-exception` alert
- Add defense-in-depth validation at four layers: client registration, server-side callback resolution, client-side consent screen, and the `/oauth... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4339ccd71..a7f2003e7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed path injection vulnerability (CodeQL js/path-injection) in review agent log writing by validating p... | 6 | 1 | 0 | [{"id": "G0", "claim": "The pull request is missing a changelog entry and should add one to CHANGELOG.md.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The completion page assigns a user-provided value to window.location.href, leaving a client-si... | null |
sourcebot-dev__sourcebot__1145 | sourcebot-dev/sourcebot | 1,145 | defect | d111397b41a4c07a5c4c79e865057cd83e732e08 | 41f978f788f8a7a87860e223dd48e9723b7a3097 | fix(web): restore ServiceError boundary in `getFileSourceForRepo` | ## Problem
In v4.16.14 (PR #1104, GitLab MR Review Agent), the core file-fetch logic was
extracted from inside `sew()` into a standalone `getFileSourceForRepo` function
so it could be called by privileged server-side callers (e.g. the review agent
webhook handler) without going through the auth middleware.
Th... | diff --git a/packages/web/src/features/git/getFileSourceApi.test.ts b/packages/web/src/features/git/getFileSourceApi.test.ts
new file mode 100644
index 000000000..249b6e428
--- /dev/null
+++ b/packages/web/src/features/git/getFileSourceApi.test.ts
@@ -0,0 +1,329 @@
+import { describe, it, expect, vi, beforeEach, type M... | 3 | 3 | 3 | [{"id": "G0", "claim": "The test should mock 'simple-git' with an explicit factory that maps the default and named exports to the same hoisted mock function, because the implementation imports the default export while the test imported the named export, so the SUT may not receive the configured mock chain.", "category"... | null |
sourcebot-dev__sourcebot__1146 | sourcebot-dev/sourcebot | 1,146 | defect | d111397b41a4c07a5c4c79e865057cd83e732e08 | 8d1cb5fbfbec8dbf8537d09fa646d57d1ae18358 | feat: improve diff tool display and token efficiency | <!-- CURSOR_AGENT_PR_BODY_BEGIN -->
This PR implements the feedback from the Slack thread on the diff tool:
1. **Truncate SHAs to 7 characters**: Full commit SHAs (40-character hashes) are now displayed as 7-character truncated versions for a more compact display
2. **Use RepoBadge component**: Repository referenc... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2aad57323..2b97ef9da 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Changed
+- Improved diff tool UI to truncate full commit SHAs to 7 characters, use R... | 3 | 2 | 1 | [{"id": "G0", "claim": "The test file copy-pastes the entire formatDiffAsGitDiff body instead of importing it, so the tests validate a duplicate that can silently drift from production behaviour and give false confidence; export the function and import it in the test.", "category": "testing", "verdict": "supported", "p... | null |
sourcebot-dev__sourcebot__365 | sourcebot-dev/sourcebot | 365 | defect | ebf6721836b8f878d42bb8c1e844bdc7867a74fe | 27004e15edf76809a0ebb9474a8a48ce684097a7 | fix(browse): Fix issue where files would sometimes never load | ## Problem
We noticed that sometimes files would be stuck in a infinite loading state like the following:
<img width="677" alt="image" src="https://github.com/user-attachments/assets/390e8d07-0e58-4f30-9bac-31d2bcc19b90" />
This would happen randomly. Usually refreshing the page would fix it.
## Solution
... | diff --git a/packages/web/src/app/[domain]/browse/[...path]/components/codePreviewPanel.tsx b/packages/web/src/app/[domain]/browse/[...path]/components/codePreviewPanel.tsx
index bedd7aed7..82d8f22a3 100644
--- a/packages/web/src/app/[domain]/browse/[...path]/components/codePreviewPanel.tsx
+++ b/packages/web/src/app/[... | 12 | 3 | 2 | [{"id": "G0", "claim": "In treePreviewPanel.tsx the two independent API calls (getRepoInfoByName and getFolderContents) are awaited sequentially and can be executed in parallel via Promise.all to reduce latency.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
sourcebot-dev__sourcebot__498 | sourcebot-dev/sourcebot | 498 | defect | b05fc7a0c80e5954cdb94b39475c62d01ebc104c | e5274ba8f6b6ff0f9c4292fff685cc9b9b04e1a9 | feat(gitlab): Add exclude.userOwnedProjects config setting | Adds `exclude.userOwnedProjects` to GitLab config setting to allow for excluding all user owned projects from syncing.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- New Features
- Added a GitLab exclude option to omit user-owned projects from syncing (configu... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 848296324..e1b211126 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Added
+- Added `exclude.userOwnedProjects` setting to GitLab configs. [#498](https:/... | 6 | 2 | 1 | [{"id": "G0", "claim": "The pull request is missing a changelog entry for the new exclude.userOwnedProjects setting.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering non-user namespaces (e.g. a group-owned project) so the new exc... | null |
sourcebot-dev__sourcebot__739 | sourcebot-dev/sourcebot | 739 | defect | a6e2b690484359b08f4c4862fa85cc2a19d23aaf | aa61bd325d7fb7108e6e654c283654d7cf0c2aa5 | fix: Improve initial file tree load performance | ## Problem
For large repositories (100K+ files), the file tree could take a long time (10s+) to load. The primary bottleneck was because we were loading the entire file tree for the repository, even though a small subset would actually be rendered.
## Solution
This PR improves things by only loading the **subset o... | diff --git a/packages/web/src/app/api/(client)/client.ts b/packages/web/src/app/api/(client)/client.ts
index 08a01b5b4..36ed1e70c 100644
--- a/packages/web/src/app/api/(client)/client.ts
+++ b/packages/web/src/app/api/(client)/client.ts
@@ -18,6 +18,8 @@ import {
import {
GetFilesRequest,
GetFilesResponse,
+... | 11 | 5 | 3 | [{"id": "G0", "claim": "The getFolderContents client helper added to client.ts is no longer needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tree query still re-fetches even though the query key should be stable, ... | null |
sourcebot-dev__sourcebot__829 | sourcebot-dev/sourcebot | 829 | defect | 7c12e7740094798cc9573ef8546fe67fc2b2db9b | 2142512b769ceaab908d8b8bd9983e228aa5c401 | chore(web): use `git show` for fetching file contents | Changes the `/api/repos` endpoint to use `git show` (instead of zoekt) to fetch file contents.
Fixes #574
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Source endpoint now fetches code for any revision (not limited to previously index... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ae02a8e91..da91d9e16 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Changed
+- Changed `/api/source` api to support fetching source code for any revisio... | 5 | 2 | 2 | [{"id": "G0", "claim": "An invalid or unknown git reference supplied by the client should return a 4xx client error instead of the 500 produced by unexpectedError, for example via a dedicated invalidReference or generic bad-request error.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "... | null |
sourcebot-dev__sourcebot__899 | sourcebot-dev/sourcebot | 899 | defect | 06acea2a349031e4f13ed3e51367c3a6771769fb | 16398abfd8c571efe6900cd216a075237618c7e4 | fix(worker): decode URL-encoded characters in local repo remote URLs | ## Summary
Fixed issue where local repos with URL-encoded spaces in their remote.origin.url would fail to load tree preview and not be indexed correctly.
## Changes
- Added `decodeURIComponent()` to decode URL-encoded characters in pathname before creating repo names
- Added test case to verify URL-encoded pa... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5a7fbaa9e..ed04e948d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+- Fixed issue where local repos with URL-encoded spaces in remote URLs would ... | 2 | 1 | 0 | [{"id": "G0", "claim": "decodeURIComponent on remoteUrl.pathname can throw a URIError when the origin path contains a literal '%' or a malformed escape sequence, and the exception is unhandled in compileGenericGitHostConfig_file, so one problematic repo path can reject the surrounding Promise.all and fail compilation f... | null |
sourcebot-dev__sourcebot__904 | sourcebot-dev/sourcebot | 904 | defect | 1d57be3480753343545d795445cfb52c45feb545 | d8335f838e7e1ad56f489bd94b835cb29ec39918 | fix(worker): include project key in Bitbucket repo identifiers | ## Summary
- For Bitbucket Server, repo identifiers now include the project key (`PROJECT/repo`) instead of just the bare repo name, preventing collisions when multiple projects have repos with the same slug
- For Bitbucket Cloud, repo identifiers now include the project key (`workspace/PROJECT/repo`) instead of `wor... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 71195e18b..7496b1bdc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+- Fixed Bitbucket Server and Cloud repo identifiers to include the project ke... | 2 | 2 | 1 | [{"id": "G0", "claim": "When a Bitbucket Cloud repo's project is absent, `${(repo as BitbucketCloudRepository).project?.key}` serializes to the string \"undefined\", producing a corrupt `workspace/undefined/repo` displayName that propagates unchecked into repoName and zoekt names (while the server branch throws) — vali... | null |
sourcebot-dev__sourcebot__939 | sourcebot-dev/sourcebot | 939 | defect | 6208955d2eec7189f4fd6e299eb410c884c3fa10 | 314b573f2ba6fe253a1ecdefe32c901d0efbc523 | feat(web): show login wall on duplicated chat for askgh | ## Summary
- When `EXPERIMENT_ASK_GH_ENABLED=true`, shows a login modal when an anonymous user tries to send a message on a duplicated chat
- After OAuth redirect, the pending message is automatically restored and submitted on the correct chat
- Moves `LoginModal` component to a shared location (`app/components/loginMo... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 44d267999..0d06e1256 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `wa_user_created` PostHog event fired on successful user sign-up. [#933](https://github.com/sourceb... | 5 | 1 | 0 | [{"id": "G0", "claim": "The login-wall handling on the askgh landing page is now redundant and can be removed, since the guard logic lives in the chat component.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The restore effect clears the pend... | null |
sourcefuse__loopback4-microservice-catalog__1960 | sourcefuse/loopback4-microservice-catalog | 1,960 | defect | 2a2d3d559ed97972a919287a578eee6717db0beb | d9fd689e35224a7c352ba361c03ccfb94d66f5b6 | feat(audit-service): Provision to get tenant wise logs | Provision to get tenant wise logs
MIGRATION CHANGE:
migration-20231222043349- Provision to get tenant wise logs migration-20231222043401- Provision to get tenant wise logs migration-20231222043416- Provision to get tenant wise logs migration-20210423140543- Provision to get tenant wise logs migration-20230608151724... | diff --git a/services/audit-service/migrations/mysql/migrations/sqls/20231222043349-init-up.sql b/services/audit-service/migrations/mysql/migrations/sqls/20231222043349-init-up.sql
index 11ac8ba1f5..4312470f44 100644
--- a/services/audit-service/migrations/mysql/migrations/sqls/20231222043349-init-up.sql
+++ b/services... | 3 | 1 | 0 | [{"id": "G0", "claim": "The test fixture should mount the existing AuditServiceComponent directly instead of introducing a new DummyAuditServiceComponent (why is a new component needed?).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The application sho... | null |
sourcefuse__loopback4-microservice-catalog__2060 | sourcefuse/loopback4-microservice-catalog | 2,060 | defect | 3ddb407a8e2a6d5a6164f8cb865e7a45cb18348c | 9bf2b083a4e6d867302c14677b81918022fe52a4 | fix(bpmn-service): added and changed permission for execute workflow api | ## Description
Added a new permission to execute workflow , and added it to the concerned API.
Fixes GH-2053
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Bre... | diff --git a/services/bpmn-service/openapi.json b/services/bpmn-service/openapi.json
index 3ce66e9484..307ec68ab3 100644
--- a/services/bpmn-service/openapi.json
+++ b/services/bpmn-service/openapi.json
@@ -26,7 +26,7 @@
"description": "Workflow instance"
}
},
- "description": "\... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add the numeric permission for the newly added ExecuteWorkflow permission in permission-key.enum.ts, where every other permission has a numeric counterpart.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The numeric permission mus... | null |
sourcefuse__loopback4-microservice-catalog__21 | sourcefuse/loopback4-microservice-catalog | 21 | defect | a74ad59a677a54bcf7fb9b5543f229712e787183 | ee0302809201e615fd63591bfe2aaa4cc5334958 | fix(video-conferencing-service): fix session APIs - DB and webhook issues and some refactoring | ## Description
service(video-conferencing-service) fix session APIs - DB and webhook issues and some refactoring
Fixes # (issue)
## Type of change
Please delete options that are not relevant.
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds funct... | diff --git a/services/video-conferencing-service/migrations/sqls/20200526081137-db-init-up.sql b/services/video-conferencing-service/migrations/sqls/20200526081137-db-init-up.sql
index fdf7936683..48f29044c2 100644
--- a/services/video-conferencing-service/migrations/sqls/20200526081137-db-init-up.sql
+++ b/services/vi... | 5 | 4 | 0 | [{"id": "G0", "claim": "The VonageBindings.config dependency in VideoChatSessionController should be injected with the optional flag so that resolution returns undefined instead of throwing when the binding is not bound.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": ... | null |
sourcefuse__loopback4-microservice-catalog__25 | sourcefuse/loopback4-microservice-catalog | 25 | defect | 2efb2c3dd322a981e0dacec270617bd600f393de | 7acbeec06bffc79508300cc5292f1c3f00db7c25 | feat(scheduler-service): SFO-89 add event listing API and view migration | SFO-89
## Description
- add event listing API controller, service, view model and repository.
- Add these to component.ts.
- Add migration script for Event attendee view
Fixes # (issue)
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fi... | diff --git a/services/scheduler-service/migrations/20200622050609-event-attendee-view.js b/services/scheduler-service/migrations/20200622050609-event-attendee-view.js
new file mode 100644
index 0000000000..bd5a464eeb
--- /dev/null
+++ b/services/scheduler-service/migrations/20200622050609-event-attendee-view.js
@@ -0,0... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new getFilter method should filter events by 'identifier' and 'attendee_identifier' instead of 'organizerEmail' and 'email'.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The CanNotBeGreater error message should say 'Dat... | null |
sourcegraph__checkup__10 | sourcegraph/checkup | 10 | defect | 97633746ae7c1f100684c044599b9c048155bcf1 | ee3aa71053ea2a3b43550586f41880fd80e28830 | Add support for TCP checks. | For the following JSON file:
``` js
{
"checkers": [{
"type": "tcp",
"endpoint_name": "Google TCP 80",
"endpoint_url": "google.com:80",
"attempts": 5
},
{
"type": "tcp",
"endpoint_name": "Google TCP 443",
"endpoint_url": "google.com:443",
"... | diff --git a/README.md b/README.md
index 210f68d..30b6be1 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ Checkup can be customized to check up on any of your sites or services at any ti
Out of the box, Checkup currently supports:
- Checking HTTP endpoints
+- Checking TCP endpoints (TLS supported)
- Stori... | 6 | 6 | 3 | [{"id": "G0", "claim": "The TLSCAfile field is missing a doc comment, unlike the other struct fields.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TLS verification flag should be inverted to TLSSkipVerify so that the default behaviour is to ... | null |
sourcegraph__checkup__13 | sourcegraph/checkup | 13 | defect | 94097605f5f93dd2235ee9bdedfd54bfab88579e | 7590cf766178d755a85c0c0f609e29af5880c4c2 | Adds local filesystem support | - [x] Go storage
- [x] JS storage
- [x] Go tests
Fixes #6
| diff --git a/checkup.go b/checkup.go
index ef69e08..424e476 100644
--- a/checkup.go
+++ b/checkup.go
@@ -200,6 +200,8 @@ func (c Checkup) MarshalJSON() ([]byte, error) {
switch c.Storage.(type) {
case S3:
providerName = "s3"
+ case FS:
+ providerName = "fs"
default:
return result, fmt.Errorf("unknow... | 4 | 3 | 1 | [{"id": "G0", "claim": "The FS struct's Url field should be named URL, following the Go wiki's initialisms guidance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "readIndex should not use named return values; it should start with an explicitly ... | null |
sourcegraph__checkup__132 | sourcegraph/checkup | 132 | defect | 0624503a72a2c601f2128d7f1267ddf1f9a7307a | f0ed58cbdb5ada6f0ed8506764640d8a5b8a0b89 | Storage plugin: Azure Application Insights | Adds support for using Azure Application Insights availability tracking to store checkup results.
Replaces PR #131 | diff --git a/go.mod b/go.mod
index 6614196..8fa3dc4 100644
--- a/go.mod
+++ b/go.mod
@@ -10,11 +10,13 @@ require (
github.com/go-sql-driver/mysql v1.5.0
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.0.0 // indirect
+ github.com/google/uuid v1.1.1
github.com/gregdel/pushove... | 6 | 6 | 1 | [{"id": "G0", "claim": "TelemetryClient should not be a public property and the name stutters; use an unexported `client appinsights.TelemetryClient` field.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The send() function should derive the message from... | null |
sourcegraph__checkup__32 | sourcegraph/checkup | 32 | defect | df3a626c9226c0d4a8f1291b5d2ff3e676aa5062 | 53b90940dfb71a0194d8dfb1cd102fcab14196d9 | Add support for HTTP Headers | This adds support for adding customer request headers to HTTPChecker. It adds a new field Headers to the HTTPChecker type. The Headers field is a slice of type Header, which has fields for the name and value of the header.
| diff --git a/httpchecker.go b/httpchecker.go
index bd075b7..753f9cb 100644
--- a/httpchecker.go
+++ b/httpchecker.go
@@ -54,6 +54,23 @@ type HTTPChecker struct {
// requests. If not set, DefaultHTTPClient is
// used.
Client *http.Client `json:"-"`
+
+ // Headers is a slice of Headerthat contains the
+ // name and... | 2 | 2 | 1 | [{"id": "G0", "claim": "HTTPChecker.Headers should use the standard library type http.Header instead of a custom checkup.Header struct.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on the Headers field is ambiguous and should be reworde... | null |
sourcegraph__checkup__54 | sourcegraph/checkup | 54 | defect | a9009b0c5a46795518fc23134810ac9fd3d523e7 | 90f26a11f0daf8417b18e8c0b594360a23fbe21a | Add GitHub storage provider | Closes #53.
[See it in action.](https://www.parkermoore.de/status/) ([repo](https://github.com/parkr/status)).
This is *very* rough and undocumented code. It makes a number of GitHub REST API requests to push JSON files; it's modeled off the `FS` provider. The testing code is similarly modeled after the `FS` prov... | diff --git a/checkup.go b/checkup.go
index 37792f2..1721b96 100644
--- a/checkup.go
+++ b/checkup.go
@@ -204,6 +204,8 @@ func (c Checkup) MarshalJSON() ([]byte, error) {
}
var providerName string
switch c.Storage.(type) {
+ case GitHub:
+ providerName = "github"
case S3:
providerName = "s3"
case F... | 8 | 7 | 1 | [{"id": "G0", "claim": "All the debug-style fmt.Print* statements in github.go and github_test.go must be removed before the final merge (with logging, if wanted, deferred to a separate follow-up PR).", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
sourcegraph__checkup__58 | sourcegraph/checkup | 58 | defect | a341ab248c5b0df12252d95e5c0390a3a8f8d834 | 28d9b74e408f4ea4d86410ed42c9f87f39912e41 | Extend Storage interface | Add Fetch and GetIndex to the Storage interface.
This enables the library to be used not only to save records
but also to read them back.
The FS backend is implemented, the Github backend is updated but not
tested, and the S3 has dummy handlers that currently return a "not-implemented"
error.
The idea is to... | diff --git a/checkup.go b/checkup.go
index 9bab743..05f41d3 100644
--- a/checkup.go
+++ b/checkup.go
@@ -357,6 +357,8 @@ type Checker interface {
// Storage can store results.
type Storage interface {
Store([]Result) error
+ Fetch(string) ([]Result, error)
+ GetIndex() (map[string]int64, error)
}
// Maintainer ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Instead of adding Fetch and GetIndex to the Storage interface, split them out into a separate interface (e.g. StorageLoader/StorageReader) so implementations like S3 do not have to carry not-implemented stubs.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
sourcegraph__conc__23 | sourcegraph/conc | 23 | defect | df8442700a906c4b8a59ccc94a10690128fefa27 | f13fcd7487e8cdc94e06350f7cd98c1ea4d36461 | Add CancelOnError option to ContextPool | This adds the `WithCancelOnError()` configuration method to `ContextPool` and `ResultContextPool`, and changes the default behavior to not cancel the pool's context on error.
`ContextPool` initially canceled by default because otherwise, it's no different than an `ErrorPool` that captures a context from its environm... | diff --git a/pool/context_pool.go b/pool/context_pool.go
index b88f554..250c21b 100644
--- a/pool/context_pool.go
+++ b/pool/context_pool.go
@@ -5,25 +5,22 @@ import (
)
// ContextPool is a pool that runs tasks that take a context.
-// The context passed to the task will be canceled if any
-// of the tasks return a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pool's cancel-behaviour option should follow a consistent `Cancel*` naming scheme, e.g. `CancelOnError` instead of the current `FailFast` naming.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The WithCancelOnError doc comment... | null |
sourcegraph__conc__53 | sourcegraph/conc | 53 | defect | 559008f01a2f50256982296a622ea3a13989fb06 | c8dfb40620ce33d8070ae97544291e16ae23ff36 | Add WaitAndRecover method to WaitGroup | Resolves #29.
👋 My attempt at resolving #29. I wasn't sure if was better to reimplement `Wait` in terms of `WaitSafe`. I think leaving the code as it looks a bit cleaner, so I just left it.
I also wondered if it is better to say in the docs that `WaitSafe` will return the first panic it encounters and add a test... | diff --git a/waitgroup.go b/waitgroup.go
index 214cd85..4201762 100644
--- a/waitgroup.go
+++ b/waitgroup.go
@@ -41,3 +41,12 @@ func (h *WaitGroup) Wait() {
// Propagate a panic if we caught one from a child goroutine.
h.pc.Repanic()
}
+
+// WaitSafe will block until all goroutines spawned with Go exit and will
+/... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new method should be named `WaitAndRecover()` instead of `WaitSafe()` since \"Safe\" is overloaded and unclear while \"Recover\" specifically conveys panic handling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
sourcegraph__conc__63 | sourcegraph/conc | 63 | defect | f7fb299140474a453fb8b49161ed4258110c7610 | 667bf39d7f907d833b872dbbf62e418e8406e3ac | iter: introduce Iterator with configurable concurrency | Adds configurable concurrency to `iter` via a new type `Iterator` with ~no overhead and no API changes:
```go
customIterator := iter.Iterator{MaxGoroutines: 42}
customIterator.ForEach(...)
// zero value is safe, defaults to runtime.GOMAXPROCS(0)
iter.Iterator{}.ForEach(...)
// package-level functions behave... | diff --git a/iter/iter.go b/iter/iter.go
index 38870e9..9e398cf 100644
--- a/iter/iter.go
+++ b/iter/iter.go
@@ -9,6 +9,19 @@ import (
"github.com/sourcegraph/sourcegraph/lib/errors"
)
+// Iterator can be used to configure the behaviour of ForEach
+// and ForEachIdx. The zero value is safe to use with reasonable
+... | 3 | 1 | 0 | [{"id": "G0", "claim": "The in-place mutation of the value-receiver iter inside ForEachIdx is surprising and deserves a clarifying comment noting it is safe because the receiver is a value.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Whether ... | null |
sourcegraph__conc__75 | sourcegraph/conc | 75 | defect | e5ed75f142be18355735a74856f80b0f79f412da | b6e1d042686a6e65428dea52b2981554358835de | panics: allow usage of RecoveredPanic as a normal error | Returning a concrete type `*RecoveredPanic` that implements `error` introduces an interesting gotcha - it looks like an `error` and behaves like an `error`, but cannot really be used as an error, because if returned as an error even if nil it's a typed error or something and shows up as _not nil_.
Example using the ... | diff --git a/panics/panics.go b/panics/panics.go
index 1486815..6cb96db 100644
--- a/panics/panics.go
+++ b/panics/panics.go
@@ -73,12 +73,38 @@ type RecoveredPanic struct {
Stack []byte
}
-func (c *RecoveredPanic) Error() string {
- return fmt.Sprintf("panic: %v\nstacktrace:\n%s\n", c.Value, c.Stack)
+// String r... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the Error() and Unwrap() methods on *RecoveredPanic so that *RecoveredPanic no longer implements error and the footgun is gone.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Declare the test closures with `helper :=` / `fn... | null |
sourcegraph__conc__92 | sourcegraph/conc | 92 | defect | f9b38e58d16d45f2bdf1685de1f439ba14f9e0a9 | 7e17b9ed2ba87fe7ad58154865eb423225bef065 | pool: let WithCancelOnError also cancel on panics | On `(*ContextPool).WithCancelOnError()` task errors, we cancel the context - but what if a task _panics_? I think it might be reasonable to assume that this will trigger a context cancellation since a panic is broadly an "error". This isn't the case in the current implementation, because a panic will abort before `Cont... | diff --git a/pool/context_pool.go b/pool/context_pool.go
index 6c4cb32..e434f7d 100644
--- a/pool/context_pool.go
+++ b/pool/context_pool.go
@@ -2,6 +2,8 @@ package pool
import (
"context"
+
+ "github.com/sourcegraph/conc/panics"
)
// ContextPool is a pool that runs tasks that take a context.
@@ -23,14 +25,31 ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Try-based implementation in Go() should be simplified to a deferred recover that cancels and re-panics instead of restructuring the whole closure.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The panic-cancelling behaviour s... | null |
sourcegraph__docsite__73 | sourcegraph/docsite | 73 | defect | f2d975168bdfcaa0dda9a6e39b6c84a7dbb2e271 | 29c2c83f415e46077674af367dc6ec398e7e1b06 | Markup datetime strings with `<time>` tags | Marks up all references to dates, times, weeks, fiscal years and fiscal quarters with [`<time>` tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time) with a machine-readable `datetime` attribute so that those can be chosen to be highlighted by the client with CSS and show tooltips using JS (see https://... | diff --git a/markdown/markdown.go b/markdown/markdown.go
index 18e4301..563085f 100644
--- a/markdown/markdown.go
+++ b/markdown/markdown.go
@@ -8,6 +8,7 @@ import (
"io"
"net/url"
"regexp"
+ "strconv"
"strings"
"unicode"
"unicode/utf8"
@@ -266,11 +267,132 @@ func (r *renderer) RenderNode(ctx context.Contex... | 6 | 2 | 0 | [{"id": "G0", "claim": "parseFiscalInterval should return an error instead of panicking, appending the error to the renderer as done elsewhere, at both the qStr and the fyStr strconv.Atoi call sites.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
sourcegraph__docsite__75 | sourcegraph/docsite | 75 | defect | 78ef9b5f9c6965ce49af37784dbe309c6abd2d9d | add67253105f40949ab4797c2f1b3b952ded233e | Add support for more metadata fields | This PR adds more fields to the metadata, enabling us to use frontmatter to set open graph tags for SEO. It partly addresses https://github.com/sourcegraph/docsite/issues/65
Design-wise, all new fields are hardcoded in the metadata struct. No error will be raised if they aren't present. But any key not referenced b... | diff --git a/markdown/metadata.go b/markdown/metadata.go
index ff3ba38..0d431f2 100644
--- a/markdown/metadata.go
+++ b/markdown/metadata.go
@@ -8,8 +8,13 @@ import (
// Metadata is document metadata in the "front matter" of a Markdown document.
type Metadata struct {
- Title string `yaml:"tit... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add an image metadata field (e.g. `Image string `yaml:\"image\"``) to the Metadata struct.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The Title metadata field should be left out since docsite already infers the title from the ... | null |
sourcegraph__go-diff__65 | sourcegraph/go-diff | 65 | defect | 9d1f353a285b3094bc33bdae277a19aedabe8b71 | 040f1faeb9681fd86240deb7a62f9b248040f3ba | Support Apple Diff timestamps | Apple's diff (at least the one shipping with macOS Ventura) does not include the fractional seconds or Timezone in its output.
This adds support for that so diffutils does not need to be installed.
I first encountered this problem using golangci-lint on macOS after upgrading to macOS Ventura. | diff --git a/diff/diff.go b/diff/diff.go
index 0f465b9..471abda 100644
--- a/diff/diff.go
+++ b/diff/diff.go
@@ -15,15 +15,19 @@ type FileDiff struct {
// the original name of the file
OrigName string
// the original timestamp (nil if not present)
- OrigTime *time.Time
+ OrigTime *time.Time
+ OrigTimeHasTZ b... | 3 | 3 | 2 | [{"id": "G0", "claim": "Converting the timestamp parsed as UTC with ts.In(time.Now().Location()) gives weird results; if the local timezone is to be assumed, time.ParseInLocation should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
sourcegraph__go-diff__67 | sourcegraph/go-diff | 67 | defect | 7ef5f68ebea1885cdfa8bc710e3d666f95bec1cb | de427ce42f7756073f7d294b3dff02d669742a38 | Fix parsing of deleted empty files without a/ b/ prefixes | When no prefixes are present, the parsing failed before and the orig filename was empty. This fixes it. This broke rendering diffs with deleted empty files in Sourcegraph. | diff --git a/diff/diff_test.go b/diff/diff_test.go
index aaaa261..e7d96f4 100644
--- a/diff/diff_test.go
+++ b/diff/diff_test.go
@@ -783,6 +783,56 @@ func TestParseMultiFileDiffHeaders(t *testing.T) {
},
},
},
+ {
+ filename: "delete_empty_file.diff",
+ wantDiffs: []*FileDiff{
+ {
+ OrigName: "E... | 1 | 1 | 0 | [{"id": "G0", "claim": "The restructured condition in parseDiffGitArgs redundantly repeats `length%2 == 1`, which is already guaranteed by the enclosing if statement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sourcemeta__core__1804 | sourcemeta/core | 1,804 | defect | 0839c199a2952fac12e89321cd6ad7d3934acc7e | 064774e5f7c5ef449082635c0505b47f20e2cc86 | Linter: add rule to remove default multipleOf: 1 | ### Implementation
**Rule ID**: multiple_of_default
**Description**: "Setting multipleOf to 1 does not add any further constraint"
**Condition**: Detects multipleOf: 1 (integer) or multipleOf: 1.0 (real) in JSON Schema objects
**Transform**: Removes the redundant multipleOf property
**Dialects**: Supports draft4... | diff --git a/src/extension/alterschema/alterschema.cc b/src/extension/alterschema/alterschema.cc
index a455c1e2a7..27a63004ea 100644
--- a/src/extension/alterschema/alterschema.cc
+++ b/src/extension/alterschema/alterschema.cc
@@ -73,6 +73,7 @@ static auto every_item_is_boolean(const T &container) -> bool {
#include "... | 4 | 4 | 1 | [{"id": "G0", "claim": "The `schema.at(\"multipleOf\").is_number()` check in the condition is not needed since the integer/real value checks that follow already cover it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request unintentio... | null |
sourcemeta__core__2315 | sourcemeta/core | 2,315 | defect | 57ba1691c764d81e967b72269dfbb45b538af9ae | 87ee1d4e727a48c240f18ca4d6e0bf84389b9cb0 | feat(linter): add incoherent_min_max_contains rule | ## Summary
This PR introduces a new lint rule: incoherent_min_max_contains.
The rule detects schemas where minContains is greater than maxContains.
{
"minContains": 5,
"maxContains": 3
}
Such a combination makes the schema unsatisfiable, since no array can satisfy a constraint requiring at least N ma... | diff --git a/src/extension/alterschema/CMakeLists.txt b/src/extension/alterschema/CMakeLists.txt
index 4f525eb797..beca056a13 100644
--- a/src/extension/alterschema/CMakeLists.txt
+++ b/src/extension/alterschema/CMakeLists.txt
@@ -83,6 +83,7 @@ sourcemeta_library(NAMESPACE sourcemeta PROJECT core NAME alterschema
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The rule flags minContains > maxContains even when `contains` is absent, which per the spec makes min/max meaningless, so it emits false 'unsatisfiable' diagnostics; guard the condition with schema.defines(\"contains\") (or adjust the message).", "category": "correctness", "verdict": "supported"... | null |
sourcenetwork__defradb__1492 | sourcenetwork/defradb | 1,492 | defect | a49dbed63feab151487c1a165d647c3311bbe8a4 | a2b841e95a52cd2d5b77055e7f35f9a40780dda0 | test: Provide tests for client introspection query | ## Relevant issue(s)
Resolves #1099
## Description
Provide test that is somewhat isomorphic to the way that clients validate the resulting introspection schema.
I've found that the client introspection query is the same accross Altair, GraphiQL, and Postman clients.
Note that the test `TestClientIntrospe... | diff --git a/tests/integration/client_introspection/altair_graphiql_postman_2023.gql b/tests/integration/client_introspection/altair_graphiql_postman_2023.gql
new file mode 100644
index 0000000000..5ad5777ffe
--- /dev/null
+++ b/tests/integration/client_introspection/altair_graphiql_postman_2023.gql
@@ -0,0 +1,91 @@
+q... | 6 | 4 | 1 | [{"id": "G0", "claim": "fredcarle: the PR can be merged if the one-many test's expected behaviour is changed to returning an error, with a comment saying that this should pass.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "AndrewSisley: the TODO must... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.