fix(server-v2): harden real-library compatibility - #85
Conversation
Signed-off-by: InstaZDLL <github.105mh@8shield.net>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughLe changement ajoute l’authentification par jeton ChangesCompatibilité Waveflow v2
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant authenticate
participant Database
Client->>authenticate: Jeton wfapi_
authenticate->>Database: account_by_api_token_hash
Database-->>authenticate: AccessRecord
authenticate-->>Client: Requête authentifiée
sequenceDiagram
participant Client
participant list_tracks
participant browse_tracks_for_user
participant SQL
Client->>list_tracks: offset, limit, query
list_tracks->>browse_tracks_for_user: Paramètres validés
browse_tracks_for_user->>SQL: LIMIT et OFFSET
SQL-->>Client: Pistes paginées
sequenceDiagram
participant Symfonium
participant Subsonic
participant Catalog
Symfonium->>Subsonic: GET ping exact
Subsonic-->>Symfonium: Réponse HTTP 200
Symfonium->>Subsonic: search3 avec requête vide
Subsonic->>Catalog: Recherche complète
Catalog-->>Symfonium: Résultats du catalogue
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Signed-off-by: InstaZDLL <github.105mh@8shield.net>
Signed-off-by: InstaZDLL <github.105mh@8shield.net>
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/M4-handoff.md`:
- Around line 11-14: Synchroniser la section « Ce qui reste » avec le statut M3
déjà déclaré fermé dans le handoff : remplacer les éléments indiquant « Clore M3
», une validation Symfonium incomplète ou une PR encore à fusionner par l’état
réellement finalisé, tout en conservant uniquement les actions encore
pertinentes pour M4.
In `@src/catalog.rs`:
- Around line 621-632: Ajoutez t.id comme critère de tri final dans les clauses
ORDER BY des deux requêtes du bloc rows, après rank pour la recherche FTS et
après t.title COLLATE NOCASE pour la liste normale, afin de garantir un ordre
total avant LIMIT/OFFSET. Ajoutez un test couvrant deux pistes portant le même
titre et vérifiez que leurs identifiants apparaissent sur des pages distinctes.
In `@tests/v2_foundations.rs`:
- Around line 232-237: Replace the direct SQL UPDATE in the test with a Database
token-revocation method that acquires the process-wide writer_guard before
mutating the database. Add or use this method on Database, then update the test
to invoke it while preserving the existing token hash and revocation timestamp
behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 4b9a5bc6-13cf-45c3-88a2-f1bc75f96fa6
📒 Files selected for processing (12)
README.mddocs/M3-symfonium-validation.mddocs/M4-handoff.mddocs/rfcs/RFC-002-waveflow-server-v2.mddocs/subsonic-compatibility.mdsrc/authentication.rssrc/catalog.rssrc/database.rssrc/http.rssrc/main.rssrc/subsonic.rstests/v2_foundations.rs
Signed-off-by: InstaZDLL <github.105mh@8shield.net>
Résumé
getBookmarksetsearch3 query=""wfapi_utilisables par/api/v2, avec révocation, expiration, compte désactivé et suivi d'utilisation amortiValidation
bun --cwd=webapp run test(5 tests)bun --cwd=webapp run buildcargo fmt --all --checkcargo clippy --all-targets --all-features -- -D warningscargo check --all-targets --all-featurescargo test --all-features(33 tests)Notes
Cargo.locketbun.locklocaux sont volontairement exclusSummary by CodeRabbit
Nouvelles fonctionnalités
offsetetlimit, jusqu’à 500 résultats par requête.Corrections
Documentation