Commit Graph

15 Commits

Author SHA1 Message Date
Arnaud Gourlay
570597ee32 Fix Clippy 1.87 bis (#6518) 2025-05-22 23:10:13 +02:00
Tim Visée
8ad2b34265 Bump Rust edition to 2024 (#6042)
* Bump Rust edition to 2024

* gen is a reserved keyword now

* Remove ref mut on references

* Mark extern C as unsafe

* Wrap unsafe function bodies in unsafe block

* Geo hash implements Copy, don't reference but pass by value instead

* Replace secluded self import with parent

* Update execute_cluster_read_operation with new match semantics

* Fix lifetime issue

* Replace map_or with is_none_or

* set_var is unsafe now

* Reformat
2025-03-21 11:38:56 +01:00
Arnaud Gourlay
b6ace97e95 Fix clippy 1.84 (#5735) 2025-01-08 14:11:13 +01:00
Andrey Vasnetsov
0b9f1df0fd allow to read related issues with collection-level access (#5609)
* allow to read related issues with collection-level access

* refactor to use requirements

* patch test

---------

Co-authored-by: Luis Cossío <luis.cossio@outlook.com>
2025-01-08 14:00:54 +01:00
Luis Cossío
6585d61b6a make broker test independent of a global dashboard (#4240) 2024-05-26 12:32:11 +02:00
Luis Cossío
2701cf1d18 Issues API: Unindexed fields (#4139)
* submit an issue for unindexed field

solve unindexed field issue when an index is created for the field

also log a warning when issue is submitted

fmt

fix rebase problems

get collection name without panicking

better solving of issue

remove outdated TODO

add tests, fix GET /issues

review fixes

use `/` instead of `.` as separator

fmt

prepare extractor for time-based submission

smol rename

add check in search

hook unindexed field creation in search and search_batch of rest

update after rebase on `dev`

remove submit from `struct_payload_index`

solve issues inside of handlers, not in match router

post-process at Collection level

don't clone filters

remove from openapi spec

- Add hidden env variable to adjust slow search threshold
- Remove Solution::None
- Fix UnindexedField issue extractor
- Add endpoint to openapi, but without response body spec
- Move integration test to consensus_tests to set lower threshold

* event-based integration

* use typed Code

* remove payload_index_schema hack, get through collection info

* rename `notify` to `publish`

* update after rebase

* remove breakpoint

* update after rebase

* attach current payload schema to SlowQueryEvent

* collect filters refs lazily

* review fixes

* review fixes

* use regular config for setting the threshold, use 1.2 secs as default

* fix checking against current schema for all conditions
2024-05-26 12:16:45 +02:00
xzfc
8fe5e43764 Introduce Cargo feature "testing" (#4192) 2024-05-09 14:27:37 +02:00
Luis Cossío
b9a1b466f3 Issues API: Listen for issues events in main app (#4123)
* listen for issues events in main app

* don't setup subscribers if `issues` feature is disabled

* Revert "don't setup subscribers if `issues` feature is disabled"

This reverts commit 6754537dd51faa8ebc6f96d03f83b98f2c01c497.
2024-05-02 19:20:28 +02:00
Arnaud Gourlay
eeb419593e Remove outdated rustdoc for Issue module (#4141) 2024-05-02 19:19:19 +02:00
Arnaud Gourlay
854d54ec62 Proactively fix lints for Clippy 1.78 (#4140) 2024-05-02 19:19:13 +02:00
Luis Cossío
a980d2151f Issues API: Event-driven issue framework (#4086)
* update issues crate from unindexed-field-issue-integration branch

* add EventBroker, update Dashboard::solve_by_filter

* Update outdated comment

* better example use

* use composite `Code` type to remove inverted index

* rename `EventBroker::notify` to `EventBroker::publish`

* remove `publish_async`

* review fixes

* rename `Code::from_issue` to `Code::of`
2024-05-02 19:18:12 +02:00
xzfc
d50ec6c87c Drop unused Deserialize (#3680) 2024-03-05 17:12:14 +01:00
Luis Cossío
049795ac0a Issues API: Interface: get issues (#3502)
* add `/issues` endpoint

* generate openapi spec

* fmt

* fix read only patterns test

* list under beta tag, update tags descriptions.
2024-03-05 17:08:20 +01:00
Luis Cossío
b503e6da47 refactor test to remove thread::sleep (#3587) 2024-03-05 17:06:12 +01:00
Luis Cossío
48b5e39675 Issues API: internal crate (#3375) 2024-03-05 17:04:15 +01:00