fix: tests authentication, clippy warnings, fmt, and update readme #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jairo/Luma!1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/tests-clippy-fmt-readme-6974431928732619030"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR addresses several maintenance tasks for Luma:
Fix Failing Tests:
tests/auth_ttl_sse_gap.rs,tests/http_state_vector.rs,tests/sqlite_api.rs,tests/sse.rs) to properly authenticate requests by appending?api_key=test. Previously, these tests were failing with 401 Unauthorized (causing assertion failures onresp.status().is_success()).PathBufimports in test files.Fix Clippy Warnings:
redundant_field_namesinsrc/api/routes_vector.rs.#[allow(dead_code)]to the unusedsearchfield inMetaEngine(src/engine/meta.rs), as it is intended for future use.while let->for) and matches (match->matches!) insrc/config.rsandsrc/search/engine.rs.strip_prefixinsrc/search/engine.rs.OrdandPartialOrdfor structs containing floats (ScoredDoc,ScoredOffset,VisitState) to satisfyclippy::non_canonical_partial_ord_impl.or_default()instead ofor_insert_with(BinaryHeap::new)insrc/search/grouping.rs.src/sqlite/mod.rs.load_collectioninsrc/vector/persist.rsto return aCollectionDatastruct instead of a complex tuple, resolvingclippy::type_complexity. Updated call sites insrc/vector/mod.rs.let...elseto?operator insrc/vector/mod.rs.Code Formatting:
cargo fmtto enforce standard Rust formatting.Update Documentation:
README.md(in Spanish) to accurately reflect the current "Convergent Data Engine" architecture, detailing the Vector Engine, Full-Text Search, KV Store, Event Bus, and SQLite integration. Added instructions for running the server and tests.Verification:
cargo testpasses (all tests).cargo clippyis clean.cargo fmt --checkpasses.PR created automatically by Jules for task 6974431928732619030 started by @Jairodaniel-17
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.
When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.
I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!
For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with
@jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!New to Jules? Learn more at jules.google/docs.
For security, I will only act on instructions from the user who triggered this task.
Pull request closed