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
SpectoLabs__hoverfly__1025
SpectoLabs/hoverfly
1,025
defect
ed9126bd0a0fa080ba70f37c83247fd15ea61b6f
6aa046fd4bc387f1c99e64d23f3f05751c68bdfa
chore(hoverfly): add form processing for requests
Adds support for form processing in Hoverfly. I recently encountered a case where I needed to parse form data for one of the virtual APIs. This became painful and required me to introduce a middleware. Using the `ParseForm` of GO we can easily extend the request details with this logic. ⚠️ This is a draft, possibl...
diff --git a/core/handlers/v2/simulation_views_v1.go b/core/handlers/v2/simulation_views_v1.go index 7c0c42d0d..8165c99fb 100644 --- a/core/handlers/v2/simulation_views_v1.go +++ b/core/handlers/v2/simulation_views_v1.go @@ -20,10 +20,10 @@ type RequestResponsePairViewV1 struct { Request RequestDetailsView `json:"r...
4
3
3
[{"id": "G0", "claim": "Because the form is present in the request body, the PR should just create a new form matcher for the body (a \"form\" matcher whose value maps field names to nested matchers), as shown in the suggested JSON.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
SpectoLabs__hoverfly__1031
SpectoLabs/hoverfly
1,031
defect
9cc51b5300be8b8b9c895ecc3bfa461827ac9504
ce76747f9c3e7ff9dccd2d177e32a56031f5f139
Handle array of string and empty interfaces for match
@tommysitu I found one issue wherein on capturing the requests, we are saving an array of strings as values for matcher containsexactly as we are picking these values from query params, and on updating simulation via API call, an array of empty interfaces(generics) is being passed due to which code is breaking. Could ...
diff --git a/core/matching/matchers/contains_exactly_match.go b/core/matching/matchers/contains_exactly_match.go index a58a941ce..7789b7894 100644 --- a/core/matching/matchers/contains_exactly_match.go +++ b/core/matching/matchers/contains_exactly_match.go @@ -1,6 +1,7 @@ package matchers import ( + "reflect" "st...
1
1
0
[{"id": "G0", "claim": "The three contains matchers (contains, containsexactly, containsonly) duplicate the same reflection logic and should probably be normalized into one extensible matcher, e.g. an \"array\" matcher with ignoreOrder/ignoreUnknown/ignoreDuplicate options.", "category": "design", "verdict": "supported...
null
SpectoLabs__hoverfly__1032
SpectoLabs/hoverfly
1,032
defect
006e2ee49d8671c4c29422cb8f07a939529881c3
1f15cf3ab566f96f38b9751b689da6a268579eb6
feature - add support for adding custom literals and variables
Resolves => issue #900 Added support for custom literals defined by the user and custom variables which can be values fetched from the request body using either XPath or JsonPath. We need to define literals and variables in the data section in the below format in the simulation file. Literals can be accessed in...
diff --git a/core/handlers/v2/simulation_views_v1.go b/core/handlers/v2/simulation_views_v1.go index 8165c99fb..d2103fbfa 100644 --- a/core/handlers/v2/simulation_views_v1.go +++ b/core/handlers/v2/simulation_views_v1.go @@ -65,6 +65,10 @@ func (this ResponseDetailsView) GetFixedDelay() int { return 0 } // Gets LogNor...
3
2
1
[{"id": "G0", "claim": "The reviewer asks whether literals/variables should be supported for a particular response only, proposing instead that custom variables be declared globally (e.g. a GlobalVariables field on DataViewV5) so template data can be managed once for a large simulation.", "category": "design", "verdict...
null
SpectoLabs__hoverfly__1033
SpectoLabs/hoverfly
1,033
defect
006e2ee49d8671c4c29422cb8f07a939529881c3
0ccc638870b21eae408929648156a1cd000ed27d
feature - introduce generic array matcher with options
Matches the matcher group with value passed in request array based on the configuration passed. ignoreorder - ignore order in which values are passed ignoreunknowns - ignore unknowns in the values passed ignoreoccurrences - ignore comparision of no of occurrences in matcher group and values passed ``` ...
diff --git a/core/matching/field_matcher.go b/core/matching/field_matcher.go index 320fba9c1..310a45f65 100644 --- a/core/matching/field_matcher.go +++ b/core/matching/field_matcher.go @@ -1,9 +1,10 @@ package matching import ( + "strings" + "github.com/SpectoLabs/hoverfly/core/matching/matchers" "github.com/Sp...
1
1
0
[{"id": "G0", "claim": "Asks whether the other Contains... matchers will be replaced by the Array matcher, since Array without config already behaves identically to ContainsExactly and Contains-style behaviour could be expressed via Array config options such as ignoreOrder and ignoreUnknown.", "category": "design", "ve...
null
SpectoLabs__hoverfly__1038
SpectoLabs/hoverfly
1,038
defect
1429305a979cdb0ac45d5181dff381495bcd3f91
2c3ac41757d898b0d2934b1f822b1b7e6e583e79
feature - JWT matcher
Resolves #902 JWT Matcher ----------- This matcher is primarily used for matching JWT tokens. This matcher converts base64 encoded JWT to JSON document ({"header": {}, "payload": ""}) and does partial match with the matcher value. Matcher value contains only keys that they want to match in JWT. Example ...
diff --git a/core/matching/field_matcher_test.go b/core/matching/field_matcher_test.go index 2585ca557..d67f47c49 100644 --- a/core/matching/field_matcher_test.go +++ b/core/matching/field_matcher_test.go @@ -193,6 +193,17 @@ var fieldMatcherTests = []fieldMatcherTest{ toMatch: `<document><details>{"name":"Test", "i...
4
4
0
[{"id": "G0", "claim": "The `fmt.Println(jwt)` statement in `JwtMatcher` looks like leftover debugging and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `GetJWT` helper should be renamed to `ParseJWT` because that name wo...
null
SpectoLabs__hoverfly__1040
SpectoLabs/hoverfly
1,040
defect
6bb691a382a24f1e4b1b5a20ff6ed82821fc117d
fea07f2b2a056e5c9db2827da426200eb1236a2a
feature - Exclude headers and response fields from diff
This PR resolves #897 @tommysitu I have raised PR to exclude headers and response fields from diff. The user will be making a POST call with the body to exclude diff entries. As of now, added support only for JSONPath as our diff properly does diff for JSON response. I didn't use a third-party library as of now...
diff --git a/core/handlers/v2/diff_handler.go b/core/handlers/v2/diff_handler.go index a9677e62f..7904248d7 100644 --- a/core/handlers/v2/diff_handler.go +++ b/core/handlers/v2/diff_handler.go @@ -2,6 +2,7 @@ package v2 import ( "encoding/json" + "io/ioutil" "net/http" "github.com/SpectoLabs/hoverfly/core/ha...
1
1
0
[{"id": "G0", "claim": "The new helper ConvertToResponseDiffView should be kept unexported as convertToResponseDiffView.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SpectoLabs__hoverfly__1042
SpectoLabs/hoverfly
1,042
defect
8ffd57f66b0c38dec7ccf7dbfea688d2a57fdaf2
a342880ca5c808900f7289f278e7dbd53f955bce
update v5.2 simulation schema file
Update simulation schema file to reflect changes in v5.2: - matching chaining - global literals and variables for templating
diff --git a/core/handlers/v2/schema.json b/core/handlers/v2/schema.json index 20e283d4f..1a5cd572b 100644 --- a/core/handlers/v2/schema.json +++ b/core/handlers/v2/schema.json @@ -43,7 +43,24 @@ "matcher": { "type": "string" }, - "value": {} + "value": {}, + "config": { + "properties": { +...
1
1
1
[{"id": "G0", "claim": "The documentation file docs/pages/reference/hoverfly/request_matchers.rst also needs to be updated to match this pull request's schema/matcher changes (the array matcher config keys it documents are now camelCase, so the old lowercase names it shows would no longer be read by the matcher).", "ca...
null
SpectoLabs__hoverfly__1071
SpectoLabs/hoverfly
1,071
defect
f9e44511cf18be90733776d002fcce8174ec2b66
8eb2b2b36442ba8199d19c61be840e64a8f4b7f8
bugfix - Eagerly load cache on running in simulate/spy mode
Resolves => #1002 @tommysitu could you please review. bugfix - Eagerly load cache on running in simulate/spy mode using hoverfly cmd
diff --git a/core/hoverfly_service.go b/core/hoverfly_service.go index ae945133c..2dd1f8ea7 100644 --- a/core/hoverfly_service.go +++ b/core/hoverfly_service.go @@ -336,6 +336,7 @@ func (hf *Hoverfly) putOrReplaceSimulation(simulationView v2.SimulationViewV5, o result.WarningMessages = append(result.WarningMessages,...
6
5
2
[{"id": "G0", "claim": "It would be useful to log an info line showing whether the cache has been preloaded or not right from the command line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The preloading only works for simulations with exact m...
null
SpectoLabs__hoverfly__1123
SpectoLabs/hoverfly
1,123
defect
ed193e47f5fbdb4bef0272bc3196fd891a9c4253
a63fb91c92a845f07a454170e6292769ca670738
Add support for remote post serve action
Incorporated following changes: - Added support for remote post serve action - Unit Tests - Integration Tests - Documentation
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 17a53af07..4ee3e3747 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -40,6 +40,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Install Go + uses: actions/setup...
2
1
1
[{"id": "G0", "claim": "NewRemoteAction should validate the host with url.ParseRequestURI (a validateURL helper) instead of the hasHttpPrefix prefix check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Log a message when a (local/remote) post-serve...
null
SpectoLabs__hoverfly__1124
SpectoLabs/hoverfly
1,124
defect
eb31e774ae33180111bb4b7819565393548c0a8c
5be2f69c9addec100151483c8254c125c9aa025d
Add logging and journal entry for post serve action
Add logging and journal entry for post serve actions.
diff --git a/core/action/action.go b/core/action/action.go index 3416a0862..a24ea4a1d 100644 --- a/core/action/action.go +++ b/core/action/action.go @@ -14,7 +14,9 @@ import ( "time" v2 "github.com/SpectoLabs/hoverfly/core/handlers/v2" + "github.com/SpectoLabs/hoverfly/core/journal" "github.com/SpectoLabs/hover...
5
5
5
[{"id": "G0", "claim": "The pull request removes the assertions in TestHoverfly_GetPostServeActions that checked the two post-serve actions' fields (names, binary, delays, remote), and the reviewer asks why.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
SpectoLabs__hoverfly__1154
SpectoLabs/hoverfly
1,154
defect
869c5857f444811189e851fcb00fbb2c94ad8010
61cb8f852b0d5dfc9f3f2cd1c71f9f59da699d5b
Capture delay along with response
Resolves #1153
diff --git a/core/hoverfly_funcs.go b/core/hoverfly_funcs.go index da97baa6a..66c483c64 100644 --- a/core/hoverfly_funcs.go +++ b/core/hoverfly_funcs.go @@ -6,6 +6,7 @@ import ( "os" "path/filepath" "strings" + "time" "github.com/SpectoLabs/hoverfly/core/errors" v2 "github.com/SpectoLabs/hoverfly/core/handl...
4
4
4
[{"id": "G0", "claim": "The elapsed-time measurement should be taken immediately before/around the outbound call (moved to L34, right after client.Do) so that DoRequest measures only the outbound call's time, not the post-processing after it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
SpectoLabs__hoverfly__1156
SpectoLabs/hoverfly
1,156
defect
c81caa08900d1050e3041785ce2447b7b8db6671
30058741d3f66e8d46983d14b41800426df52791
bugfix - resolve issue #1155
Resolves #1155
diff --git a/core/util/util.go b/core/util/util.go index 33bfe2aa3..3f475f1e7 100644 --- a/core/util/util.go +++ b/core/util/util.go @@ -399,14 +399,14 @@ func jsonPath(query, toMatch string) interface{} { return "" } - // Jsonpath library converts large int into a string with scientific notion, the following - ...
1
1
1
[{"id": "G0", "claim": "Commenting out the large-int conversion block in jsonPath introduces another issue: several tests, e.g. Test_ApplyTemplate_PutAndGetValue, will fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
SpectoLabs__hoverfly__161
SpectoLabs/hoverfly
161
defect
9e309563dae7a327c66c146867a3278138e34a8b
295bc4aadaf61e9320e979c83bd4212918720f37
Feature/compact json xml req bodies
compacting json/xml request bodies before matching
diff --git a/hoverfly.go b/hoverfly.go index 461be436a..fb5c51c7c 100755 --- a/hoverfly.go +++ b/hoverfly.go @@ -4,6 +4,10 @@ import ( log "github.com/Sirupsen/logrus" "github.com/rusenask/goproxy" + "github.com/tdewolff/minify" + "github.com/tdewolff/minify/json" + "github.com/tdewolff/minify/xml" + "bufio" ...
1
1
1
[{"id": "G0", "claim": "The PR should detect JSON by checking the existing Content-Type header instead of sniffing the request body.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SpectoLabs__hoverfly__330
SpectoLabs/hoverfly
330
defect
781a115f9cbeced0f411293c60f8b437135d479d
e096df6336195f49a112c74cace86e02efed7208
Move to middleware v2
Middleware v2 is a big update to how we handle middleware. Instead of pointing Hoverfly to a script, we now provide Hoverfly with the script. Hoverfly will now manage the script itself. The benefit of doing this is to 1. Avoid any issues with paths when starting Hoverfly in one directory and then changing directory...
diff --git a/core/admin_test.go b/core/admin_test.go index 6588a5e21..788de13e4 100644 --- a/core/admin_test.go +++ b/core/admin_test.go @@ -10,7 +10,6 @@ import ( "testing" "github.com/SpectoLabs/hoverfly/core/handlers/v1" - "github.com/SpectoLabs/hoverfly/core/handlers/v2" "github.com/SpectoLabs/hoverfly/core...
7
3
1
[{"id": "G0", "claim": "The HoverflyMiddleware interface needs tidying up, removing the v1 functions (GetMiddleware/SetMiddleware).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The legacy Middleware field needs removing (from the HoverflyMid...
null
SpectoLabs__hoverfly__466
SpectoLabs/hoverfly
466
defect
0964a3ee1f9bfac220c359466e9890ecfd9d1ba7
80b3239a17c91f72eb6b07fdb1c099d5109b3e02
Using hoverctl, you can now specify which headers you want to capture
When using capture mode, capturing headers is now disabled by default. If you need to record headers you should either do ``` hoverctl mode capture --all-headers ``` or ``` hoverctl mode capture --headers "Content-Type,User-Agent" ```
diff --git a/core/hoverfly_service.go b/core/hoverfly_service.go index f8e4a4376..5323900bf 100644 --- a/core/hoverfly_service.go +++ b/core/hoverfly_service.go @@ -59,7 +59,7 @@ func (this *Hoverfly) SetModeWithArguments(modeView v2.ModeView) error { if this.Cfg.Webserver && modeView.Mode == modes.Capture { log...
1
1
0
[{"id": "G0", "claim": "Maybe remove the if/else statement and print a single message with 'request header(s)' instead of building two separate messages for one vs. multiple headers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SpectoLabs__hoverfly__507
SpectoLabs/hoverfly
507
defect
e70cfbfb7dfa1f8caac670fd9d16358e0b97dc0a
52bc5f4b0d2cda5c6a7b34226d0212a702781e06
Updated hoverctl targets command
`hoverctl targets create` is now `hoverctl targets new` Both `hoverctl targets new` and `hoverctl targets delete` will now take an argument instead of a flag for targetName. ``` hoverctl targets new new-target --admin-port 1234 ```
diff --git a/functional-tests/hoverctl/config_test.go b/functional-tests/hoverctl/config_test.go index 8c704987f..be8605ccd 100644 --- a/functional-tests/hoverctl/config_test.go +++ b/functional-tests/hoverctl/config_test.go @@ -17,13 +17,13 @@ var _ = Describe("When I use hoverctl", func() { }) It("prints the ...
1
1
0
[{"id": "G0", "claim": "Why rename `hoverctl targets create` to `targets new` — action-style keywords like create/update/delete are preferable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SpectoLabs__hoverfly__525
SpectoLabs/hoverfly
525
defect
f7077803eda1052636e1e128c009aeb0f1af2262
b0b053cc27ed7349583fe2402fee86855870a00e
Added a 10 minute timeout to authentication login when three failed attempts are made
If a subsequent failed attempt is made, the timeout is reset for another 10 minutes. When a timeout occurs, the user will receive a `429 Too Many Requests`. Timeout will also occur if someone tries to bruteforce the username and password via a proxy request instead of an API call, though this will return a 401 regar...
diff --git a/core/authentication/auth_service.go b/core/authentication/auth_service.go index e688d1ff9..61b088b5d 100644 --- a/core/authentication/auth_service.go +++ b/core/authentication/auth_service.go @@ -5,6 +5,8 @@ import ( "fmt" "net/http" + "time" + "github.com/SpectoLabs/hoverfly/core/authentication/ba...
1
1
1
[{"id": "G0", "claim": "The test Test_HasReachFailedAttemptsLimit_ReturnsTrueIfAttemptsIsAboveLimit should end with BeTrue() instead of asserting BeFalse() when attempts are above the limit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SpectoLabs__hoverfly__531
SpectoLabs/hoverfly
531
defect
161874d90ba54b03c990be72ae1737e37812212e
bd24d0a001e505de9fb9f80650fa8c65a7305900
Added X-HOVERFLY-AUTHORIZATION header and -disable-standard-proxy-auth flag
The disable-basic-auth flag has been removed due to it no longer being a requirement for Hoverfly Cloud. Instead, we have introduced the new `X-HOVERFLY-AUTHORIZATION` header. The reason for this is it using a custom header ensures it is sent via the HTTPS tunnel when proxying requests to Hoverfly. Along with this c...
diff --git a/core/cmd/hoverfly/main.go b/core/cmd/hoverfly/main.go index 1830afecf..7946aafc7 100644 --- a/core/cmd/hoverfly/main.go +++ b/core/cmd/hoverfly/main.go @@ -74,7 +74,7 @@ var ( addPasswordHash = flag.String("password-hash", "", "password hash for new user instead of password") isAdmin = flag.B...
1
1
1
[{"id": "G0", "claim": "The boolean `-disable-standard-proxy-auth` flag is confusing because it conflates several modes; it should be replaced by a single string-valued flag (e.g. `-proxy-auth-type`) choosing `proxy-auth` or `header-auth` instead of a boolean.", "category": "design", "verdict": "supported", "priority":...
null
SpectoLabs__hoverfly__534
SpectoLabs/hoverfly
534
defect
1097de1fd926a817e819c735326c24f590a371c5
9e8cd8378928b58fc9e1683fa8863565e21a5843
Added text/plain support for Logs API
Sending a Content-Type header with `text/plain` will result in plaintext logs
diff --git a/core/handlers/v2/logs_handler.go b/core/handlers/v2/logs_handler.go index e443d8e9b..9f1092010 100644 --- a/core/handlers/v2/logs_handler.go +++ b/core/handlers/v2/logs_handler.go @@ -6,6 +6,7 @@ import ( "net/http" "reflect" "strconv" + "strings" "github.com/SpectoLabs/hoverfly/core/handlers" ...
1
1
0
[{"id": "G0", "claim": "LogsHandler.Get could parse the query params into a query object, fetch the logs with it, and map the logs to a view separately, which the reviewer suggested might be less verbose than the nested branching.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SpectoLabs__hoverfly__582
SpectoLabs/hoverfly
582
defect
dc090187400a4bbef583044f36108112fcc27a19
f3f65bb157bfb336962f22cf6c4a5f700e5c043c
Fixed bug where two empty strings would result in a false match in the JsonMatcher
Originally, you could match a `jsonMatch: ""` against an empty request body. This was broken in v0.11.5. This bug was introduced when updating the JsonMatcher to ignore the order of object fields.
diff --git a/core/matching/json_match.go b/core/matching/json_match.go index 32e50ce52..264d15080 100644 --- a/core/matching/json_match.go +++ b/core/matching/json_match.go @@ -6,6 +6,9 @@ import ( ) func JsonMatch(matchingString string, toMatch string) bool { + if matchingString == "" && toMatch == "" { + return ...
1
1
1
[{"id": "G0", "claim": "JsonMatch should return true when matchingString equals toMatch, not only when both are empty strings.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SpectoLabs__hoverfly__617
SpectoLabs/hoverfly
617
defect
d138bd93d871dd225d64fb4248b47a7bb0fb0df9
33fc5637296ebda4bd3a5dae3490139b76a02e7f
Added filtering to journal
You can now filter the journal by sending a POST request to `/api/v2/journal`. ``` { "request": { "destination": { "globMatch": "*hoverfly*" } } } ``` Currently it will only accept the request field. Though we plan to later support filtering based on other fields available on journal en...
diff --git a/core/handlers/v2/journal_handler.go b/core/handlers/v2/journal_handler.go index c8de5f31b..d08901aba 100644 --- a/core/handlers/v2/journal_handler.go +++ b/core/handlers/v2/journal_handler.go @@ -11,6 +11,7 @@ import ( type HoverflyJournal interface { GetEntries() ([]JournalEntryView, error) + GetFilt...
1
1
1
[{"id": "G0", "claim": "The handler should return a different error (e.g. \"empty request in search params\") instead of \"Malformed JSON\" when the journal search body is valid JSON but contains no request object.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SpectoLabs__hoverfly__755
SpectoLabs/hoverfly
755
defect
de1ae703ca8583f94c3c0335bb4f5386b4786310
7e058b8808dd56a9e23c762c9b08765cf65c3cf3
Allow templating access to request body for use with jsonpath and xpath
Also some functional tests and also request method as it was very easy. https://github.com/SpectoLabs/hoverfly/issues/678 This PR also changes XML parsing to be not strict, which should fix https://github.com/SpectoLabs/hoverfly/issues/744
diff --git a/core/matching/matchers/json_path_match.go b/core/matching/matchers/json_path_match.go index 3a9015149..0a55a2f03 100644 --- a/core/matching/matchers/json_path_match.go +++ b/core/matching/matchers/json_path_match.go @@ -18,35 +18,38 @@ func JsonPathMatch(match interface{}, toMatch string) bool { } ma...
2
1
1
[{"id": "G0", "claim": "The helper registration added in NewTemplator registers 'Request.body jsonPath' while nothing registers {{ Request.Body xpath }}, which looks unintended and should be removed (or completed).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
SpectoLabs__hoverfly__831
SpectoLabs/hoverfly
831
defect
2487055325a19f02e4cdcd05cf265709a3c08067
a4ee364b485c405482c8f84f448b269f97353514
adding partial matching for json
This PR adds a partial matching feature for JSON and tests for it. Issue #641
diff --git a/core/matching/matchers/json_partial_match.go b/core/matching/matchers/json_partial_match.go new file mode 100644 index 000000000..06b70105f --- /dev/null +++ b/core/matching/matchers/json_partial_match.go @@ -0,0 +1,132 @@ +package matchers + +import ( + "encoding/json" +) + +var JsonPartial = "jsonpartial...
3
3
2
[{"id": "G0", "claim": "The matcher should find a JSON node located at any nested level of a JSON map, not only match the top-level object.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The matcher may not work if the match or toMatch JSON is an array s...
null
SpectoLabs__hoverfly__859
SpectoLabs/hoverfly
859
defect
6d7939f392ec0a2307744e02425cadb03fff1286
86d7995d592210fa72a80a3afa930f3083bf0e3c
Fix slow stateful mode #855
With this PR you will a better simulation performance in case you have data captured in stateful mode
diff --git a/core/import_test.go b/core/import_test.go index 52e5c3a98..6de8fc4bf 100644 --- a/core/import_test.go +++ b/core/import_test.go @@ -664,7 +664,10 @@ func TestImportImportRequestResponsePairs_SetsState(t *testing.T) { result := hv.importRequestResponsePairViews([]v2.RequestMatcherResponsePairViewV5{encode...
1
1
1
[{"id": "G0", "claim": "The matching operation should be synchronized because another thread can alter the state during matching, producing a contradictory matching error message (state shows foo=bar and required state is also foo=bar); fix it at some point.", "category": "correctness", "verdict": "supported", "priorit...
null
SpectoLabs__hoverfly__875
SpectoLabs/hoverfly
875
defect
d4da584d8a0cec9538d30f39b29067d4b5653f21
3ee450dd76a0441b8f451b36970320c29e838e8e
Realised handling templating on headers response
I made handling templates in response headers. I update `core/hoverfly_funcs_test.go#Test_Hoverfly_GetResponse_WillCacheTemplateIfNotInCache` test: add header `X-Image-Id` with template `{{ randomInteger }}`. How I test it: 1. Make local docker image: `docker build -t kulaginds/hoverfly`. 2. Run docker image: `do...
diff --git a/core/hoverfly_funcs.go b/core/hoverfly_funcs.go index f772d29ff..7046ccdb3 100644 --- a/core/hoverfly_funcs.go +++ b/core/hoverfly_funcs.go @@ -86,23 +86,20 @@ func (hf *Hoverfly) GetResponse(requestDetails models.RequestDetails) (*models.R // as we use the current state in templates if response.Templa...
2
2
1
[{"id": "G0", "claim": "For brevity, drop the separate var declarations and use short variable declarations such as `header := make([]*raymond.Template, len(v))` and `header := make([]string, len(v))` for the header slices in applyHeadersTemplating.", "category": "maintainability", "verdict": "supported", "priority": "...
null
SpectoLabs__hoverfly__911
SpectoLabs/hoverfly
911
defect
1750611591006e4b64116ba5130e078d4ccb7abe
df866a5819b7ae4645034d46decf2e60e6bc60b8
WIP: Export body files / body / all
Since bodyFiles get loaded into `body` on import, `body` is returned filled on export along with `bodyFile`. When both fields provided a warning is printed and hoverfly will use only body. One way to get around this behavior is to add some flag to `/api/v2/simulation` that defines how to export the simulation. I've ...
diff --git a/core/hoverfly_funcs.go b/core/hoverfly_funcs.go index f2c2bd0da..8bc6c5f50 100644 --- a/core/hoverfly_funcs.go +++ b/core/hoverfly_funcs.go @@ -1,6 +1,8 @@ package hoverfly import ( + "errors" + "fmt" v2 "github.com/SpectoLabs/hoverfly/core/handlers/v2" "github.com/aymerick/raymond" "io/ioutil" @...
5
5
3
[{"id": "G0", "claim": "On export, when a response has both body and bodyFile, hoverctl should create or update the body file with the content from body and then clear the body field.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "hoverctl export should ...
null
SpectoLabs__hoverfly__917
SpectoLabs/hoverfly
917
defect
45bdd1ca6e7cbdd8238fea8ce6aef7677921332d
06a5a778cdb917f19d698657250b5f91577a6b01
Hoverctl bodyfiles tests
I had to write a fsHelper struct with an interface to replace it with a stub in tests.
diff --git a/hoverctl/cmd/config.go b/hoverctl/cmd/config.go index b4203f228..c1c6de406 100644 --- a/hoverctl/cmd/config.go +++ b/hoverctl/cmd/config.go @@ -28,7 +28,8 @@ in the configuration file. Run: func(cmd *cobra.Command, args []string) { fmt.Println(config.GetFilepath()) - configData, _ := configuration....
1
1
1
[{"id": "G0", "claim": "File writing does not belong in wrapper.ExportSimulation (the API wrapper) and should be moved outside it, so functional tests for the export command can be added without mocking the file IO.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SpectoLabs__hoverfly__936
SpectoLabs/hoverfly
936
defect
c77ebebf10b9eec98864d01c37fc38d68ec807fc
d5aeade77a6ddd13de107721fb1a8ffc102f5dc9
add option to logging HTTP request/response
# Logging HTTP Request/Response ## Motivation (Why we made it) For integration test, we need the communication log between tested application and mock server in order to review the failed test cases or just save as evidence. ## Design A bool flag `-log-http` should be added to toggle logging HTTP reqeust/re...
diff --git a/core/cmd/hoverfly/main.go b/core/cmd/hoverfly/main.go index a510875bc..4b866e7e7 100644 --- a/core/cmd/hoverfly/main.go +++ b/core/cmd/hoverfly/main.go @@ -101,9 +101,10 @@ var ( database = flag.String("db", inmemoryBackend, "Storage to use - 'boltdb' or 'memory' which will not write anything to disk...
2
2
0
[{"id": "G0", "claim": "The PR should reuse the journal-entry logic (including the NewRequestDetailsFromRequest transformations in NewEntry) to do the logging, so that log output and the in-memory journal stay consistent.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
SpigotMC__BungeeCord__3490
SpigotMC/BungeeCord
3,490
defect
0199cb90ff36dce11d0603385ec538d61521a19a
f1935d8f4a17795250e0e76e33d06437d1b70246
Add ComponentBuilder#build() and ComponentSerializer#deserialize()
Components traditionally use the extra data to represent components as a single `BaseComponent` object. While `BaseComponent` typically mirrors this behaviour, somewhere along the development of BungeeChat this practice was made unclear. Because `ComponentBuilder#create()` returns an array of `BaseComponents`, it has s...
diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java b/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java index bf990f1b82b..08325a012b2 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuil...
4
2
0
[{"id": "G0", "claim": "The two test-dissemble-reassemble methods shall not be named the same, as they test different directions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mostly copied test methods should be reduced by creating a test ...
null
SpongePowered__Configurate__119
SpongePowered/Configurate
119
defect
198e51ed63fc3543c11125393738c86f0046d25f
f7c7945eadb2abde741bf64859c74a6d76d39283
Update to JUnit5
All tests are passing. This is just for future maintenance reasons and improved future tests as JUnit4 is no longer updated.
diff --git a/build.gradle b/build.gradle index be765c164..7324baf00 100644 --- a/build.gradle +++ b/build.gradle @@ -41,11 +41,17 @@ subprojects { repositories { mavenLocal() - mavenCentral() + jcenter() } dependencies { - testCompile 'junit:junit:4.12' + testImplementation 'org.junit.jupi...
3
2
1
[{"id": "G0", "claim": "The static JUnit imports are placed before the other imports; static imports should come after all other imports in the test classes.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It is probably okay to use wildcard import stateme...
null
SpongePowered__Configurate__352
SpongePowered/Configurate
352
defect
ea78b5c003ecf917b1081da24a01619bc2d22743
3bdd851721bd871c6066cf7a7f01de429d67d4a1
fix: include field annotations in AnnotatedType
Previously, only TYPE_USE annotations were included in the AnnotatedType from fields in an ObjectMapper. This updates the AnnotatedType to include the field annotations. Added a test to ensure this behavior. Fixes #350
diff --git a/core/src/main/java/org/spongepowered/configurate/objectmapping/ObjectFieldDiscoverer.java b/core/src/main/java/org/spongepowered/configurate/objectmapping/ObjectFieldDiscoverer.java index 2f08a7d12..d46198d8a 100644 --- a/core/src/main/java/org/spongepowered/configurate/objectmapping/ObjectFieldDiscoverer....
2
2
1
[{"id": "G0", "claim": "The field-annotation merge done inside ObjectFieldDiscoverer.collectFields would have to be repeated in every FieldDiscoverer implementation individually, so it should be implemented in a more central way (e.g. using the AnnotatedElement provided within the fieldMaker) instead.", "category": "de...
null
SpongePowered__Sponge__1410
SpongePowered/Sponge
1,410
defect
c08377fdde93f96ee16123304da2fb32122b5c06
99c4135c4b6384d410e4442b26d7ccb1cb8725be
Implement Inventory Transfer Events
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1591) | *SpongeCommon* | [SpongeForge](https://github.com/SpongePowered/SpongeForge/pull/1603) | [Issue](https://github.com/SpongePowered/SpongeCommon/issues/1402) - [x] Hopper Pre/Post Transfer - [x] Dropper/Dispenser Pre/Post Transfer
diff --git a/SpongeAPI b/SpongeAPI index 820409ed7ca..7545bb87439 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 820409ed7ca71d759cbab5940334d8f4901e36cf +Subproject commit 7545bb8743947b1a60cdfa6155fb109b83eb9466 diff --git a/src/main/java/org/spongepowered/common/interfaces/IMixinContainer.java...
6
6
2
[{"id": "G0", "claim": "EventUtil might be a better name as InventoryEventUtil for the new utility class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The variables in getDoubleChestInventory could use nicer names; since the method is copied f...
null
SpongePowered__Sponge__1481
SpongePowered/Sponge
1,481
defect
ccbdd30d4c8ac4465315dee6a1a6bf6b28b12f07
067d764b3120dfca272394ac385f81dd60847927
Use pagination for '/sponge plugins' command
**SpongeCommon** | **[SpongeForge](https://github.com/SpongePowered/SpongeForge/pull/1719)** Fixes #1239, Supersedes #1250. Base work done by @zachoooo. **Screenshots** ![](http://i.imgur.com/bsLsIZT.png) ![](http://i.imgur.com/30aoqbL.jpg)
diff --git a/src/main/java/org/spongepowered/common/SpongeImplHooks.java b/src/main/java/org/spongepowered/common/SpongeImplHooks.java index 020f048738e..8479061f42b 100644 --- a/src/main/java/org/spongepowered/common/SpongeImplHooks.java +++ b/src/main/java/org/spongepowered/common/SpongeImplHooks.java @@ -27,6 +27,7 ...
5
3
0
[{"id": "G0", "claim": "The plugin list does not need the numbers, and the colour (light blue) does not fit well — maybe try light green instead.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Hovering over a plugin in the list could also show that plugi...
null
SpongePowered__Sponge__1495
SpongePowered/Sponge
1,495
defect
4584f6ee5920b0e3643b3d6b6fc54fe40201c250
08ab634ed195e44b9a5ea968e6fc71257bd3f58a
Implement parrot data and variants
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1638) | **SpongeCommon** This pull request implements parrot data and parrot variants, as well as adding a cute little test plugin. For now I default to red in places as that is the parrot in vanilla with the 0 meta, so it made sense, but I'm open to cha...
diff --git a/SpongeAPI b/SpongeAPI index d0d1f63196a..6c06f864c36 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit d0d1f63196a99a8cae542b65b809f39ed87f64b8 +Subproject commit 6c06f864c360bd9d3f9b7cf549163e60ac12c70a diff --git a/src/main/java/org/spongepowered/common/data/DataRegistrar.java b/src/m...
6
5
1
[{"id": "G0", "claim": "constructImmutableValue and constructValue in ParrotDataProcessor hardcode Keys.PARROT_VARIANT instead of using the inherited this.key field.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In SpongeParrotData the no-arg c...
null
SpongePowered__Sponge__1573
SpongePowered/Sponge
1,573
defect
42595fb82f159eb6f119c7618f2ac64b8d88eb99
9ae6def2ba5dff4417eb9d79729e48d127ae5a21
Add exhaustion to damage source
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1674) | **SpongeCommon** Adds the ability to set and retrieve the exhaustion of a damage source. Also adds a test plugin and fixes some small comments. I'm open to changes of the defaults for exhaustion and where I set the exhaustion when building the damag...
diff --git a/SpongeAPI b/SpongeAPI index bb567e476f2..25f39501ea0 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit bb567e476f242d09a665ca1ca92e7eafa9974d29 +Subproject commit 25f39501ea01f0ca37c24fa49e98b3c8988f839c diff --git a/src/main/java/org/spongepowered/common/event/damage/SpongeBlockDamageS...
2
2
1
[{"id": "G0", "claim": "The damage listener could use an event filter instead of the nested cause-traversal lambda.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If non-player command sources are not valid, the command executors should return a specific...
null
SpongePowered__Sponge__1575
SpongePowered/Sponge
1,575
defect
42595fb82f159eb6f119c7618f2ac64b8d88eb99
ec4ee9fe1a1632f112c2dfe0d2d1c935709f1fef
Implement cooldown tracker API
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1675) | **SpongeCommon** Implements the cooldown tracker API and adds a test plugin. Check out the API PR for a little more information.
diff --git a/SpongeAPI b/SpongeAPI index bb567e476f2..417b407a8a5 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit bb567e476f242d09a665ca1ca92e7eafa9974d29 +Subproject commit 417b407a8a5008f81148bca3d74b516ab2961cef diff --git a/src/main/java/org/spongepowered/common/mixin/core/entity/player/MixinE...
4
4
1
[{"id": "G0", "claim": "The `value =` part of `@Mixin(value = CooldownTracker.class)` can be omitted because it is implicit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The access-transformer entries added for CooldownTracker$Cooldown appear ...
null
SpongePowered__Sponge__1582
SpongePowered/Sponge
1,582
defect
857864903e34c9aa4f2f2c2c9bf954a246e5e37d
fa16ba4c11b7f2bd7cc85e60fe88725717f34365
Implement AITargetEvent
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1679) | [SpongeCommon](https://github.com/SpongePowered/SpongeCommon/pull/1582)
diff --git a/src/main/java/org/spongepowered/common/event/SpongeCommonEventFactory.java b/src/main/java/org/spongepowered/common/event/SpongeCommonEventFactory.java index dcdb3f9cb12..dcdcc920f5b 100644 --- a/src/main/java/org/spongepowered/common/event/SpongeCommonEventFactory.java +++ b/src/main/java/org/spongepowere...
1
1
1
[{"id": "G0", "claim": "The callAITargetEvent factory method only creates the event but never posts it, so the event needs to be posted (likely via a method in SpongeImpl).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
SpongePowered__Sponge__1593
SpongePowered/Sponge
1,593
defect
24039cdf7cd57f2f653dfef168b6f024a79aa329
b15d89eeaa92cb61db76103b4070f42e7be58309
Cleanup of enchantments
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1687) | **SpongeCommon** | [SpongeVanilla](https://github.com/SpongePowered/SpongeVanilla/pull/361) | [SpongeForge](https://github.com/SpongePowered/SpongeForge/pull/1847) Read API PR for more information.
diff --git a/SpongeAPI b/SpongeAPI index 70144079e77..357d5eb9fcf 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 70144079e774fe0f237b309da65b9a04e4e3bc6a +Subproject commit 357d5eb9fcf211e1866f97d63564ed397c8e9034 diff --git a/src/main/java/org/spongepowered/common/data/DataRegistrar.java b/src/m...
4
3
2
[{"id": "G0", "claim": "The mechanical Enchantment-to-EnchantmentType rename was applied to human-readable display names (\"Hide EnchantmentTypes\", \"Stored EnchantmentTypes\", \"Weapon EnchantmentType\", \"Armor EnchantmentType\"); change these names back.", "category": "maintainability", "verdict": "supported", "pri...
null
SpongePowered__Sponge__1616
SpongePowered/Sponge
1,616
defect
beef3563e6e51ff01849253ead4310a171aba4cc
afdf877b659275ac4f6ead4f625748c356023ed4
Implement PardonUserEvent/PardonIpEvent
From #436 > The method we should implement PardonUserEvent into (https://github.com/SpongePowered/SpongeCommon/blob/bleeding/src/main/java/org/spongepowered/common/service/ban/SpongeBanService.java#L135 ) is never called. > As he noted, when a ban is removed, pardon() is called directly instead of removeBan(). > ...
diff --git a/SpongeAPI b/SpongeAPI index 88638834c31..f525f025cd8 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 88638834c31669e5f4de3a4438c77371622e8272 +Subproject commit f525f025cd87cdc567650781ec626ff4c5a97dea diff --git a/src/main/java/org/spongepowered/common/service/ban/SpongeBanService.ja...
5
4
2
[{"id": "G0", "claim": "Change pardon() to call removeBan() instead of the other way around so that both methods fire the pardon event.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The trailing IllegalArgumentException for an unrecognized BanType ...
null
SpongePowered__Sponge__1622
SpongePowered/Sponge
1,622
defect
fd584343416f9e58362bbc7e00ed7e0fca5b564a
233e248800a0d2e79ccc4b15a6e258ab44bd435c
Change entity spawning return types, breaking change - Fixes #1365
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1705) | **SpongeCommon** Refer to API PR for more discussion Closes https://github.com/SpongePowered/SpongeCommon/issues/1365
diff --git a/SpongeAPI b/SpongeAPI index 88638834c31..6cbea9ab02b 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 88638834c31669e5f4de3a4438c77371622e8272 +Subproject commit 6cbea9ab02b9cb11d69612cf249bff15f9c00458 diff --git a/src/main/java/org/spongepowered/common/entity/SpongeEntitySnapshot.jav...
1
1
0
[{"id": "G0", "claim": "The pull request's files should be run through the repository's scripts/pre-commit script so they conform to the formatting checks it enforces.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
SpongePowered__Sponge__1681
SpongePowered/Sponge
1,681
defect
f7272932f20ebda952577b137bd127627de736ff
db454cab098c37f21c2f523d8c525dfb3800ab9b
Fix event generics.
**Common** | [Forge](https://github.com/SpongePowered/SpongeForge/pull/1929) Fixes generic events that use complex generic types, like `DataRegistration<?,?>`, `Key<? extends BaseValue<?>>`, etc. Also fixes a issue that caused the cause stack manager to be used on the client when it's not supposed to. @gabizou ...
diff --git a/src/main/java/org/spongepowered/common/SpongeBootstrap.java b/src/main/java/org/spongepowered/common/SpongeBootstrap.java index c0d894e1acd..47624db0180 100644 --- a/src/main/java/org/spongepowered/common/SpongeBootstrap.java +++ b/src/main/java/org/spongepowered/common/SpongeBootstrap.java @@ -66,7 +66,11...
2
2
2
[{"id": "G0", "claim": "Unless the SpongeKeyBuilder implementation was changed, the added event.register calls in MyHomes are redundant and should throw an exception for attempting double registration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
SpongePowered__Sponge__1812
SpongePowered/Sponge
1,812
defect
401f7647dc0985151984d93ebcc3e015b0255c1f
a02275c68754d24352fefa634c730d4f8dc92a57
Implements offline player location API
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1787) | **SpongeCommon**
diff --git a/SpongeAPI b/SpongeAPI index 6aa4e4385c5..4f7882e94f9 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 6aa4e4385c5267467c2285c4c2afd2da7798ccc5 +Subproject commit 4f7882e94f9a85f98d6f2ef7e364a48ceb9109ff diff --git a/src/main/java/org/spongepowered/common/data/util/NbtDataUtil.java b/sr...
3
3
1
[{"id": "G0", "claim": "The `ca.weblite.objc.RuntimeUtils` imports the pull request adds to MixinEntityPlayerMP (including `import static ca.weblite.objc.RuntimeUtils.loaded;`) are accidental and must not be part of this change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
SpongePowered__Sponge__1869
SpongePowered/Sponge
1,869
defect
e9a79a7989f8bb5990605e2520d73b65b7494f70
097ec908ec017d7d5cf7d92a7d88e327aeba5ef2
delay opening/closing inventories during an InteractInventoryEvent
Opening and closing an inventory during an event prevents us from correctly handling modified transactions and event cancel. This PR delays open/close during InteractInventoryEvent to the next tick and also prints a warning. In API 8 we may want to instead throw an exception and add a method on the events so yo...
diff --git a/src/main/java/org/spongepowered/common/event/SpongeEventManager.java b/src/main/java/org/spongepowered/common/event/SpongeEventManager.java index d8064fd507a..fe9f2cae76f 100644 --- a/src/main/java/org/spongepowered/common/event/SpongeEventManager.java +++ b/src/main/java/org/spongepowered/common/event/Spo...
2
2
2
[{"id": "G0", "claim": "Cause stack modifications should be considered for the delayed task, since running a tick later the closure/opening would likely be attributed to Sponge rather than the original cause.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
SpongePowered__Sponge__2033
SpongePowered/Sponge
2,033
defect
751b801e1becc7a72dbeda43c9c5bf9725024160
9ef4ff84507636352e92ba9c7680f750df0d27dc
Selector updates and improvements
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1883) | **SpongeCommon** Previous PRs: [Original API PR](https://github.com/SpongePowered/SpongeAPI/pull/1270) | [Original Common PR](https://github.com/SpongePowered/SpongeCommon/pull/793) | [Revised API PR](https://github.com/SpongePowered/SpongeAPI/pull/...
diff --git a/SpongeAPI b/SpongeAPI index 7105dfcb93d..4bcd87beaca 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 7105dfcb93d066bbf723dcac9207d3678974c2a2 +Subproject commit 4bcd87beaca74c631899737693ba550488ef7b9c diff --git a/src/main/java/org/spongepowered/common/registry/type/text/ArgumentRegi...
2
2
0
[{"id": "G0", "claim": "The changed asSet helper should revert to its original Collection-based form using Collections.singleton/Collections.emptySet instead of returning ImmutableSet.of(...)/ImmutableSet.of().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
SpongePowered__Sponge__2087
SpongePowered/Sponge
2,087
defect
44a86e484864db545ef1bce954ddcba1a63207aa
048e7310faa8d0332999e29e925193768b0aafd7
Implement API for Shulkers, ShulkerBullets and ShulkerBoxes
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/1903) | **SpongeCommon** This PR implements everything added to its SpongeAPI counterpart. I hope I did all the DataAPI stuff right. Reviews are welcome. _Only tested with SpongeVanilla for now._ [Test Plugin](https://gist.github.com/RedNesto/6f...
diff --git a/src/main/java/org/spongepowered/common/data/DataRegistrar.java b/src/main/java/org/spongepowered/common/data/DataRegistrar.java index 934940776b4..39ab956d3be 100644 --- a/src/main/java/org/spongepowered/common/data/DataRegistrar.java +++ b/src/main/java/org/spongepowered/common/data/DataRegistrar.java @@ ...
4
4
1
[{"id": "G0", "claim": "The single-statement if bodies in the new data processors (EntityTargetedEntityDataProcessor and ShulkerDyeColorDataProcessor, e.g. `if (!(container instanceof IMixinShulker)) return false;`) should be wrapped in braces.", "category": "maintainability", "verdict": "supported", "priority": "P3", ...
null
SpongePowered__Sponge__2124
SpongePowered/Sponge
2,124
defect
a07fcdc322a0d192f00c8fdec7965a2652c65189
87abf4e04f450d4a1c33cae632f0dc708b0e6d6a
Use Filesystem watchers to cache game profiles/users in the USS
This is very WIP - based on some tinkering I've been doing. Not ready to merge yet, may not merge, but is currently at a proof of concept stage to try to improve server performance when thousands of game profiles exist - usually when tab completing a user argument on a command! I wanted to put this out now to get any e...
diff --git a/src/main/java/org/spongepowered/common/SpongeInternalListeners.java b/src/main/java/org/spongepowered/common/SpongeInternalListeners.java index 8c574a1ecef..f28202f85fb 100644 --- a/src/main/java/org/spongepowered/common/SpongeInternalListeners.java +++ b/src/main/java/org/spongepowered/common/SpongeIntern...
2
1
1
[{"id": "G0", "claim": "Lowercasing the name before the cache lookup means a lookup for 'Dualspiral' can return the User cached under 'dualspiral' although the two are distinct GameProfiles; the reviewer asks whether this is intended and argues the API javadocs should be fixed instead of the implementation.", "category...
null
SpongePowered__Sponge__2174
SpongePowered/Sponge
2,174
defect
6b00b4e479c0a4db07aa3e849abbc6029be02380
61f5570ad93465424e5622167eccb650995f0e3f
Consistent catalog builders.
[API ](https://github.com/SpongePowered/SpongeAPI/pull/1952) | **Common** | [Forge](https://github.com/SpongePowered/SpongeForge/pull/2565) Updates PR https://github.com/SpongePowered/SpongeCommon/pull/2075 for bleeding.
diff --git a/SpongeAPI b/SpongeAPI index 3dd974f749b..a2781c1b7af 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 3dd974f749b281299b2e8beb1f359bf016020320 +Subproject commit a2781c1b7af5dabceb9a2c24194a3f00f0de411b diff --git a/src/main/java/org/spongepowered/common/SpongeImplHooks.java b/src/main...
2
1
0
[{"id": "G0", "claim": "The recipe_test @Plugin annotation on RecipeTest should declare a version (version = \"0.0.0\").", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The remaining `CatalogKey id` occurrences should be renamed for naming consistenc...
null
SpongePowered__Sponge__2293
SpongePowered/Sponge
2,293
defect
acf1cfccdc7a821c803c2a309ec144e6f5fbe2e9
cf0201a92faa695c77c691c5e18dc00c604cb4f0
Suppress exceptions caused by invalid UUIDs.
Occasionally, the user storage service will stumble across a player with an invalid UUID. This appears to be a [Mojang bug](https://bugs.mojang.com/browse/WEB-1312); their API is providing us with UUIDs that contain extra characters. This PR suppresses those errors until Mojang fixes that, by pretending the profile doe...
diff --git a/src/main/java/org/spongepowered/common/mixin/core/authlib/MixinProfileSearchResultsResponseSerializer.java b/src/main/java/org/spongepowered/common/mixin/core/authlib/MixinProfileSearchResultsResponseSerializer.java new file mode 100644 index 00000000000..d727dc08072 --- /dev/null +++ b/src/main/java/org/s...
3
3
2
[{"id": "G0", "claim": "The invalid-UUID workaround is in the wrong place: it should at least sit in the GameProfileManager, because profiles can be fetched without the USS, and Sponge should protect against Mojang's bad responses equally throughout.", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
SpongePowered__Sponge__2303
SpongePowered/Sponge
2,303
defect
23e1bffa059f74ff0dccff17eee7ac26b54c36f3
77d3773568f868b253b6b3c2d00512b4e1256011
Add Acceleration Data
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/2019) | **SpongeCommon** Signed-off-by: Steven Downer <grinch@outlook.com>
diff --git a/src/main/java/org/spongepowered/common/bridge/entity/FireballEntityBridge.java b/src/main/java/org/spongepowered/common/bridge/entity/FireballEntityBridge.java new file mode 100644 index 00000000000..6b26a5b92b4 --- /dev/null +++ b/src/main/java/org/spongepowered/common/bridge/entity/FireballEntityBridge.j...
1
1
0
[{"id": "G0", "claim": "The new file FireballEntityBridge.java is missing its license header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SpongePowered__Sponge__2311
SpongePowered/Sponge
2,311
defect
72a1d111b0aeceacf74f7595c26454f7e16a2737
2324cf2adf4433e10d6857a46c8befff3f4cb54e
Using URLDecoder to decode the possibly encoded strings
This PR should fix #2308 It URL decodes the username and password in a JDBC connection URL. Also adds a unit test to make sure that functionality doesn't break. Probably a good idea to add that change to API 8 and any other still maintained API version.
diff --git a/src/main/java/org/spongepowered/common/service/sql/SqlServiceImpl.java b/src/main/java/org/spongepowered/common/service/sql/SqlServiceImpl.java index 04dd4b1476e..fc4d68b0cb1 100644 --- a/src/main/java/org/spongepowered/common/service/sql/SqlServiceImpl.java +++ b/src/main/java/org/spongepowered/common/ser...
2
2
0
[{"id": "G0", "claim": "Add a space between ')' and '?' in the ternary of the urlDecode return statement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a space between 'catch' and '(' in the exception handler of urlDecode.", "category": "ma...
null
SpongePowered__Sponge__2454
SpongePowered/Sponge
2,454
defect
f0138c662c3cff602c163407fad35c2a5a2d592c
a65d7632a0af47b40d95d4824a3ebe96c5d5b532
Implement SerializationBehaviors.NONE and SerializationBehaviors.METADATA_ONLY.
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/2084) | **SpongeCommon** | [SpongeForge](https://github.com/SpongePowered/SpongeForge/pull/3048) For test code, use the existing `MultiWorldTest` plugin - the world folders should not appear. Fixes #2291.
diff --git a/src/main/java/org/spongepowered/common/mixin/core/advancements/AdvancementManagerMixin.java b/src/main/java/org/spongepowered/common/mixin/core/advancements/AdvancementManagerMixin.java index 755fc378991..87377539f8b 100644 --- a/src/main/java/org/spongepowered/common/mixin/core/advancements/AdvancementMan...
15
14
2
[{"id": "G0", "claim": "Skipping all writes under SerializationBehaviors.NONE may break mods that rely on per-world data files existing, so the pull request should provide a way to persist world data without saving chunks (such as a METADATA_ONLY or NO_CHUNKS behavior) and be tested thoroughly with large packs before m...
null
SpongePowered__Sponge__2588
SpongePowered/Sponge
2,588
defect
f1fad880ab371d4222320e9da97943577c7d43ac
1337417587c9dc8ddef8a2088e58b5573c938022
Implement a basic PlaceholderService
[Sponge API](https://github.com/SpongePowered/SpongeAPI/pull/2116) | **SpongeCommon (that's here!)** | [SpongeDocs](https://github.com/SpongePowered/SpongeDocs/pull/834) Simple implementation of the placeholder API. See API PR for more details. * Also, moved economy registry modules in Common into a `service` pa...
diff --git a/SpongeAPI b/SpongeAPI index f12f8e77438..ec0e674b0eb 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit f12f8e7743844b8761b890ce3e440911e97c6f38 +Subproject commit ec0e674b0eba5e0e7f8e7919a8047a7880b8588e diff --git a/src/main/java/org/spongepowered/common/SpongeBootstrap.java b/src/main...
3
3
2
[{"id": "G0", "claim": "The default sponge:name and sponge:current_world parsers cast the associated receiver straight to CommandSource/Locatable without an instanceof check, violating the API contract and risking a ClassCastException if the receiver is not of that type.", "category": "correctness", "verdict": "support...
null
SpongePowered__Sponge__3404
SpongePowered/Sponge
3,404
defect
1f85d2688874292242612bf7aaaa3155f0081320
82f9492702e1fc8d3ba55ae83ae582d0bf3b3953
implement CollideBlockEvents
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/2349) | **Sponge**
diff --git a/SpongeAPI b/SpongeAPI index ec54a8e9ea9..aef3d081875 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit ec54a8e9ea92f5d12c0ff8e01a613e46d7d3f1d2 +Subproject commit aef3d08187525c35953f336425a2c7c36a1f9eed diff --git a/src/main/java/org/spongepowered/common/event/ShouldFire.java b/src/mai...
4
4
0
[{"id": "G0", "claim": "The magic strings passed as the collision type to handleCollideBlockEvent are a bad idea and should be enums instead, for ease of maintenance.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parameters of impl$onMoveCo...
null
SpongePowered__Sponge__3477
SpongePowered/Sponge
3,477
defect
e5eebc31742804ff683407a9bb3dceeffdce33b9
95163a9a6695fd781ca33654656cd604bbe88a6a
Add lifecycle state for stopped game, and hook in executors
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/2379) Fixes #3472 (though today's earlier user refactor likely means that the issue will no longer be triggered) Implements the new `StoppedGameEvent`
diff --git a/SpongeAPI b/SpongeAPI index 5dc6a2b358d..659f4ea77c4 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 5dc6a2b358d9ad6fdac4174c648d247637755b3e +Subproject commit 659f4ea77c413f4ca33a55d3987da140ae3ddfc9 diff --git a/src/main/java/org/spongepowered/common/SpongeLifecycle.java b/src/main...
4
2
1
[{"id": "G0", "claim": "Closing the async scheduler in the lifecycle call would be better placed in a shutdown hook.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new accessor should be named just `gameProfileManager` instead of `gameProfileManagerIfP...
null
SpongePowered__Sponge__3484
SpongePowered/Sponge
3,484
defect
02a71e7eeffed0763bb939cec1b3e80370413e42
017b16a96b910bfc9741190295ff078e9bf900ab
Implement Entity#setPosition and clean up some related logic
Superscedes https://github.com/SpongePowered/Sponge/pull/3442 With many thanks to @Lignium for starting this. The further changes attempts to unify some of the move event handling and reduce duplication. Some cleanup has occurred too, converting methods that didn't actually need to be bridge methods to `impl$` metho...
diff --git a/src/main/java/org/spongepowered/common/bridge/server/level/ServerPlayerBridge.java b/src/main/java/org/spongepowered/common/bridge/server/level/ServerPlayerBridge.java index 2dd0b408b3e..20bdbe615ae 100644 --- a/src/main/java/org/spongepowered/common/bridge/server/level/ServerPlayerBridge.java +++ b/src/ma...
3
2
0
[{"id": "G0", "claim": "bridge$setPosition should not push SpongeCommon.activePlugin() onto the cause stack, as the plugin cause is already set when a listener or scheduled task is invoked.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The instanceof Se...
null
SpongePowered__Sponge__3697
SpongePowered/Sponge
3,697
defect
453c7f5dd0ea5fd822ce46771ec32b8c7b27a359
8f67abe77d4644cc7af136017d54da606cc8942b
feat(data): implement `SNBTDataFormat`
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/2432)
diff --git a/SpongeAPI b/SpongeAPI index 71e933e2faa..acc155c6fdf 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 71e933e2faa014c998de344d44d1ef988660fe5e +Subproject commit acc155c6fdf8809cccb9086704a10975bffc1d82 diff --git a/src/main/java/org/spongepowered/common/data/persistence/SNBTDataFormat...
4
4
1
[{"id": "G0", "claim": "The new code should not throw bare RuntimeExceptions when parsing/serialization fails; it should throw InvalidDataException in SNBTDataFormat (all methods) and CommandException in the test command instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
SpongePowered__Sponge__3763
SpongePowered/Sponge
3,763
defect
6e443ec04ded4385d12c2e609360e81a770fbfcb
4942b2954b5de1f19d36d909f2d26d3380fa9aef
Implement translations for item name and lore
Translate the components directly on item nbt tag right before sending to the client. Undo the modifications when receiving an item from the client. The nbt tag is not modified if there is nothing to translate.
diff --git a/src/main/java/org/spongepowered/common/util/Constants.java b/src/main/java/org/spongepowered/common/util/Constants.java index 06129547c6d..eaa06be2048 100644 --- a/src/main/java/org/spongepowered/common/util/Constants.java +++ b/src/main/java/org/spongepowered/common/util/Constants.java @@ -518,6 +518,9 @@...
1
1
0
[{"id": "G0", "claim": "In renderItemComponents, it might be worth checking for the inverse of the display-tag condition and returning the tag right away, to remove branching/nesting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
SpongePowered__Sponge__3875
SpongePowered/Sponge
3,875
defect
5d39e239d8de5e746efdb82725854ee1f57a34a5
69f3892a59b74dbf1887a79a3cc8fd52b0bc62d2
Cancelling ClickContainerEvent.Primary removes the item in the clicked slot
This PR is aimed to fix the issue #3862 Tested with SpongeAPI 10.0.0-SNAPSHOT and SpongeVanilla 1.19.4-10.0.0-RC0. ### The bug When the `ClickContainerEvent.Primary` event is cancelled, the first click on an item is cancelled, but a second click causes the item to disappear. It's not a visual bug, leaving and the...
diff --git a/src/main/java/org/spongepowered/common/bridge/world/inventory/container/TrackedContainerBridge.java b/src/main/java/org/spongepowered/common/bridge/world/inventory/container/TrackedContainerBridge.java index 6de396ab1ad..f610e223c1e 100644 --- a/src/main/java/org/spongepowered/common/bridge/world/inventory...
5
5
2
[{"id": "G0", "claim": "Spam/double-clicking sends extra click packets with a stale stateId so the ClickContainerEvent is not cancelled, which can be used to duplicate items.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new test listener inc...
null
SpongePowered__Sponge__4111
SpongePowered/Sponge
4,111
defect
994fb277df1885974c03289f33563a617c2d355b
da27cf4049ee6c01fbbe517918bae0c4980c84b5
Implement scaling for display entities
Implements `#setScale` for Display Entities since they allow for scaling in 3 directions.
diff --git a/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/entity/DisplayMixin_API.java b/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/entity/DisplayMixin_API.java index 7457db52f8b..f1789c1962d 100644 --- a/src/mixins/java/org/spongepowered/common/mixin/api/minecraft/world/en...
1
1
0
[{"id": "G0", "claim": "Reference the shadowed field explicitly as DisplayMixin_API.DATA_SCALE_ID instead of the unqualified DATA_SCALE_ID in setScale() and scale().", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
SpongePowered__Sponge__4233
SpongePowered/Sponge
4,233
defect
d903695e5b59ac02425a0168eb21adf4908ed40f
6a973f1383853ff0831b92ba6368d774bfec496a
Expose minecraft:blocks_attacks and minecraft:weapon
[SpongeAPI](https://github.com/SpongePowered/SpongeAPI/pull/2604) | **Sponge** Exposes [`minecraft:blocks_attacks`](https://minecraft.wiki/w/Data_component_format#blocks_attacks) and [`minecraft:weapon`](https://minecraft.wiki/w/Data_component_format#weapon) data components. Also removes the obsolete `supports` c...
diff --git a/SpongeAPI b/SpongeAPI index 92ddc65b835..407f69b3e04 160000 --- a/SpongeAPI +++ b/SpongeAPI @@ -1 +1 @@ -Subproject commit 92ddc65b8356ec4e268ba44686b6ca6dd67d1247 +Subproject commit 407f69b3e048cbd297679af0d76d16f0a029c032 diff --git a/src/main/java/org/spongepowered/common/data/provider/item/stack/ItemSt...
7
7
0
[{"id": "G0", "claim": "The shield builder classes SpongeShieldDamageReductionBuilder and SpongeShieldItemDamageFunctionBuilder should be declared final.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "KeysTest.testSingleKeys should be a ParameterizedTest...
null
SpongePowered__Sponge__790
SpongePowered/Sponge
790
defect
bacc6d84d3050896170e0d488c28de44a11758a2
8c4847c4ea6c36dd3a38be9f4a0e695df2bf2edd
Pagination fixes
This is the first commits of what will be several bug fixes to Pagination. - [x] https://github.com/SpongePowered/SpongeCommon/issues/748 - [x] https://github.com/SpongePowered/SpongeCommon/issues/593 - [x] https://github.com/SpongePowered/SpongeCommon/issues/592 and possibly - [x] https://github.com/SpongePowered/S...
diff --git a/src/main/java/org/spongepowered/common/command/SpongeHelpCommand.java b/src/main/java/org/spongepowered/common/command/SpongeHelpCommand.java index ba9a7852c0e..7a3ad92b915 100644 --- a/src/main/java/org/spongepowered/common/command/SpongeHelpCommand.java +++ b/src/main/java/org/spongepowered/common/comman...
4
3
0
[{"id": "G0", "claim": "There is still a bug in either the way the text builders construct the center text or the way the length of texts is calculated, even though getWidth(int, boolean) is believed to be 100% correct.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id"...
null
SpongePowered__Sponge__938
SpongePowered/Sponge
938
defect
f2f6d73dc715323e6b86eced9f1cec21e2698d26
db82d5cd384110bcce4d3d74c50e4a09b7bdf182
Add LaunchWrapperTestRunner that allows unit tests to use Mixins
Adds a new `LaunchWrapperTestRunner` that will load the test classes using an initialized LaunchWrapper environment including the Mixin transformer. That allows the tests to use methods that are only available after the Mixins have been applied. Basically, it works like this: - You define a test class with the `@RunWi...
diff --git a/build.gradle b/build.gradle index 013e4acd66e..ed0066e2d6c 100644 --- a/build.gradle +++ b/build.gradle @@ -59,7 +59,7 @@ minecraft { dependencies { compile api - compile('org.spongepowered:mixin:0.5.13-SNAPSHOT') { + compile('org.spongepowered:mixin:0.5.14-SNAPSHOT') { exclude modul...
5
2
0
[{"id": "G0", "claim": "Questions why the new TestMain dummy main class is needed at all.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The addClassLoaderExclusion calls should probably be moved inside the initialization block.", "category": "design", "...
null
SpringQL__SpringQL__193
SpringQL/SpringQL
193
defect
49060845912ba77223f8054483e2ccc50ae652cf
242e400dc5b18ea31a8688205f6a86f5f3aa3e3f
feat: Add wrapping `springql` crate
## Issue number and link Fixes: #192 <!--- For bugfix, you must link to at least an issue to show clear way to reproduce the bug. --> <!--- For new feature without any related issues, include your motivation in the next section --> ## Describe your changes - add wrapping crate `springql` - re-export `sp...
diff --git a/CHANGELOG.md b/CHANGELOG.md index ac602597..f7a3b372 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,11 @@ All other sections are for end-users. <!-- markdownlint-disable MD024 --> ## [Unreleased] +### Changed + +- add crate `springql` ([#193](https://github.com/SpringQL/SpringQL/pull/193)) +...
3
3
1
[{"id": "G0", "claim": "The tests and examples should be moved from springql-core into the new springql crate (to keep the E2E tests) and duplication between the two crates should be eliminated as much as possible.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
SpringQL__SpringQL__200
SpringQL/SpringQL
200
defect
32f8c52b7430692732d650af9d2c50c28f5b5718
d88d536b2bea622b1ccc4c8a41d9778f529143bb
refactor: refactor test for web_console
## Issue number and link Fixes: #144 <!--- For bugfix, you must link to at least an issue to show clear way to reproduce the bug. --> <!--- For new feature without any related issues, include your motivation in the next section --> ## Describe your changes - refactor create `WebConsoleReporter` instance ...
diff --git a/Cargo.toml b/Cargo.toml index 6148cff6..8bb05558 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,4 @@ members = [ "springql-core", "foreign-service", "test-logger", - "test-web-console-mock", ] diff --git a/deny.toml b/deny.toml index c447d619..6d0adeba 100644 --- a/deny.toml +++ b/deny.toml...
2
1
0
[{"id": "G0", "claim": "The `unreachable!()` reached when `.json()` has not been called should carry a diagnostic message like \".json() is not called yet\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `RequestBuilder` wrapper should be r...
null
SpringQL__SpringQL__239
SpringQL/SpringQL
239
defect
e74ce511a740c751affa7364a1dbab6ef3a1f324
85ab6bf05efde8c1ded2c0d067b4ca5b025891cb
refactor: fix clippy lint
## Issue number and link CI clippy lint failing. <!--- For bugfix, you must link to at least an issue to show clear way to reproduce the bug. --> <!--- For new feature without any related issues, include your motivation in the next section --> ## Describe your changes fix lint error ## Checklist before requesting...
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 282ade68..92555659 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,7 @@ jobs: uses: actions/checkout@v2 with: ref: main + token: ${{ secrets.GHPAT_FOR_PUSH_R...
1
1
0
[{"id": "G0", "claim": "The addition of the GHPAT checkout token to .github/workflows/release.yml is an unrelated change, and the reviewer asks that it be made in a separate `ci:` PR instead of being included in this clippy-lint refactor PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc...
null
SpudGunMan__meshing-around__236
SpudGunMan/meshing-around
236
defect
1186801d7ec558ea31c4a10b2a930d86c397a407
4daf087fa5f67e6979ae605d079878717d9ce377
Add RAG support to LLM module with Wikipedia/Kiwix and OpenWebUI integration
Implements Retrieval Augmented Generation (RAG) to enhance LLM responses by automatically searching Wikipedia/Kiwix for context. Adds OpenWebUI API support as an alternative to direct Ollama calls. ## Changes ### Configuration (`config.template`, `modules/settings.py`) - `llmUseWikiContext` - enables automatic Wikipe...
diff --git a/README.md b/README.md index 64b5cff4..3b3769a8 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Mesh Bot is a feature-rich Python bot designed to enhance your [Meshtastic](http ### Interactive AI and Data Lookup - **Weather, Earthquake, River, and Tide Data**: Get local alerts and info from NOAA/...
1
1
1
[{"id": "G0", "claim": "The OpenWebUI debug logging logs sensitive data (the headers containing the password/authorization token) as clear text.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
SpyglassMC__Spyglass__1192
SpyglassMC/Spyglass
1,192
defect
a1f81c34a8e19907d0fee9dd4a3f7c4d68d63dd7
d3eab9945fd9536691e6284875c412fc8a71bc33
🦺 Add tree patch validator
Split from #1152. Warnings will be logged during development for missing command tree patches as suggested in https://github.com/SpyglassMC/Spyglass/pull/1152#issuecomment-2115270597 ![image](https://github.com/SpyglassMC/Spyglass/assets/15277496/0d70d5cf-1221-48ef-aa53-37c106e4cc2b) ## Prerequisites * #119...
diff --git a/.dprint.jsonc b/.dprint.jsonc index 9c8784576..230b2f689 100644 --- a/.dprint.jsonc +++ b/.dprint.jsonc @@ -13,10 +13,8 @@ ], "excludes": [ "**/node_modules", - // cannot format due to bug of dprint - "packages/java-edition/src/mcfunction/tree/patch.ts" ], "plugins": [ - "https://...
1
1
0
[{"id": "G0", "claim": "The new file name `patch-validator.ts` should follow the project's camelCase convention, i.e. `patchValidator.ts` (MulverineX also floated `patch_validator`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
SpyglassMC__Spyglass__1196
SpyglassMC/Spyglass
1,196
defect
2b74e1ff633f56db439c6084d1bb72c16f536a88
32c8571e3a3ec56a77c055e8a079efe4e189090c
✨ Macro Highlighting and Error Checking
Support for macro lines, highlights macro keys `$(foo)` differently from other content in the line. Errors thrown for invalid characters in a macro key, a blank macro, missing parenthesis, and a macro line (line starting with a $) that doesn't have a macro in it. ~Notes also written describing default colorizer col...
diff --git a/packages/core/src/processor/colorizer/Colorizer.ts b/packages/core/src/processor/colorizer/Colorizer.ts index f3d71a6a7..d4cb1f065 100644 --- a/packages/core/src/processor/colorizer/Colorizer.ts +++ b/packages/core/src/processor/colorizer/Colorizer.ts @@ -73,26 +73,24 @@ export namespace ColorToken { ex...
20
18
8
[{"id": "G0", "claim": "Storing the color token type in the AST node is wrong and the parts of a macro line (the `$` sign, the text between keys, and each key) should be separate AST node types instead of sharing one `macro_child` node type with `options.type`/`colorTokenType`.", "category": "design", "verdict": "suppo...
null
SpyglassMC__Spyglass__1370
SpyglassMC/Spyglass
1,370
defect
c2b5c4db09e3880cbc3678917114ecd413feb580
3d5ee2317271c6d51b814b1617a42cf79403c9b4
⚡️ Improve mcdoc struct spread simplify performance
Before: ![image](https://github.com/SpyglassMC/Spyglass/assets/12124394/53546563-4c14-4b97-b711-b02bb552d3e7) After: ![image](https://github.com/SpyglassMC/Spyglass/assets/12124394/bdb911e6-068e-4f4f-bdd2-98e06cb90353) Also fixed a small bug that all union members would always call simplify, even if they had an a...
diff --git a/packages/mcdoc/src/runtime/checker/index.ts b/packages/mcdoc/src/runtime/checker/index.ts index 50c5c0385..ccf879a1b 100644 --- a/packages/mcdoc/src/runtime/checker/index.ts +++ b/packages/mcdoc/src/runtime/checker/index.ts @@ -763,6 +763,9 @@ export interface SimplifyValueNode<T> { export interface Simpl...
2
2
2
[{"id": "G0", "claim": "A union member that resolves to an empty union later is not accounted for, so a field contributed by the only remaining member can wrongly keep the union-spread optional marking.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
SpyglassMC__Spyglass__1402
SpyglassMC/Spyglass
1,402
defect
43c4e931a0c60d390832be076ae289acf56d0526
60214f855815ed91bc1e3150b28d851a805a283a
🐛 Deduplicate definitions in the checker tree
Fixes #1401 This deduplicates definitions when adding them to the checker tree. This is done as early as possible which has a few advantages performance-wise: ## Complexity of deduplicating itself By definition, deduplication means complexity O(n^2) which isn't great, as each definition needs to be checked again...
diff --git a/packages/mcdoc/src/runtime/checker/error.ts b/packages/mcdoc/src/runtime/checker/error.ts index ddce1864a..09d320852 100644 --- a/packages/mcdoc/src/runtime/checker/error.ts +++ b/packages/mcdoc/src/runtime/checker/error.ts @@ -4,7 +4,9 @@ import { arrayToMessage, localeQuote, localize } from '@spyglassmc/...
3
3
0
[{"id": "G0", "claim": "The nested push/pull of the existing definition should be refactored to bind it to a named local (`existingDef`) instead of indexing `childValue.definitionsByParent[existingDefIndex]` twice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
SpyglassMC__Spyglass__774
SpyglassMC/Spyglass
774
defect
c15e3c96bdb5419e7c2882853a45e3be45431c03
0e23bd9f55521a36c7fd2efe996ac710fccfe0e0
:sparkles: Allow complex regexp with Naming Convention
Close #770
diff --git a/src/parsers/EntityArgumentParser.ts b/src/parsers/EntityArgumentParser.ts index 6f0efa4a5..24fb66850 100644 --- a/src/parsers/EntityArgumentParser.ts +++ b/src/parsers/EntityArgumentParser.ts @@ -6,13 +6,14 @@ import { IsMapSorted, Keys, UnsortedKeys } from '../nodes/MapNode' import { NumberNode } from '....
1
1
0
[{"id": "G0", "claim": "Change the single-line `if` statements in checkNamingConvention (and all other `if` statements there) back to using curly braces (`{}`).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
SqliteModernCpp__sqlite_modern_cpp__120
SqliteModernCpp/sqlite_modern_cpp
120
defect
012464253961dec248dffa45fd2e35831c2f36b0
5d6b00a5337259f7418ffe1fed5265b59eca3ec0
Auto reset after statement execution
Deprecate `reset()` and reset the statement after every execution to avoid bugs. The patch changes the behaviour of `operator++` to no longer set `used(false)`. This fixes the loop example in the README.
diff --git a/README.md b/README.md index f01f59f5..ea156859 100644 --- a/README.md +++ b/README.md @@ -117,13 +117,10 @@ ps << tmp; // But beware that it will execute on destruction if it wasn't executed! ps >> [&](int a,int b){ ... }; -// after a successfull execution the statment needs to be reset to be execute a...
3
3
0
[{"id": "G0", "claim": "With this change every execution pays create->execute->clear->reset->finalize, resetting the statement even when it is not reused as a prepared statement, although clear and reset are not needed in the vast majority of use cases.", "category": "performance", "verdict": "supported", "priority": "...
null
SqliteModernCpp__sqlite_modern_cpp__126
SqliteModernCpp/sqlite_modern_cpp
126
defect
76472dbfc3bbc27a3ac2ca2f8009f307897469fe
8bc7d2576360e01c11ed03010a1e7c2f29a9da9d
Alternative iterator interface
I think this feels more natural than the interface from #103 and it makes lifetime questions easier. The `database_binder` behaves like a container now: ```c++ for(auto &&row : db << "select age,name,weight from user where age > ? ;" << 21) { int _age; string _name; double _weight; row >> _age >> _name...
diff --git a/README.md b/README.md index f56869c4..c99fd27d 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ int main() { cout << "The new record got assigned id " << db.last_insert_rowid() << endl; - // slects from user table on a condition ( age > 18 ) and executes + // selects from user ...
3
1
0
[{"id": "G0", "claim": "The `operator std::tuple<Types...>` conversion default-constructs an empty tuple and then assigns each element via `get_col_from_db`, and the reviewer asks whether that overhead can be avoided.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
SqliteModernCpp__sqlite_modern_cpp__167
SqliteModernCpp/sqlite_modern_cpp
167
defect
f55a47e41d8fa92f2dde9b54ce0036a01f059028
b9ddb6bac2b2c88958986cee9843881e788eb771
Use std::string_view as argument instead of std::string on C++17 Compilers
The major benefit is if someone tries to bind a `char*` parameter, we can avoid an extra copy that would happen if a new `std::string` was created from it. This pull request also includes some improvements for building/running the tests on MSVC, mostly because I suck at git and didn't know how to separate them into a s...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 82b80baa..b96bde0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ OPTION(ENABLE_SQLCIPHER_TESTS "enable sqlchipher test") # Creates the file compile_commands.json in the build directory. SET(CMAKE_EXPORT_COMPILE_COMMANDS ON) -set (CMAKE_CXX_STANDA...
14
12
6
[{"id": "G0", "claim": "The new UTF-16 _prepare should reuse the UTF-8 prepare path instead of duplicating sqlite3_prepare16_v2 code, whose SQL-in-exception, error-path and speed drawbacks make debugging harder.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
SqliteModernCpp__sqlite_modern_cpp__173
SqliteModernCpp/sqlite_modern_cpp
173
defect
d6f4070a7eb702fef8c1ca62ef4d19ffda44ac0e
7601de794524fa9c9231f1f28194f3bb1d870d7f
std::monostate should act like nullptr
Okay, so, not what you asked yet, but, this is a better start for this pull request. So, let's see - [x] Documentation in readme - [x] Testcase that expresses its use - [x] **mystery meat**??? - [x] Dev branch MAGICK
diff --git a/README.md b/README.md index 572538ee..eac24c58 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,7 @@ This does not happen if you use a `variant`. If the `variant` does an alternative of the same value type, an `mismatch` exception will be thrown. The value types are NULL, integer, real number, text ...
3
3
2
[{"id": "G0", "claim": "Reading a NULL back from the database into a variant that contains std::monostate does not work yet, even though writing works, because the monostate support does not specialize sufficiently for extraction.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
SqliteModernCpp__sqlite_modern_cpp__31
SqliteModernCpp/sqlite_modern_cpp
31
defect
bfb1f3c351d900d11db770f4432e06b96dac09a1
bff4fff0f8e4318c1a90dff218f8983c1170018e
Changed the way arguments are chained #29
Major Changes and General Overhaul of the everything. -Refactored exceptions into its own namespace -removed rvalue references where they are not needed -made prepared statments possible -made them reusable -removed some template magic
diff --git a/README.md b/README.md index 4d049a91..4c339163 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,64 @@ int main() { } ``` +Prepared Statements +===== +It is possible to retain and reuse statments this will keep the query plan and in case of an complex query or many uses might increase the performance...
8
5
1
[{"id": "G0", "claim": "The build is failing and must be fixed before merge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Use a single overloaded pair .used()/.used(bool) instead of the two differently named functions set_used/get_used.", "categor...
null
SqliteModernCpp__sqlite_modern_cpp__77
SqliteModernCpp/sqlite_modern_cpp
77
defect
cf0145886e2710953e9a3670a419605761970845
2c9cbf68abfb313aef36e01ac3421a68700fd5a9
[RFC] Minimal SQLCipher support
Is there any interest in SQLCipher support? How should this be tested? I don't really want to introduce a SQLCipher dependency just for the tests.
diff --git a/hdr/sqlite_modern_cpp.h b/hdr/sqlite_modern_cpp.h index f74b085b..61de191b 100644 --- a/hdr/sqlite_modern_cpp.h +++ b/hdr/sqlite_modern_cpp.h @@ -340,6 +340,34 @@ namespace sqlite { return sqlite3_last_insert_rowid(_db.get()); } +#ifdef SQLITE_HAS_CODEC + database(const std::string &db_name, cons...
4
3
1
[{"id": "G0", "claim": "Add a custom exception class for SQLCipher.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Make the second parameter of the new constructor an instance of struct sqlite_config { std::string key; } instead of a plain key string, so o...
null
SqliteModernCpp__sqlite_modern_cpp__93
SqliteModernCpp/sqlite_modern_cpp
93
defect
1fc4892bb2ace09f627130932cae2f99988ff89e
470842e8a30f6a72b3bf2ab57df9dea10bdb33c7
Alternative flags and encoding support
Provides the functionality of #72 with the sqlite_config interface. Fixes #71
diff --git a/hdr/sqlite_modern_cpp.h b/hdr/sqlite_modern_cpp.h index e06d1743..5e469670 100644 --- a/hdr/sqlite_modern_cpp.h +++ b/hdr/sqlite_modern_cpp.h @@ -399,7 +399,15 @@ namespace sqlite { ); } + enum class Encoding { + AUTO = SQLITE_ANY, + UTF8 = SQLITE_UTF8, + UTF16 = SQLITE_UTF16 + }; struct sq...
9
7
2
[{"id": "G0", "claim": "The Encoding enum member AUTO should be renamed to ANY to use the same name as sqlite.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "sqlite_config should use an enum class for flags instead of int, with an operator| overload so b...
null
SqliteModernCpp__sqlite_modern_cpp__95
SqliteModernCpp/sqlite_modern_cpp
95
defect
bc7130569f7a2ea91d3b0d6a938eb434d6995c95
6a530989e439d0209b0d3baadbaf637c3f381395
std::variant support
The motivating use case for this are custom functions. With `variant`s you can create functions with flexible argument/return types.
diff --git a/README.md b/README.md index 353cebd5..657d60be 100644 --- a/README.md +++ b/README.md @@ -336,6 +336,41 @@ You can enable boost support by defining _MODERN_SQLITE_BOOST_OPTIONAL_SUPPORT b } ``` +Variant type support (C++17) +---- +If your columns may have flexible types, you can use C++17's `std::vari...
2
2
2
[{"id": "G0", "claim": "The README example inserts into a two-column table with an SQL statement containing three value placeholders.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The README example selects columns `age, name, img` that the examp...
null
Stability-AI__generative-models__47
Stability-AI/generative-models
47
defect
e5dc9669eddacb6606ac08f7e11dcf452e636bfe
4651f34d82640bf3e26205c7ba74a66502bc0e17
Move attention testing/benchmarking code out of package
This PR simply moves the `benchmark_attn`, `test01`, and `test02` functions out from the `sgm` package; I don't think they really belong there.
diff --git a/scripts/attention_tests.py b/scripts/attention_tests.py new file mode 100644 index 000000000..4cd554308 --- /dev/null +++ b/scripts/attention_tests.py @@ -0,0 +1,319 @@ +import torch +import einops +from torch.backends.cuda import SDPBackend +import torch.nn.functional as F +import torch.utils.benchmark as...
1
1
0
[{"id": "G0", "claim": "The attention testing/benchmarking script should be moved out of the package to scripts/tests/attention.py.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Stable-Baselines-Team__stable-baselines3-contrib__1
Stable-Baselines-Team/stable-baselines3-contrib
1
defect
99fe824f768052115d9c3bd1bf66553cbaca3b48
467ffee554908af7c3637e41abc5ed5a9bbf9ab3
Add contributing guides
Add contributing guides and instructions on how to prepare the algorithm and what needs to be reported. **Still WIP**, discussion required and I want to sleep on this to get it right. Once overall guide is agreed upon I will tidy it up. ## Questions: * ~~Should we begin documentation just like in stable-baseline...
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..24cd8fa1 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,159 @@ +## Contributing to Stable-Baselines3 - Contrib + +This contrib repository is designed for experimental implementations of various +training algorithms so that others may ma...
6
6
0
[{"id": "G0", "claim": "The docstring template should not tell contributors to repeat the argument types — with typed signatures the extra \"(type1)\" in the param descriptions is redundant.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The guide...
null
Stable-Baselines-Team__stable-baselines3-contrib__171
Stable-Baselines-Team/stable-baselines3-contrib
171
defect
ce115982aa478e8f462d3d8d730c82b152d5255e
ae8522fffb59dab16f896a956a602f1e1b61022b
Add stats window argument
<!--- Provide a general summary of your changes in the Title above (e.g. feature name, fix of a bug)--> ## Description <!--- Describe your changes in detail, including links to any sources for new features--> I added a `stats_window_size argument` to the model constructor. This allows to control the number of epis...
diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 45c32acb..748d9e50 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -13,6 +13,7 @@ Breaking Changes: New Features: ^^^^^^^^^^^^^ +- Added ``stats_window_size`` argument to control smoothing in rollout logging (@jonasreiher) ...
1
1
1
[{"id": "G0", "claim": "Please add a test, because the new `stats_window_size` argument is not being passed to the parent class.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Stable-Baselines-Team__stable-baselines3-contrib__42
Stable-Baselines-Team/stable-baselines3-contrib
42
defect
b2e7126840259ccc7bda13cf96eb939e40689e78
6705e5d4067412d0a084c1411fa12e5c4da51fd2
Augmented Random Search (ARS)
## Description closes #41 WIP pull request for ARS. Still some work to be done, but ready for some feedback before moving forward. Original paper: https://arxiv.org/abs/1803.07055 A few questions that I would like feedback on - I don't plan to support CNN policies for ARS. It is certainly possibly to make AR...
diff --git a/docs/guide/algos.rst b/docs/guide/algos.rst index f1b0ed55..d3809950 100644 --- a/docs/guide/algos.rst +++ b/docs/guide/algos.rst @@ -9,7 +9,8 @@ along with some useful characteristics: support for discrete/continuous actions, Name ``Box`` ``Discrete`` ``MultiDiscrete`` ``MultiBinary`` Multi P...
9
8
2
[{"id": "G0", "claim": "The hyper-parameter validation method uses an unnecessary shorthand and should be renamed to `_validate_hyperparameters` or `_validate_hyperparams`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please use meaningful nam...
null
Stable-Baselines-Team__stable-baselines3-contrib__99
Stable-Baselines-Team/stable-baselines3-contrib
99
defect
7993b75781d7f43262c80c023cd83cfe975afe3a
d2fe11afe4d2c0ddc1db6698d83dda39c0d954af
Handle batch norm in target update
Change target net update behavior by further copying batch norm stats. See https://github.com/DLR-RM/stable-baselines3/issues/996 ## Description In QRDQN and TQC, batch norm stats were not touched in target net update as they are not included in `Module.parameters()`. Now they are directly copied in target net upda...
diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 9c12ef2e..99d86c53 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -21,6 +21,7 @@ Bug Fixes: - Fixed division by zero error when computing FPS when a small number of time has elapsed in operating systems with low-precision timer...
1
1
1
[{"id": "G0", "claim": "model.batch_norm_stats is an empty list at that point in tests/test_cnn.py (CNN policies have no batch norm), so the params_should_match assertion the PR added there checks nothing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
StackExchange__dnscontrol__1243
StackExchange/dnscontrol
1,243
defect
f0026b8073c6b2daef68faec219e4bbdc0df5672
6635ed0a5902146332f802edbfd17b8bc0b51e10
CLOUDFLAREAPI: Adds CF_WORKER_ROUTE.
Initial implementation of CF_WORKER_ROUTE. Adds [Cloudflare Worker routes](https://developers.cloudflare.com/workers/platform/routes) support via new `CF_WORKER_ROUTE` function. No tests, as I have yet to understand the tests infrastructure. But the code is working as I did some manual tests with a personal CF ac...
diff --git a/docs/_functions/domain/CF_WORKER_ROUTE.md b/docs/_functions/domain/CF_WORKER_ROUTE.md new file mode 100644 index 0000000000..06d861729c --- /dev/null +++ b/docs/_functions/domain/CF_WORKER_ROUTE.md @@ -0,0 +1,29 @@ +--- +name: CF_WORKER_ROUTE +parameters: + - pattern + - script +--- + +`CF_WORKER_ROUTE` ...
10
9
5
[{"id": "G0", "claim": "The new CF_WORKER_ROUTE doc should read \"uses the [Cloudflare Workers]\" instead of \"uses [Cloudflare Workers]\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If CF_WORKER_ROUTE deletes routes added outside DNSControl, ...
null
StackExchange__dnscontrol__1267
StackExchange/dnscontrol
1,267
defect
414f57274dc4a44c0c0ecca7a8842a8dad18e8d7
ca015cf272f5f7434a4442618db8bf2b402ec4e6
Use cloudflare-go
Previously this was using a homemade implementation of the Cloudflare API. I really wanted to implement registrar support for Cloudflare, but I didn't want to have to write all the necessary structs by hand. This also means we should automatically gain benefits of any improvements in the [cloudflare-go](https://githu...
diff --git a/go.mod b/go.mod index 3b291d1581..3659b77933 100644 --- a/go.mod +++ b/go.mod @@ -18,6 +18,7 @@ require ( github.com/billputer/go-namecheap v0.0.0-20210108011502-994a912fb7f9 github.com/boombuler/barcode v1.0.1 // indirect github.com/cenkalti/backoff v2.2.1+incompatible // indirect + github.com/cloud...
3
2
1
[{"id": "G0", "claim": "Activating the proxy fails at runtime because the record ID returned by CreateDNSRecord is never captured, leaving it empty.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The error message from newCloudflare should read \"cl...
null
StackExchange__dnscontrol__1321
StackExchange/dnscontrol
1,321
defect
899a34ddd48f5984aabad402e39b55615ff12154
9981166f59258edf2807c686b90b658ea2b8a874
ROUTE53: Adopt aws-sdk-go-v2
AWS has released v2 of their SDK for Go. See: https://aws.github.io/aws-sdk-go-v2/ One big advantage of this is no longer needing to export the `AWS_SDK_LOAD_CONFIG=1` env var when using named profiles. Also fixes #908.
diff --git a/docs/_providers/route53.md b/docs/_providers/route53.md index eaa8d13086..87ad4d781d 100644 --- a/docs/_providers/route53.md +++ b/docs/_providers/route53.md @@ -36,10 +36,9 @@ $ export AWS_SESSION_TOKEN=ZZZZZZZZ } {% endhighlight %} -Alternatively if you want to used [named profiles](https://docs.aws....
1
1
0
[{"id": "G0", "claim": "Remove the outdated '// Currently failing. See https://github.com/StackExchange/dnscontrol/issues/908' comment left on the re-enabled ROUTE53 lines in the integration test.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
StackExchange__dnscontrol__1336
StackExchange/dnscontrol
1,336
defect
7ae27aa0b9e1a9612fefb4261ce84058ce9d8a01
da72c75e35310bd6d53bffabab4369c504afeae0
NEW PROVIDER: AutoDNS
This initial implementation allows you to manage a zone hosted by AutoDNS. A full zone update is performed in case of a modification instead of sending individual change requests. The desired TTL of the zones' (apex) nameservers is stored as TTL for the SOA record, AutoDNS doesn't let you specify a TTL for these rec...
diff --git a/providers/_all/all.go b/providers/_all/all.go index 49aaeafc69..a81db7d59b 100644 --- a/providers/_all/all.go +++ b/providers/_all/all.go @@ -5,6 +5,7 @@ import ( // Define all known providers here. They should each register themselves with the providers package via init function. _ "github.com/StackEx...
10
8
4
[{"id": "G0", "claim": "Remove the stray blank lines between related single-line statements (verb and its error check, Do/error-check/defer, ReadAll) in providers/autodns/api.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Check the error ret...
null
StackExchange__dnscontrol__1569
StackExchange/dnscontrol
1,569
defect
e5de7b5359ee9b1ecfd1daa48027c583eb3fc2c2
6aab177c4af012ec072c4a6e5fac1cd4bfa882c9
POWERDNS: Cleanup and fix parsing of TXT records
The PowerDNS API is quite strange. It accepts long TXTs without requiring to split them and returning them as they came in. e.g. `"averylooooooo[...]oooooongstring"` or `"string" "string"` Splitting on DNS level will be done on the fly.
diff --git a/providers/powerdns/convert.go b/providers/powerdns/convert.go index 9540132abd..ed8c6fc55b 100644 --- a/providers/powerdns/convert.go +++ b/providers/powerdns/convert.go @@ -2,7 +2,6 @@ package powerdns import ( "github.com/StackExchange/dnscontrol/v3/models" - "github.com/miekg/dns/dnsutil" "github...
1
1
1
[{"id": "G0", "claim": "Please add a unit test for the parseTxt function in providers/powerdns/convert.go.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
StackExchange__dnscontrol__1597
StackExchange/dnscontrol
1,597
defect
48c7435dcf30829578d829f1f3dafdd4f673c2b6
ff8bc8db5f0dae519068620cbd367ae5220bc146
Update TXT handling for Exoscale
@pierre-emmanuelJ Please run the integration tests to see if I broke anything. Changes: * Updated TXT record processing * Added you to OWNERS (sorry if you've been missing announcements!) * upgraded github.com/exoscale/egoscale v0.59.0 => v1.19.0
diff --git a/OWNERS b/OWNERS index f3311d877d..ea2c7a2d70 100644 --- a/OWNERS +++ b/OWNERS @@ -13,6 +13,7 @@ providers/dnsimple @aeden providers/dnsmadeeasy @vojtad providers/doh @mikenz providers/easyname @tresni +providers/exoscale @pierre-emmanuelJ providers/gandi_v5 @TomOnTime providers/gcloud @riyadhalnur pr...
4
3
1
[{"id": "G0", "claim": "Some EXOSCALE integration tests are failing: Null_MX and CAA_spaces fail with validation errors from the Exoscale API.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The provider should be updated in another PR to match the...
null
StackExchange__dnscontrol__1610
StackExchange/dnscontrol
1,610
defect
0f04639891f9d7e08e66a0c5179625fe09e5ee06
394e659595d2c487a462d8ead08a7414ed79103a
DNSIMPLE: do not support unpaired double quotes in TXT
DNSimple supports multiple double-quotes strings in a TXT record, but does not correctly support unpaired or escaped double-quotes currently. IE the following are valid ``` asdf "asdf" "asdf" "asdf" !@#$ %^&*()([][{}{<></'`:;-_=+\ ``` however `as\"df` and `as"df` are not This removes the extra string pro...
diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index 94dfc573de..cc514e3fc4 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -905,6 +905,8 @@ func makeTests(t *testing.T) []*TestGroup { tc("Create TXT with double-quote", txt("foodq...
2
2
1
[{"id": "G0", "claim": "Add a `case \"TXT\":` to getTargetRecordContent that quotes via rc.GetTargetRFC1035Quoted() (or an equivalent) instead of letting TXT records fall through to GetTargetField().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Surroun...
null
StackExchange__dnscontrol__1625
StackExchange/dnscontrol
1,625
defect
44001dc99962a1a09ef5b5b18173c9473dc863d7
d647abd835d070a16f7fc0aa4a19b42dd64e911c
Domainnameshop provider
Closes #1611 Most tests pass, except for the `GeneralACD` tests that change the TTLs as DomainNameShop only supports TTLs that are a multiple of 60 (i.e. TTL % 60 == 0). I am not quite sure what the best solution for handeling those instances. I am open for suggestions. Other than that there are a few features t...
diff --git a/OWNERS b/OWNERS index f843197e51..d166a1ed6e 100644 --- a/OWNERS +++ b/OWNERS @@ -12,6 +12,7 @@ providers/digitalocean @Deraen providers/dnsimple @onlyhavecans providers/dnsmadeeasy @vojtad providers/doh @mikenz +providers/domainnameshop @SimenBai providers/easyname @tresni providers/gandi_v5 @TomOnTi...
7
7
3
[{"id": "G0", "claim": "The Limitations section of docs/_providers/domainnameshop.md must name DomainNameShop instead of Digitalocean.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The duplicated HTTP/error handling across deleteRecord, CreateRec...
null
StackExchange__dnscontrol__1768
StackExchange/dnscontrol
1,768
defect
46b742d09f67646c2b33937f254c1c73b6bb3383
d6f6f7bfb8224a4d0d19de750d7c3f7ab0521c5e
VULTR: use API v2
Vultr v1 API has been deprecated and govultr has been upgraded to v2. I've adapted VULTR code to use v2 API instead of v1. I've tried to test on my side but if someone can confirm changes works that be awesome.
diff --git a/go.mod b/go.mod index 497ebfe020..0d0c9008f9 100644 --- a/go.mod +++ b/go.mod @@ -51,7 +51,6 @@ require ( github.com/tdewolff/minify/v2 v2.12.3 github.com/transip/gotransip/v6 v6.17.0 github.com/urfave/cli/v2 v2.17.1 - github.com/vultr/govultr v1.1.1 github.com/xddxdd/ottoext v0.0.0-20210101073831-...
1
1
0
[{"id": "G0", "claim": "Rename the variables next_i and current_i to nextI and currentI because staticcheck (ST1003) rejects underscores in Go names.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
StackExchange__dnscontrol__2239
StackExchange/dnscontrol
2,239
defect
a58fb7721419bb13cd7c952bb35903fff6feb19a
b046e90760f81f54c3f0d9c7140db815b42848ba
AXFRDDNS: Fix integration tests
Fixes https://github.com/StackExchange/dnscontrol/issues/1913 These are some fixes for the experimental branch `tlim_corrector`. It also includes some minor code improvements and a fix for #1913 .
diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index a50e5d8d4c..13d2955072 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -201,6 +201,12 @@ func makeChanges(t *testing.T, prv providers.DNSServiceProvider, dc *models.Doma //} ...
6
5
1
[{"id": "G0", "claim": "Remove the stray blank lines between the `diff2.ByRecord(...)` call and its `if err != nil` check (whitespace between action and error check).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a `diff2.REPORT` case to th...
null
StackExchange__dnscontrol__2417
StackExchange/dnscontrol
2,417
defect
f80f94f94b54c3b1ed43f90a1c7d636aab1e4f93
f1c59844af5ba6f8619281842c72f90af2f26ac0
NEW FEATURE: Add dhcid DNS resource type
I just stumbled over the missing type dhcid and added it as a first draft. Prop. not that relevant but caused some mini issues migrating existing zones.
diff --git a/build/generate/featureMatrix.go b/build/generate/featureMatrix.go index 06c0178fe7..c032d092f1 100644 --- a/build/generate/featureMatrix.go +++ b/build/generate/featureMatrix.go @@ -87,6 +87,7 @@ func matrixData() *FeatureMatrix { DomainModifierSshfp = "[`SSHFP`](functions/domain/SSHFP.md)" DomainMo...
11
9
2
[{"id": "G0", "claim": "The DHCID entry added to the checkTargets case statement in pkg/normalize/validate.go should be sorted alphabetically with the rest of the list.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The setCapability list in bui...
null
StackExchange__dnscontrol__2482
StackExchange/dnscontrol
2,482
defect
31bf652e3409a15be649ab65d64382aa9df94553
53f8b160b3bb03dd59332c882169c494975af8b8
GCLOUD: Support "private domains" plus many bugfixes
Hi all, First I'd like to acknowledge and thank the dnscontrol community for contributing to such a useful project. We needed to implement some changes with the GCLOUD provider in a private fork of dnscontrol a few years back and finally have had time to submit some of these back to the public project. This PR addre...
diff --git a/documentation/providers/gcloud.md b/documentation/providers/gcloud.md index 4c0900b212..aba14354fe 100644 --- a/documentation/providers/gcloud.md +++ b/documentation/providers/gcloud.md @@ -90,6 +90,37 @@ will enable it on your account, responding with a list of names to use in the `n > `name_server_set...
7
6
1
[{"id": "G0", "claim": "A tracking issue should be created for the TODO about fully supporting split horizon domains within the same GCP project.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The debug print announcing key-based authentication sh...
null
StackExchange__dnscontrol__2673
StackExchange/dnscontrol
2,673
defect
811fa5477fe304a83c303c47bb74bdf2cff8d96b
6e11965b82598567cf1e3e26c2880be972912021
TRANSIP: Fixed integration tests: Edge cases and TXT records fixed
# What Fixes integration tests for trans IP. Fixes #2670 and fixes #2330 - Remove slashes on quoted strings - Add A records to integration tests which were missing a base record - Separate ALIAS integration tests, TransIP support ALIAS only on apex records - Change the update record set using recreate to not ...
diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index 821d1f09e5..52398cb184 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -1035,11 +1035,17 @@ func makeTests(t *testing.T) []*TestGroup { // that. testgroup("CNAME", - tc("R...
4
4
0
[{"id": "G0", "claim": "The string literals in TestRemoveSlashes would be clearer if they were quoted using backticks.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The regexp.MustCompile call in RemoveSlashes should be hoisted to the package level ins...
null
StackExchange__dnscontrol__2708
StackExchange/dnscontrol
2,708
defect
cd371c114924377e13a7a0d809ce7459eafca4f7
e3bb6103b6a17df5f894d6fa03fe90bb14872a14
TRANSIP: Fix TXT quoting
Fixes !2702 - Fix TXT quoting, by not quoting at all. TransIP doesn't need it (any more) - Fix and added some auditrecord entries to let integration tests pass - A TransIP TXT record cannot be empty - TransIP trims spaces from TXT records.
diff --git a/integrationTest/integration_test.go b/integrationTest/integration_test.go index 2c1725c270..944c709558 100644 --- a/integrationTest/integration_test.go +++ b/integrationTest/integration_test.go @@ -1126,6 +1126,7 @@ func makeTests(t *testing.T) []*TestGroup { tc("TXT with semicolon ws", txt("foosc2", `...
1
1
1
[{"id": "G0", "claim": "The pull request should add an integration test case for TXT records with leading whitespace instead of only a comment saying some providers trim spaces.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
StackExchange__dnscontrol__2741
StackExchange/dnscontrol
2,741
defect
1bbf9c4293f6cd5127bf190ead5ed738dd11c437
95869d27f5f12259d6929d23523db12d0683c614
NEW DNS PROVIDER: Realtime Register (REALTIMEREGISTER)
<!-- ## Before submiting a pull request Please make sure you've run the following commands from the root directory. go vet ./... go fmt ./... go generate ./... go mod tidy ## Release changelog section Help keep the release changelog clear by pre-naming the proper section in the GitHub pull request title...
diff --git a/integrationTest/providers.json b/integrationTest/providers.json index ac55cbe51c..fb261e51f5 100644 --- a/integrationTest/providers.json +++ b/integrationTest/providers.json @@ -253,6 +253,13 @@ "domain": "$POWERDNS_DOMAIN", "serverName": "$POWERDNS_SERVERNAME" }, + "REALTIMEREGISTER": { + ...
9
9
4
[{"id": "G0", "claim": "Add the \"// Last verified 2024-01-03\" annotations to the TXT auditor.Add lines in auditrecords.go per the provider audit convention.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GetZoneRecordsCorrections contains a dupl...
null
StackExchange__dnscontrol__2893
StackExchange/dnscontrol
2,893
defect
c112e91ed8797a9ca82c0ebf16c8df3ef5971419
9594409d57a0626b71654aa14c608b411d62a0f4
NEW RECORD TYPE: DNAME
<!-- ## Before submiting a pull request Please make sure you've run the following commands from the root directory. go vet ./... go fmt ./... go generate ./... go mod tidy ## Release changelog section Help keep the release changelog clear by pre-naming the proper section in the GitHub pull request title...
diff --git a/build/generate/featureMatrix.go b/build/generate/featureMatrix.go index ed83c375ce..730fe7a44c 100644 --- a/build/generate/featureMatrix.go +++ b/build/generate/featureMatrix.go @@ -89,6 +89,7 @@ func matrixData() *FeatureMatrix { DomainModifierTlsa = "[`TLSA`](functions/domain/TLSA.md)" DomainModi...
4
4
1
[{"id": "G0", "claim": "The DNAME.md usage example should be updated to a correct DNAME call (the example shown is wrong/incomplete).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parse-test JS fixture's DNAME target should have a trailing do...
null