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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appium__python-client__615 | appium/python-client | 615 | defect | bba73847a823683ee9e54d5daf8e392ba7a46c2d | 2731aaee2b315a337b4203651b6966df5087723f | feat: Add command with `setattr` | As https://github.com/appium/python-client/pull/608#issuecomment-856307740 and after I considered better way, I think we can add a new method dynamically with `setattr`. Then, the new command can call as `driver.new_command`. It should be better than call a method as string as the previous one.
I haven't updated doc... | diff --git a/appium/webdriver/webdriver.py b/appium/webdriver/webdriver.py
index 393684841..36c3168e4 100644
--- a/appium/webdriver/webdriver.py
+++ b/appium/webdriver/webdriver.py
@@ -15,7 +15,7 @@
# pylint: disable=too-many-lines,too-many-public-methods,too-many-statements,no-self-use
import copy
-from typing imp... | 10 | 10 | 1 | [{"id": "G0", "claim": "The typing of `ExtensionBase.__init__`'s `execute` parameter could be made more precise with generics instead of a bare `Callable` (e.g. `Callable[[str, Dict], Dict[str, Any]]`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
appium__python-client__844 | appium/python-client | 844 | defect | 6d558c0411e3e46d06f03c7fe72337e72699e599 | 5ee785620932a9da7b301ebf25407f984dc9c96c | feat: respect the given executor | Got a request to use the given executor if the first argument was the instance as same as Selenium does.
Example usage is in the README. | diff --git a/README.md b/README.md
index 8c6b113d2..0fffc772a 100644
--- a/README.md
+++ b/README.md
@@ -115,7 +115,7 @@ options = UiAutomator2Options()
options.platformVersion = '10'
options.udid = '123456789ABC'
options.app = PATH('../../../apps/test-app.apk')
-# Appium1 points to http://127.0.0.1:4723/wd/hub by d... | 4 | 3 | 0 | [{"id": "G0", "claim": "The command_executor type check and hint should not include bytes, since latest selenium only uses str.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AppiumConnection.__init__ should call super().__init__ first, before setti... | null |
appium__python-client__960 | appium/python-client | 960 | defect | 1c6dcdf642aaaa46facc6174d80a339fa49684f4 | 209dca9371a58e83f1368c9ba3e7149dcdbd9ea3 | feat: remove MultiAction and TouchAction | We start removing MultiAction and TouchAction endpoints on the server side so clients can also start removing them.
In Python client, we already marked these commands as deprecated in v2, which is 2 years+ ago
Let's see how CI will be.. | diff --git a/README.md b/README.md
index 9cad05507..3220eafba 100644
--- a/README.md
+++ b/README.md
@@ -59,6 +59,10 @@ For example, some changes in the Selenium binding could break the Appium client.
> to keep compatible version combinations.
+### Quick migration guide from v3 to v4
+- Removal
+ - `MultiAction... | 2 | 1 | 1 | [{"id": "G0", "claim": "The README migration section should also mention what to use instead of the removed MultiAction and TouchAction (e.g. W3C actions and/or gesture shortcuts with examples).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The p... | null |
apple__foundationdb__12364 | apple/foundationdb | 12,364 | defect | 03a647809a97eafd179e81b4dfcfa16c712315cd | 379a81e6867c1e70fb31e6c48cfec0d31502d042 | Improve p2ptest and add counter | Replace this text with your description here...
# Code-Reviewer Section
The general pull request guidelines can be found [here](https://github.com/apple/foundationdb/wiki/FoundationDB-Commit-Process).
Please check each of the following things and check *all* boxes before accepting a PR.
- [ ] The PR has a d... | diff --git a/fdbserver/networktest.actor.cpp b/fdbserver/networktest.actor.cpp
index f18ed856264..24afb789efd 100644
--- a/fdbserver/networktest.actor.cpp
+++ b/fdbserver/networktest.actor.cpp
@@ -356,8 +356,10 @@ struct P2PNetworkTest {
RandomIntRange waitReadMilliseconds;
// Random delay before socket writes
Ra... | 3 | 3 | 0 | [{"id": "G0", "claim": "Delete the redundant \"// Test duration seconds\" comment above the new duration member.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The existing error-count output format should be improved to label each count as an e... | null |
apple__foundationdb__12476 | apple/foundationdb | 12,476 | defect | 9197309507c5dd391f1f8022f68c30ee8423c666 | 0bed4673b102a70585c4e0a6c2fcb1e8162fb04d | Fix a bug where speedUpSimulation is not enabled | If the connectionFailureDisableTime is only slightly larger than now(), `disableConnectionFailures()` returns a small value such that `disableConnectionFailuresAfter()` is not retrying. As a result, clogging is still in place, and causes many test failures.
A typical symptom is that some transaction can't commit due... | diff --git a/fdbrpc/sim2.actor.cpp b/fdbrpc/sim2.actor.cpp
index 992e2b5113b..7b26317dcc8 100644
--- a/fdbrpc/sim2.actor.cpp
+++ b/fdbrpc/sim2.actor.cpp
@@ -371,6 +371,8 @@ struct Sim2Conn final : IConnection, ReferenceCounted<Sim2Conn> {
}
TraceEvent("Sim2Connection")
+ .detail("From", process->address)
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hard-coded 0.001 delta should be extracted into a shared constant used both in disableConnectionFailures and the tester's disableConnectionFailuresAfter, with documentation explaining it exists to handle floating point comparison.", "category": "maintainability", "verdict": "supported", "pri... | null |
apple__foundationdb__12524 | apple/foundationdb | 12,524 | defect | 9133ee22a1204d081e80a80a7fccd663fa14fafd | 10ecf61858bc1a760d098e1a23bac85da7d5c937 | Address nightly failure in fast/BackupS3BlobCorrectness.toml, seed 634541705 | Quick fix for now: reduce test duration wait. Passes. | diff --git a/fdbserver/workloads/BackupS3BlobCorrectness.actor.cpp b/fdbserver/workloads/BackupS3BlobCorrectness.actor.cpp
index a9ece9b41cd..6c08dc607e1 100644
--- a/fdbserver/workloads/BackupS3BlobCorrectness.actor.cpp
+++ b/fdbserver/workloads/BackupS3BlobCorrectness.actor.cpp
@@ -329,7 +329,8 @@ struct BackupS3Blob... | 1 | 1 | 1 | [{"id": "G0", "claim": "Non-zero clients should simply return Void() instead of masking the real problem by adding a delay here, and the underlying hang should be fixed elsewhere.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apple__foundationdb__12732 | apple/foundationdb | 12,732 | defect | 1391c76fcdb61096580414df2b45565396866133 | 99740c6b43e8653e6975be101077350137b82e5c | Simplify simulation failure debugging | Simplify simulation failure debugging by making it possible to grep for a single tag, "TestProgress".
Rationale:
1. I don't want to merge stdout with trace.xml or go back and forth between them or even care about stdout once it becomes necessary to look at trace.xml
2. I don't want to remember 20 or however many m... | diff --git a/fdbserver/test.cpp b/fdbserver/test.cpp
index cabbda24b47..d14e7908158 100644
--- a/fdbserver/test.cpp
+++ b/fdbserver/test.cpp
@@ -1230,11 +1230,19 @@ Future<Void> checkConsistencyScanAfterTest(Database cx, TesterConsistencyScanSta
if (csState->enableAfter || csState->waitForComplete) {
printf("Ena... | 5 | 4 | 1 | [{"id": "G0", "claim": "The 1500.0 audit-timeout value repeated throughout runTest should be a named constant somewhere.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The rewritten runTests7 doc comment misspells \"Returns\" as \"Rturns\".", ... | null |
apple__foundationdb__12761 | apple/foundationdb | 12,761 | defect | 148ec428b0b4b0578a1e836089f9fca6d759a907 | be54bb7cff379bc771992a8092e37cc8a38d756d | Introduce `race` coroutine primitive | This PR introduces a new `race` primitive that provides an alternative to the `Choose` class. The `race` primitive can be more ergonomic and performant than `Choose`. For example, the following code:
```
int result;
co_await Choose()
.When(f1, [&result](auto const& res) { result = callback1(res); })
.When(f2... | diff --git a/design/coroutines.md b/design/coroutines.md
index 230408a7144..8a84694cf8b 100644
--- a/design/coroutines.md
+++ b/design/coroutines.md
@@ -6,6 +6,7 @@
* [Choose-When](#choose-when)
* [Execution in when-expressions](#execution-in-when-expressions)
* [Waiting in When-Blocks](#waiting-in-when-bloc... | 8 | 5 | 0 | [{"id": "G0", "claim": "The pull request should add a note in design/coroutines.md comparing race with choose-when and giving migration suggestions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The converted _setup ends without the explicit `co_... | null |
apple__foundationdb__12784 | apple/foundationdb | 12,784 | defect | 6d2acc732b9123e938e116b41150c4733cbc9b02 | 848887b6ca299352ea6c2e7b44d31ec5f0e4b813 | Create `AsyncResult` class | Because `Future<T>` uses `SAV<T>` under the hood, if a coroutine returns a `Future<T>` the only way to take ownership of the result of the coroutine is to copy a `T` object, which may be expensive. In many cases, this is unnecessary, and should be avoided. For example, the following code requires an expensive copy:
... | diff --git a/fdbcli/ExcludeCommand.cpp b/fdbcli/ExcludeCommand.cpp
index e531f235bfd..d0bfa2afd71 100644
--- a/fdbcli/ExcludeCommand.cpp
+++ b/fdbcli/ExcludeCommand.cpp
@@ -85,7 +85,7 @@ Future<bool> excludeServersAndLocalities(Reference<IDatabase> db,
}
}
-Future<std::vector<std::string>> getExcludedServers(Refer... | 3 | 2 | 0 | [{"id": "G0", "claim": "The move constructor does not call release() while the move assignment operator does; the PR author should confirm whether the difference is intentional.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If readers would not gen... | null |
apple__foundationdb__12899 | apple/foundationdb | 12,899 | defect | 45399296928786ff3a1a6de888b3a6e3a784d266 | 6c53d6b698fdccda1e34101ee7fd48380b6ed9d3 | Create cluster health metric monitor on cluster controller | There are many different reasons that an FDB cluster could be unhealthy, and there are various levels of unhealthiness that cluster can get into. Currently, there are two ways to monitor cluster health:
- Rely on a single boolean metric aggregated by FDB
- e.g. `client.database_status.healthy` in `status json` ou... | diff --git a/design/cluster_health_metric.md b/design/cluster_health_metric.md
new file mode 100644
index 00000000000..c3f3849f4f8
--- /dev/null
+++ b/design/cluster_health_metric.md
@@ -0,0 +1,159 @@
+# Cluster Health Metric
+
+`cluster_health::Monitor` is a cluster controller background task that periodically evaluat... | 14 | 7 | 3 | [{"id": "G0", "claim": "The design doc and levelToInt give METRICS_MISSING the same aggregate score (0) as OUTAGE, so the metric loses the distinction between a confirmed outage and missing data; give METRICS_MISSING a different score (e.g. 10).", "category": "design", "verdict": "supported", "priority": "P1", "scope":... | null |
apple__foundationdb__12949 | apple/foundationdb | 12,949 | defect | 439c02e6f17ae420e164524553137fff1947d677 | b6898f61c06fb9c6d2c3fe4bb9233fae7fd21d0a | Add `NoThrowOnCancel` marker type for coroutines | This marker type is complementary to the `coro::errorOr` adaptor added in https://github.com/apple/foundationdb/pull/12901, and aims to address the same issue of avoiding expensive stack unwinding from exceptions.
While `coro::errorOr` is used at the coroutine call-site, the `NoThrowOnCancel` marker type is used in ... | diff --git a/design/coroutines.md b/design/coroutines.md
index 5f1a3845172..cc7f3cd99ba 100644
--- a/design/coroutines.md
+++ b/design/coroutines.md
@@ -551,6 +551,22 @@ But this one is:
co_await bar(Uncancellable());
```
+## NoThrowOnCancel
+
+`NoThrowOnCancel` is a marker for coroutines that should still cancel, ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The reviewer relays a complaint (whose truth he does not vouch for) that the change may have regressed performance, and asks the author for a before/after mako benchmark run to check it.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
apple__foundationdb__12957 | apple/foundationdb | 12,957 | defect | 3d488c892323da7a38e4b4071011935e2322b494 | 2c3e007101a58657a0dbf044ada822eea0d9106e | Support quorum callbacks for `AsyncResult` | This PR extends `quorum` to support a `std::vector<AsyncResult<T>>` overload. This extends the cases in which `AsyncResult` can be used to avoid unnecessary copies. For example, the following pattern is possible:
```
std::vector<AsyncResult<std::string>> coros { makeString(1), makeString(2), makeString(3) };
std::... | diff --git a/fdbrpc/CoroTests.cpp b/fdbrpc/CoroTests.cpp
index d158738dcd7..0e8f80b93bb 100644
--- a/fdbrpc/CoroTests.cpp
+++ b/fdbrpc/CoroTests.cpp
@@ -1226,6 +1226,25 @@ AsyncResult<int> failingAsyncResultInt(Future<Void> signal) {
throw io_error();
}
+AsyncResult<int> trackedAsyncResultInt(Future<Void> signal, ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comment above QuorumState saying it is shared by both Future and AsyncResult adapters may be rendered out of date by the GetAllAsyncResult final : SAV<std::vector<T>> state type added below it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
apple__foundationdb__13081 | apple/foundationdb | 13,081 | defect | c84e650c38c26dde747278ade58722f75dd5073a | 5103dc1e85938748bfaf370304df0d471e2aff7b | Create `flow_test` target | Previously, changes to widely included flow header files required expensive rebuilding of `fdbserver` in order to run unit tests. This PR creates a new `flow_test` target that only links `flow` in order to more quickly iterate on `flow` unit tests. As part of the change, some tests are moved up to `fdbrpc` where they f... | diff --git a/fdbrpc/Net2FileSystemTests.cpp b/fdbrpc/Net2FileSystemTests.cpp
new file mode 100644
index 00000000000..953d1920e8d
--- /dev/null
+++ b/fdbrpc/Net2FileSystemTests.cpp
@@ -0,0 +1,156 @@
+/*
+ * Net2FileSystemTests.cpp
+ *
+ * This source file is part of the FoundationDB open source project
+ *
+ * Copyright... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the NamedThread test, the result of waitForThreadName is discarded, so the test still passes even when the thread name was never observed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apple__pkl__1533 | apple/pkl | 1,533 | defect | b1a5d8c915a0050bc3528751591b9ed65db7ad57 | 9251e11456c663d92c9b6c808ad737f93e483786 | pkl-config-java: Replace Config.fromPklBinary() with ConfigDecoder | Motivation:
- `Config` mixes configuration representation with decoding logic
- `Config.fromPklBinary()` does not scale as decoding gains options (e.g., binary versions or formats)
- The decoding API is inconsistent with `ConfigEvaluator`
Changes:
- Introduce `ConfigDecoder` (with builder) and move `Config.fromP... | diff --git a/pkl-config-java/src/main/java/org/pkl/config/java/Config.java b/pkl-config-java/src/main/java/org/pkl/config/java/Config.java
index 090d52db3..bd119e159 100644
--- a/pkl-config-java/src/main/java/org/pkl/config/java/Config.java
+++ b/pkl-config-java/src/main/java/org/pkl/config/java/Config.java
@@ -15,22 +... | 3 | 3 | 0 | [{"id": "G0", "claim": "The copyright header of the new file pkl-config-java/src/test/java/org/pkl/config/java/ConfigDecoderTest.java should say © 2026, matching the per-source-file convention, instead of © 2024-2026.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
appleboy__drone-git-push__127 | appleboy/drone-git-push | 127 | defect | 8498d4c64e83307cd1136d71cf6eb67def348c59 | 83e4244c4ba8c093bbd5acebf90eb795c1466580 | fix(remote): fall back to set-url when remote already exists | ## Summary
- Fix "error: remote origin already exists" by falling back to `git remote set-url` when `git remote add` fails
- Add `RemoteSetURL` function in `repo/remote.go`
- Add unit test for the new function
Closes #107
## Test plan
- [x] Existing tests pass (`go test ./...`)
- [ ] Verify plugin works when `remote_... | diff --git a/plugin.go b/plugin.go
index 700af06..821e7ec 100644
--- a/plugin.go
+++ b/plugin.go
@@ -148,10 +148,14 @@ func (p Plugin) WriteToken() error {
}
// HandleRemote adds the git remote if required.
+// If the remote already exists, it updates the URL instead.
func (p Plugin) HandleRemote(ctx context.Conte... | 2 | 2 | 2 | [{"id": "G0", "claim": "HandleRemote falls back to RemoteSetURL for any RemoteAdd error rather than only when the remote already exists, which can mask the original failure; consider detecting remote existence first and only calling set-url in that case, otherwise return the original RemoteAdd error.", "category": "cor... | null |
appleboy__gin-jwt__101 | appleboy/gin-jwt | 101 | defect | 51398092c5301f96347c0b048f586365e093f567 | bf3636518f05cf8b580d885d50f3297aafe03c07 | Add support for asymmetric RS256, RS384 and RS512 algorithms | This PR should add support for the mentioned algorithms without changing the public interface. | diff --git a/auth_jwt.go b/auth_jwt.go
index e1ba772..c54b196 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -1,7 +1,9 @@
package jwt
import (
+ "crypto/rsa"
"errors"
+ "io/ioutil"
"net/http"
"strings"
"time"
@@ -78,6 +80,18 @@ type GinJWTMiddleware struct {
// HTTP Status messages for when something in th... | 2 | 2 | 0 | [{"id": "G0", "claim": "Please change the unexported privKeyFile field to an exported variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please change the unexported pubKeyFile field to an exported variable.", "category": "maintainability"... | null |
appleboy__gin-jwt__149 | appleboy/gin-jwt | 149 | defect | 9ad0d889e6862356f48b836107fbc6d030e864ae | c40371d3b5052f1b4678c75ac4b0ba5d5eca52f4 | feat: Make gin-jwt return Authorization headers | fix https://github.com/appleboy/gin-jwt/issues/108 | diff --git a/auth_jwt.go b/auth_jwt.go
index b7d99be..f9d8853 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -107,6 +107,9 @@ type GinJWTMiddleware struct {
// Allow insecure cookies for development over http
SecureCookie bool
+
+ // SendAuthorization allow return authorization header for every request
+ SendAutho... | 1 | 1 | 0 | [{"id": "G0", "claim": "TestSendAuthorizationBool's Authorizator callback should use 'return <expr>' instead of 'if <expr> { return <bool> }; return <bool>'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appleboy__gin-jwt__169 | appleboy/gin-jwt | 169 | defect | e80b227f68a6e929aae518bd5abf759c02930944 | 8e1632763f5dacaa6f4089f7b4d9bb0c0266b482 | Check if token expired in MiddlewareFunc | This pull request is based on
https://github.com/appleboy/gin-jwt/pull/137/commits
I just pick out the expiration check logic. Because I need this feature... | diff --git a/auth_jwt.go b/auth_jwt.go
index 3a5346d..762e4eb 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -336,6 +336,11 @@ func (mw *GinJWTMiddleware) middlewareImpl(c *gin.Context) {
return
}
+ if mw.isClaimsExpired(claims) {
+ mw.unauthorized(c, http.StatusUnauthorized, mw.HTTPStatusMessageFunc(ErrExpiredT... | 1 | 1 | 1 | [{"id": "G1", "claim": "The pull request should not remove the exported CheckIfTokenExpire function that PR #165 introduced; the removal is questioned and the function should be restored.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
appleboy__gin-jwt__224 | appleboy/gin-jwt | 224 | defect | 7f752b28facc2138f22feff98625b3d642adaa11 | ffeee80de5c13a2619f80707c69d47face6f783e | Add LogoutHandler and LogoutResponse to allow user to remove jwt cookie | Adds a basic `LogoutHandler` (with customizable `LogoutResponse` object like `LoginResponse`) to the middleware allowing users to add a route to have the jwt cookie deleted using the same settings as were used to create the cookie. | diff --git a/README.md b/README.md
index 67fb135..cb5f9b3 100644
--- a/README.md
+++ b/README.md
@@ -264,7 +264,7 @@ Www-Authenticate: JWT realm=test zone
```
### Cookie Token
-Use these options for setting the JWT in a cookie. See the Mozilla [documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookie... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new TestLogout uses the deprecated r.HeaderMap field on gofight's response; per staticcheck SA1019 it should read headers from the recorder's Result() instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appleboy__gin-jwt__235 | appleboy/gin-jwt | 235 | defect | ff8fc7147b074db91b807396a046078dd8b70afc | 4a47ea5c7fd8543dada6c980aea15978893f630d | Implement KeyFunc | This PR should resolve https://github.com/appleboy/gin-jwt/issues/234
I implemented a `KeyFunc` option which will bypass other key options (`Key`, `PublicKey`, `PrivateKey`). This allows the developer to write their own validation logic by providing a callback function.
Additionally I added a `TestParseTokenKeyFu... | diff --git a/auth_jwt.go b/auth_jwt.go
index 567d831..23e8585 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -32,6 +32,10 @@ type GinJWTMiddleware struct {
// Secret key used for signing. Required.
Key []byte
+ // Callback to retrieve key used for signing. Setting KeyFunc will bypass
+ // all other key settings
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks why the KeyFunc branch in MiddlewareInit needs to return nil, questioning the early-return design that bypasses all other key settings.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
appleboy__gin-jwt__347 | appleboy/gin-jwt | 347 | defect | 892b6278d62b50b27194875ef15441be1a7609a9 | 61ffa3ddb716081873d9969dcbdebc34cf092ab4 | feat: adopt OAuth2-style token fields in authentication responses | - Replace token response fields with OAuth2-style fields: access_token, token_type, expires_in, refresh_token, and scope
- Add a test assertion to verify that refresh_token is present and not empty in the response
fix https://github.com/appleboy/gin-jwt/issues/346
<!-- This is an auto-generated comment: release no... | diff --git a/auth_jwt.go b/auth_jwt.go
index fabb6d9..adae91f 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -357,9 +357,11 @@ func (mw *GinJWTMiddleware) MiddlewareInit() error {
if mw.LoginResponse == nil {
mw.LoginResponse = func(c *gin.Context, code int, token string, expire time.Time) {
c.JSON(http.StatusO... | 5 | 1 | 1 | [{"id": "G0", "claim": "The default LoginResponse and RefreshResponse handlers hardcode refresh_token to an empty string while the new test asserts it should be non-empty, so the field is always empty in the default responses and the tests fail.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
appleboy__gin-jwt__348 | appleboy/gin-jwt | 348 | defect | 3bf5c411475c84839bbfdf17c82ec9f2e7f586ec | 9cbe44f09c91cd1f9c8d99b76fc5a86d5156769a | chore: migrate to golang-jwt v5 and update token error handling | - Upgrade github.com/golang-jwt/jwt dependency from v4 to v5
- Update token expiration error handling to use new v5 error types
- Add logging for tokens with invalid claims
- Adjust test assertions to match updated error messages from jwt v5
- Improve handling of JWT exp claim errors, distinguishing between expired... | diff --git a/auth_jwt.go b/auth_jwt.go
index 2c2f79b..2c651cd 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -4,13 +4,14 @@ import (
"crypto/rsa"
"encoding/json"
"errors"
+ "log"
"net/http"
"os"
"strings"
"time"
"github.com/gin-gonic/gin"
- "github.com/golang-jwt/jwt/v4"
+ "github.com/golang-jwt/jwt/v5... | 4 | 3 | 1 | [{"id": "G0", "claim": "Update the golang-jwt dependency in go.mod to the latest stable patch release (v5.2.3) instead of v5.2.0, after confirming no security advisories apply.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Restore the removed e... | null |
appleboy__gin-jwt__352 | appleboy/gin-jwt | 352 | defect | c2758029b0d8631403efd0fa58141960bd23f4d6 | d223cc53ad8c68eb1b95e1b63b24e3c0220991b6 | feat: refactor JWT token handling and support programmatic generation | - Introduce programmatic JWT token pair creation via GenerateTokenPair (access and refresh tokens) and GenerateTokenPairWithRevocation methods
- Refactor login and refresh handlers to use unified token pair struct and related logic
- Add Token struct to core for access, refresh, expiry, creation time, and utility met... | diff --git a/README.md b/README.md
index 46fdbf3..6635fff 100644
--- a/README.md
+++ b/README.md
@@ -23,11 +23,16 @@ Easily add login, token refresh, and authorization to your Gin applications.
- [Installation](#installation)
- [Using Go Modules (Recommended)](#using-go-modules-recommended)
- [Quick Start Ex... | 7 | 2 | 1 | [{"id": "G0", "claim": "The example's direct [:50] slice of the access token can panic if the token is shorter than 50 characters; print the full token or add a length check before slicing.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use log.Fata... | null |
appleboy__gin-jwt__371 | appleboy/gin-jwt | 371 | defect | a009dae718f912a2b4ffcc2f44140ffa0a025514 | 05e7dd160709097482d5880d3079acc0be8e80ff | fix: enforce MaxRefresh on RefreshHandler | ## Summary
Fixes #359
- `RefreshHandler` (RFC 6749 flow) ignored `MaxRefresh`, allowing token refresh as long as `RefreshTokenTimeout` had not expired
- Cap refresh token store expiry to `min(RefreshTokenTimeout, MaxRefresh)` so the token auto-expires when `MaxRefresh` elapses
- Apply the same cap to the refresh toke... | diff --git a/auth_jwt.go b/auth_jwt.go
index c9db28d..69c7860 100644
--- a/auth_jwt.go
+++ b/auth_jwt.go
@@ -712,13 +712,22 @@ func (mw *GinJWTMiddleware) generateRefreshToken() (string, error) {
return base64.URLEncoding.EncodeToString(bytes), nil
}
-// storeRefreshToken stores a refresh token with user data
+// ... | 7 | 7 | 3 | [{"id": "G0", "claim": "storeRefreshToken calls mw.TimeFunc() multiple times when computing expiry, so if TimeFunc is non-deterministic or time advances between calls the computed min(RefreshTokenTimeout, MaxRefresh) cap can be off by a small amount; capture a single now := mw.TimeFunc() and derive both expiries from i... | null |
appleboy__gofight__86 | appleboy/gofight | 86 | defect | 35be5a446e190286c5a5c237a12f23140bfee9f6 | a5c795e26dcbeca8ba68cbb9927340f2f1ed4b5e | Fix Beego_test and add fiberEngine Test. | Revised PR. To add new feature to support fiber engine. (https://github.com/gofiber)
Original PR: https://github.com/appleboy/gofight/pull/83 | diff --git a/_example/beego_test.go b/_example/beego_test.go
index bdaadfa..6c46747 100644
--- a/_example/beego_test.go
+++ b/_example/beego_test.go
@@ -2,12 +2,11 @@ package example
import (
"fmt"
- "net/http"
- "testing"
-
"github.com/appleboy/gofight/v2"
"github.com/astaxie/beego"
"github.com/stretchr/tes... | 3 | 3 | 1 | [{"id": "G0", "claim": "Revert the import-order reshuffling this pull request made in _example/beego_test.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Revert the go.mod changes that add the many framework dependencies (tango, beego, gin, f... | null |
appleboy__gorush__445 | appleboy/gorush | 445 | defect | 6f2b614265fe43303c96a1b6897165045279b7b8 | 4e71a808922a0413ad0760da9fe85d8ac87dae59 | Support HTTP proxy for APNs | I implemented this feature based on sideshow/apns2#158.
This will make a request to APNs go through a proxy server if you have configured http_proxy. That means this change is backward incompatible.
I don't think it's a serious problem because anyone who uses the http_proxy option must have a proxy server available... | diff --git a/README.md b/README.md
index dd0b33305..c53df8c4a 100644
--- a/README.md
+++ b/README.md
@@ -77,7 +77,7 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
- Support store app stat to memory, [Redis](http://redis.io/), [BoltDB](https://github.com/boltdb/bolt), [BuntDB](https... | 1 | 1 | 1 | [{"id": "G0", "claim": "The error return value of SetProxy in TestAPNSClientUseProxy is not checked (errcheck).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
appleboy__gorush__497 | appleboy/gorush | 497 | defect | b008ac43736b21b43296f9f78fa6cc31a42ff5d7 | 9df89e783efc1e946d5486a7df7d988885bfeeab | Concurrent ios pushes | Runs `client.Push` concurrently for iOS pushes, drastically increases performance of gorush. I have tested this along with ensuring logs are return in sync mode and that retries are made. It all seems ok. (Although maybe Im missing something??)
Resolves (hopefully) #470 | diff --git a/README.md b/README.md
index ae90556ec..638c80e6f 100644
--- a/README.md
+++ b/README.md
@@ -101,6 +101,7 @@ core:
worker_num: 0 # default worker number is runtime.NumCPU()
queue_num: 0 # default queue number is 8192
max_notification: 100
+ max_concurrent_pushes: 100
sync: false # set true if y... | 8 | 6 | 3 | [{"id": "G0", "claim": "The newly imported github.com/facebookgo/limitgroup package should be dropped and the concurrency limit implemented with sync.WaitGroup or sizedwaitgroup instead, because the package is archived, unmaintained since 2015, panics internally and has no go-mod version.", "category": "design", "verdi... | null |
appleboy__gorush__561 | appleboy/gorush | 561 | defect | 9dbb058cd7ce3cef825f97d2b016c2de57d9082c | ea42dae29ceae1c79deb334ef22e429711e39e85 | make Huawei configs compatible with HMS Core 4.0 | Huawei token and push urls are changed to be compatible with `HMS4.0` and misleading **ApiKey** word changed to **AppSecret** for huawei configs | diff --git a/README.md b/README.md
index c484fde50..517e0cde4 100644
--- a/README.md
+++ b/README.md
@@ -146,7 +146,7 @@ android:
huawei:
enabled: true
- apikey: "YOUR_API_KEY"
+ appsecret: "YOUR_APP_SECRET"
appid: "YOUR_APP_ID"
max_retry: 0 # resend fail notification, default value zero is disabled
@@ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Fix the lint error reported by the Drone CI build (https://cloud.drone.io/appleboy/gorush/503/1/4) in the pull request's code.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "make lint now throws a different lint error on ... | null |
appleboy__gorush__679 | appleboy/gorush | 679 | defect | e89ea00626a4402c98beb90b86659c9b13180a2f | cc300759e515db0670833334b6e463e6433306ab | Fixes #661: iOS interruption level support | Fixes #661
Adds support for `interruption-level` on iOS push notifications.
Possible values are defined [here](https://github.com/sideshow/apns2/blob/54928d6193dfe300b6b88dad72b7e2ae138d4f0a/payload/builder.go#L7-L24).
Details about `interruption-level` might be found [here](https://developer.apple.com/docume... | diff --git a/README.md b/README.md
index 749b94e54..b7a09af74 100644
--- a/README.md
+++ b/README.md
@@ -655,6 +655,7 @@ The Request body must have a notifications array. The following is a parameter t
| mutable_content | bool | enable Notification Service app extension. ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The README's interruption_level row should state the iOS 15+ requirement (e.g. 'only iOS(15.0+)') instead of just 'only iOS'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appleboy__gorush__844 | appleboy/gorush | 844 | defect | 486e49a1956d35259e4b603d66aca0b243b045aa | 4a0fef8f4e2d7bbe5df1510c66a83ae502f83b0c | feat: enforce robust configuration validation and security checks | - Add validation functions for port, address, and PID file path to improve configuration security
- Implement configuration validation that checks for invalid ports, addresses, and path traversal or writes to sensitive directories
- Integrate validation checks into main execution flow, aborting startup if config or C... | diff --git a/config/config.go b/config/config.go
index 6f3bfb59a..cbadb4a2d 100644
--- a/config/config.go
+++ b/config/config.go
@@ -3,8 +3,11 @@ package config
import (
"bytes"
"fmt"
+ "net"
"os"
+ "path/filepath"
"runtime"
+ "strconv"
"strings"
"github.com/spf13/viper"
@@ -461,3 +464,89 @@ func LoadCon... | 11 | 3 | 2 | [{"id": "G0", "claim": "ValidatePIDPath's strings.Contains(pidPath, \"..\") check on the raw path would wrongly reject valid paths like /tmp/foo/../bar.pid; check the cleaned path for a leading \"..\" instead and add a test case for a valid path containing \"..\".", "category": "correctness", "verdict": "supported", "p... | null |
appleboy__gorush__861 | appleboy/gorush | 861 | defect | caf028ebad7ec55c5f1e216c39e7b420f07dcb6c | 2e274afe946dcf5984cc1c79bc2486bcd9752ed5 | feat: add and test default values for API and logging configuration | - Add default values for API endpoints in configuration
- Add default values for logging format, output, levels, and log token/message settings
- Add tests to verify API and log configuration defaults and their override via environment variables
- Improve tests to ensure config defaults are restored after modificati... | diff --git a/config/config.go b/config/config.go
index e84e9b393..010e80af8 100644
--- a/config/config.go
+++ b/config/config.go
@@ -346,6 +346,15 @@ func setDefaults() {
viper.SetDefault("android.enabled", true)
viper.SetDefault("android.max_retry", 0)
+ // API defaults
+ viper.SetDefault("api.push_uri", "/api/p... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the new env-override tests (TestAPIDefaultsFromEnv and TestLogDefaultsFromEnv), the os.Unsetenv cleanup at the end is not guaranteed to run if the test fails before reaching it; use t.Cleanup() or defer so environment variables don't leak into other tests.", "category": "testing", "verdict": ... | null |
appleboy__gorush__865 | appleboy/gorush | 865 | defect | b36660bdb82830ba11e671b81179ca473c90c167 | f7fce2d15aea15b8556a8492bd81be31adea2ce3 | fix(config): redact sensitive fields in /api/config response | ## Summary
- Add `SanitizedCopy()` method on `ConfYaml` to return a copy with all sensitive fields (credentials, passwords, TLS keys, proxy URLs) replaced with `[REDACTED]`
- Update `configHandler` to use `cfg.SanitizedCopy()` instead of exposing the raw config struct
- Fix incorrect HTTP status from `201 Created` to `... | diff --git a/config/config.go b/config/config.go
index 887b3ba3c..d5be2f3ec 100644
--- a/config/config.go
+++ b/config/config.go
@@ -624,3 +624,44 @@ func ValidateConfig(cfg *ConfYaml) error {
return nil
}
+
+// SanitizedCopy returns a copy of the config with sensitive fields redacted.
+func (c *ConfYaml) Sanitize... | 2 | 2 | 1 | [{"id": "G0", "claim": "SanitizedCopy leaves other potentially sensitive Core fields (CertPath, KeyPath, and especially FeedbackHeader, which can carry API keys/tokens and is sent as HTTP headers) unredacted and thus still exposed via the unauthenticated /api/config; redact these fields too (clearing FeedbackHeader or ... | null |
appleboy__gorush__870 | appleboy/gorush | 870 | defect | f19315128ceda3d421a8ae194faa42bad38bfde2 | c3a384e764af72e0c21bf1be1604e7b467928e87 | refactor(config): replace manual viper mapping with Unmarshal | ## Summary
- Replace 84 manual `viper.GetX()` calls in `loadConfigFromViper()` with a single `viper.Unmarshal()` call using existing `yaml` struct tags
- Remove the 116-line `defaultConf` YAML blob that duplicated `setDefaults()`, consolidating into a single source of truth for all config defaults
- Use `viper.New()` ... | diff --git a/config/config.go b/config/config.go
index 5409b1103..e9bc4ebc3 100644
--- a/config/config.go
+++ b/config/config.go
@@ -11,126 +11,10 @@ import (
"strconv"
"strings"
+ "github.com/go-viper/mapstructure/v2"
"github.com/spf13/viper"
)
-var defaultConf = []byte(`
-core:
- enabled: true # enable ht... | 3 | 3 | 1 | [{"id": "G0", "claim": "The duplicated `// Android` comment above two consecutive default-setting blocks makes the section harder to scan, so rename the second one (e.g. to `// Android credentials`) or merge the blocks.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
appleseedhq__appleseed__1021 | appleseedhq/appleseed | 1,021 | defect | 9159f311327549dbf872270cc92721934398465a | e20feeca19b4bf017e6dc950eaea05e7720e1e0b | SearchPaths improvements | - Remove default arguments from SearchPaths.
- Use the default platform separator when initializing SearchPaths from environment variables.
- Added reset method (needed by Gafferseed).
- Added method to split and push back paths separated by a separator (needed by Gafferseed).
- Added unit tests.
| diff --git a/src/appleseed/CMakeLists.txt b/src/appleseed/CMakeLists.txt
index c47103c993..1c09805589 100644
--- a/src/appleseed/CMakeLists.txt
+++ b/src/appleseed/CMakeLists.txt
@@ -441,6 +441,7 @@ set (foundation_meta_tests_sources
foundation/meta/tests/test_rng.cpp
foundation/meta/tests/test_sampling.cpp
... | 5 | 5 | 0 | [{"id": "G0", "claim": "In the new SearchPaths tests, the expected value should be passed as the first argument to EXPECT_EQ().", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new comment for platform_separator() should read \"for the platform\" rath... | null |
appleseedhq__appleseed__1046 | appleseedhq/appleseed | 1,046 | defect | 8918ed62da5435a1dac3329545f28b7291ad59d1 | e2ea78424c68696fe03a81735a137a2f17bd9911 | Removed outside iors from bssrdfs | Fixes #1044
| diff --git a/sandbox/tests/unit tests/inputs/test_projectfilereader_configurationblocks.appleseed b/sandbox/tests/unit tests/inputs/test_projectfilereader_configurationblocks.appleseed
index 1edf3a23e9..b62a4d8da6 100644
--- a/sandbox/tests/unit tests/inputs/test_projectfilereader_configurationblocks.appleseed
+++ b/s... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new `shading_point` parameter of prepare_inputs in betterdipolebssrdf.cpp should perhaps be named `outgoing_point` to make clear which point it is.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The logic computing the ... | null |
appleseedhq__appleseed__1062 | appleseedhq/appleseed | 1,062 | defect | dc6e599344e38411a723dc66bfe66855ef975832 | dfb776630d9998812a74e604571d6568a24b0f12 | Added support for OSL array parameters. | Added support for OSL float, vector, point, normal and color array params in projects.
Syntax is "float[] 1.0 2.0 3.0 4.0 ...", "vector[] 1.0 2.0 3.0 1.0 2.0 3.0 ..."
For vectors, colors, points and normals, the number of floats after the type[], must be a multiple of 3.
Closes #1061
| diff --git a/src/appleseed/renderer/meta/tests/test_shaderparamparser.cpp b/src/appleseed/renderer/meta/tests/test_shaderparamparser.cpp
index e7675d76de..5cf188071c 100644
--- a/src/appleseed/renderer/meta/tests/test_shaderparamparser.cpp
+++ b/src/appleseed/renderer/meta/tests/test_shaderparamparser.cpp
@@ -72,6 +72,... | 3 | 3 | 1 | [{"id": "G0", "claim": "In the new array tests, EXPECT_EQ should take the expected value as its first argument so assertion-failure messages read better.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new array-parsing tests should also cover edge c... | null |
appleseedhq__appleseed__1131 | appleseedhq/appleseed | 1,131 | defect | 9866a5662d1aa4a4beeac6dba33ae2be737e8a43 | 26debcff933922ec9b80a94c7192d9c5068fc448 | Travis scripts cleanup. | - Added build option to enable C++ 11.
- Simplified and improved Travis build scripts.
- Add gcc 4.6, gcc 4.8 and 5.0 in C++03 and C++11 modes to build matrix.
- Fix compile error when USE_PARTIO was enabled.
| diff --git a/.travis.yml b/.travis.yml
index 2b31b6b669..c255d78293 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,8 @@ sudo: false
language: cpp
-compiler:
- - gcc
+os:
+ - linux
addons:
apt:
@@ -13,5 +13,39 @@ addons:
- libxerces-c-dev
- gcc-4.8
- g++-4.8
+ - gcc-5
+ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The description of the new USE_CPP11 CMake option should spell \"C++11\" without a space instead of \"Use C++ 11\".", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The C++11-related comments added to src/cmake/config/linux-g... | null |
appleseedhq__appleseed__1296 | appleseedhq/appleseed | 1,296 | defect | fb0abed781930a127069c75d90a70c8274090f2f | 33d29b464639798ef3e42878b44b796d88f2df14 | AOVs work 1 | - Remove automatic depth AOV.
- Remove some AOV related methods from the python bindings.
| diff --git a/src/appleseed/renderer/kernel/lighting/lighttracing/lighttracingsamplegenerator.cpp b/src/appleseed/renderer/kernel/lighting/lighttracing/lighttracingsamplegenerator.cpp
index 858260071d..65312cb62b 100644
--- a/src/appleseed/renderer/kernel/lighting/lighttracing/lighttracingsamplegenerator.cpp
+++ b/src/a... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use `&s->m_color[0]`-style indexing instead of taking the address of the `.r` member when passing colors as float arrays, as `&...r` is less idiomatic.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Sort the newly added `... | null |
appleseedhq__appleseed__1364 | appleseedhq/appleseed | 1,364 | defect | 6a05f5c439519fc36d1061b3c59712db3c911d90 | 7ef09ece3430e7e77ee1b20c807a14d43a687f00 | Added filtering to appleseed.studio unit tests (Issue #1359) | Primary changes:
- Unit tests in appleseed.studio are filtered by regex in realtime (new feature).
- const-corrected TestWindow class.
- Removed unused header files in TestWindow.h/.cpp.
- Various minor fixes to code layout to keep things consistent.
Screenshot of relevant UI changes (I tried to follow the same ... | diff --git a/src/appleseed.studio/debug/tests/testwindow.cpp b/src/appleseed.studio/debug/tests/testwindow.cpp
index 9cfb6e4e40..3ee354c031 100644
--- a/src/appleseed.studio/debug/tests/testwindow.cpp
+++ b/src/appleseed.studio/debug/tests/testwindow.cpp
@@ -51,7 +51,6 @@
#include <QStringList>
#include <Qt>
#includ... | 4 | 3 | 0 | [{"id": "G0", "claim": "do_filter_items should break out of its loop over the children as soon as one visible child is found.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The curly braces the pull request added around the single-line `return true;... | null |
appleseedhq__appleseed__1518 | appleseedhq/appleseed | 1,518 | defect | 2356b1f0bca13115f0a1c4e466da523859256dde | 785f9de141992c75a6380427457f31d335a83099 | Implement clever per-channel distance sampling for participating media | Based on "Practical and Controllable Subsurface Scattering for Production Path Tracing"
Before:

After:

- Fix bug with bad sampling when `vertex.throughput` has more components than `extinction` of phase function. | diff --git a/src/appleseed/renderer/kernel/lighting/materialsamplers.cpp b/src/appleseed/renderer/kernel/lighting/materialsamplers.cpp
index 42bf200e68..17fa65a3bb 100644
--- a/src/appleseed/renderer/kernel/lighting/materialsamplers.cpp
+++ b/src/appleseed/renderer/kernel/lighting/materialsamplers.cpp
@@ -131,14 +131,1... | 3 | 3 | 2 | [{"id": "G0", "claim": "The trace API should go back to returning a const reference to the ShadingPoint instead of the void + ShadingPoint* out-parameter style, which requires renaming the variants that return it (e.g. trace_full / trace_between_full).", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
appleseedhq__appleseed__1784 | appleseedhq/appleseed | 1,784 | defect | b3b51726447e8909953f8dd95bff98e79a60c286 | b3bb9cdcb662c628fb4a4c71b490d649b97d5f61 | Add support for shutter opening curves to camera. | - add Camera::map_sample() method
- add member variables to renderer::Camera
- add lerp2() in scalar.h | diff --git a/src/appleseed/foundation/math/scalar.h b/src/appleseed/foundation/math/scalar.h
index f139193b9b..adb678304a 100644
--- a/src/appleseed/foundation/math/scalar.h
+++ b/src/appleseed/foundation/math/scalar.h
@@ -224,6 +224,11 @@ T mix(const T a, const T b, const U x);
template <typename T, typename U>
T le... | 11 | 10 | 2 | [{"id": "G0", "claim": "The author asks whether m_shutter_open_time should be renamed (e.g. to m_shutter_open_start_time) now that open-end times exist, though he worries such a name may be too long.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim... | null |
appleseedhq__appleseed__1836 | appleseedhq/appleseed | 1,836 | defect | 7bfd6a2c3006b9378072e65382c19b80531aba0d | ab2633a56b631f227138835919435063c4231d30 | to_string method now supports nullptr parameter. | From issue #1666
to_string now returns the word `"<null>"` when `nullptr` or null pointer are passed as argument. | diff --git a/src/appleseed/foundation/meta/tests/test_string.cpp b/src/appleseed/foundation/meta/tests/test_string.cpp
index c041422049..fa7c7a5a8b 100644
--- a/src/appleseed/foundation/meta/tests/test_string.cpp
+++ b/src/appleseed/foundation/meta/tests/test_string.cpp
@@ -117,18 +117,23 @@ TEST_SUITE(Foundation_Utili... | 2 | 2 | 1 | [{"id": "G0", "claim": "The std::enable_if_t-based default template arguments on to_string() must be replaced (e.g. with std::enable_if<>::type) because VS2012 must keep compiling and MSVC rejects the code with C4519/C2783/C2912 errors, and the reviewer also questions the purpose of the default template argument and as... | null |
appleseedhq__appleseed__2107 | appleseedhq/appleseed | 2,107 | defect | 05af8603ec7c6ec16bfb7a792612580e146c46f6 | 935e6d2241e82e4acabe889c53bf2f52354d9cd4 | Allow to merge percent statistics | #2103
When merging percent entries, numerators and denominators are simply summed. Be sure to use the same scale when adding percent values. | diff --git a/src/appleseed/foundation/meta/tests/test_statistics.cpp b/src/appleseed/foundation/meta/tests/test_statistics.cpp
index b6dfd05558..85e8efd0b4 100644
--- a/src/appleseed/foundation/meta/tests/test_statistics.cpp
+++ b/src/appleseed/foundation/meta/tests/test_statistics.cpp
@@ -185,6 +185,19 @@ TEST_SUITE(F... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `m_` prefix should not be used on constructor arguments of PercentEntry.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The data members of PercentEntry should be vertically aligned.", "category": "maintainability", "... | null |
appleseedhq__appleseed__2570 | appleseedhq/appleseed | 2,570 | defect | 082759c96f1abd4ba3ed33bdb1a0b7d7dbb62803 | 6d5d3b8d9a42a6b9ff30d9c01cbbf0753aaa2b2f | Increase precision of floating point values in text files | This PR fixes #2514
Increasing the precision of floats and doubles with respect to the `std::numeric_limits<>::max_digits10` values. Wherever possible and useful, I tried to use non-fixed values (i.e. ask the `numeric_limits`). That way, the precision obeys the precision given by the machine.
Where it wasn't pos... | diff --git a/src/appleseed/foundation/mesh/objmeshfilewriter.cpp b/src/appleseed/foundation/mesh/objmeshfilewriter.cpp
index c2e7d04bc8..a0ead5b103 100644
--- a/src/appleseed/foundation/mesh/objmeshfilewriter.cpp
+++ b/src/appleseed/foundation/mesh/objmeshfilewriter.cpp
@@ -275,7 +275,7 @@ void OBJMeshFileWriter::write... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the test/logo generation loops, building the format string via std::string/std::to_string allocates several strings per SampleCount * Dimension iteration (and per pixel), which is too heavy even for a test; a fixed literal like \"%.16f\" (or \"%.17f\") would do since the values are generated,... | null |
appleseedhq__appleseed__552 | appleseedhq/appleseed | 552 | defect | 2cf932e6b42214baede484e6b01ba37de9cf86d2 | 2828bf89fb80c59309c1a021f8c41fc490207e1f | OSL emission + refactors and fixes | - Move ShaderGroups from Assembly to BaseGroup.
- Optimize shaders as soon as possible, so that ShaderGroup info can be used in the light sampler.
- Don't re-optimize the shaders unnecessarily.
- Enable OSL stats always.
- Changes for OSL emission support.
- OSL emission test scenes.
- Remove unused things.
- Bug fixes... | diff --git a/sandbox/tests/test scenes/osl/07 - emission.appleseed b/sandbox/tests/test scenes/osl/07 - emission.appleseed
new file mode 100644
index 0000000000..85af291675
--- /dev/null
+++ b/sandbox/tests/test scenes/osl/07 - emission.appleseed
@@ -0,0 +1,308 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- File gen... | 16 | 16 | 0 | [{"id": "G0", "claim": "Replace tabs by spaces in the test_emission.osl shader.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Replace tabs by spaces in the constant_emission.osl shader.", "category": "style", "verdict": "supported", "priority": "P3", "sc... | null |
appleseedhq__appleseed__702 | appleseedhq/appleseed | 702 | defect | 4fd3905decdaefd7acae86d1971e7d6ab5ee310a | 90b2fbf9fb3e96e9cc55bf81ba71ac616b638153 | Assembly factories | This PR adds assembly factories and the possibility to have more than one type of assembly.
Refactored from some of my experimental branches.
| diff --git a/src/appleseed.python/bindassembly.cpp b/src/appleseed.python/bindassembly.cpp
index 8724c19b01..5514e407f2 100644
--- a/src/appleseed.python/bindassembly.cpp
+++ b/src/appleseed.python/bindassembly.cpp
@@ -34,7 +34,9 @@
// appleseed.renderer headers.
#include "renderer/modeling/scene/assembly.h"
+#incl... | 5 | 4 | 1 | [{"id": "G0", "claim": "Code inside anonymous namespaces (the adapter class in assemblyfactoryregistrar.cpp) should be indented.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks what deriving AssemblyFactory from IAssemblyFactory would bre... | null |
appleseedhq__appleseed__710 | appleseedhq/appleseed | 710 | defect | 99d21ac88c11ef64566e07f73b472f939a1a8372 | 5c99deb0dfd1a7b4f9d0e052106a1fd495eade3c | Ray differentials work | - Added a Dual<T> class that holds a value and its derivatives wrt X and Y.
- Camera classes now generate differential rays.
- Normalize ray direction vectors and add asserts to check it.
- Advance ray differentials when dealing with alpha maps / transparency.
- Compute screen space partial derivatives in ShadingPoint.... | diff --git a/src/appleseed.studio/mainwindow/rendering/frozendisplayrenderer.cpp b/src/appleseed.studio/mainwindow/rendering/frozendisplayrenderer.cpp
index 5648fdd073..b28fc025dc 100644
--- a/src/appleseed.studio/mainwindow/rendering/frozendisplayrenderer.cpp
+++ b/src/appleseed.studio/mainwindow/rendering/frozendispl... | 18 | 17 | 0 | [{"id": "G0", "claim": "Group the derivative accessor declarations (has_derivatives, get_dx, get_dy) into the 'Accessors' block above in dual.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Precompute 1/d once d is determined to be non-zero in... | null |
appleseedhq__appleseed__719 | appleseedhq/appleseed | 719 | defect | 5743052cf280267ef82f7301dc1cb6f613d9ff31 | 480a2b7dbefed4bca5c3e5ebb65f265a4cd2a982 | Keep OSL shading system alive between progressive renders | And optimize only the shaders that have been edited since the last render. Fixes issue #718.
Also fixed an unrelated bug (triangle with no normals crash) that I found while testing this.
| diff --git a/src/appleseed/CMakeLists.txt b/src/appleseed/CMakeLists.txt
index c67aca0052..b5b0c1209d 100644
--- a/src/appleseed/CMakeLists.txt
+++ b/src/appleseed/CMakeLists.txt
@@ -1032,6 +1032,8 @@ source_group ("renderer\\kernel\\rendering\\progressive" FILES
)
set (renderer_kernel_rendering_sources
+ render... | 5 | 2 | 0 | [{"id": "G0", "claim": "The renderer headers in baserenderer.cpp should be ordered alphabetically, kernel before modeling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RENDERER_LOG_DEBUG messages announcing the creation and destruction of ... | null |
appleseedhq__appleseed__828 | appleseedhq/appleseed | 828 | defect | f5d9fdde1b834db73050122ea7af74113d8fb98d | 8396d898c4fec59c67d89921719253e675a3dfd1 | SSS work | - Added channel sampling to NormalizedDiffusionBSSRDF.
- Removed channel sampling code from Dirpole BSSRDFs.
- Fixed bug introduced in a previous PR.
- Fixes for some SSS unit tests.
| diff --git a/src/appleseed/renderer/meta/tests/test_sss.cpp b/src/appleseed/renderer/meta/tests/test_sss.cpp
index be34631b31..68fcd1a1cb 100644
--- a/src/appleseed/renderer/meta/tests/test_sss.cpp
+++ b/src/appleseed/renderer/meta/tests/test_sss.cpp
@@ -86,8 +86,7 @@ TEST_SUITE(Renderer_Modeling_BSSRDF_SSS)
... | 6 | 3 | 1 | [{"id": "G0", "claim": "The comment above the reflectance clamp in dipolebssrdf.cpp should be fixed (suggested: `// Clamp reflectance.`), since saying 'to [0, 1]' no longer matches the clamp this pull request applies.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
appleseedhq__appleseed__849 | appleseedhq/appleseed | 849 | defect | dfa21cc22b9d4be354b7c9219d536e45678f2f09 | 5a35731310ad601a150b1677c38286a898c55dd8 | SSS work | - Added Partio as an optional dependency (OFF by default).
Used in unit tests to produce "plots" like this:

- Refactored numerical CDF inversion code.
- Reduced BSSRDF reparameterizati... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fa8bff6ad..871ddddfa7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,6 +93,7 @@ option (WITH_ALEMBIC "Build Alembic support"
option (WITH_OSL "Build OSL support" OFF)
opti... | 9 | 8 | 0 | [{"id": "G0", "claim": "The SqrtThree literal in scalar.h should be written 1.7320508075688773 rather than 1.7320508075688772, since the next digit is a 9.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stray '// appleseed.foundation head... | null |
appleseedhq__appleseed__921 | appleseedhq/appleseed | 921 | defect | c6f9afa03114f28b37971a42ba14dd8fa028f1b6 | 4c1565de8cfce7353250e2f8ab3b8d10903176c9 | more misc work | - OSL flip handedness.
- Reverted removal of Ashikmin OSL closure.
- Small stdosl.h changes + formatting.
| diff --git a/src/appleseed/foundation/math/matrix.h b/src/appleseed/foundation/math/matrix.h
index 17bf1e4767..17b9af9222 100644
--- a/src/appleseed/foundation/math/matrix.h
+++ b/src/appleseed/foundation/math/matrix.h
@@ -444,6 +444,9 @@ class Matrix<T, 4, 4>
static const MatrixType m_identity;
};
+// Return t... | 6 | 5 | 0 | [{"id": "G0", "claim": "Use T(0.0) instead of T(0) in swaps_handedness's comparison in matrix.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fully inline the determinant computation in swaps_handedness instead of calling det(mat.extract_matri... | null |
appleseedhq__appleseed__961 | appleseedhq/appleseed | 961 | defect | c3c1dd1ce44847e59f7c29f1f2e8d0403f16f1dd | 60ceda53abe90cff47217bdbb8122dee298d480b | Basic Metal BRDF | Quick render: gold teapot

| diff --git a/src/appleseed/CMakeLists.txt b/src/appleseed/CMakeLists.txt
index 0243fd290f..e0ba69212d 100644
--- a/src/appleseed/CMakeLists.txt
+++ b/src/appleseed/CMakeLists.txt
@@ -1261,6 +1261,8 @@ set (renderer_modeling_bsdf_sources
renderer/modeling/bsdf/kelemenbrdf.h
renderer/modeling/bsdf/lambertianbrd... | 7 | 5 | 0 | [{"id": "G0", "claim": "Remove the extra blank/separator lines (the duplicated '//' lines and blank line) in the new 'Fresnel equations for conductor materials' comment block in fresnel.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add comme... | null |
appleseedhq__appleseed__963 | appleseedhq/appleseed | 963 | defect | 7737effdfc03226e4c633d2dd115861ea80b83a2 | 251fa71c25a762e58577cfa587d78430c25c1ba3 | Enable more warnings when using gcc. | - Added APPLESEED_UNUSED to mark unused variables.
- Removed unused variables, unused local typedefs, ...
- Added missing virtual destructor.
| diff --git a/src/appleseed.studio/utility/widgetzoomhandler.cpp b/src/appleseed.studio/utility/widgetzoomhandler.cpp
index 16483387dc..fb3d458d43 100644
--- a/src/appleseed.studio/utility/widgetzoomhandler.cpp
+++ b/src/appleseed.studio/utility/widgetzoomhandler.cpp
@@ -227,9 +227,6 @@ void WidgetZoomHandler::apply_sca... | 2 | 1 | 0 | [{"id": "G0", "claim": "The removed variables new_widget_width/new_widget_height should be kept (or the multipliers rewritten to use them) so the computation uses the widths they captured, since the idea was to compute actual_h_multiplier etc. from them.", "category": "correctness", "verdict": "uncertain", "priority": ... | null |
appsignal__mongo-rust-driver__39 | appsignal/mongo-rust-driver | 39 | defect | 50b10ad52e68cde6038aa83eb22313950f65b11b | 0a3f41bb0c33afcc0305527502920d4467e89974 | Added the ability to automatically manage getMore calls | When using command with find and append you need to call getMore which can be messy. calling database.command_batch allows you to run:
```rust
let cur = database.command_batch(doc!{"find":TEST_COLLECTION_NAME},None);
let mut count = 0;
for doc in cur.unwrap() {
count += 1;
... | diff --git a/.gitignore b/.gitignore
index 2730dc9..f806ce4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@ target
Cargo.lock
mongoc-sys/mongo-c-driver*
ssl_env_vars
+.idea/
+.DS_Store
\ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index 99fb54b..18dca7f 100644
--- a/Cargo.toml
+++ b/Cargo... | 11 | 7 | 2 | [{"id": "G0", "claim": "Stray blank lines and a missing newline at end of file should be cleaned up in the files touched by this pull request (.gitignore, src/cursor.rs, src/lib.rs).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new BatchCu... | null |
apptension__saas-boilerplate__184 | apptension/saas-boilerplate | 184 | defect | 5b9141975fa83b46619e98bba3955e0780c7a705 | f355003ee16c9a01d42b2afae8baa834650416ec | feat: radix UI checkbox | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Migrate checkbox to radix... | diff --git a/packages/webapp-libs/webapp-core/package.json b/packages/webapp-libs/webapp-core/package.json
index 5d3896d99..148e3f4f7 100644
--- a/packages/webapp-libs/webapp-core/package.json
+++ b/packages/webapp-libs/webapp-core/package.json
@@ -9,6 +9,7 @@
"type-check": "tsc --noEmit --project tsconfig.lib.jso... | 3 | 2 | 0 | [{"id": "G0", "claim": "The SemiChecked story duplicates the Checked story and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the cn(...) class merging from checkbox.component.tsx into checkbox.styles.ts.", "category": "d... | null |
apptension__saas-boilerplate__192 | apptension/saas-boilerplate | 192 | defect | 9ce9d5305d1fb9ff96a8bd47e18b8335d93ca251 | 8404f0d7fb9c2b7a7403fb731808de56443df311 | Migrate Snackbar component to Radix Toast | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Replace custom implementa... | diff --git a/packages/webapp-libs/webapp-api-client/src/graphql/apolloClient.ts b/packages/webapp-libs/webapp-api-client/src/graphql/apolloClient.ts
index cc8151f18..5341e5066 100644
--- a/packages/webapp-libs/webapp-api-client/src/graphql/apolloClient.ts
+++ b/packages/webapp-libs/webapp-api-client/src/graphql/apolloC... | 1 | 1 | 1 | [{"id": "G0", "claim": "When multiple toasts are shown on screen, they do not have separate timeouts but all disappear at the same time.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apptension__saas-boilerplate__210 | apptension/saas-boilerplate | 210 | defect | be04fabb1dd1018eacf933c8f71e62ae9d994092 | 0dc880e4501b88750e7718b756a22707114389fb | feat: radix UI cards | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Improves crud demo examp... | diff --git a/packages/webapp-libs/webapp-core/src/components/buttons/link/link.component.tsx b/packages/webapp-libs/webapp-core/src/components/buttons/link/link.component.tsx
index 155fe4678..894d3bae8 100644
--- a/packages/webapp-libs/webapp-core/src/components/buttons/link/link.component.tsx
+++ b/packages/webapp-lib... | 3 | 3 | 0 | [{"id": "G0", "claim": "The newly added `react-click-away-listener` dependency in webapp-crud-demo's package.json is questioned as unused and should be removed unless it is used somewhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `rend... | null |
apptension__saas-boilerplate__216 | apptension/saas-boilerplate | 216 | defect | 62fa64a716018dbab61816a2eaaffd5e639c85b1 | 88c8609134f6e59c58f017c7d5dbb9d031707a51 | feat: radix UI saas ideas | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Migrates from styled-comp... | diff --git a/packages/webapp-libs/webapp-generative-ai/src/routes/saasIdeas/__tests__/saasIdeas.component.spec.tsx b/packages/webapp-libs/webapp-generative-ai/src/routes/saasIdeas/__tests__/saasIdeas.component.spec.tsx
index 8e8294cef..33eea4a77 100644
--- a/packages/webapp-libs/webapp-generative-ai/src/routes/saasIdea... | 1 | 1 | 0 | [{"id": "G0", "claim": "The loading placeholder in saasIdeas.component.tsx should use the shadcn Skeleton component instead of the react-loading-skeleton LoadingSkeleton currently rendered there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
apptension__saas-boilerplate__228 | apptension/saas-boilerplate | 228 | defect | c6897cdafcb7380e49497879ee9ca7e5eb9b84f4 | 4503f856438fbc464468a2644f5cd55651535e41 | feat: radix UI contentful items and crud items | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Migrates styles to radix ... | diff --git a/packages/webapp-libs/webapp-contentful/package.json b/packages/webapp-libs/webapp-contentful/package.json
index edff80128..dc5962e36 100644
--- a/packages/webapp-libs/webapp-contentful/package.json
+++ b/packages/webapp-libs/webapp-contentful/package.json
@@ -11,6 +11,7 @@
"dependencies": {
"@sb/we... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new <img> element rendering the demo item thumbnail is missing an alt prop.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Star icon's conditional className cn() object with six branches can be simplified into two ent... | null |
apptension__saas-boilerplate__247 | apptension/saas-boilerplate | 247 | defect | 26c1757e3aeca54060b3c3fdb587c9ab7b6ef65e | 76163f4c0abbe486f6cabd6e5439761a782edc17 | feat: radix UI popovers improvements | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Improves styling of popov... | diff --git a/packages/webapp-libs/webapp-notifications/package.json b/packages/webapp-libs/webapp-notifications/package.json
index b4e30a953..2f6f0ec90 100644
--- a/packages/webapp-libs/webapp-notifications/package.json
+++ b/packages/webapp-libs/webapp-notifications/package.json
@@ -12,6 +12,7 @@
"@sb/webapp-api-... | 2 | 2 | 2 | [{"id": "G0", "claim": "The notification avatar image URL should not be hardcoded in the component.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions whether adding the 'graphql' package to webapp-notifications' dependencies is n... | null |
apptension__saas-boilerplate__299 | apptension/saas-boilerplate | 299 | defect | 66b9b6648334e7277531f8a4bd78477010a450e2 | 79d397ee76f8f4460059e1b7519d2ee29065fdf1 | fix:#277 Add message while deleting item | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [ ] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Adds toast message when C... | diff --git a/packages/webapp-libs/webapp-crud-demo/src/routes/crudDemoItem/addCrudDemoItem/__tests__/addCrudDemoItem.component.spec.tsx b/packages/webapp-libs/webapp-crud-demo/src/routes/crudDemoItem/addCrudDemoItem/__tests__/addCrudDemoItem.component.spec.tsx
index 4d0b3d64a..0fe87b8b7 100644
--- a/packages/webapp-lib... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the new delete-success toast in CrudDemoItemListItem.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to also adjust the generator so generated code matches the new delete success message.", "c... | null |
apptension__saas-boilerplate__327 | apptension/saas-boilerplate | 327 | defect | 51828d36bce2cdda74c7f61e3392eb21dbe5a8cf | e7c4405b3bd9b21e0c964f95c582bf7cfa53f641 | fix: Go back button in subscriptions page | - #306
### Please check if the PR fulfills these requirements
- [X] The commit message follows our guidelines
### What kind of change does this PR introduce?
Updated routes and navigation components in subscription
Closes #306 | diff --git a/packages/webapp-libs/webapp-finances/src/config/routes.ts b/packages/webapp-libs/webapp-finances/src/config/routes.ts
index bf962ed86..3fec2bcf7 100644
--- a/packages/webapp-libs/webapp-finances/src/config/routes.ts
+++ b/packages/webapp-libs/webapp-finances/src/config/routes.ts
@@ -1,14 +1,15 @@
import {... | 5 | 5 | 4 | [{"id": "G0", "claim": "When moving between subscription tabs the URL changes and rendering is fine, but going back with the browser back button shows an empty page, as if the <Outlet/> does not render the correct element on history change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
apptension__saas-boilerplate__361 | apptension/saas-boilerplate | 361 | defect | 2ea31f41335b180b6e3d49dd173c2a77383e0419 | 1e8ffaac3e9b89c50b75f92f8e5b983559d32899 | fix: refetch crud item after add mutation | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Refetchs crudDemoItemList... | diff --git a/packages/webapp-libs/webapp-crud-demo/src/routes/crudDemoItem/addCrudDemoItem/addCrudDemoItem.component.tsx b/packages/webapp-libs/webapp-crud-demo/src/routes/crudDemoItem/addCrudDemoItem/addCrudDemoItem.component.tsx
index 03b300b9b..dde1b82b6 100644
--- a/packages/webapp-libs/webapp-crud-demo/src/routes/... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should be reverted (the factories/index.ts change needs regenerating, apparently by prettier).", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added covering the refetchQueries behaviour repla... | null |
apptension__saas-boilerplate__505 | apptension/saas-boilerplate | 505 | defect | 2aebe4a3caf10b3ce74d7d1037e0cb2022eae83e | 4e45a8c1ba6810b2899c0f6492d82a0c5659f42e | feat: Multi-tenancy: Create tenant form | ### Please check if the PR fulfills these requirements
- [X] The commit message follows our guidelines
- [X] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Added new organization/te... | diff --git a/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts b/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts
index 87b6d7503..a08659a7b 100644
--- a/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts
+++ b/packages/webapp-libs/webapp-api-clien... | 4 | 3 | 1 | [{"id": "G0", "claim": "The `fn` callback parameter of `assignLocalePathFn` is never used; the function body should call `fn` (at line 12) instead of the hardcoded `getLocalePath`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `control` value c... | null |
apptension__saas-boilerplate__513 | apptension/saas-boilerplate | 513 | defect | 746360eb992c73a136cfff2eb5ed20750eb72ea8 | eea23e53581457dc214bd5e8a3dd5a5d6358f963 | feat: Organization settings page and invitation to the tenant | ### Please check if the PR fulfills these requirements
- [X] The commit message follows our guidelines
- [X] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Add frontend part for the... | diff --git a/.eslintrc.json b/.eslintrc.json
index 68c8ec5c8..d7c82cd0e 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -18,7 +18,8 @@
"@sb/webapp-documents/**",
"@sb/webapp-finances/**",
"@sb/webapp-generative-ai/**",
- "@sb/webapp-notifications/**"
+ ... | 10 | 8 | 1 | [{"id": "G0", "claim": "Use a proper type instead of `any` for the useTenantInvitationForm hook's props (the reviewer also floated, as an explicitly optional separate task, a reusable generic approach like useTenantForm/useCrudDemoItemForm).", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
apptension__saas-boilerplate__515 | apptension/saas-boilerplate | 515 | defect | 746360eb992c73a136cfff2eb5ed20750eb72ea8 | d471a9ac05f26a5caaee8167c161fcc8d433e84e | feat: allow the user to change membership role | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
New feature: membership r... | diff --git a/.eslintrc.json b/.eslintrc.json
index 68c8ec5c8..d7c82cd0e 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -18,7 +18,8 @@
"@sb/webapp-documents/**",
"@sb/webapp-finances/**",
"@sb/webapp-generative-ai/**",
- "@sb/webapp-notifications/**"
+ ... | 7 | 6 | 2 | [{"id": "G0", "claim": "The spec file name is misspelled (membetshipEntry instead of membershipEntry).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tenant factories should be imported from the local relative tests path (`../../../tests/fac... | null |
apptension__saas-boilerplate__542 | apptension/saas-boilerplate | 542 | defect | 9943c911447fe87bc97e996ec2c80ec484816528 | 58e9f3c98dfec069964f618f3b74a535856314cb | feat: multi tenancy - add tenant removal form | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
add a danger zone into Ge... | diff --git a/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts b/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts
index 51579053b..79b7b4e5b 100644
--- a/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts
+++ b/packages/webapp-libs/webapp-api-clien... | 4 | 4 | 0 | [{"id": "G0", "claim": "The text rendered by DangerZoneItem is a static thing, so it should not be passed to the component as a (dynamic) parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DangerZoneItem props definition, with two alternative ... | null |
apptension__saas-boilerplate__556 | apptension/saas-boilerplate | 556 | defect | b4bc9a51a02b197d3bed1fea5f9457ec26ad60de | 20f5c1cde62b4dff37b8901469bcbaa963d979d8 | fix: test coverage of webapp-tenants | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Fix test coverage for web... | diff --git a/packages/webapp-libs/webapp-tenants/src/components/tenantSwitch/__tests__/tenantSwitch.component.spec.tsx b/packages/webapp-libs/webapp-tenants/src/components/tenantSwitch/__tests__/tenantSwitch.component.spec.tsx
index 3834bff31..6f7654b5d 100644
--- a/packages/webapp-libs/webapp-tenants/src/components/te... | 2 | 2 | 1 | [{"id": "G0", "claim": "Move the per-test tenant variables to an upper scope so they are not duplicated in each test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated 'should handle settings click' test name is invalid and should be... | null |
apptension__saas-boilerplate__558 | apptension/saas-boilerplate | 558 | defect | b4bc9a51a02b197d3bed1fea5f9457ec26ad60de | 754c6d1454be325d15cee4d5ee01171fe95d7d9e | feat: add additional info in the personal settings' members tab | ### Please check if the PR fulfills these requirements
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Add additional info in th... | diff --git a/packages/webapp-libs/webapp-tenants/src/routes/tenantSettings/tenantMembers/__tests__/tenantMembers.component.spec.tsx b/packages/webapp-libs/webapp-tenants/src/routes/tenantSettings/tenantMembers/__tests__/tenantMembers.component.spec.tsx
new file mode 100644
index 000000000..dfcbcc0d4
--- /dev/null
+++ b... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hardcoded English string in the personal-tenants alert should be wrapped in a <FormattedMessage/> element like the rest of the file's text.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apptension__saas-boilerplate__638 | apptension/saas-boilerplate | 638 | defect | 1fac0fd62747a3a56e927f618eafd88274ad70c0 | 8c17a85e2c51b5478a92a6788feb8507db683b5d | fix: #596 Redirect on role change to member and update current user state | ### Please check if the PR fulfills these requirements
- [ ] The commit message follows our guidelines
- [ ] Tests for the changes have been added (for bug fixes/features)
- [ ] Docs have been added / updated (for bug fixes / features)
### What kind of change does this PR introduce?
Bug fix
### What is th... | diff --git a/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts b/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts
index 79b7b4e5b..3ee7940e9 100644
--- a/packages/webapp-libs/webapp-api-client/src/graphql/__generated/gql/gql.ts
+++ b/packages/webapp-libs/webapp-api-clien... | 3 | 3 | 0 | [{"id": "G0", "claim": "The component should not re-select the current user's tenant from the common query when it is already available via useCurrentTenant().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The home dashboard item rendering should use th... | null |
appvia__tako__137 | appvia/tako | 137 | defect | b3fb05343344aac2d2222403b8f4bab71bbfdbed | f68841b1377d9348fa51406867273bdad37ea873 | MVP(init): Ensure env_file environment vars are inferred | Closes https://github.com/appvia/kube-devx/issues/75
`compose-go` already parses `env_file` attributes correctly.
... This PR ensures references to any parsed `env_files` are discarded from the app's `compose.yaml` file. | diff --git a/hack/sample-dc-app/back-env b/hack/sample-dc-app/back-env
new file mode 100644
index 00000000..91c7cd68
--- /dev/null
+++ b/hack/sample-dc-app/back-env
@@ -0,0 +1 @@
+CACHE_PASSWORD=testing123
diff --git a/hack/sample-dc-app/docker-compose.env-file.yml b/hack/sample-dc-app/docker-compose.env-file.yml
new f... | 1 | 1 | 0 | [{"id": "G0", "claim": "The sample compose files should be moved out of the /hack directory into the project's /examples directory, and one of the awesome compose example apps should be used instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appvia__tako__171 | appvia/tako | 171 | defect | 35f7f20c3b95fe2125eb238493b2028d109aa4c3 | 2ac9c90cb7d85914af1d72199f4ceb49fd60406a | MVP (init-labels): re-work init to produce an inline `kev` config without a `.kev` directory. | Completes #168
**Please note, this does not include infer logic.** That work is part of #169
- [x] Removes `.kev` directory.
- [x] Introduces a **temporary** `kev.v2` package dir to house label based work for both CLI and kev lib.
- [x] Generates `kev.yaml` in the project root.
- [x] Generates environmen... | diff --git a/.gitignore b/.gitignore
index 637aba4d..47a2e0c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,8 @@
-### Generated App Definitions ###
+### kev dirs, files & stuff ###
.kev/*
+**/kev.yaml
+**/kev.yml
+**/docker-compose.kev.*.yaml
### IDEs ###
.idea/*
diff --git a/Makefile b/Makefile
index 03710f... | 3 | 2 | 2 | [{"id": "G0", "claim": "A greedy global search-and-replace wrongly rewrote 'labels' to 'in-cluster-wordpress' in the pkg/kev/converter/kubernetes files (comments, struct compose tags and placement-constraint keys), and those changes should be reverted to the original.", "category": "correctness", "verdict": "supported"... | null |
appvia__tako__201 | appvia/tako | 201 | defect | d5e995ddc5347815b89b7ea707bcc8b35c654320 | 37895ab6644398ea79c6fb4f88f37a36f7d32c29 | Reconcile: summarise any `kev` environment changes to developers. | Resolves #195
* Reconcile summarises any updates to STDOUT.
* New shallow summary specs to allow for copy edits without having to change the tests.
* Removed banner, as it made reading reconcile summaries hard.
Sample,
```shell
% kev render
✓ Reconciling environment [dev]
→ nothing to update
........... | diff --git a/cmd/kev/cmd/reconcile.go b/cmd/kev/cmd/reconcile.go
new file mode 100644
index 000000000..e325e3281
--- /dev/null
+++ b/cmd/kev/cmd/reconcile.go
@@ -0,0 +1,50 @@
+/**
+ * Copyright 2020 Appvia Ltd <info@appvia.io>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The commented-out `// var reporter bytes.Buffer` line left in runReconcileCmd is leftover dead code that is not needed and should be tidied up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appvia__tako__221 | appvia/tako | 221 | defect | e996a000e22c73306f163ca4e69cabb7e52edf66 | 17cbe3e5ee3a2982fa402c8586014cc8bf5c3d76 | Render: empty env var cannot be overridden by overlay env var. | Resolves #219
We no longer rely on `compose-go` for environment merges.
However, `compose-go` still does the heavy lifting and propagates env vars across compose files, os and env_file combinations.
Finally, we just merge our labels and env var overrides on top to guarantee everything works as expected.
Th... | diff --git a/pkg/kev/compose.go b/pkg/kev/compose.go
index 6651592b8..19a31a8c4 100644
--- a/pkg/kev/compose.go
+++ b/pkg/kev/compose.go
@@ -69,11 +69,6 @@ func NewComposeProject(paths []string, opts ...ComposeOpts) (*ComposeProject, er
return p, nil
}
-// GetVersion gets a project's version
-func (p *ComposeProje... | 2 | 2 | 0 | [{"id": "G0", "claim": "The zeroValueUnassignedEnvVarsInService method needs a one-line doc comment because its name is hard to decode.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The method name zeroValueUnassignedEnvVarsInService would perhap... | null |
appvia__tako__254 | appvia/tako | 254 | defect | 059c83077af42c93831cc9384748a87fecc35d35 | 3eee03db3560b0c4a6d1f04f760bbce5387cc7b1 | Toggle project services | Resolves #207 | diff --git a/pkg/kev/config/labels.go b/pkg/kev/config/labels.go
index 50307a33..40f11c2f 100644
--- a/pkg/kev/config/labels.go
+++ b/pkg/kev/config/labels.go
@@ -17,6 +17,9 @@
package config
const (
+ // LabelComponentEnabled toggles the project service component
+ LabelComponentEnabled = "kev.component.enabled"
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "The enabled() method only string-compares the label against \"false\", so a misspelled value would silently leave the service enabled; the label value should be parsed as a bool (e.g. via strconv.ParseBool) and handled accordingly.", "category": "correctness", "verdict": "supported", "priority":... | null |
appvia__tako__260 | appvia/tako | 260 | defect | 84bba9c6eed0c8871d727da7db555547bcf3046b | a4ddb32706ddd40da29b895c613f606ba4e9c752 | Add profiles to existing skaffold manifest when initialising with --skaffold | Resolves #250 | diff --git a/cmd/kev/cmd/init.go b/cmd/kev/cmd/init.go
index c6f07205..46929253 100644
--- a/cmd/kev/cmd/init.go
+++ b/cmd/kev/cmd/init.go
@@ -55,6 +55,7 @@ var initCmd = &cobra.Command{
type skippableFile struct {
FileName string
Skipped bool
+ Updated bool
}
func init() {
@@ -118,25 +119,43 @@ func runInit... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `skaffoldManifest != nil` guard in the new else branch of runInitCmd is unnecessary because the preceding error handling already ensures the manifest is usable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The skaff... | null |
appvia__tako__263 | appvia/tako | 263 | defect | 2cc5f4a95d4e959937318626980869b7ce3e6955 | e971f9d508339a3060e5b5c7d386ce2bbe4bb9f0 | Condense kev env override config to reduce repetition. | Resolves #251
Progress:
- [x] Init: condense env overlay labels.
- [x] Reconcile: reconcile based on condensed env overlay labels.
- [x] Render: render based on condensed env overlay labels.
- [x] Reconcile: new added services and volumes should have condensed env overlay labels. | diff --git a/pkg/kev/changeset.go b/pkg/kev/changeset.go
index 4cbfb434..c7c5ffb8 100644
--- a/pkg/kev/changeset.go
+++ b/pkg/kev/changeset.go
@@ -207,7 +207,7 @@ func (chg change) patchVersion(overlay *composeOverlay, reporter io.Writer) {
func (chg change) patchService(overlay *composeOverlay, reporter io.Writer) {
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The commented-out service-lookup code left in GetService is not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out volume-lookup code left in GetVolume is not needed and should ... | null |
appvia__tako__273 | appvia/tako | 273 | defect | bf8804da0c934e23ca3902255bfd1704bed86496 | 3401bba91753e87c3a03c307b764ba7e2b863363 | Detect potential secrets in envs or env_files | Resolves #136
- [x] Found regexps to help match secrets from other OSS projects.
- [x] Retrofitted regexps as Secret Matchers to identify potential env var secret leaks.
- [x] Can detect secrets in manifest sources env vars.
- [x] Can detect secrets in environment override env vars.
- [x] Wired in the detect co... | diff --git a/cmd/kev/cmd/detect.go b/cmd/kev/cmd/detect.go
new file mode 100644
index 00000000..74518f5f
--- /dev/null
+++ b/cmd/kev/cmd/detect.go
@@ -0,0 +1,39 @@
+/**
+ * Copyright 2020 Appvia Ltd <info@appvia.io>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file ex... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `if nothingDetected := len(matches) < 1; nothingDetected` construct should be the simpler `if len(matches) == 0 { ... }`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In `detectSecretsInEnvVars`, the accumulator var... | null |
appvia__tako__276 | appvia/tako | 276 | defect | c6e4bc5ec6fcf58717dc99e6f1d8ec54353a2cda | 78977c270eef312f9aaf731a9cbe69d374edde5a | Add a verbose mode to Kev cmds, to communicate extra runtime info. | Resolves #274
- [x] Add `verbose` flag to the root command - similar to how `docker-compose` works.
- [x] Only display reconcile info when `verbose` flag is set.
- [x] Always warn on specific detected secret regardless of `verbose` flag.
- [x] Only display details of all secret detection (detected/non) when `ver... | diff --git a/cmd/kev/cmd/detect.go b/cmd/kev/cmd/detect.go
index 74518f5ff..567deabf3 100644
--- a/cmd/kev/cmd/detect.go
+++ b/cmd/kev/cmd/detect.go
@@ -23,17 +23,20 @@ import (
"github.com/spf13/cobra"
)
-func runDetectSecretsCmd(_ *cobra.Command, _ []string) error {
+func runDetectSecretsCmd(cmd *cobra.Command, ... | 6 | 5 | 1 | [{"id": "G0", "claim": "In regular (non-verbose) mode the render command's output is missing context, e.g. which environment was rendered.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The verbose flag should be made position independent so that somethi... | null |
appvia__tako__277 | appvia/tako | 277 | defect | c6e4bc5ec6fcf58717dc99e6f1d8ec54353a2cda | bc102230acd79a9af1942d46ef521bd7e22c77cf | Add Horizontal Pod Autoscaler support | Resolves #113
- Introduces Horizontal Pod Autoscaler
- Adds additional config parameters:
- `kev.workload.autoscale-max-replicas` (0 by default == HPA disabled)
- `kev.workload.autoscale-cpu-threshold` (defaults at 70%)
- `kev.workload.autoscale-mem-threshold` (defaults at 70%)
Note it'll automatic... | diff --git a/docs/reference/config-params.md b/docs/reference/config-params.md
index edd356e3..23e5306b 100644
--- a/docs/reference/config-params.md
+++ b/docs/reference/config-params.md
@@ -213,6 +213,42 @@ services:
...
```
+## kev.workload.autoscale-max-replicas
+
+Defines the maximum number of instances (replic... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new autoscaling labels were not added to the validator schema at pkg/kev/config/schema.go, so they cannot be specified explicitly by an env override.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
appvia__tako__280 | appvia/tako | 280 | defect | d089ac1ce894ff63160d9fe88af276f2ec617a93 | 73567325ffad748318c57497d2d20785443b2368 | Display reconcile rules, when communicating reconcile results. | Resolves, #275 - depends on PR https://github.com/appvia/kev/pull/276
In verbose mode, displays the rules (dimmed using the `\033[2m` text attribute):
```zsh
% kev -v render
᛬ Reconcile ...
HOW DOES RECONCILE WORK?
᛫ New services & volumes in a project will be added to all environments.
᛫ Removed services & ... | diff --git a/cmd/kev/cmd/detect.go b/cmd/kev/cmd/detect.go
index 74518f5ff..09913f1c5 100644
--- a/cmd/kev/cmd/detect.go
+++ b/cmd/kev/cmd/detect.go
@@ -23,16 +23,20 @@ import (
"github.com/spf13/cobra"
)
-func runDetectSecretsCmd(_ *cobra.Command, _ []string) error {
+func runDetectSecretsCmd(cmd *cobra.Command, ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The rule that ENV VARS will be removed if they are found in an environment file but not in the project may not make much sense, since one might add an env variable in the environment-specific override in special cases, though it could probably be left as is.", "category": "documentation", "verdi... | null |
appvia__tako__310 | appvia/tako | 310 | defect | 32fa5fdf547bce711cb80a73ee18f4c4df36808e | 221cd1da2c5eda3014f3b4f3ed71032b969d0f56 | Infer kev.service.type as ClusterIP | Resolves #308
- [x] Ensures any service with a port configured is mapped to `kev.service.type`:`ClusterIP`
- [x] Updates e2e tests to match new reality.
- [x] Removes redundant code.
- [x] Docs and reference updated. | diff --git a/e2e/wordpress-mysql/wordpress-mysql.bats b/e2e/wordpress-mysql/wordpress-mysql.bats
index 32a2e509..5dd3c2dd 100644
--- a/e2e/wordpress-mysql/wordpress-mysql.bats
+++ b/e2e/wordpress-mysql/wordpress-mysql.bats
@@ -50,7 +50,7 @@ load ../helper
echo $output
[ "$status" -eq 0 ]
- run ensure-service-t... | 1 | 1 | 1 | [{"id": "G0", "claim": "The configuration reference for kev.service.type should be updated accordingly as part of this change, since the PR narrowed extraction to None/ClusterIP.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
appvia__tako__362 | appvia/tako | 362 | defect | f9af3b698b5ffe653035a6859a8886b221691834 | e3c9d83017058ed02b5674bd80c9b372d254c608 | Respect and support service extensions in environment overrides | Resolves: #361
This PR implements the following extension strategy:
- Service config extensions can be added to the compose sources.
- Service config extensions can be added to the environment override files.
- Service config extensions will always be merged back to the sources config.
- **Pre merge**: If ... | diff --git a/.gitignore b/.gitignore
index 08b3d4d7..8f577f61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,12 +4,18 @@
**/kev.yml
**/docker-compose.kev.*.yaml
k8s/*
+docker-compose.yaml
!/pkg/kev/testdata/**/*.yaml
!/examples/**/*.yaml
+skaffold.yaml
### IDEs ###
.idea/*
-/bin/
+
+# Build binary
+bin/*
+dist... | 1 | 1 | 1 | [{"id": "G0", "claim": "It would be worth adding a spec for the case where extensions are present only in the environment override and not in the compose sources.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
appvia__tako__399 | appvia/tako | 399 | defect | f6319f6655311545fe820927873ffa5c72188a5d | 51377b52b878b6b9b45dd7d7d092e51c53951041 | pkg/config: add http probe | Resolves #394 | diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index 61097be2..4e537a41 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -124,6 +124,9 @@ const (
// DefaultLivenessProbeCommand default command
DefaultLivenessProbeCommand = "Define healthcheck command for service %s"
... | 10 | 6 | 1 | [{"id": "G0", "claim": "The remaining liveness-probe config labels (e.g. interval, retries) should also follow the dot notation, e.g. `workload.liveness-probe.interval`, to match the newly dotted probe labels.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G... | null |
appvia__tako__410 | appvia/tako | 410 | defect | b67d70d72e12183f8583d49b506b0c8751d1e843 | c1ea0a901acb9c12d25045590da5711b3b997960 | add readiness probe types | Resolves #405 | diff --git a/pkg/kev/config/labels.go b/pkg/kev/config/labels.go
index eaeb8d77..30feb37b 100644
--- a/pkg/kev/config/labels.go
+++ b/pkg/kev/config/labels.go
@@ -115,8 +115,17 @@ const (
// LabelWorkloadReadinessProbeRetries defines number of times workload liveness probe will retry
LabelWorkloadReadinessProbeRetr... | 3 | 3 | 1 | [{"id": "G0", "claim": "The Context description string in the readinessProbeHTTP test contains a typo: `parth` should be `path`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test case message `returns label value` is too vague and should b... | null |
appvia__tako__439 | appvia/tako | 439 | defect | bec7ddd8f2f7220067483393881353d7f270c003 | d3754745b300e2a21b15dd85b5b6a84442221bdc | add extensions to init | Resolves #438 | diff --git a/.gitignore b/.gitignore
index 5017bab9..7eb4848c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,11 @@ docker-compose.override.yaml
!/examples/**/*.yaml
skaffold.yaml
+### Node app example
+examples/node-app/docker-compose.kev*
+examples/node-app/kev.yaml
+examples/node-app/k8s
+
### Go mod vend... | 2 | 1 | 0 | [{"id": "G0", "claim": "The x-k8s probe configuration could instead use the probe type as the key with nested type-specific configuration (as sketched in kev#443), treating an intended `none` probe as the probe being absent from the configuration — something to consider, possibly out of scope for this PR.", "category":... | null |
appvia__tako__450 | appvia/tako | 450 | defect | 7ad07d4c428e86fd236f1e0831c71a4423f76a5c | 776f39cd35dda2bb01176d2f94d8f1442d1b3cb5 | Revisit skaffold profiles | Resolves #411
This PR introduces the following changes:
* Removes unnecessary local profile for `minikube` and `docker-desktop` as these are handled natively.
* Removes `Push` option in Build phase of each environment profile - local profiles will never push (unless overridden), and when remote contexts are in ... | diff --git a/pkg/kev/init.go b/pkg/kev/init.go
index 5fd3350cc..72db9c52d 100644
--- a/pkg/kev/init.go
+++ b/pkg/kev/init.go
@@ -161,7 +161,7 @@ func (r *InitRunner) CreateOrUpdateSkaffoldManifest() (*SkaffoldManifest, error)
// Skaffold manifest already present - add additional profiles to it!
// Note: kev will ... | 5 | 3 | 0 | [{"id": "G0", "claim": "The rename from AddProfiles to InjectProfiles is dubious because Add and Inject convey the same message here and Add is the more common term, so the author should reconsider (keep Add).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
appvia__tako__467 | appvia/tako | 467 | defect | d9298d6eefbdaa50fdc8a615adf8b63cd4549744 | 9ac2d5099c79d529db73dd358e785634d3bda106 | kev-458 render extensions | This PR adds parsing composego into extensions directly without using some labels. More labels and properties to be added in a following PR | diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index bec2f557..17e46b4f 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -144,4 +144,4 @@ const (
)
// DefaultLivenessProbeCommand default command
-var DefaultLivenessProbeCommand = []string{"echo", "Define healthcheck ... | 15 | 12 | 1 | [{"id": "G0", "claim": "Rename WorkloadReplicaFromCompose to the plural WorkloadReplicasFromCompose to match the Replicas field it fills.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename LivenessProbeFromHealthcheck to follow the FromCompos... | null |
appvia__tako__476 | appvia/tako | 476 | defect | ff673f1523144ba12b8cc1f0c16ab7db94172964 | b2df21954bf124a1b4fb1ecae5b08fbdc0103824 | Tidy up render UI messaging. | Resolves #474
- Mostly tidy up of Init and Render UI
- Added missing tests for recent events features. | diff --git a/pkg/kev/converter/kubernetes/transform.go b/pkg/kev/converter/kubernetes/transform.go
index b72296e0..6bd85f8d 100644
--- a/pkg/kev/converter/kubernetes/transform.go
+++ b/pkg/kev/converter/kubernetes/transform.go
@@ -205,8 +205,8 @@ func (k *Kubernetes) Transform() ([]runtime.Object, error) {
}
if r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The network policy step header added in the render UI should be named `Networking` (or, to match the surrounding steps, `Converted network info`) instead of `Creating network`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appvia__tako__502 | appvia/tako | 502 | defect | 035af60fdb5d7f0121be8377a4d5ca9b4c28e707 | 1faa7f0f910dc9bb9ea53ca6b0de5213d278c5f4 | Extract volume settings into a volumes K8s extension | Resolves #486 and #489
- Introduces volume extensions.
- Ensures volume data is extracted into extensions alongside legacy volume labels.
- Adds extensions volume config validations (resolving #489).
- Uses volume extensions during compose to k8s manifest conversion.
- Ensure `kev init` produces override... | diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index 17e46b4f..95741382 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -24,7 +24,7 @@ const (
DefaultVolumeSize = "100Mi"
// DefaultVolumeStorageClass default PV storage class
- DefaultVolumeStorageClass = ""
+ Defa... | 10 | 9 | 1 | [{"id": "G0", "claim": "ImagePullFromCompose should not take a service argument it never uses.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'returns defaults' test should assert that a missing workload section yields the default workload c... | null |
appvia__tako__506 | appvia/tako | 506 | defect | 53816973dbf3792836c2de6c391794f7d3d33d46 | f53e7b61bf9c9777ede8efed9ad8bd5b8e1b561c | Enable volumes reconciliation for extensions. | Resolves #488
- Ensures reconciliation loads volumes with extensions.
- Removes redundant reconciliation patch for service k8s extension value edits.
- Adds volume validation to the reconciliation process (similar to services).
- Extra tidy and test fixture updates.
| diff --git a/pkg/kev/config/svcextensions.go b/pkg/kev/config/svcextensions.go
index 07a71f53..4fe13aec 100644
--- a/pkg/kev/config/svcextensions.go
+++ b/pkg/kev/config/svcextensions.go
@@ -107,29 +107,27 @@ func DefaultSvcK8sConfig() SvcK8sConfig {
}
}
-type svcK8sConfigOptions struct {
- requireExtensions bool
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The shared extension-parsing bits in pkg/kev/config should be moved to a separate file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test variable k8sSvc in transform_test.go should be renamed to svcK8s.", "cate... | null |
appvia__tako__516 | appvia/tako | 516 | defect | 469ee1df84a633261c1fae27577ea014e6fe106d | 7b9b93b8790850624161390321cb852497a9a815 | Move the pod-security labels to extensions. | Resolves #515
- Adds PodSecurity to the extension Workload.
- Changes defaults from `string` to `*int64`s.
- Fixes tests and tidy up.
| diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index 17e46b4f..0e591130 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -45,13 +45,13 @@ const (
DefaultImagePullSecret = ""
// DefaultSecurityContextRunAsUser default UID for pod security context
- DefaultSecurityCo... | 1 | 1 | 1 | [{"id": "G0", "claim": "Defaulting the pod security context values to 0 means a valid security context (RunAsUser/RunAsGroup/FsGroup = 0) gets set even when the user provided none; security context details should only be set if provided.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
appvia__tako__521 | appvia/tako | 521 | defect | 055ac243c874e29bbb28a98e4b886679a84825db | 2ba4d816dbb4080847aebcbe533202b355af1cac | Move the service labels to extensions | Resolves #520, Depends on PR #519 (this PR is rebased from that branch, specifically the top 3 commits).
- Completes migration of the x-k8s Service attribute, namely migrating `nodeport` and the `expose` attributes.
See, example
```yaml
service:
type: ClusterIP
nodeport:
expose:
domain: domain.com
... | diff --git a/pkg/kev/config/labels.go b/pkg/kev/config/labels.go
index 032ac040b..e38911168 100644
--- a/pkg/kev/config/labels.go
+++ b/pkg/kev/config/labels.go
@@ -16,23 +16,4 @@
package config
-const (
- LabelPrefix = "kev."
-
- // LabelWorkloadRollingUpdateMaxSurge max number of nodes updated at once
- LabelWor... | 5 | 3 | 0 | [{"id": "G0", "claim": "The commented-out label code left in the new test blocks (here and below) should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test context description should say 'extension' instead of 'label' now that t... | null |
appvia__tako__533 | appvia/tako | 533 | defect | 6a384bd2799e90311119acf0f9a0fb977360806e | 88c36e8250da5ae0c88ab4f36a726cfffcd5d88c | Turn Restart Policy string value sets into enums | Resolves #493
- Moved Restart Policy to use enums and clarified inference logic.
- Updated the render phase to use the svc K8s config value directly.
- Added tests to check the various Restart Policy scenarios. | diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index 7306768c..0ffc7034 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -59,15 +59,6 @@ const (
// HeadlessService svc type
HeadlessService = "Headless"
- // RestartPolicyAlways default value
- RestartPolicyAlways = ... | 6 | 6 | 1 | [{"id": "G0", "claim": "WorkloadRestartPolicyFromCompose should cascade, i.e. the value defined in the Deploy block should override the top-level Restart value rather than the two being mutually exclusive branches.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
appvia__tako__534 | appvia/tako | 534 | defect | 6756750eb6d0114537d2aa11a6d1393b17156267 | 22c6ade1fdb00f29b027939adb591e031f1d160e | Turn Workload Type and Service Type value sets into enums | Resolves #532
- Workload Types are now enums, and can handle case insensitive k8s extension config.
- Service Types are now enums, and can handle case insensitive k8s extension config. | diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index 0ffc7034..bedaa068 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -32,7 +32,7 @@ const (
// DefaultRestartPolicy is a default restart policy
DefaultRestartPolicy = RestartPolicyAlways
- // DefaultWorkload is a ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The node-port check should compare against v1.ServiceTypeNodePort instead of the value of config.NodePortService, since the former is unlikely to change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
appvia__tako__536 | appvia/tako | 536 | defect | b9ae8cdd902d13d1f645a81ec04feb2a9d8b3132 | 08710db9e78613ab089dded2d831aacd1e05d1eb | Minify Extensions | This resolves #497
- Minifies environment overrides on init - including overwrite values received from the sources.
- Applies a just in time configuration strategy by overlaying config info at the last minute to render the required k8s manifests.
Config info is used from:
- Sources compose config.
- Any sou... | diff --git a/pkg/kev/changeset.go b/pkg/kev/changeset.go
index 9f91ea69..d448babe 100644
--- a/pkg/kev/changeset.go
+++ b/pkg/kev/changeset.go
@@ -54,20 +54,28 @@ func (cset changeset) applyVersionPatchesIfAny(o *composeOverride) string {
return chg.patchVersion(o)
}
-func (cset changeset) applyServicesPatchesIfAn... | 3 | 2 | 0 | [{"id": "G0", "claim": "The minify functions should be renamed to more specific names (e.g. MinifySvcK8sExtension / MinifyVolK8sExtension) so it is obvious they only apply to the k8s extensions rather than sounding generic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
appvia__tako__538 | appvia/tako | 538 | defect | 16e4f7af2a17b46b04a9c7ba60db83135e013801 | 57babb608999736791b57a66c0b7e5383bda5201 | Improves skaffold manifest build artifacts detection with support for build strategy with CNB | Resolves #537
This PR slightly modifies the way Skaffold build artifacts are detected, and as a result strategy used to build them.
By default a `local docker build` strategy is used, unless no Dockerfile has been detected and docker compose manifest (application stack representation) references docker images with... | diff --git a/pkg/kev/skaffold.go b/pkg/kev/skaffold.go
index 77773e59..9e70ac2a 100644
--- a/pkg/kev/skaffold.go
+++ b/pkg/kev/skaffold.go
@@ -81,11 +81,8 @@ var (
// NewSkaffoldManifest returns a new SkaffoldManifest struct.
func NewSkaffoldManifest(envs []string, project *ComposeProject) (*SkaffoldManifest, error) ... | 2 | 2 | 0 | [{"id": "G0", "claim": "NewSkaffoldManifest only ever returns a nil error, so the returned error value should be removed from its signature.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test description typo 'doens't' should be corrected to 'doesn'... | null |
appvia__tako__548 | appvia/tako | 548 | defect | 922cf9f8bfba6e548e8b02ec4a2c6a810aa8642c | 8a8be0927fa16170aec545581c87cf2fdae2f29c | Set correct livenessProbe success threshold | Resolves #544
- Introduces success threshold config for a `v1Probe`.
- Ensures the `LivenessProbe` success threshold is always set to `1`. | diff --git a/pkg/kev/config/defaults.go b/pkg/kev/config/defaults.go
index 34172fc3..d86f64a6 100644
--- a/pkg/kev/config/defaults.go
+++ b/pkg/kev/config/defaults.go
@@ -91,9 +91,12 @@ const (
// DefaultProbeInitialDelay default 1m (1 minute)
DefaultProbeInitialDelay = "1m"
- // DefaultProbeRetries default 3. Nu... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename the constant DefaultSuccessThreshold to DefaultProbeSuccessThreshold to keep it in line with the other probe defaults.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The success-threshold default constant perhaps s... | null |
appvia__tako__552 | appvia/tako | 552 | defect | 922cf9f8bfba6e548e8b02ec4a2c6a810aa8642c | daba5eaab06e8cb43a3c4ce80e7c03eca5a58fec | Handle ingress with kubernetes cluster defaults | Resolves #550
- Exposed service with keyword `default` will use the default ingress backend.
- Exposed service with keyword `default` will not create a TLS ingress spec as per [docs](https://kubernetes.io/docs/concepts/services-networking/ingress/#tls). | diff --git a/pkg/kev/config/service.go b/pkg/kev/config/service.go
index 2f1e038b..f548c713 100644
--- a/pkg/kev/config/service.go
+++ b/pkg/kev/config/service.go
@@ -88,7 +88,7 @@ func inferServiceTypeFromComposeValue(v string) (ServiceType, error) {
case "nodeport":
return NodePortService, nil
case "loadbalanc... | 3 | 2 | 1 | [{"id": "G0", "claim": "hasDefaultIngressBackendKeyword should strip whitespace from the host values (or confirm the config object already does) before matching the default-backend keyword.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test des... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.