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
rudrankriyam__App-Store-Connect-CLI__267
rudrankriyam/App-Store-Connect-CLI
267
defect
7d62251a38028265aeaee2693e1ad28299a0f833
bc4ebd82b4db77f2e1dad02adcdb9458d6b16fe3
Harden pagination, errors, and temp key cleanup
## Summary - clean up temp private key files created from env values, even on early exits - detect repeated pagination URLs to prevent infinite pagination loops - sanitize API error output and add coverage for the new guardrails ## Test plan - [x] go test ./internal/asc -run "TestPaginateAll_DetectsRepeatedNextURL|Tes...
diff --git a/cmd/shared.go b/cmd/shared.go index d5ccc875f..80c6bebc3 100644 --- a/cmd/shared.go +++ b/cmd/shared.go @@ -37,6 +37,15 @@ var ( selectedProfile string ) +// CleanupTempPrivateKey removes any temporary private key created from env values. +func CleanupTempPrivateKey() { + if privateKeyTempPath == "...
1
1
0
[{"id": "G0", "claim": "In main.go, the cleanup pattern mixes a deferred CleanupTempPrivateKey with four explicit cleanup calls before each exit point, which is verbose and error-prone; extract a run() helper returning an exit code so the defer always executes.", "category": "maintainability", "verdict": "supported", "...
null
rudrankriyam__App-Store-Connect-CLI__278
rudrankriyam/App-Store-Connect-CLI
278
defect
38c718b72ec41ad4ffe80d8f89528db323f5be79
7fefa84b8df0ebeb69adac40f27712aedc756a7a
Fix: align Game Center with OpenAPI
## Summary - align Game Center models/flags with OpenAPI required and optional fields - allow list pagination to work with `--next` without app lookup - harden tests per GO_STANDARDS (avoid error-string matching) ## Test plan - [x] make build - [x] make lint - [x] make test - [x] make test-coverage - [x] make test-int...
diff --git a/cmd/game_center_achievements.go b/cmd/game_center_achievements.go index 68fb24941..e24c577d1 100644 --- a/cmd/game_center_achievements.go +++ b/cmd/game_center_achievements.go @@ -29,7 +29,7 @@ Examples: asc game-center achievements update --id "ACHIEVEMENT_ID" --points 20 asc game-center achievement...
3
1
1
[{"id": "G0", "claim": "GameCenterLeaderboardSetLocalizationsCreateCommand was not updated to validate that --name is provided even though the create-attributes Name field became required, so users can call the create command without --name and an empty string will be sent to the API, which will likely fail.", "categor...
null
rudrankriyam__App-Store-Connect-CLI__331
rudrankriyam/App-Store-Connect-CLI
331
defect
0959ce7416b9fc35b7e297a33111e94f128ebca8
c86d88ba69631c18543b41f37326689c37a15759
Webhooks deliveries relationships
Implement `asc webhooks deliveries relationships` subcommand to list webhook delivery relationships. --- <a href="https://cursor.com/background-agent?bcId=bc-12ed379f-e66b-4a60-b176-515cc0229c2b"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><so...
diff --git a/internal/asc/client_http_webhooks_test.go b/internal/asc/client_http_webhooks_test.go index 926c03186..bb63e02ce 100644 --- a/internal/asc/client_http_webhooks_test.go +++ b/internal/asc/client_http_webhooks_test.go @@ -213,6 +213,42 @@ func TestGetWebhookDeliveries_SendsRequest(t *testing.T) { } } +f...
1
1
1
[{"id": "G0", "claim": "The paginate block of WebhookDeliveriesRelationshipsCommand proceeds to call GetWebhookDeliveriesRelationships with an empty trimmedID when --next is provided without --webhook-id, which could cause API errors or unexpected behavior, and should verify the ID is non-empty before paginating like W...
null
rudrankriyam__App-Store-Connect-CLI__425
rudrankriyam/App-Store-Connect-CLI
425
defect
fca545107212dc04ff436aa334175939cb9c9ff0
2c3e10065b5cbda36bdb1ccf6e7c3c9c1fe11c17
publish: resolve TestFlight groups by name or ID
## Summary - allow `asc publish testflight --group` to resolve group names as well as IDs - paginate through all beta groups when resolving names - return explicit errors for missing/ambiguous group names and dedupe resolved IDs - add a release automation skill reference in `Agents.md` - add a new skill at `skills/asc-...
diff --git a/internal/cli/publish/group_resolver.go b/internal/cli/publish/group_resolver.go new file mode 100644 index 000000000..85cc39fdb --- /dev/null +++ b/internal/cli/publish/group_resolver.go @@ -0,0 +1,103 @@ +package publish + +import ( + "context" + "fmt" + "strings" + + "github.com/rudrankriyam/App-Store-Co...
1
1
1
[{"id": "G0", "claim": "groupNameToIDs appends IDs without deduplicating, so a group appearing more than once in the paginated API response makes name-based resolution fail with a false 'multiple beta groups named X; use group ID' error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
rudrankriyam__App-Store-Connect-CLI__539
rudrankriyam/App-Store-Connect-CLI
539
defect
2244f02ae30a1b6e1f5115fab3ad681f11277c19
dd61a03e3661c4c448fb3bb107e628eba0c8df86
Improve root help UX and media asset wording
## Summary - group root `asc --help` commands into gh-style sections with `command:` alignment for faster scanning - make bare `asc` print root help and exit successfully instead of returning a usage error - clarify asset/previews wording to explicitly call out app preview videos in command help and command catalog doc...
diff --git a/ASC.md b/ASC.md index 8380dc3e6..0d809bed8 100644 --- a/ASC.md +++ b/ASC.md @@ -126,7 +126,7 @@ Use `asc <command> --help` for subcommands and flags. - `pre-orders` - Manage app pre-orders. - `pre-release-versions` - Manage TestFlight pre-release versions. - `localizations` - Manage App Store localizati...
1
1
1
[{"id": "G0", "claim": "hasPositionalArgs keeps matching tokens as flags after the `--` end-of-flags separator, so e.g. `asc -- --version` wrongly returns false and prints help instead of routing to the unknown-command handler.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
rudrankriyam__App-Store-Connect-CLI__552
rudrankriyam/App-Store-Connect-CLI
552
defect
b86aad5e9613a8e5df8f08441b6a6a210db140ff
b342df56be6580bd8a2b89cbc098907a91a384a5
PR 551 generation issue
## Summary - Introduces `make generate app` to standardize Wall of Apps additions, resolving CI failures caused by manual `README.md` edits (e.g., Dandelion app in #551). This ensures all Wall entries are managed through `docs/wall-of-apps.json`. - Adds the Dandelion app using the new `make generate app` workflow. - U...
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7ab9a3277..2686a8577 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -10,8 +10,7 @@ ## Wall of Apps (only if this PR adds/updates a Wall app) -- [ ] I edited `docs/wall-of-apps.json` (not ...
1
1
1
[{"id": "G0", "claim": "The `wallEntry` struct is independently defined in both tools/generate-app/main.go and internal/wallgen/wallgen.go with identical fields; if a new field is ever added to wallgen's wallEntry but not to generate-app's copy, running the tool would silently drop that field from every existing entry ...
null
rudrankriyam__App-Store-Connect-CLI__570
rudrankriyam/App-Store-Connect-CLI
570
defect
86e4ce4e50a375a2a6d9588fac7cc95dd8b54489
c35e7e89f41279ddbfde1ee8f07f4c6143674d48
Certificates: add CSR generation command
## Summary - Add `asc certificates csr generate` to generate an RSA private key + CSR (PEM) for feeding into `asc certificates create --csr ...`. - Safe file behavior: refuses symlinks, refuses overwrite by default, supports explicit `--force`. - JSON-first summary output (never prints key material). Closes #564. ## ...
diff --git a/internal/cli/certificates/certificates.go b/internal/cli/certificates/certificates.go index 900236926..83e018735 100644 --- a/internal/cli/certificates/certificates.go +++ b/internal/cli/certificates/certificates.go @@ -40,6 +40,7 @@ Examples: Subcommands: []*ffcli.Command{ CertificatesListCommand()...
2
2
1
[{"id": "G0", "claim": "writeFileBytesNoSymlink in csr.go is a near-exact ~100-line copy of writeDownloadedFile in assets_download_helpers.go, and the duplicated safe-write logic should be consolidated into a shared utility accepting a write callback or io.Reader.", "category": "maintainability", "verdict": "supported"...
null
rudrankriyam__App-Store-Connect-CLI__635
rudrankriyam/App-Store-Connect-CLI
635
defect
e3ade3012df81beb7775ad1d41e984b16516646b
a0ef5fdb66d93f3437e8b797effb2accce6afb10
coverage: add missing Game Center detail/group relationships
## Summary Implements the missing Game Center detail/group relationship endpoints listed in #616 and adds request-shaping tests. ### Endpoints - GET /v1/gameCenterDetails/{id}/relationships/achievementReleases - GET /v1/gameCenterDetails/{id}/relationships/activityReleases - GET /v1/gameCenterDetails/{id}/relationshi...
diff --git a/internal/asc/client_game_center_details_relationships.go b/internal/asc/client_game_center_details_relationships.go new file mode 100644 index 000000000..9d63e9c87 --- /dev/null +++ b/internal/asc/client_game_center_details_relationships.go @@ -0,0 +1,194 @@ +package asc + +import ( + "context" + "encoding...
2
2
1
[{"id": "G0", "claim": "The requireOrder field in the PATCH test table struct is set to true on every case but tt.requireOrder is never read, so the dead field misleadingly implies conditional order-checking behavior and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
rudrankriyam__App-Store-Connect-CLI__644
rudrankriyam/App-Store-Connect-CLI
644
defect
efde0d93a14355916d760df18e1d81ea441e16b2
59a27e45d9272388fed340b355154390aa56ae86
fix(workflow): enterprise hardening for run JSON
## Why `asc workflow run` keeps stdout JSON-only and returns a ReportedError on failures. That meant failures in `before_all` / `after_all` hooks could produce `status=error` with no actionable detail in the JSON payload. Enterprises migrating lane-style automation need day-1 debuggability and deterministic structured...
diff --git a/README.md b/README.md index bb156fad7..599c6975e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ A **fast**, **lightweight**, and **scriptable** CLI for the [App Store Connect A - **Game Center** -- achievements, leaderboards, leaderboard sets, and localizations - **Screenshots & Previews** -- u...
1
1
0
[{"id": "G0", "claim": "The error hook invocation and recording block is copy-pasted identically at three failure points (before_all, step, after_all failure), and extracting it into a small helper would eliminate the risk of divergent updates.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
rudrankriyam__App-Store-Connect-CLI__655
rudrankriyam/App-Store-Connect-CLI
655
defect
fbbdc1fc0b83a53d1a7103e90fbd9af9882a2d92
fef6b840c58c98240402350355b386a2c10b8922
docs: mention skills in install help
## Summary - Update `asc --help` getting-started `install` description to explicitly mention skills. - Keep generated docs template (`ASC.md`) in sync so agents/users discover `asc install skills`. ## Test plan - `make format` - `make lint` - `ASC_BYPASS_KEYCHAIN=1 make test` - `go build -o /tmp/asc . && /tmp/asc --he...
diff --git a/cmd/root.go b/cmd/root.go index 6d119acaf..a45a5c186 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,10 +20,11 @@ var versionRequested bool func RootCommand(version string) *ffcli.Command { versionRequested = false root := &ffcli.Command{ - Name: "asc", - ShortUsage: "asc <subcommand> [fla...
1
1
0
[{"id": "G0", "claim": "The `QUICK START` heading added to the root command's `LongHelp` renders as plain text while every other help section heading is wrapped in `shared.Bold()` via `RootUsageFunc`, making the new heading visually inconsistent with the rest of the `--help` output.", "category": "design", "verdict": "...
null
rudrankriyam__App-Store-Connect-CLI__663
rudrankriyam/App-Store-Connect-CLI
663
defect
89c15f7ff6146326f4b52656b5e82798222a7cd2
8d45396fc91a084343074c18fbed9e8aca8a4558
feat: add local webhook receiver command
Closes #590 ## Summary - add `asc webhooks serve` with `--host`, `--port`, `--dir`, `--exec`, `--output`, and `--max-body-bytes` - validate webhook payloads as JSON, enforce body-size limits, and return fast `202 Accepted` responses - log concise per-event summaries, optionally persist each payload to disk with safe n...
diff --git a/internal/cli/cmdtest/webhooks_test.go b/internal/cli/cmdtest/webhooks_test.go index 907109287..c4a45c6d0 100644 --- a/internal/cli/cmdtest/webhooks_test.go +++ b/internal/cli/cmdtest/webhooks_test.go @@ -111,6 +111,21 @@ func TestWebhooksValidationErrors(t *testing.T) { args: []string{"webhooks", "p...
2
2
1
[{"id": "G0", "claim": "The `maxBodyBytes+1` limit passed to `io.LimitReader` overflows when `maxBodyBytes` is `math.MaxInt64`, wrapping negative so every payload reads as empty and is rejected despite passing the `--max-body-bytes` validation.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
rudrankriyam__App-Store-Connect-CLI__680
rudrankriyam/App-Store-Connect-CLI
680
defect
77c10fd5020850203ab980edebe599537ab6b446
a32de8d57f21acafc62b954b53d6711ed7310243
wall: sort generated app entries alphabetically
## Summary - Sort `docs/wall-of-apps.json` entries by app name (case-insensitive, link as tie-breaker) whenever `make generate app ...` adds or updates an app. - Add a regression test in `tools/generate-app` that verifies JSON ordering after generation. - Apply the new behavior to the current Wall data so `docs/wall-of...
diff --git a/README.md b/README.md index b56eeb9de..8058eb742 100644 --- a/README.md +++ b/README.md @@ -1770,7 +1770,109 @@ Agent Skills for automating `asc` workflows including builds, TestFlight, metada <!-- WALL-OF-APPS:START --> ## Wall of Apps -Apps shipping with asc-cli. [Add yours via PR](https://github.com...
4
3
2
[{"id": "G0", "claim": "In upsertByApp the update path replaces the whole entry with candidate, which never carries an Icon, so an existing icon is dropped and is lost permanently if the subsequent App Store enrichment fails to refetch it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
rudrankriyam__App-Store-Connect-CLI__697
rudrankriyam/App-Store-Connect-CLI
697
defect
9a472916463170aeb3d00701602dce251f5dc91d
c33a8588c9d15b872773c726feeb014989d7eea0
fix(screenshots): harden CDN downloads with retries and curl-like UA
## Summary - keep retry/backoff handling for transient screenshot/media CDN failures so valid template URLs do not fail the whole command on first-pass `403` - set a curl-like `User-Agent` on asset download requests to avoid unstable behavior observed with Go's default UA on `mzstatic` screenshot URLs - add cmdtest cov...
diff --git a/internal/cli/assets/assets_download_helpers.go b/internal/cli/assets/assets_download_helpers.go index 71d80fd24..348109517 100644 --- a/internal/cli/assets/assets_download_helpers.go +++ b/internal/cli/assets/assets_download_helpers.go @@ -2,18 +2,37 @@ package assets import ( "context" + "errors" "...
2
1
1
[{"id": "G0", "claim": "The sleepWithContext function duplicates the logic of waitContext in internal/screenshots/run.go, and the duplication could be eliminated by extracting the common logic to a shared utility package.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {...
null
rudrankriyam__App-Store-Connect-CLI__772
rudrankriyam/App-Store-Connect-CLI
772
defect
df2ce85c18ee04b1f45f80018844a84748946657
18ed8abfe1e2c98b0bae8ea0cec7d60b33da9260
fix: increase upload timeout default and improve timeout hints
## Linked Issue Fixes #771 ## Summary - Increase the default upload timeout from 60s to 300s so larger IPA uploads have sufficient headroom. - Improve timeout classification for `context deadline exceeded`: - Upload-specific timeouts now suggest `ASC_UPLOAD_TIMEOUT` (for example, `ASC_UPLOAD_TIMEOUT=600s`). - No...
diff --git a/internal/asc/client_core.go b/internal/asc/client_core.go index 790de02157..2e22e7e7bc 100644 --- a/internal/asc/client_core.go +++ b/internal/asc/client_core.go @@ -24,7 +24,7 @@ const ( // DefaultTimeout is the default request timeout DefaultTimeout = 30 * time.Second // DefaultUploadTimeout is the...
1
1
0
[{"id": "G0", "claim": "The upload timeout hint suggests setting ASC_UPLOAD_TIMEOUT=300s, which equals the new 300s default in this PR, so the hint tells the user to set the timeout to the value it already is and likely needs a value above 300s (e.g. 600s).", "category": "correctness", "verdict": "supported", "priority...
null
rudrankriyam__App-Store-Connect-CLI__789
rudrankriyam/App-Store-Connect-CLI
789
defect
07b528166bb84ef7f45cb66cb5934f51f31fd59f
50ebc81025789b6965c3ebc0ca58d645d9501930
fix(web): add interactive password prompt fallback for web auth
## Summary - add a secure interactive password prompt fallback for `asc web auth login` and web-session-backed commands when `--password-stdin` and `ASC_WEB_PASSWORD` are both absent - preserve non-interactive behavior: automation still uses `--password-stdin` or `ASC_WEB_PASSWORD`, and missing non-TTY input still retu...
diff --git a/internal/cli/web/web_auth.go b/internal/cli/web/web_auth.go index 9d2c0c635..a7982d3f7 100644 --- a/internal/cli/web/web_auth.go +++ b/internal/cli/web/web_auth.go @@ -21,9 +21,11 @@ const webPasswordEnv = "ASC_WEB_PASSWORD" var ( promptTwoFactorCodeFn = promptTwoFactorCodeInteractive + promptPassword...
2
1
1
[{"id": "G0", "claim": "The benchmark comparison reports performance regressions in the PR build, headlined by PaginateEachStreaming running 25.39% slower (plus ~6.5% slower EnsurePinnedKoubouVersionCached and ResolveShellCached).", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduc...
null
rudrankriyam__App-Store-Connect-CLI__809
rudrankriyam/App-Store-Connect-CLI
809
defect
261f85185f8970d9b9b74e92f75d94889c5eda4f
43477bb6d907ef4f3ca3d6c6c368bae49b7b611b
Fix webhook execution bounds and process lifecycle waits
## Summary - replace launcher helpers to use cmd.Run() so command lifecycle is completed and failures are surfaced - add bounded webhook event queue + worker pool to avoid unbounded goroutine fan-out - return 503 when the webhook processing queue is saturated instead of spawning unlimited background work - add per-even...
diff --git a/internal/cli/auth/open_url.go b/internal/cli/auth/open_url.go index 59f793e92..192d88318 100644 --- a/internal/cli/auth/open_url.go +++ b/internal/cli/auth/open_url.go @@ -34,7 +34,7 @@ func openURL(target string) error { cmd = exec.Command("xdg-open", target) } - if err := cmd.Start(); err != nil {...
1
1
1
[{"id": "G0", "claim": "When the shared context is cancelled, worker goroutines exit immediately while server.Shutdown still waits for in-flight HTTP requests that can enqueue events, so events accepted after cancellation and events already buffered in the queue are silently dropped.", "category": "correctness", "verdi...
null
rudrankriyam__App-Store-Connect-CLI__814
rudrankriyam/App-Store-Connect-CLI
814
defect
c88dbd52a3f8c3ac65c0a09b422d5b97db70ed06
d8ad944f86aa7e7a5d0aab6883af137104aa17c7
fix(web): default cached session resolution and remove --password-stdin
## Summary - default web-session resolution to the last cached session when `--apple-id` is omitted, while keeping explicit `--apple-id` support and clear failure when no cache exists - remove `--password-stdin` from the entire `asc web` command surface (auth login, shared web session flags, and web apps create) so aut...
diff --git a/internal/cli/cmdtest/web_auth_apps_test.go b/internal/cli/cmdtest/web_auth_apps_test.go index 51793e654..428dc9ce7 100644 --- a/internal/cli/cmdtest/web_auth_apps_test.go +++ b/internal/cli/cmdtest/web_auth_apps_test.go @@ -82,8 +82,8 @@ func TestWebAppsCreateRequiresAppleIDWhenNoCache(t *testing.T) { if...
2
2
0
[{"id": "G0", "claim": "The `usePasswordStdin` parameter in `resolveSession` is never read in the function body after this change and every caller now hardcodes `false`, so the dead parameter left over from the `--password-stdin` removal should be removed from the signature and its call sites and test stubs updated.", ...
null
rudrankriyam__App-Store-Connect-CLI__827
rudrankriyam/App-Store-Connect-CLI
827
defect
f4f84caf3426cf76846781440606cb593789bb90
e2bae9c49ad0fc29900ea19c328b55a2ba9f0cf3
fix(pricing): require available-in-new-territories for availability set
## Summary - expose and enforce `--available-in-new-territories` for `asc pricing availability set`, including updated help examples and command-level validation tests - rework shared availability-set execution to safely operate against existing app availability state by resolving territory availability IDs and patchin...
diff --git a/internal/asc/client_pricing.go b/internal/asc/client_pricing.go index a930220a9..7dedb4e09 100644 --- a/internal/asc/client_pricing.go +++ b/internal/asc/client_pricing.go @@ -554,8 +554,29 @@ func (c *Client) CreateAppAvailabilityV2(ctx context.Context, appID string, attr }, } - if len(attrs.Territ...
2
2
1
[{"id": "G0", "claim": "When GetAppAvailabilityV2 returns missing, the new code builds createAttrs from synthetic `${local-...}` TerritoryAvailabilityIDs instead of sending TerritoryAvailabilities with territory relationships/values, so first-time `pricing availability set` / `app-setup availability set` requests for a...
null
rudrankriyam__App-Store-Connect-CLI__829
rudrankriyam/App-Store-Connect-CLI
829
defect
b9c8a0cd95ce80390a6dfb7c9ec6985eccd24e8e
832fc1938046848e59ce8eba92677af23ef67d33
fix(subscriptions): use PATCH with inline prices for initial subscription pricing
## Summary - **`POST /v1/subscriptionPrices`** is Apple's "Create a Subscription Price Change" endpoint — it only works on subscriptions that already have at least one price. For new subscriptions, it returns a `500 UNEXPECTED_ERROR`. - The correct way to set the **initial base price** on a new subscription is via **`...
diff --git a/internal/asc/client_subscriptions.go b/internal/asc/client_subscriptions.go index 6ee170355..15bf61f0f 100644 --- a/internal/asc/client_subscriptions.go +++ b/internal/asc/client_subscriptions.go @@ -236,6 +236,62 @@ func (c *Client) UpdateSubscription(ctx context.Context, subID string, attrs Sub return ...
3
2
2
[{"id": "G0", "claim": "If GetSubscriptionPricesRelationships fails, the error is swallowed and treated as hasExistingPrices=false, masking the real failure and potentially issuing the wrong write request for subscriptions that already have prices.", "category": "correctness", "verdict": "supported", "priority": "P1", ...
null
rudrankriyam__App-Store-Connect-CLI__843
rudrankriyam/App-Store-Connect-CLI
843
defect
df4d06c9d0e3a7bf6ffe02c3005154c7f0adf687
8542a959874415b7e2bedc46e6cf4734d593cdb0
Metadata push ambiguity resolution
Fixes #837 ## Summary - Introduced `--app-info` flag for `asc metadata push` to explicitly select an App Info. - Enhanced ambiguity resolution for `metadata push`: - Provides actionable error messages with candidate App Info IDs and a command example. - Implements safe auto-selection when a single App Info de...
diff --git a/internal/cli/cmdtest/metadata_push_test.go b/internal/cli/cmdtest/metadata_push_test.go index 2ad64ff79..429032b95 100644 --- a/internal/cli/cmdtest/metadata_push_test.go +++ b/internal/cli/cmdtest/metadata_push_test.go @@ -1108,6 +1108,276 @@ func TestMetadataPushRejectsAmbiguousVersionWithoutPlatform(t *...
2
1
0
[{"id": "G0", "claim": "The platform branch of resolveVersionID (internal/cli/metadata/pull.go L243-L262) is a near-exact copy of shared.ResolveAppStoreVersionID, differing only by the extra AppStoreState return value, so a bug fix applied to one copy risks being missed in the other while three other callers still use ...
null
rudrankriyam__App-Store-Connect-CLI__844
rudrankriyam/App-Store-Connect-CLI
844
defect
df4d06c9d0e3a7bf6ffe02c3005154c7f0adf687
35b4f4031b35604fed8852c061fedef2318e4515
App info locale validation
Fixes #836 ## Summary - Implements `--copy-from-locale <LOCALE>` for `app-info set` to backfill missing submission-required fields (description, keywords, supportUrl). - Adds a warning to `app-info set` if the target locale remains submit-incomplete after an update. - Introduces a preflight gate in `submit create` th...
diff --git a/internal/cli/apps/app_info.go b/internal/cli/apps/app_info.go index 3c2c35a0db..bdb22d23ec 100644 --- a/internal/cli/apps/app_info.go +++ b/internal/cli/apps/app_info.go @@ -211,6 +211,7 @@ func AppInfoSetCommand() *ffcli.Command { platform := fs.String("platform", "", "Platform: IOS, MAC_OS, TV_OS, VISI...
3
3
1
[{"id": "G0", "claim": "The --copy-from-locale logic backfills description, keywords and supportURL from the source locale whenever the CLI argument is absent, without checking whether the target locale already has those fields, silently overwriting the target's existing values despite the flag help saying 'when missin...
null
rudrankriyam__App-Store-Connect-CLI__872
rudrankriyam/App-Store-Connect-CLI
872
defect
2e47864371b07bc401cd6dcf0ff099bbbc6c04cd
ca11582c0a3ce25c38f34fdf6daf097a7df1368a
validate: warn on subscription promotional images
## Summary - add shared subscription fetching so `asc validate` includes subscription review readiness and subscription promotional image guidance in the main readiness report - warn when subscriptions are missing promotional images, with remediation explaining these images are used for App Store promotion, offer-code ...
diff --git a/internal/cli/cmdtest/validate_subscriptions_test.go b/internal/cli/cmdtest/validate_subscriptions_test.go index c3dc517916..0f8d48cb7f 100644 --- a/internal/cli/cmdtest/validate_subscriptions_test.go +++ b/internal/cli/cmdtest/validate_subscriptions_test.go @@ -19,6 +19,7 @@ import ( type validateSubscrip...
4
4
4
[{"id": "G0", "claim": "subscriptionImageChecks emits a blocking error for every subscription without an image but, unlike subscriptionReviewReadinessChecks, does not skip REMOVED_FROM_SALE and DEVELOPER_REMOVED_FROM_SALE subscriptions, so removed legacy subscriptions without images spuriously fail asc validate.", "cat...
null
rudrankriyam__App-Store-Connect-CLI__910
rudrankriyam/App-Store-Connect-CLI
910
defect
47cd2d69087e2337e49f92ab3887fd0e7e08b2dc
f5191955fef48f77b81d9ba62bff4b78048539af
Improve ambiguous beta group name error with IDs and type labels
## Summary Closes #906. - When `--group` resolves a name matching multiple beta groups, the error now lists each matching group ID with its internal/external type - Suggests `--skip-internal` as a workaround for the common case of duplicate names across internal and external groups - Applied consistently to both `bui...
diff --git a/internal/cli/builds/builds.go b/internal/cli/builds/builds.go index efb92b378..efd550631 100644 --- a/internal/cli/builds/builds.go +++ b/internal/cli/builds/builds.go @@ -198,12 +198,14 @@ func resolveBuildBetaGroupIDsFromList(inputGroups []string, groups *asc.BetaGrou groupIDs := make(map[string]stru...
2
2
2
[{"id": "G0", "claim": "When `asc publish testflight` hits duplicate beta-group names, the new ambiguity error tells users to pass `--skip-internal`, but that flag is not defined for this command, so following the hint immediately yields an unknown-flag usage error and the message misleads users.", "category": "correct...
null
rudrankriyam__App-Store-Connect-CLI__915
rudrankriyam/App-Store-Connect-CLI
915
defect
515daf82cd3c1a4b3bd2e472d1cbc5bb87ba95c5
65fc8dc90ff4da5feed8784608e16df6e1938eea
docs: align release help, docs, and workflow examples on canonical release surface
## Summary Fixes #891 - README: replace invalid 'asc submit' example with 'asc release run' as primary path; keep 'asc submit create'/'asc validate' as lower-level alternatives - docs/WORKFLOWS.md + workflow.go: update 'release' workflow step from 'asc submit create' to 'asc release run' - internal/cli/...
diff --git a/README.md b/README.md index de63b6479..53604e381 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,20 @@ asc builds upload --app "123456789" --ipa "/path/to/MyApp.ipa" asc testflight builds list --app "123456789" --output table ``` -### Validate and submit +### Release (high-level: validate + attac...
1
1
0
[{"id": "G0", "claim": "The post-release status example in the workflow help suggests `asc status --app \"$APP_ID\"`, but `APP_ID` is not exported to the user's shell, so in the common unset case it expands to empty and `status` fails; the example should use a literal placeholder like \"APP_ID\" or note that an exporte...
null
rudrankriyam__App-Store-Connect-CLI__943
rudrankriyam/App-Store-Connect-CLI
943
defect
a71a3faf9866a5ac5f68e40c8624127cbe8ad68e
1a30f93b2134864689e184ac6c6fb03ef47c01e5
feat: include IAP review-readiness checks in unified validate
## Summary - Adds in-app purchase (IAP) review-readiness checks to the unified `asc validate` command, following the same graceful-fetch pattern used for subscriptions - Fixes `IsNotFound` to also match HTTP 404 status codes, resolving a pre-existing bug where the tvOS `ageRatingDeclaration` relationship 404 crashed t...
diff --git a/internal/asc/client_http_test.go b/internal/asc/client_http_test.go index ab16a0687..7c128933f 100644 --- a/internal/asc/client_http_test.go +++ b/internal/asc/client_http_test.go @@ -3307,7 +3307,10 @@ func TestGetEndpoints_ReturnsParseError(t *testing.T) { func TestIsNotFoundAndUnauthorized(t *testing...
1
1
0
[{"id": "G0", "claim": "When the paginated response is not *asc.InAppPurchasesV2Response, fetchIAPs returns nil, nil, so BuildReadinessReport treats the fetch as successful and silently skips IAP checks without emitting iap.readiness.unverified, potentially yielding a false all-clear report.", "category": "correctness"...
null
rudrankriyam__App-Store-Connect-CLI__979
rudrankriyam/App-Store-Connect-CLI
979
defect
ad9415c517f85146d7b415e50b66c26b912920b9
faed6c95e073f4d6d13678f26acbabb5b5296411
feat: validate copyright, URL format, and conditional privacy policy
## Summary - Add `legal.required.copyright` check — **error** when copyright field is empty on the App Store version (Apple requires this; empty → rejection) - Add `legal.format.*` checks — **warning** when support URL, marketing URL, privacy policy URL, or privacy choices URL is not a valid HTTP/HTTPS URL - Add `lega...
diff --git a/internal/asc/client_versions.go b/internal/asc/client_versions.go index ea97d0bad..34487073c 100644 --- a/internal/asc/client_versions.go +++ b/internal/asc/client_versions.go @@ -13,6 +13,7 @@ type AppStoreVersionAttributes struct { VersionString string `json:"versionString,omitempty"` AppStor...
2
2
1
[{"id": "G0", "claim": "Validate passes len(input.Subscriptions) > 0 / len(input.IAPs) > 0 into legalChecks, so any historical item (including REMOVED_FROM_SALE and DEVELOPER_REMOVED_FROM_SALE) triggers legal.required.privacy_policy_url as a blocking error, producing false failures for apps that only have retired monet...
null
rueckstiess__mtools__638
rueckstiess/mtools
638
defect
e0927a58bd21b978b90fcf336eacef71b2eb1787
1ea3db40e1e02626e1d73bdf1a2952918b576265
Avoid sorting list of dict. Fixes #636
In Python 3.6, a list of dict is not sortable. This is backward incompatible with Python 2.7. In some cases, parts of mtools could crash due to this. I believe this change could fix #636 since it fixes the same error in Python 3.6.5.
diff --git a/mtools/test/logfiles/issue-636.log b/mtools/test/logfiles/issue-636.log new file mode 100644 index 00000000..8077b515 --- /dev/null +++ b/mtools/test/logfiles/issue-636.log @@ -0,0 +1 @@ +2018-03-28T15:34:44.104-0400 I COMMAND [conn3291] command abc.xyz command: find { find: "xyz", filter: {"$or": [{"x": 1...
1
1
0
[{"id": "G0", "claim": "For performance, instead of looping over `rv` a second time with `any()`, a flag could be set after `_decode_pattern_dict` and `rv` returned unsorted when the flag is true.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
rueckstiess__mtools__653
rueckstiess/mtools
653
defect
5adce9b4c82b3968abef958013fe8e2b2679cfb4
484a4bd89ee2b7a0f597fa6ea56d6385a2aca08b
Fix: #652: Resolve flake8 complaints
## Description of changes Tidy up per `tox -e flake8` ## Testing Ensure all tests passing on flake8, py27, and py36 envs O/S testing: | O/S | Version(s) | ---------------- | ----------- | Linux | | macOS | 10.13.5 | Windows |
diff --git a/mtools/mlaunch/mlaunch.py b/mtools/mlaunch/mlaunch.py index 2c181aa9..60546dec 100755 --- a/mtools/mlaunch/mlaunch.py +++ b/mtools/mlaunch/mlaunch.py @@ -185,8 +185,8 @@ def run(self, arguments=None): # to run can call different sub-commands self.argparser = argparse.ArgumentParser() ...
3
1
0
[{"id": "G0", "claim": "Consider setting max-complexity (e.g. 55) instead of blanket-ignoring C901, since it would flag future changes that raise complexity further, and ideally refactor MLaunchTool.init to reduce its complexity in the future.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "...
null
rueckstiess__mtools__845
rueckstiess/mtools
845
defect
419f159dd1a7e608daafa9959b20fd71e1684fad
579f6ba1aa47207aadb65eb1e00eab8d5c5c6e1a
Update for PyMongo 4 and add GitHub Actions
<!-- To make it easier to review Pull Requests, please provide the details below. --> ## Description of changes <!-- Describe the change and related issue(s) if this is not already evident from commit messages --> - Adds GitHub Actions testing - Adds Python 3.10 support - Fixes #841 - Adds pymongo 4.0 suppor...
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index ba3a96f4a..ae670b6a6 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -84,7 +84,7 @@ GitHub milestones and git tags are named with a prefix `v`, for example `v1.0.1` 1. Create a release branch, named `release-x.y.z` where `x.y....
7
5
0
[{"id": "G0", "claim": "The CONTRIBUTING.md testing section should link to https://pytest.org instead of the pytest GitHub repository.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The obsolete `except TypeError` block checking pymongo < 2.5.0 in...
null
ruffle-rs__ruffle__17878
ruffle-rs/ruffle
17,878
defect
131ec737824d9b865036dde29f65c2ea63361ce9
e398bf671c1119fd583ebe128730febf4de588d3
video/external: Make OpenH264 support optional at build time
This is the first (more ready and conflicty, but less risky and controversy) part of https://github.com/ruffle-rs/ruffle/pull/16794 split out. The rest can be more or less additive after this, once I finally get back to it. I know that `external_video` itself is already a blanket feature that disables this; and havi...
diff --git a/Cargo.toml b/Cargo.toml index 339e7c0a5421e..00f32db4dfd59 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,6 +63,7 @@ flate2 = "1.0.33" futures = "0.3.30" image = { version = "0.25.2", default-features = false } js-sys = "0.3.70" +web-sys = "0.3.70" log = "0.4" num-derive = "0.4.2" num-traits = "0.2....
3
3
0
[{"id": "G0", "claim": "The download/load helper methods (e.g. the one that fetches and verifies the library, which would be a constructor) would fit better in `OpenH264Codec` than where the pull request put them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
ruffle-rs__ruffle__18223
ruffle-rs/ruffle
18,223
defect
0d0c24afaebdd278a4e87b0518db9a09817444c2
2e4a42befbbddce7e2810c5642de075f0b5cc668
core: Clean up ExternalInterface a little
Instead of getting a method then calling it, we just call things directly now. We also can now only have one Provider instead of many, but realistically there's no case in which multiple providers can peacefully coexist as they'll be conflicting with methods.
diff --git a/core/src/avm1/globals/external_interface.rs b/core/src/avm1/globals/external_interface.rs index 0ebe18852671b..1b6872712006c 100644 --- a/core/src/avm1/globals/external_interface.rs +++ b/core/src/avm1/globals/external_interface.rs @@ -4,7 +4,7 @@ use crate::avm1::activation::Activation; use crate::avm1::...
3
3
0
[{"id": "G0", "claim": "The avm1 external-interface argument-collection loop would read better written using an iterator and map.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The avm2 external-interface argument-collection loop should likewise...
null
ruffle-rs__ruffle__20392
ruffle-rs/ruffle
20,392
defect
9604c6cf9f8f4f3bf6eff0c4dcc4dfb1b4bde561
08ab100b6e8ae5beee756d3ed83341c1f3d193d1
desktop: Implement font sorting using fontconfig
This PR is the first step towards proper font/glyph fallback for device text. Fontconfig is a library available for most platforms, but most commonly used in Linux distributions. It's a state-of-the-art mechanism of looking up and sorting fonts. By using fontconfig we get a proper font list that should be used when ...
diff --git a/Cargo.lock b/Cargo.lock index 92cbae9b2b747..2b9965bbd9a9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1767,6 +1767,14 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f" +[[package]] +name ...
4
2
0
[{"id": "G0", "claim": "The fontconfig code should use stdlib's LazyCell/LazyLock instead of the obsoleted lazy_static crate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_or_sort_device_fonts could avoid a clone by returning a borrow of th...
null
ruffle-rs__ruffle__20969
ruffle-rs/ruffle
20,969
defect
3681f579c157f8d5f36dcae141815e22f8fc5dcf
5b13a921e2ab46a1acd332dbfcacf81346ace5bc
desktop: Use mmap for fonts
This patch uses mmap to load font files instead of storing them all in memory.
diff --git a/Cargo.lock b/Cargo.lock index 24c4b2a0bc5f8..d94270b8a3cce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4462,6 +4462,7 @@ dependencies = [ "futures", "gilrs", "image", + "memmap2", "os_info", "rand", "rfd", diff --git a/Cargo.toml b/Cargo.toml index c99362e167753..0c677ac489229 100644 --- a/Car...
3
3
0
[{"id": "G0", "claim": "load_fontdb_font could avoid copying the font bytes by constructing FontFileData directly from the existing shared bin buffer (with the field public) instead of bin.as_ref().as_ref().to_vec().", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
ruffle-rs__ruffle__21446
ruffle-rs/ruffle
21,446
defect
d88d0590b32829373cd83576ad2282e4c9bdf605
797ad85c6ffabc4759e61ffb2ea5159036522325
ci: Ignore known failures when running coverage
Known failures do not contribute to coverage, because we do not verify their output, instead we only check if they start passing. This PR adds the `RUFFLE_TEST_OPTS` variable, which can contain Ruffle tests specific options separate from `cargo test` (specifically `--ignore-known-failures`). In the future it can als...
diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml index 598244726c762..40808477182e5 100644 --- a/.github/workflows/test_rust.yml +++ b/.github/workflows/test_rust.yml @@ -190,6 +190,8 @@ jobs: - name: Run llvm-cov for SWF tests working-directory: tests + env: + ...
1
1
0
[{"id": "G0", "claim": "The dummy \"RUFFLE_TEST_OPTS=\" program-name argument fed to clap's parse_from is non-obvious and deserves an explanation (the reviewer asks whether clap really receives and understands it that way).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruffle-rs__ruffle__21891
ruffle-rs/ruffle
21,891
defect
e838a18cd4ae514bc866dbb1a72031acac31fae7
fa2331af3691851d4234ca9f3a4a24788b98828a
exporter: Various refactors
This PR tries to add some structure to exporter code, and moves some code around to cli.rs, progress.rs, and exporter.rs. It removes some code duplication and makes it easier to restructure image processing in future PRs.
diff --git a/exporter/integration_tests/src/runner.rs b/exporter/integration_tests/src/runner.rs index 3872309036a04..ef23dd210ca42 100644 --- a/exporter/integration_tests/src/runner.rs +++ b/exporter/integration_tests/src/runner.rs @@ -2,7 +2,7 @@ use anyhow::{anyhow, Context, Result}; use clap::Parser; -use expor...
1
1
0
[{"id": "G0", "claim": "FrameSelection::from_str might as well use NonZero<u32>'s own FromStr implementation instead of manually parsing u32 and converting with NonZeroU32::new.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
ruffle-rs__ruffle__22243
ruffle-rs/ruffle
22,243
defect
8ced87a40afb0d743951e7a3e005ce17a9f96300
62dc020639b17d3a9a0e748882dd6b07af68c5d4
core: Make ruffle_core::font module public
When adding more features and integrations to fonts (e.g. device fonts), more and more types are being used from the font module. This patch makes it public so that symbols from it don't have to be reexported manually.
diff --git a/core/src/html/layout.rs b/core/src/html/layout.rs index 80c2d1bcb3e08..131926f4a0a81 100644 --- a/core/src/html/layout.rs +++ b/core/src/html/layout.rs @@ -2,12 +2,11 @@ use crate::context::UpdateContext; use crate::drawing::Drawing; -use crate::font::{EvalParameters, Font, FontLike, FontSet, FontType}...
1
1
0
[{"id": "G0", "claim": "The separate `use ruffle_core::font::FontFileData;` and `use ruffle_core::font::FontQuery;` import lines should be merged into a single braced import (`use ruffle_core::font::{FontFileData, FontQuery};`) everywhere in the PR.", "category": "maintainability", "verdict": "supported", "priority": "...
null
ruffle-rs__ruffle__23062
ruffle-rs/ruffle
23,062
defect
e8f083df1de35366849501579732bf609d4d8b6a
c9122ee282937762451916b2a8715749608cfe1c
tests: Use oxipng to optimize generated images
Before this patch, generated images were pretty big, sometimes several times larger than necessary. This patch adds PNG optimization step that will make sure the output file size is small.
diff --git a/Cargo.lock b/Cargo.lock index ef48e9a75a8c4..4697ab2e77e61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -383,6 +383,18 @@ dependencies = [ "core2", ] +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb...
1
1
0
[{"id": "G0", "claim": "Since maximum compression is always wanted, the code should use `oxipng::Options::max_compression()` instead of `from_preset(6)` — it is identical but clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruffle-rs__ruffle__23077
ruffle-rs/ruffle
23,077
defect
75f66b367b7a3e5a21d25637139e44a03a43aba4
178d6df8263db524f617d213c19e356c8df9d826
core: Implement FloatDuration type
Closes #6075 Supersedes #7616 and #19897
diff --git a/core/src/duration.rs b/core/src/duration.rs new file mode 100644 index 0000000000000..3680a836ae56a --- /dev/null +++ b/core/src/duration.rs @@ -0,0 +1,226 @@ +//! A custom Duration type for representing time intervals with f64 precision. +//! +//! This type is used instead of `std::time::Duration` because...
6
4
0
[{"id": "G0", "claim": "The PR should justify why a floating-point duration is needed, since it may be worse than a fixed-point one.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Many more places, as #7616 converts, should also be converted to the FloatDu...
null
ruffle-rs__ruffle__23550
ruffle-rs/ruffle
23,550
defect
87a03e4a5c271cb09a0453f89a448abd4a09c948
2166ebcf03cd13d759f74c622c9f375d3823d83b
tests: Fix pixelbender test flakiness
Disclaimer: This is like 95% Claude Code. I reviewed it and the logic and evidence seems compelling and it seems to actually fix the flakiness for me locally (it is actually reproducible with lavapipe, which is what CI uses) ## Summary PixelBender (and other wgpu) tests have been flaky on CI for some time — ...
diff --git a/.config/nextest.toml b/.config/nextest.toml index 7958db6f2a10c..c741136a0f0b4 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,8 +1,6 @@ # TODO: Figure out why these specific tests are flaky on CI, fix them, then delete this file. -# Note: All Pixel Bender tests are flaky :( probably so...
1
1
1
[{"id": "G0", "claim": "Dropping a cached static WGPU via shutdown_wgpu is a bad approach; the code should be refactored so no static state is used and the descriptors are initialized and kept as a variable in main so they are dropped automatically.", "category": "design", "verdict": "supported", "priority": "P1", "sco...
null
rui314__8cc__16
rui314/8cc
16
defect
422603891ddc0d9cf794c241f2a11586f316bc93
215f6f6c1a9c30175b05003d1c5b80b3b0729e60
Fixed issue with pointer arith.
As mentioned in the other PR I closed, This uses a blacklist because the whitelist would need to include < > <= >= && || which take up even more space. Hopefully I didn't miss any operators. I also learnt how to squash commits which is handy :).
diff --git a/parse.c b/parse.c index 1e9856fb..e31fb758 100644 --- a/parse.c +++ b/parse.c @@ -535,6 +535,12 @@ static Type *usual_arith_conv(Type *t, Type *u) { } static Node *binop(int op, Node *lhs, Node *rhs) { + if (lhs->ty->kind == KIND_PTR && rhs->ty->kind == KIND_PTR) { + if ( op == '+' || op ==...
2
2
0
[{"id": "G0", "claim": "Rewrite the inline pointer-operator check in binop as a separate function using a whitelist of allowed operators, since the allowed set is smaller than the banned one and the current blacklist does not cover operators like >>.", "category": "design", "verdict": "supported", "priority": "P2", "sc...
null
ruma__ruma__1005
ruma/ruma
1,005
defect
4d04ef614f00c59dd56c06545dd24679791dbbb8
ef22c0656cae19bdff8e8190df7a92487c2cc540
xtask: Add typos check
Closes #993.
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 62898d35cc..9c46ebbe73 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -33,3 +33,12 @@ jobs: with: command: run args: -p xtask --no-default-features ci nightly + + typos: ...
1
1
1
[{"id": "G0", "claim": "The typos check uses `which` to detect the typos binary, which isn't necessarily available on every system (notably Windows would probably be broken), so it should be done the same way as in the SDK and the `which` usage removed.", "category": "correctness", "verdict": "supported", "priority": "...
null
ruma__ruma__1008
ruma/ruma
1,008
defect
eef68d7d4bc67cabdc053f3a93ce7dc520b73ad9
90947cdfcd98b5e67ab644413eeaee02c94c3086
Deserialize stable names for unstable features
Allows to receive incoming stable types without requiring a Ruma update. I didn't do it for extensible events yet because this will depend on how the transitional events are structured.
diff --git a/crates/ruma-client-api/src/discovery/discover_homeserver.rs b/crates/ruma-client-api/src/discovery/discover_homeserver.rs index dd00f6eb04..0f0f0b6a34 100644 --- a/crates/ruma-client-api/src/discovery/discover_homeserver.rs +++ b/crates/ruma-client-api/src/discovery/discover_homeserver.rs @@ -30,7 +30,7 @@...
1
1
0
[{"id": "G0", "claim": "The duplicated ThreadStable and ThreadUnstable deserialization branches in the encrypted and message relation_serde files can be merged, since they have the same logic and capture the same variables, using match (or an or-pattern).", "category": "maintainability", "verdict": "supported", "priori...
null
ruma__ruma__1020
ruma/ruma
1,020
defect
22239c39fcc7d6cf49e8002c44dc490d9909bb82
a8cf91bdb171a972402baae2fcfefbe8f4298b6b
events: Use stable field prefix for extensible events
Only transitional room messages will be sent while unstable
diff --git a/crates/ruma-common/src/events/audio.rs b/crates/ruma-common/src/events/audio.rs index 2ed809883b..9e90770d39 100644 --- a/crates/ruma-common/src/events/audio.rs +++ b/crates/ruma-common/src/events/audio.rs @@ -25,11 +25,11 @@ pub struct AudioEventContent { pub message: MessageContent, /// The f...
1
1
1
[{"id": "G0", "claim": "A note should be added to the docs saying the new extensible-event types shouldn't be used yet, and this PR is the right place to introduce it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ruma__ruma__1107
ruma/ruma
1,107
defect
e479d2db058d17d7d9f3783be0e79b8ab55dbf8a
b34e4aa62b171bab41a12eaa14c816b9f677ec1b
macros: Require event module path for event_enum
There's a small hack in there: there was a warning that `SyncRoomRedactionEvent` was qualified twice, because it's imported at the top of `events/enum.rs`, but it's also qualified in the macro generated code. To circumvent that I only imported the `redaction` module in `enum.rs`, I hope that's OK. Part of #1000.
diff --git a/crates/ruma-common/src/events/enums.rs b/crates/ruma-common/src/events/enums.rs index a427f54569..48f3c9b03a 100644 --- a/crates/ruma-common/src/events/enums.rs +++ b/crates/ruma-common/src/events/enums.rs @@ -15,108 +15,111 @@ use crate::{ event_enum! { /// Any global account data event. enum G...
2
2
0
[{"id": "G0", "claim": "Instead of the small hack (the enum_variant_like lint workaround), the author should open a bug report about the lint triggering with macro-generated code and #[allow()] it in the part of the generated code that currently triggers it.", "category": "design", "verdict": "supported", "priority": "...
null
ruma__ruma__1109
ruma/ruma
1,109
defect
22a07294424303e90e387e108768b014677e008d
53d8d7b98af209bae1e9f56d019edd13adc9af1d
events: Add support for type aliases
Allows to use unstable types Closes #1000
diff --git a/crates/ruma-common/tests/events/ui/03-invalid-event-type.stderr b/crates/ruma-common/tests/events/ui/03-invalid-event-type.stderr index d8fc4543a6..af86cee681 100644 --- a/crates/ruma-common/tests/events/ui/03-invalid-event-type.stderr +++ b/crates/ruma-common/tests/events/ui/03-invalid-event-type.stderr @...
13
12
0
[{"id": "G0", "claim": "Build the ev_types list with `event.aliases.iter().chain(...)` instead of cloning into a Vec and pushing, and emit a single match arm with an or-pattern instead of one match arm per event type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
ruma__ruma__1126
ruma/ruma
1,126
defect
74423b7a4e12254ca4fc40b3a35bc1c83bb216dc
6935b2ae657272732887b3194ef06d860d737230
Add Endpoint History Macro work
Part of https://github.com/ruma/ruma/issues/1118 This adds the `history` macro field, some sanity checks, and some reordering checks. This doesn't yet add this to `Metadata`, as i want to mesh that with https://github.com/ruma/ruma/issues/1067 in a future PR. The scope of this PR is to get a functional but noo...
diff --git a/crates/ruma-common/tests/api/ui/01-api-sanity-check.rs b/crates/ruma-common/tests/api/ui/01-api-sanity-check.rs index 51d8ea2cf8..b2175fb9c8 100644 --- a/crates/ruma-common/tests/api/ui/01-api-sanity-check.rs +++ b/crates/ruma-common/tests/api/ui/01-api-sanity-check.rs @@ -17,6 +17,18 @@ ruma_api! { ...
4
4
0
[{"id": "G0", "claim": "`into_parts` should be named `to_parts` because `into_` is for self-consuming methods, while the method takes `&self`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`ref_version` should take the value by shared reference...
null
ruma__ruma__1168
ruma/ruma
1,168
defect
700816172713d6d212723782bc8055c775131bb7
d890cc564c001dc53274c98f4ee254c4cd1c256f
Split more test assertions
With this PR, I've looked at all `assert_matches!` occurrences!
diff --git a/crates/ruma-client-api/src/filter/create_filter.rs b/crates/ruma-client-api/src/filter/create_filter.rs index 1c9bf50403..834f0f9444 100644 --- a/crates/ruma-client-api/src/filter/create_filter.rs +++ b/crates/ruma-client-api/src/filter/create_filter.rs @@ -92,15 +92,16 @@ pub mod v3 { use c...
2
1
0
[{"id": "G0", "claim": "The `let req = assert_matches!(..., Ok(req) => req)` binder pattern the tests now use is just `.unwrap()` (plus a `.filter` field access), so the tests should call `.unwrap()` on the result directly instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
ruma__ruma__121
ruma/ruma
121
defect
5e428ac95adb15d3fd322c31bf35d3af00d4b421
2f58953ec58d93b210cafa23f18d3629b6d204d1
Refactor the input parsing of event_enums!
Rename name -> kind and parse input as EventKind. EventKind will only parse for valid event kinds to guard against bad input.
diff --git a/ruma-events-macros/src/event_content.rs b/ruma-events-macros/src/event_content.rs index ab01ddc3b3..043dbe621a 100644 --- a/ruma-events-macros/src/event_content.rs +++ b/ruma-events-macros/src/event_content.rs @@ -1,7 +1,7 @@ //! Implementations of the MessageEventContent and StateEventContent derive macr...
4
3
1
[{"id": "G0", "claim": "A blank line is missing before this doc-comment line.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Parse impl for the kind enum repeats `i if i.to_string().as_str() == ...` for every variant; binding the parsed iden...
null
ruma__ruma__1243
ruma/ruma
1,243
defect
2f96fa55480cb338a9cb6587b0c5949e66bc1ade
1fe443f19ce4d76f3fae21437907b7a977b154c8
Add support for private read receipts
According to [MSC2285](https://github.com/matrix-org/matrix-spec-proposals/pull/2285). One annoying thing is that the Client API feature is non-additive because it introduces a breaking change. <!-- Replace --> ---- Preview: https://pr-1243--ruma-docs.surge.sh <!-- Replace -->
diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index db71f753b0..93664a765b 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -6,6 +6,7 @@ Breaking changes: * If the lack of such an `impl` causes problems, please open a GitHub issue ...
1
1
0
[{"id": "G0", "claim": "The doc comment should read 'fully-read marker' (hyphenated) instead of 'fully read marker'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruma__ruma__1282
ruma/ruma
1,282
defect
24d0b2e2bb4793671d0c50612a9dddc56450d01b
3c55da7c05b9705469fa2c39f5a8a644dfca1742
events: Add RoomMemberUnsigned with invite_room_state field, take 2
Closes #998. <!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 4f7f25acee..cdd4cdebc3 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -28,6 +28,9 @@ Breaking changes: * Move `receipt::ReceiptType` to `events::receipt` * Make `Clone` as supertrait of `api::Ou...
1
1
0
[{"id": "G0", "claim": "The changelog entry should say the new unsigned type replaced the `StateUnsigned` type used by other state events rather than the `MessageLikeUnsigned` type used by other message-like events.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruma__ruma__1283
ruma/ruma
1,283
defect
5c3610b9b70ad5e5863bf3738e182dfd01bb0f1a
8488720003b53138c831dec6c8f7dc0c0efcb198
events: Add RoomMessageEventContent::make_reply_to
… and deprecate reply constructors. For consistency we'll probably also want to update the `reply` constructor somehow and add (non-reply) emote constructors. Wdyt? I made this because I was made aware of the fact that making a reply using Markdown is unnecessarily hard, and I didn't want to introduce even more c...
diff --git a/crates/ruma-common/src/doc/rich_reply.md b/crates/ruma-common/src/doc/rich_reply.md index a47467adad..1097e0c90c 100644 --- a/crates/ruma-common/src/doc/rich_reply.md +++ b/crates/ruma-common/src/doc/rich_reply.md @@ -1,5 +1,5 @@ <!-- Keep this comment so the content is always included as a new paragraph ...
3
3
2
[{"id": "G0", "claim": "make_reply_to forgets to set `relates_to`, so the result is not actually a reply, which is also why CI fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The documented panic restriction that `self` must be Emote, Notice o...
null
ruma__ruma__1301
ruma/ruma
1,301
defect
2dbaf19ded08c7570d94ad5f16310c677d3fb301
56151fd3e3d6ad9dd9abd4725bce14150d8155d2
Move parts of endpoint URL construction out of macro code
<!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-client-api/src/state/get_state_events_for_key.rs b/crates/ruma-client-api/src/state/get_state_events_for_key.rs index 25b9249a1b..1ca51e87fe 100644 --- a/crates/ruma-client-api/src/state/get_state_events_for_key.rs +++ b/crates/ruma-client-api/src/state/get_state_events_for_key.rs @@ -85,25 +85...
3
1
1
[{"id": "G0", "claim": "The URL-building logic could in the future be moved into a dedicated `EndpointPath` struct (as done in the related PR) so external libraries could extract path parts and construct their own URLs, unless it is only relevant for OutgoingHttpRequest.", "category": "design", "verdict": "uncertain", ...
null
ruma__ruma__1303
ruma/ruma
1,303
defect
764e96a25404e29ed2385bed9ce58055a490f3e2
5dd7abd623a72f2c79bec5b1bb6dd04359a22cb5
api: Replace path fields in Metadata with new VersionHistory type
<!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-common/src/api.rs b/crates/ruma-common/src/api.rs index c04e8fe7a1..a0c6356a31 100644 --- a/crates/ruma-common/src/api.rs +++ b/crates/ruma-common/src/api.rs @@ -197,7 +197,7 @@ pub use ruma_macros::ruma_api; pub mod error; mod metadata; -pub use metadata::{MatrixVersion, Metadata, Versioni...
3
1
1
[{"id": "G0", "claim": "The special case in History::construct that bumps a stable path's version from V1_0 to V1_1 when an r0 path is present looks unnecessary - aren't v1.0 endpoints always using the r0 path, and why change the Matrix version?", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "...
null
ruma__ruma__1314
ruma/ruma
1,314
defect
5b25f2f2234c6781a03779851352df175ad6a2b3
c6d9eda49e5fe0e18bfff8b0e9e309831be1898b
events: Stabilize current support for threads
According to https://github.com/matrix-org/matrix-spec/pull/1254. Closes #1305. <!-- Replace --> ---- Preview: https://pr-1314--ruma-docs.surge.sh <!-- Replace -->
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index d125558b39..f3583ec7f5 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -10,6 +10,10 @@ Improvements: * Add `MatrixVersion::V1_4` * Stabilize default room server ACL push rule +* Add stable supp...
1
1
0
[{"id": "G0", "claim": "Since `io.element.thread` is apparently no longer used in practice, the `io.element.thread` alias should be removed from the thread relation (on both `Relations::thread`'s serde rename and `RelationType::Thread`'s ruma_enum rename), leaving only `m.thread`.", "category": "design", "verdict": "su...
null
ruma__ruma__135
ruma/ruma
135
defect
6f69a6fe76d050076b9f54fa0e6c988c2d44b5ff
5f17a5a3ae525fa29e4a4b834745da00ef4b1aa3
Add UnsignedSync type to accomadate for sync events
fixes #118
diff --git a/ruma-events-macros/src/event_enum.rs b/ruma-events-macros/src/event_enum.rs index 67f6ec1e0e..33ca4aa3ce 100644 --- a/ruma-events-macros/src/event_enum.rs +++ b/ruma-events-macros/src/event_enum.rs @@ -482,7 +482,7 @@ fn generate_accessor( variants: &[Ident], ) -> TokenStream { if is_event_kind(...
2
2
1
[{"id": "G0", "claim": "The two `unsigned` match arms in `field_return_type` (the Sync and RedactedSync variations, both returning `UnsignedSync`) can be combined, either with an `||` or a `[Variation::Sync, Variation::RedactedSync].contains` in the guard.", "category": "maintainability", "verdict": "supported", "prior...
null
ruma__ruma__1350
ruma/ruma
1,350
defect
7e1fd603e6aebacb56e4c0a55596a0fe72fef5bd
05d7ca2807b845b27c8863903aabaf589d753d1b
Add `VersionHistory` `const fn new`
This adds a `const fn` constructor for `VersionHistory`, bringing us one step closer to a generic `metadata!` macro in https://github.com/ruma/ruma/issues/1348 Blocked by https://github.com/ruma/ruma/pull/1351 <!-- Replace --> ---- Preview: https://pr-1350--ruma-docs.surge.sh <!-- Replace -->
diff --git a/crates/ruma-common/Cargo.toml b/crates/ruma-common/Cargo.toml index 5a78a377d9..fe575b3aa2 100644 --- a/crates/ruma-common/Cargo.toml +++ b/crates/ruma-common/Cargo.toml @@ -57,6 +57,7 @@ indexmap = { version = "1.9.1", features = ["serde"] } itoa = "1.0.1" js_int = { version = "0.2.0", features = ["serd...
8
8
0
[{"id": "G0", "claim": "The byte-validation loop should use the parenthesised iter::for_each! form and the panic message should say \"invalid\" instead of \"non-valid\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The initial blank line insid...
null
ruma__ruma__1375
ruma/ruma
1,375
defect
94990f60f2b1c4337e08de9be43c8079e97a58bb
324e17ad325c2b2abe8b6b4f25f73eec734f7b1c
Some refactorings to prepare for the ruma_api macro removal
<!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-common/src/api/metadata.rs b/crates/ruma-common/src/api/metadata.rs index e56daaf9e6..d50a8fcc68 100644 --- a/crates/ruma-common/src/api/metadata.rs +++ b/crates/ruma-common/src/api/metadata.rs @@ -124,6 +124,13 @@ impl Metadata { Ok(res) } + + // Used for generated `#[test]`...
2
1
0
[{"id": "G0", "claim": "The `_path_parameters` method should be made public rather than doc(hidden), so developers can conveniently grab it when they do want it.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable `path_fields` holding the `#...
null
ruma__ruma__1426
ruma/ruma
1,426
defect
9d8c9c477f15c07b0f2fe4ff4a01aa2ea36eae66
48de28519c4a2ffa46aedcc6d19452dde6484b3b
events: Create `PossiblyRedacted` type for original state events
Fix deserialization of redacted `prev_content`. Fixes #1422. <!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 4f8654c1c9..bfd0694da1 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -8,6 +8,7 @@ Bug fixes: and `events::secret` modules * Fix deserialization of `RoomMessageEventContent` and `RoomEncrypted...
4
4
1
[{"id": "G0", "claim": "RedactContent's members should be inlined into the `Original` traits — add `type Redacted` and `fn redact` to both `OriginalStateEventContent` and `OriginalMessageLikeEventContent` and remove the `RedactContent` trait.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "p...
null
ruma__ruma__1443
ruma/ruma
1,443
defect
12e4aa47b64f4e86013e3a827926f31fcd0cf34f
ccbe826a0ab36c2d981bfbefde6be60c77b0be31
events: Move `EventContent::from_parts` to a separate trait
Simplify some implementations in the process. <!-- Replace --> ---- Preview: https://pr-1443--ruma-docs.surge.sh <!-- Replace -->
diff --git a/crates/ruma-client-api/src/config/get_global_account_data.rs b/crates/ruma-client-api/src/config/get_global_account_data.rs index 2e0940e7a5..8d328b5401 100644 --- a/crates/ruma-client-api/src/config/get_global_account_data.rs +++ b/crates/ruma-client-api/src/config/get_global_account_data.rs @@ -42,7 +42,...
7
7
2
[{"id": "G0", "claim": "The new doc comment on the get_global_account_data `Response` and the matching CHANGELOG bullet tell users to call `.cast::<T>()`, but the method is `.cast_ref::<T>()` (and the doc line should end with a period).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "...
null
ruma__ruma__155
ruma/ruma
155
defect
3329dc73455076c051a304030acc8a20c1bfda5d
ce85b270fce09d7abd1b763c2963ecdd169eed07
Adds into_full_event and From<> impls to convert between sync and full events
Resolves #115
diff --git a/ruma-events-macros/src/event.rs b/ruma-events-macros/src/event.rs index f1e84adf77..9d9719d1c4 100644 --- a/ruma-events-macros/src/event.rs +++ b/ruma-events-macros/src/event.rs @@ -4,13 +4,13 @@ use proc_macro2::{Span, TokenStream}; use quote::quote; use syn::{Data, DataStruct, DeriveInput, Field, Field...
5
5
0
[{"id": "G0", "claim": "The `if let Some(...) { ... } else { ... }` in the RedactedUnsigned <-> RedactedSyncUnsigned conversions would be more readable as a `match` with the RedactionEvent destructuring folded into the first arm pattern.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introd...
null
ruma__ruma__1551
ruma/ruma
1,551
defect
77454b70e91e49f3d5f846384690a565049c52c6
ff737f624214da2e5efd8a26f6b71e6467a0ccae
events: Add support for `m.mentions` (intentional mentions) event property
According to [MSC3952](https://github.com/matrix-org/matrix-spec-proposals/pull/3952), [Spec PR](https://github.com/matrix-org/matrix-spec/pull/1508). It doesn't use the unstable prefixes and should be merged after the release of Matrix 1.7. <!-- Replace --> ---- Preview: https://pr-1551--ruma-docs.surge.s...
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 41ac4a5b11..52e0582233 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -35,6 +35,7 @@ Improvements: - `user_can_send_state` - `user_can_trigger_room_notification` - Add `MessageType::sanitiz...
1
1
1
[{"id": "G0", "claim": "The `mentions` field should be added to `RoomMessageEventContent` (a single place, as `struct { msgtype, mentions }` for replacements) instead of being added to every `MessageType` variant.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ruma__ruma__1556
ruma/ruma
1,556
defect
6df78e8aee6358a5d6eabbfd441631a9f2d8e1a4
4aa30ea3c8f5a4c4f22df025eedb3b3563e61b83
federation-api: Deprecate `v1/send_join` and `v1/send_leave`
According to a [spec clarification](https://github.com/matrix-org/matrix-spec/pull/1518). This required to allow to declare an endpoint as both stable and deprecated in Matrix 1.0. <!-- Replace --> ---- Preview: https://pr-1556--ruma-docs.surge.sh <!-- Replace -->
diff --git a/crates/ruma-common/src/api/metadata.rs b/crates/ruma-common/src/api/metadata.rs index dc5642b086..cc253e3471 100644 --- a/crates/ruma-common/src/api/metadata.rs +++ b/crates/ruma-common/src/api/metadata.rs @@ -168,8 +168,8 @@ impl VersionHistory { /// - In stable_paths: /// - matrix versions ar...
2
2
1
[{"id": "G0", "claim": "CI fails because the create_join_event::v1 tests live inside the module this pull request deprecates, so the tests need to be relocated (e.g. renamed module with allow(deprecated), or moved out as an integration test to keep the tree clean) for the build to pass.", "category": "correctness", "ve...
null
ruma__ruma__1576
ruma/ruma
1,576
defect
59fd881521d3994840306a4be2d7bdf879480388
b183677ef5d46ca246c1d0f1e3e5066414ddaab6
Simplify media event content initialization
<!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-common/src/events/room/message/audio.rs b/crates/ruma-common/src/events/room/message/audio.rs index 4ec6e85a07..a1edb6847a 100644 --- a/crates/ruma-common/src/events/room/message/audio.rs +++ b/crates/ruma-common/src/events/room/message/audio.rs @@ -26,16 +26,30 @@ pub struct AudioMessageEventC...
2
1
0
[{"id": "G0", "claim": "The doc comment on `AudioMessageEventContent::plain` still mentions an optional extra info parameter that the function no longer takes, and should be reworded to match the new signature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
ruma__ruma__1581
ruma/ruma
1,581
defect
4d9781e05f6a721fe340e0213c8af290f32d7258
887ed8d2c50093d3a83ad786849710c8348818c0
events: Keep data of unknown relations
So I thought that being able to catch the data of unknown relations would be as simple as adding an `untagged` variant, thanks to the [latest release](https://github.com/serde-rs/serde/releases/tag/v1.0.164), but it seems like it doesn't work. For some reason the `relation` field of `RelatesToJsonRepr` is `None` wit...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19b47ebc61..95701a2868 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,7 +65,7 @@ jobs: run: target/debug/xtask ci lint msrv: - name: Rust 1.64 / ${{ matrix.name }} + name: Rust 1.65 / ${{ matrix.name ...
5
2
1
[{"id": "G0", "claim": "The rust-version (MSRV) setting that this PR bumps in each crate's Cargo.toml should be moved to the workspace Cargo.toml using workspace inheritance.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The MSRV bump should be...
null
ruma__ruma__1617
ruma/ruma
1,617
defect
cf70f74fb793569deaa9c0b0662908d58c4dfedb
cf4cdc449852acf15ff1f875049065eefb9f4dd5
events: Make creator field of RoomCreateEventContent optional
According to [MSC2175](https://github.com/matrix-org/matrix-spec-proposals/pull/2175) (Part of [MSC3820](https://github.com/matrix-org/matrix-spec-proposals/pull/3820) / [Spec PR](https://github.com/matrix-org/matrix-spec/pull/1604) Note that the few changes in state res are only to reflect the changes of the type a...
diff --git a/crates/ruma-client-api/src/room/create_room.rs b/crates/ruma-client-api/src/room/create_room.rs index 8d146b65fc..4816a067df 100644 --- a/crates/ruma-client-api/src/room/create_room.rs +++ b/crates/ruma-client-api/src/room/create_room.rs @@ -162,7 +162,7 @@ pub mod v3 { creator: OwnedUserId, ...
4
2
1
[{"id": "G0", "claim": "The `creator` field should be marked as deprecated, since the spec says clients should use the event's `sender` instead in all room versions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The redaction implementation for r...
null
ruma__ruma__1628
ruma/ruma
1,628
defect
8bdfd809e4391b696fe7fde9394b7285f8a2219f
97ca055b7e6d5946569a3950686464b2b2fc7583
events: Allow to add mentions automatically when generating reply
As recommended in Matrix 1.7: [Spec](https://spec.matrix.org/v1.7/client-server-api/#mentioning-the-replied-to-user). <!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 37e2c72c3a..d4f47ec883 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -37,7 +37,9 @@ Breaking changes: MSC2176 / MSC3821 / MSC3820, for the following types: - `RedactedRoomRedactionEventCont...
2
2
0
[{"id": "G0", "claim": "The chained map/unwrap_or_default for copying the original mentions' user_ids is longer than the equivalent match would be, so rewrite it as a match (explicitly waivable by the reviewer).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G...
null
ruma__ruma__163
ruma/ruma
163
defect
39c36176a6a0011f8b9fc36be41960e9bdc4b5d2
bea59b6deb62930e1feff35ba1c6cd0ceeee5e79
Remove .expect panic when converting header <-> string values
In order to avoid `use of moved value "response"` compiler errors, I sort the fields so the header fields are first. This seemed better than emitting an error dependant on field ordering. Then use the `try_deserialize!` macro to bail in the error case. Resolves #4
diff --git a/ruma-api-macros/src/api/request.rs b/ruma-api-macros/src/api/request.rs index 95e3ef0c32..5e260a841f 100644 --- a/ruma-api-macros/src/api/request.rs +++ b/ruma-api-macros/src/api/request.rs @@ -34,8 +34,7 @@ impl Request { quote! { headers.append( ruma_api...
2
2
1
[{"id": "G0", "claim": "The change removes the .expect panic only for one direction of the header/string conversion, and the opposite conversion may still have a panicking code path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The Header-first ...
null
ruma__ruma__1646
ruma/ruma
1,646
defect
e4a46437c97cf670aaa9977365caf11300d9ff6e
880f311bfdbda412e0133b5383cc691019642610
events: Allow to build reply to raw events
Based on #1638. I'm not sure why, I find the code a bit messy. I'll add tests if we validate this. <!-- Replace --> ---- Preview Removed <!-- Replace -->
diff --git a/crates/ruma-events/src/poll/unstable_start.rs b/crates/ruma-events/src/poll/unstable_start.rs index 80febfbee1..1609449911 100644 --- a/crates/ruma-events/src/poll/unstable_start.rs +++ b/crates/ruma-events/src/poll/unstable_start.rs @@ -6,10 +6,11 @@ use js_int::UInt; use ruma_macros::EventContent; use ...
6
6
0
[{"id": "G0", "claim": "Compute `original_thread_id` more idiomatically: take `original_message.content.relates_to` by reference with `.and_then(as_variant!(Relation::Thread))` instead of the macro match on `Some(Relation::Thread(thread))`, and use a regular `if` for the `forward_thread` check.", "category": "maintaina...
null
ruma__ruma__1704
ruma/ruma
1,704
defect
9728f97505e8861645e137d7b25fdfeeccc91eff
4c8193f6eb0d602a73d4791643c4935f94356b94
Add CallNotify event as described by MSC4075
Fixes: https://github.com/ruma/ruma/issues/1705 See: [MSC4075]( https://github.com/matrix-org/matrix-spec-proposals/pull/4075) <!-- PR checklist, not strictly necessary but generally useful unless you're just fixing a typo or something like that: - Run `cargo xtask ci` locally before posting the PR - Docume...
diff --git a/crates/ruma-events/Cargo.toml b/crates/ruma-events/Cargo.toml index 6be1c332c7..e7d64ac49d 100644 --- a/crates/ruma-events/Cargo.toml +++ b/crates/ruma-events/Cargo.toml @@ -40,6 +40,7 @@ unstable-msc3927 = ["unstable-msc3551"] unstable-msc3954 = ["unstable-msc1767"] unstable-msc3955 = ["unstable-msc1767...
11
11
0
[{"id": "G0", "claim": "The doc comment on the `mentions` field should use a reference-style `[MSC3952]` link with its URL definition on a separate paragraph instead of an inline URL.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Blank lines shou...
null
ruma__ruma__1722
ruma/ruma
1,722
defect
684ffc789877355bd25269451b2356817c17cc3f
b103ee18b1c63904a53c988af4e08f457cafaa19
Unstable support for MSC 3489 live location sharing
This merge request introduces the live location sharing feature as per [MSC3489](https://github.com/matrix-org/matrix-spec-proposals/pull/3489). These changes allow users to share their live location, start and stop the sharing, and check if the location sharing is live.
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 0b081ec90e..2b8868ee67 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -17,6 +17,7 @@ Improvements: - Point links to the Matrix 1.9 specification - Implement `as_str()` and `AsRef<str>` for `push...
4
4
3
[{"id": "G0", "claim": "The ruma_event attribute on the beacon_info state event content has a typo: the alias should be \"m.beacon_info\" instead of \"m.beacon\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new live_location module should be ...
null
ruma__ruma__1758
ruma/ruma
1,758
defect
e249f08f4bdcfebdea6b78efb1ee3dd439c29d66
53105ef24808597fe394da6c17c8865f595b72e0
client-api: Make Error non-exhaustive and move `authenticate` field
<!-- PR checklist, not strictly necessary but generally useful unless you're just fixing a typo or something like that: - Run `cargo xtask ci` locally before posting the PR - Documented public API changes in CHANGELOG.md files --> <!-- Replace --> ---- Preview: https://pr-1758--ruma-docs.surge.sh...
diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index 25f6647e01..651034f7ee 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -13,6 +13,9 @@ Breaking changes: - The `ts` field in `Request` for `get_media_preview` is now `Option`. - Th...
1
1
0
[{"id": "G0", "claim": "Another constructor to conveniently create `Forbidden` with `authenticate: Some(_)` may be needed alongside `ErrorKind::forbidden()`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruma__ruma__1784
ruma/ruma
1,784
defect
21b644ac6ae1c7d4a4f7e98a6481a3318f2deeaa
c42a618332aeb6ebaa5c1d8dd069ddffd68de239
html: Allow to navigate through the HTML tree
The first 2 commits are small changes that I chose to split out in separate commits. The main feature here is to allow to navigate in the HTML tree. It's useful for users that don't have an API to just show HTML. Instead they can use ruma-html to navigate the DOM Tree to be able to render the HTML manually. It is...
diff --git a/crates/ruma-html/CHANGELOG.md b/crates/ruma-html/CHANGELOG.md index 4f8e21daed..6119654001 100644 --- a/crates/ruma-html/CHANGELOG.md +++ b/crates/ruma-html/CHANGELOG.md @@ -1,8 +1,15 @@ # [unreleased] +Breaking Changes: + +- Do not export `Node` in the public API, it is not usable on its own and it is ...
1
1
1
[{"id": "G0", "claim": "The ExactSizeIterator impl for Children should be left out: its len() has non-constant complexity, which is surprising for that trait, and the implementation is wrong because Iterator::size_hint must return the exact size.", "category": "correctness", "verdict": "supported", "priority": "P1", "s...
null
ruma__ruma__1809
ruma/ruma
1,809
defect
8699c174a95f5a51d16b2493e1438f3a350e37fb
2a75c289226111535e22fa3a62897bf20024d020
ci: Update version of Rust nightly
I disabled the `-Z check-cfg` flag as it is now [the default behavior](https://blog.rust-lang.org/2024/05/06/check-cfg.html) in nightly. The clippy lint that was triggered with `.clone()` and `.to_owned()` is [`assigning_clones`](https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones). Basically...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b51fac38f..cb96e48f2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ env: CARGO_TERM_COLOR: always CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse # Keep in sync with version in `rust-toolchain.toml` and `...
2
2
0
[{"id": "G0", "claim": "The deactivated api_metadata, util and version modules in ruma-macros/src/api.rs are dead code and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In room_network_serde.rs the code should use unwrap_or(f...
null
ruma__ruma__1820
ruma/ruma
1,820
defect
1c1cfe9a7e604f930169cdece597009ecb2a4aaf
06dd638c354e9c26e31fb893cd0e3ca69d6a823c
Add encrypted stickers support
Fixes https://github.com/ruma/ruma/issues/1819 Fixes https://github.com/mautrix/whatsapp/issues/662 Fixes https://github.com/element-hq/element-x-ios/issues/1047 I implemented a custom deserializer for StickerEventContent to handle the encrypted sticker events generated by several bridges out there. <!-- PR ...
diff --git a/crates/ruma-events/Cargo.toml b/crates/ruma-events/Cargo.toml index b0b971e00b..2640d48a3d 100644 --- a/crates/ruma-events/Cargo.toml +++ b/crates/ruma-events/Cargo.toml @@ -56,6 +56,9 @@ compat-optional = [] # Allow TagInfo to contain a stringified floating-point value for the `order` field. compat-tag-...
6
6
3
[{"id": "G0", "claim": "Instead of a custom parser that just fills the url field from the encrypted file's info, the sticker's media should be modeled as a MediaSource-like StickerMediaSource whose Encrypted variant is behind a compat feature and which replaces the url field, so all the EncryptedFile data needed to dec...
null
ruma__ruma__1848
ruma/ruma
1,848
defect
629b06e1e4e871d2ee20b3780898a68d87543f38
84e2698e59bb1be7f20de921d5429f4bdf94aa87
api: Rename query_map attribute of request macro to query_all and remove bound
Allows to represent the query fields as a single struct or enum. This was requested with a valid use case of representing the query strings as an enum at: https://matrix.to/#/!veagCdDBjKrMsOCzrq:privacytools.io/$eNLiLj5-OXZCOyGu8fVIYlCzfZbm-EAnNw6GfT-r34E?via=matrix.org&via=envs.net&via=mozilla.org
diff --git a/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs b/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs index cd1be765a5..53d244b2f8 100644 --- a/crates/ruma-appservice-api/src/thirdparty/get_location_for_protocol.rs +++ b/crates/ruma-appservice-api/src/thirdparty/ge...
2
2
0
[{"id": "G1", "claim": "The name of the query attribute is not intuitive and should be changed to something clearer (candidates discussed: `query_all`, `query_full`, `query_wrapper`, `query_object`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim":...
null
ruma__ruma__1918
ruma/ruma
1,918
defect
e7556d0a16847f015acd97a2ea66a0f747a36261
7f489624954824181d3292dc674ba97e7a777766
identifiers: Validate `KeyId` according to the key name type
To solve #1813, so we can have different key name types with their own validation.
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 82e5c1530c..2ca65e8e53 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -14,7 +14,17 @@ Breaking changes: query parameters. Note that the (de)serialization of the type used must work with `ser...
2
2
1
[{"id": "G0", "claim": "The current code fails to compile: evaluating the `TryFrom<&str>`/`Into` requirements for `KeyId` overflows the recursion limit.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The new CHANGELOG entry saying the key version is 'v...
null
ruma__ruma__1921
ruma/ruma
1,921
defect
a9267360cb37e664410c175aaa9ece85c3b0e269
bc1bd77521293c974952061108ff961e6c8d503d
Add filename helper methods for audio, file, image and video messages.
Follow-up to #1919, this PR adds helper methods for filenames too. Note: Everything is in the last commit as I based it on top of the captions branch. Realising just now that I can't target that branch for the PR as it isn't in this repo 🤦‍♂️
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 683bbc6deb..03ae449f5f 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -23,6 +23,8 @@ The new format (Session) is required to reliably display the call member count ( `CallMemberEventContent` is n...
3
3
0
[{"id": "G0", "claim": "The doc comments should spell \"deserialized\" with a z, since the project consistently uses American English.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new filename method's doc comment should also link to the spe...
null
ruma__ruma__1932
ruma/ruma
1,932
defect
54dc4100de729a4289d2735cdf686079ca6ad70a
1fe43353b4c1a637dee99851dcbf237d9e8a38d7
Fix missing `relates_to` field on `StickerEventContent`
add the field `relates_to` to get the events the `StickerEventContent` relates to Fixes #1925.
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 81fe66ff55..c31549a055 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -2,6 +2,7 @@ Bug fixes: +- Fix missing `relates_to` field on `StickerEventContent` - Fix deserialization of `AnyGlobalAc...
2
2
2
[{"id": "G0", "claim": "The `relates_to` field should use `StickerEventContentWithoutRelation` (generated via `, without_relation` on the `ruma_event` attribute) instead of `RoomMessageEventContentWithoutRelation` as the inner type.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd...
null
ruma__ruma__1945
ruma/ruma
1,945
defect
fa088ed8b2fb0727f1682df473309b600cba1e16
a7bef86429a42eadbbd5e68335021131d75fd2cb
state-res: add snapshot tests and fix tiebreaking
This makes it very easy to add new state resolution tests and compare/update test results across implementation revisions. Since the input data is just a JSON list of PDUs, this can also be helpful for ad-hoc debugging against the captured state of a real room. Future possibilities: * [ ] A snapshot file with a g...
diff --git a/Cargo.toml b/Cargo.toml index 6804d8a26b..2177d456b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,13 +15,14 @@ base64 = "0.22.0" bytes = "1.0.1" criterion = "0.5.0" http = "1.1.0" +insta = { version = "1.41.1", features = ["json"] } js_int = "0.2.2" maplit = "1.0.2" rand = "0.8.5" ruma-appservice...
16
15
0
[{"id": "G0", "claim": "The `#[allow(clippy::disallowed_methods)]` suppression for reading fixture PDUs with `File::open` is probably okay in test code, but the author asks whether it really is.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "A c...
null
ruma__ruma__1964
ruma/ruma
1,964
defect
cea31fad6862e1ff37f9df113ec17bf8525c0835
95645e0664edd83c0425dc9e32998fc6a5c49e0c
events: Do not generate reply fallbacks anymore :tada:
According to [MSC2781](https://github.com/matrix-org/matrix-spec-proposals/pull/2781) / [Spec PR](https://github.com/matrix-org/matrix-spec/pull/1994). The helper methods for the relevant relations have been simplified to only take the necessary data.
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index f2cbe55323..f30ce17ba1 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -10,6 +10,16 @@ Breaking changes: This change allows to have an email or MSISDN phone number as a key for example, which...
2
2
0
[{"id": "G0", "claim": "The doc comment should say that the method turns `self` into a [rich reply] to the message using the given metadata, instead of \"providing\" the given metadata.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The changelog ...
null
ruma__ruma__1996
ruma/ruma
1,996
defect
5c9ef9f425d8f8b330e46d215c683bf799a28d50
b8298e3b6cfd212c76420fdc4feb030dc77c1289
events: Add `is_redacted` accessor to event enums
Allows to know if an event is redacted without calling `original_content()`, which clones the content. cc @bnjbvr
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 390acf8512..58bdd18523 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -22,6 +22,8 @@ Improvements: - Add unstable support for the `is_animated` flag for images, according to MSC4230. - Add uns...
1
1
0
[{"id": "G0", "claim": "The reviewer is unsure what is going on with the tests being moved or removed and asks for an explanation of those test changes.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruma__ruma__2044
ruma/ruma
2,044
defect
2834265942a91bbadeb27f6589af967e679ee6fb
bbf30b5ed787e57e794e73fe6b3e58bdd96ea0ef
events: add gallery msgtype for MSC4274
<!-- PR checklist, not strictly necessary but generally useful unless you're just fixing a typo or something like that: - Run `cargo xtask ci` locally before posting the PR - Documented public API changes in CHANGELOG.md files --> This adds the gallery `msgtype` from [MSC4274](https://github.com/matrix-or...
diff --git a/crates/ruma-events/src/room/message.rs b/crates/ruma-events/src/room/message.rs index 739112b322..86591956d5 100644 --- a/crates/ruma-events/src/room/message.rs +++ b/crates/ruma-events/src/room/message.rs @@ -27,6 +27,7 @@ mod audio; mod content_serde; mod emote; mod file; +mod gallery; mod image; mo...
5
5
2
[{"id": "G0", "claim": "The custom Serialize implementation for GalleryItemType, which serializes the content into a map and then serializes that again after modification, is inelegant and a design that avoids a custom Serialize implementation (e.g. putting the msgtype tag on the MessageType enum variants) would be bet...
null
ruma__ruma__2064
ruma/ruma
2,064
defect
108c98cf2ced3e3f58c991389687c097aaeace38
bc9ba5b2c87beaa6a97362a82bf3ea188cb342e9
state-res: Perform authorization rules checks on `auth_events`
This is mostly copying the [behavior of Synapse](https://github.com/element-hq/synapse/blob/fe8bb620de8e5830328c6d23127657560f449af0/synapse/event_auth.py), while checking that it makes sense according to the spec. I recommend to review this commit by commit.
diff --git a/crates/ruma-state-res/CHANGELOG.md b/crates/ruma-state-res/CHANGELOG.md index 6bd673b8aa..62f0fcd3d0 100644 --- a/crates/ruma-state-res/CHANGELOG.md +++ b/crates/ruma-state-res/CHANGELOG.md @@ -23,6 +23,12 @@ Breaking: to provide an `AuthorizationRules` for their custom `RoomVersionId`. - `RoomVersion`...
3
2
0
[{"id": "G0", "claim": "The behavior change in the create-event check on auth_events deserves a changelog entry and a test case.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commit message should explain what problems the removed commented-o...
null
ruma__ruma__2067
ruma/ruma
2,067
defect
38d471de01ce2f37f1d8fb5cb1752769cf97bd2f
ec85c11e5bfa9be3010cd62f25337c813d535b37
html: support for unstable MSC4286
See: https://github.com/matrix-org/matrix-spec-proposals/pull/4286 <!-- PR checklist, not strictly necessary but generally useful unless you're just fixing a typo or something like that: - Run `cargo xtask ci` locally before posting the PR - Documented public API changes in CHANGELOG.md files -->
diff --git a/crates/ruma-html/CHANGELOG.md b/crates/ruma-html/CHANGELOG.md index cfc072fd58..4f4a95f0af 100644 --- a/crates/ruma-html/CHANGELOG.md +++ b/crates/ruma-html/CHANGELOG.md @@ -1,5 +1,9 @@ # [unreleased] +Improvements: + +- Add unstable support for the `data-mx-external-payment-details` attribute for spans...
2
2
1
[{"id": "G0", "claim": "Defining two feature-gated variants of ALLOWED_ATTRIBUTES_SPAN_STRICT in clean.rs is not ideal because it will become complicated to maintain if more attributes have to be exempted for other MSCs, though it is acceptable for now.", "category": "maintainability", "verdict": "supported", "priority...
null
ruma__ruma__2090
ruma/ruma
2,090
defect
be19d07d850a69a5872dcc38f15a0bafb06828e5
bf6128e263e33fb0678fcf9e39051e234c545fd7
events: Remove the `EventContent` trait
Prerequisite for #2066. This can be reviewed commit by commit.
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 73516837f4..06c5273c54 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -30,6 +30,10 @@ Breaking changes: - `PresenceEventContent` doesn't implement `EventContent` and `StaticEventContent` anymore....
2
1
0
[{"id": "G0", "claim": "Changing `RawExt::deserialize_with_type` to take `&str` loses a nice (typed `EventType`) bound, though there may be no solution for it.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Dedent the second line of the `requires there to ...
null
ruma__ruma__2124
ruma/ruma
2,124
defect
04da6911f2e247eb3de84313fca92a0729cf4f37
329b89f585d54b1ccfb04e1561c181fbf5732143
events: Stabilize support for extensible room topics
According to Matrix 1.15 ([spec PR](https://github.com/matrix-org/matrix-spec/pull/2095/files)).
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 9718642a52..d9197eeb9e 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -62,6 +62,7 @@ Improvements: `MediaPreviewConfigEventContent::new().media_previews(Some(MediaPreviews::Off))`. - `Medi...
1
1
0
[{"id": "G0", "claim": "The `#[serde(transparent)]` addition to `TextContentBlock` seems unrelated to the stabilization, and the semantic changes should be separated from the stabilization (into separate commits) to make review easier.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
ruma__ruma__2133
ruma/ruma
2,133
defect
801547aaf28eaf5726f13ffbda5a7a8c45d6694b
c83bc5ecd10090e21b02ad4e5f00330c1af487f7
events: Use RedactionRules to decide which `redacts` field to use for `m.room.redaction` events
For consistency with the methods to redact an event, and to avoid unexpected behavior for unsupported room versions. <!-- PR checklist, not strictly necessary but generally useful unless you're just fixing a typo or something like that: - Run `cargo xtask ci` locally before posting the PR - Documented public...
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 42a0ca4762..4c036b7688 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -42,6 +42,8 @@ Breaking changes: - The `EventContent` macro doesn't implement `StaticEventContent` anymore for account data w...
2
2
0
[{"id": "G0", "claim": "The CHANGELOG should say \"unexpected behavior\" instead of \"undefined behavior\" for unknown room versions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `or_else` closure blocks in the `redacts` helper are misformat...
null
ruma__ruma__2137
ruma/ruma
2,137
defect
9f9a68441114cb8ffd66a953b284de6363d6853f
5b63ed99c75b422e37bb35f172dce5c4f6c23044
events: Add `IsPrefix` associated type to `StaticEventContent`
To identify when the statically-known part of the event type is a prefix. Alternative to #2136. ~~Marking this as a draft for now, to check if this works for the SDK.~~
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 822736495e..c478ea84d4 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -44,6 +44,10 @@ Breaking changes: - `SecretStorageKeyEventContent` doesn't implement `StaticEventContent` anymore. - The `...
2
1
0
[{"id": "G0", "claim": "Instead of a separate StaticEventContentPart trait, the PR should revert the removal of StaticEventContent impls for the prefix-matching event types and add an IS_PREFIX flag to StaticEventContent, so code that only works for fully-static event types can still bound on the trait with IS_PREFIX =...
null
ruma__ruma__2146
ruma/ruma
2,146
defect
f1f03be8c73d4cc3bfc513b07f29bd69825d561e
816817f2688463b3c03bdded40105d8c0a1ec094
state-res: add iteratively resolved snapshot tests
More closely simulates what happens within servers, since most of the time, events come in one-by-one, and events are resolved against the state before them.
diff --git a/crates/ruma-state-res/tests/it/fixtures/bootstrap-private-chat.json b/crates/ruma-state-res/tests/it/fixtures/bootstrap-private-chat.json index 3ebf28c47c..f1683d5623 100644 --- a/crates/ruma-state-res/tests/it/fixtures/bootstrap-private-chat.json +++ b/crates/ruma-state-res/tests/it/fixtures/bootstrap-pri...
8
6
2
[{"id": "G0", "claim": "The test's returned snapshot was switched from the batched to the iteratively resolved state even though the change should not affect behaviour, and the reviewer asks what the reason for making it is.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id"...
null
ruma__ruma__2187
ruma/ruma
2,187
defect
d6a03802a457e2b6173920bb9beb8ae49291c71b
dbb23f6fd2c6698036cf00f42722f791c25e7cca
client-api,events: Remove `StrippedState` and add optional fields to `StrippedStateEvent` instead
`StrippedState` makes it complicated to access the content of an event, with several levels of matching (event format, event type, and for some formats another level), to end up with up to 3 possible content types. It is simpler for users to have a single enum for the event type and be able to access the content and...
diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index 9ba937d153..88a36707a9 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -30,8 +30,6 @@ Breaking changes: - Allow specifying the event format for `state::get_state_event_for_key`, me...
2
2
1
[{"id": "G0", "claim": "MSC4311 now just uses the classic stripped state format, so the pull request's support for the previous full-state (`StateEvent`-format) version of MSC4311 is based on an outdated version of the MSC and should not be added.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
ruma__ruma__2192
ruma/ruma
2,192
defect
0ecd23c32c58be9328fa5f3e33fe0458cc139213
f6909f83eb9dfd81688c967e5b9bfd544b68ba46
events: relay existing relationships for poll start events
Poll response and end events already did this in `AnyMessageLikeEventContent::relation`, but it was missing for the start events. Fixes https://github.com/ruma/ruma/issues/2191 (I hope). On one side, this seems to be the right thing to do intuitively and fixes the associated issue in the Matrix Rust SDK. On the o...
diff --git a/crates/ruma-events/src/enums.rs b/crates/ruma-events/src/enums.rs index 9e2b66e9f3..77caac404e 100644 --- a/crates/ruma-events/src/enums.rs +++ b/crates/ruma-events/src/enums.rs @@ -2,11 +2,18 @@ use ruma_common::{ serde::from_raw_json_value, EventId, MilliSecondsSinceUnixEpoch, OwnedRoomId, RoomId, ...
2
2
1
[{"id": "G0", "claim": "A regression test should be added covering the new relation mapping for poll start events.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The poll start relation mapping should be simplified by reusing the existing Relation conve...
null
ruma__ruma__2234
ruma/ruma
2,234
defect
c339a64f92783cfaf2dc6a687fa942e414b56da8
49051debf0f43954eb37377325709581d59ce06e
events: Mark base event structs as non-exhaustive
We need this to be able to add fields without it being a breaking change. This fixes the `unstable-msc4319` cargo feature that was non-additive. This is also necessary for #2230. ~~Marking this is a draft for now, because some types can only be constructed through deserialization now, and I want to check if it creat...
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index d755d0e064..43afe3640d 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -3,6 +3,15 @@ Breaking changes: - Upgrade `js_option` to v0.2.0 +- The following structs are now marked as non-exhaustive:...
2
1
1
[{"id": "G0", "claim": "The newly added constructors should take `content` as their last parameter instead of their first.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Constructors were added for only some of the event types rather than all of them, wh...
null
ruma__ruma__2236
ruma/ruma
2,236
defect
304dca2b015a6171ece530fae94003b63bface25
756104c92e808132b1d5acb72681c6b4d2e36e93
events: Remove deprecated method RoomMessageEventContent::set_mentions
It has been deprecated for over a year and is prone to error, `add_mentions` provides a nicer API. <!-- PR checklist, not strictly necessary but generally useful unless you're just fixing a typo or something like that: - Run `cargo xtask ci` locally before posting the PR - Documented public API changes in CH...
diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 43afe3640d..f816f76cb9 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -12,6 +12,7 @@ Breaking changes: Some of them can only be constructed through deserialization. - `InitialStateEvent::n...
1
1
0
[{"id": "G0", "claim": "The doc comment on `m.mentions` added by this pull request is confusing: it reads as if the relation-adding methods would overwrite the mentions, while they actually update them, and it should be explained more clearly.", "category": "documentation", "verdict": "supported", "priority": "P2", "sc...
null
ruma__ruma__2262
ruma/ruma
2,262
defect
7d636a99c27a9f24ea0b36176830aaee35a105f8
fd8758955623f8c86b0230947b071d405dfe76e1
api: Reduce code duplication in custom `(Outgoing/Incoming)Request` implementations
This adds several constants and methods to reduce code duplication, to avoid possible typos and other mistakes. See each commit message for details.
diff --git a/crates/ruma-client-api/src/error.rs b/crates/ruma-client-api/src/error.rs index c578c7bbd9..b3469219be 100644 --- a/crates/ruma-client-api/src/error.rs +++ b/crates/ruma-client-api/src/error.rs @@ -978,7 +978,7 @@ impl OutgoingResponse for Error { self, ) -> Result<http::Response<T>, IntoHttp...
1
1
1
[{"id": "G0", "claim": "Adding the APPLICATION_JSON content-type header to the logout.rs outgoing request while not adding it to logout_all.rs is a mistake; the two custom OutgoingRequest implementations should be consistent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ruma__ruma__2283
ruma/ruma
2,283
defect
a65b5e6ea1dc7829ee1faca5801d2aaffd87ea95
ebf616ad963f9ed234f44051c9c000c23070183d
serde: Allow to set a custom prefix for StringEnum's rename_all attribute
According to the discussion in https://github.com/ruma/ruma/pull/2268#discussion_r2509326501. This will avoid to declare new rules just to add a new prefix used by a single enum. This also removes unused rules or rules that can now be composed with the prefix syntax. Can be reviewed commit by commit.
diff --git a/crates/ruma-common/CHANGELOG.md b/crates/ruma-common/CHANGELOG.md index 68073be434..8ae673d58e 100644 --- a/crates/ruma-common/CHANGELOG.md +++ b/crates/ruma-common/CHANGELOG.md @@ -47,7 +47,13 @@ Breaking changes: `AppserviceUserIdentity` instead of a `UserId`. This allows to specify a device ID, ac...
1
1
0
[{"id": "G0", "claim": "In the new rename_all documentation, the lines after the first should be indented two more spaces so they stay part of the list item's paragraph.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruma__ruma__2338
ruma/ruma
2,338
defect
d8c4d11875c0811df4c46f18ffc4405196b1399f
ee729d186f99ee45136253bbb0b93a5c439cd961
Add optional uniffi feature and turn event types into uniffi enums
Relates to: #2070 This tries to mimic a similar mechanism from matrix-rust-sdk to conditionally add uniffi derives beneath a feature. This spares consumers of ruma that depend on uniffi to duplicate and manually map ruma types. As a test only the derives for the generated event type enums have been changed. I've ...
diff --git a/Cargo.lock b/Cargo.lock index 6d31b6af9a..e74e23acf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,12 +82,60 @@ dependencies = [ "windows-sys 0.60.2", ] +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a80...
9
9
4
[{"id": "G0", "claim": "The uniffi feature needs to be defined on the ruma-events crate, not on ruma-macros, because cfgs inside the macro resolve against the destination crate.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Don't separate the uniffi fea...
null
ruma__ruma__349
ruma/ruma
349
defect
9a4206b1b27a1cb4dbb81310c8ca547f1b45f256
f15b9d7192246938c8c132e944a018a8aa9e51c9
Use `Pdu` on `create_join_event` endpoints
Sending requests to this endpoints to Synapse/Dendrite homeservers leads to some deserialization errors. After claryfing it (matrix-org/matrix-doc#2856), `room_id` and `event_id` fields are expected to appear on request's body and also on path params. It seems that there's some initiative to remove the paramet...
diff --git a/ruma-federation-api/CHANGELOG.md b/ruma-federation-api/CHANGELOG.md index 9c14ffc235..a955c28644 100644 --- a/ruma-federation-api/CHANGELOG.md +++ b/ruma-federation-api/CHANGELOG.md @@ -5,6 +5,7 @@ Breaking Changes: * Replace `directory::get_public_rooms::v1::{PublicRoomsChunk, RoomNetwork}` with types fr...
2
2
0
[{"id": "G0", "claim": "The doc comment on the request body field (\"PDU type without event and room IDs.\") needs to be updated, since the field now carries a full `Pdu` rather than a stub.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `// F...
null
ruma__ruma__418
ruma/ruma
418
defect
ed6e55a22fc9344b29a4a29113602af8fd1888f4
5b2c866e22c2b916915fbae68aa26db92f21f6ee
add `event_type` accessor method to event enums
Closes #414.
diff --git a/ruma-events-macros/src/event_enum.rs b/ruma-events-macros/src/event_enum.rs index 7f33b3dc2b..9bfa1a297b 100644 --- a/ruma-events-macros/src/event_enum.rs +++ b/ruma-events-macros/src/event_enum.rs @@ -711,6 +711,18 @@ fn accessor_methods( let self_variants: Vec<_> = variants.iter().map(|v| v.match_ar...
1
1
0
[{"id": "G0", "claim": "The doc comment on the generated `event_type` accessor should read \"Returns the `type` of this event.\" instead of \"Returns the event type of this event's content\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ruma__ruma__495
ruma/ruma
495
defect
eae0b58163345d02bff80a5b604d0b6b6f0e6b08
83ee893afa0e3550560dc31f162403a702523450
api: OutgoingRequestAppserviceExt trait
Provides `try_into_http_request_with_user_id` method [as discussed](https://matrix.to/#/!veagCdDBjKrMsOCzrq:privacytools.io/$qBxzrWzknip8tCD3Kh006NQTUF6BSsUS_qPQJnu2E6Y?via=flipdot.org&via=matrix.org&via=famedly.de). Couldn't find an easy way to change the query on an `http::Uri`, so it ended up being a bit convolut...
diff --git a/ruma-api/src/lib.rs b/ruma-api/src/lib.rs index 5b1c0565d3..40e43cb614 100644 --- a/ruma-api/src/lib.rs +++ b/ruma-api/src/lib.rs @@ -25,7 +25,7 @@ use std::{ error::Error as StdError, }; -use http::Method; +use http::{uri::PathAndQuery, Method}; /// Generates a `ruma_api::Endpoint` from a conci...
6
4
1
[{"id": "G0", "claim": "The `use ruma_identifiers::UserId;` import should be moved up to after line 28 instead of sitting in the middle of the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`Sized` should be made a supertrait of `OutgoingR...
null
ruma__ruma__553
ruma/ruma
553
defect
6ea55459eb2028c15ed3870545c1fa41480f9847
7b8957c2c965ab08fe09a738cca283429b0deda0
Add non default clippy lints
The `.clippy.toml` file is empty so far not sure what we needed in there. Is there a way to add hidden `\n` to the `.cargo/config` file so I can avoid putting all the lints on the same line? Temporarily resolves #551
diff --git a/.cargo/config b/.cargo/config index d43b6746f9..3343f06953 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,5 +1,6 @@ [alias] xtask = "run --package xtask --" +ruma-clippy = "clippy -p ruma --all-targets --all-features --quiet -- -W clippy::cloned_instead_of_copied -W clippy::dbg_macro -W clippy::emp...
10
8
2
[{"id": "G0", "claim": "Since str_to_string is buggy on macro-generated code, revert the codegen change in ruma-api-macros outgoing.rs and leave the str_to_string lint out of the ruma-clippy alias.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null