feat: workspace invite (#4827)

* feat: add rename and change icon for workspace cloud api

* feat: added created at field for UserWorkspacePB

* test: added view check after creating workspace

* fix: allow new_icon to be empty string

* feat: add invitation api cloud services

* chore: cargo clippy

* chore: merge conflict

* feat: add workspace invitation test

* fix: use back old role and af role

* chore: use 1.75 channel rust toolchain

* chore: added error for test case

* chore: added ci var

* chore: cargo clippy
This commit is contained in:
Zack
2024-04-11 14:47:34 +08:00
committed by GitHub
parent b51ff318a1
commit 828f312294
13 changed files with 379 additions and 34 deletions

View File

@ -69,7 +69,7 @@ impl CalculationsService {
}
}
fn median(array: &Vec<f64>) -> f64 {
fn median(array: &[f64]) -> f64 {
if (array.len() % 2) == 0 {
let left = array.len() / 2 - 1;
let right = array.len() / 2;