Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 12 2021 16:03
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Oct 22 2021 12:59
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Sep 08 2021 07:41
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Jul 29 2021 12:46
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Jul 16 2021 10:43
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Jul 16 2021 10:00
    GitLab | Félix Lescaudey de Maneville pushed to Aragog
  • Jul 16 2021 09:39
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Jul 15 2021 09:22
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Mar 25 2021 12:55
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Mar 15 2021 08:48
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to Aragog
  • Mar 12 2021 16:41
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Mar 12 2021 16:40
    GitLab | Félix Lescaudey de Maneville pushed to aragog
  • Mar 12 2021 16:39
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Mar 12 2021 14:35
    GitLab | Félix Lescaudey de Maneville pushed to aragog
  • Mar 12 2021 09:09
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Feb 22 2021 17:02
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Feb 12 2021 16:58
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Feb 12 2021 14:07
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Feb 09 2021 17:37
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
  • Feb 08 2021 10:44
    GitLab | Félix Lescaudey de Maneville pushed 1 commits to aragog
Félix Lescaudey de Maneville
@ManevilleF

Hello and welcome to the gitter chat related to Aragog and Aragog CLI

Feel free to comment, ask questions or submit any suggestions.

Félix Lescaudey de Maneville
@ManevilleF
0.12.0 Released !
Chris Boyce
@chrisboyce

Any tips on how to set up for running the tests? I have arangodb running and have all the env vars set, and the unit tests are interacting with the DB. I get a number of failed tests (27). They seem to mostly be unique constraint violation like

Conflict(DatabaseError { http_error: Conflict, arango_error: ArangoUniqueConstraintViolated, message: "unique constraint violated - in index by_name of type persistent over 'name'; conflicting key: 3265" })

or missing document like

DatabaseError { http_error: NotFound, arango_error: ArangoDocumentNotFound, message: "document not found" })

which makes me think there some setup or teardown that I'm not doing. This is on master (87b8624) with just running cargo test (after setting the env vars)

(The impetus for this is updating the crate to work with newer versions of tokio)
Félix
@felix.maneville:qonfucius.team
[m]
I suggest cargo test --test-threads=1 which is what we use for the crate tests
Félix
@felix.maneville:qonfucius.team
[m]
About bumping tokio from 0.2 to 1, updating the arangors driver should be enough but aragog becomes incompatible with other libs that still use tokio 0.2, like actix-web for example.
:point_up: Edit: I suggest cargo test --test-threads=1 which is what we use for the crate tests
Félix
@felix.maneville:qonfucius.team
[m]
@chrisboyce: Someone opened a MR for tokio 1 (qonfucius/aragog!94)
Qrnbth
@Qrnbth
fail on installing aragog cli,looks like compilation failed with clap,is there any solution?
Félix
@felix.maneville:qonfucius.team
[m]
We are using the beta version of clap, we need to update to the last release candidate
Félix
@felix.maneville:qonfucius.team
[m]
Fixed in aragog cli 0.5.0
tami5
@tami5
Hey everyone :)
Starting my journey right now aragog. 'managed so far to setup connection and truncate scheme.
is there a data type or something similar or should I just use strings
Félix
@felix.maneville:qonfucius.team
[m]
Hi ! Are you talking about the migration files?
tami5
@tami5
I haven't got to use migrations yet, but I was meaning the struct field types, I endup just using a string for it.
Then aragodb segfulated and stoped experimenting :sob:
Félix
@felix.maneville:qonfucius.team
[m]
Have you read the book ? https://aragog.rs/book/
Félix
@felix.maneville:qonfucius.team
[m]
About the field types, ArangoDB doesn't check anything, every document is basically a JSON file. So just define Record structs on the rust side and it will be handled correctly through aragog's CRUD API
Furqan Anas
@qonn
Hi @felix.maneville:qonfucius.team, trying aragog today, is it possible to use custom _key somehow?
Furqan Anas
@qonn

Owh nvm, It seems that

pub struct Foo {
    #[serde(rename = "_key")]    
    pub key: String,
}

works just fine.

Well apparently I say it too fast. This in turn produce when calling DatabaseRecord::create(...)

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnprocessableEntity { source: Error("missing field `_key`", line: 0, column: 0) }'
Furqan Anas
@qonn
After some further investigation, I now manage to use this as workaround that somehow works.
pub struct Foo {
    #[serde(rename(serialize = "_key", deserialize = "_key"))]
    #[serde(skip_serializing_if = "Option::is_none")] 
    pub key: Option<String>,
}
1 reply
tami5
@tami5

Have you read the book ? https://aragog.rs/book/

Yes, very well written, I learned a lot from it. but I think it is something todo with M1s, arm processor and rosetta that it start segfulating

Félix
@felix.maneville:qonfucius.team
[m]
@qonn: qonfucius/aragog!107 should work
Having a Record set as:
#[derive(Serialize, Deserialize, Debug, Record, Clone)]
pub struct MyRecord {
    #[serde(rename = "_key")]
    pub key: String,
    // pub data: String,
    // ..
}
Robin
@Knittybird
Is there any support for bind parameters in aragog querey?
Félix
@felix.maneville:qonfucius.team
[m]
Not yet, you may use the underlying arangors implementation for now.
I'm going to implement this feature next week and it should be part of the next release
Robin
@Knittybird
Thank you for your reply. We have implemented a temporary bind functionality until it is released. I may be back with more questions as we use Aragog in our pipeline
Félix
@felix.maneville:qonfucius.team
[m]
qonfucius/aragog!109 is the WIP for bind vars