-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Untagged operation format & schema validation #235
Conversation
On the off chance it's related, I'm gunna pull the e2e test out of this PR into it's own. 👍 |
Hmn .. none of these errors are related to the e2e test |
|
Booo, I just got similar errors:
Which vanished on a second run 😭 |
(That was after removing the e2e test) |
When it happens, it seems likely |
Hmm, every test I've seen fail has been using the |
Maybe increasing the |
Fingers crossed, I think that was it. Also in the |
@@ -0,0 +1,402 @@ | |||
// SPDX-License-Identifier: AGPL-3.0-or-later | |||
|
|||
//! E2E test and mini-tutorial for aquadoggo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very beautiful! 🌹
I've renamed the file to tests.rs
as the place of the file in the root already indicates that it is "end-to-end".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesssssss, this is the final step and it looks great! おつかれさまでした!
I think all other things can be easily tackled in sub-sequent steps, for now its just important that we have everything in place ✨
Small bummer: I continue having some failing cases when running tests .. much more rare now though. I propose fixing this in another PR though as this is not the scope of this one. I changed the target branch to development
for now 👍
---- graphql::client::dynamic_types::tests::application_schema_fields_type stdout ----
-------------- TEST START --------------
thread 'graphql::client::dynamic_types::tests::application_schema_fields_type' panicked at 'assertion failed: `(left == right)`
left: `Object({Name("schemaFields"): Null})`,
right: `Object({Name("schemaFields"): Object({Name("description"): String("Data fields available on documents of this schema."), Name("fields"): List([Object({Name("name"): String("bool_field"), Name("type"): Object({Name("kind"): String("SCALAR"), Name("name"): String("Boolean")})}), Object({Name("name"): String("list_field"), Name("type"): Object({Name("kind"): String("LIST"), Name("name"): Null})}), Object({Name("name"): String("relation_field"), Name("type"): Object({Name("kind"): String("OBJECT"), Name("name"): String("schema_definition_v1")})})])})})`:
[]
', aquadoggo/src/graphql/client/dynamic_types/tests.rs:216:9
.. and the good old:
thread 'graphql::client::dynamic_query::test::single_query' panicked at 'assertion failed: `(left == right)`
left: `Null`,
right: `Object({Name("byViewId"): Object({Name("fields"): Object({Name("bool"): Boolean(true)})}), Name("byDocumentId"): Object({Name("fields"): Object({Name("bool"): Boolean(true)})})})`: [
ServerError {
message: "Unknown field \"schema_name_0020b26f0944a65929c85f9008dfe0de57b3a6b992e398b421a03d5f405964b89617\" on type \"QueryRoot\".",
locations: [
Pos(2:17),
],
path: [],
extensions: None,
},
ServerError {
message: "Unknown field \"schema_name_0020b26f0944a65929c85f9008dfe0de57b3a6b992e398b421a03d5f405964b89617\" on type \"QueryRoot\".",
locations: [
Pos(5:17),
],
path: [],
extensions: None,
},
]', aquadoggo/src/graphql/client/dynamic_query.rs:440:13
👏👏👏👏🥳🥳🥳 |
Integrate new API for the "monster" p2panda/p2panda#415 including some changes needed for this PR here p2panda/p2panda#434
domain
methods to use new validation methodspublish
EncodedEntry
+EncodedOperation
in gql scalar traitssend_to_store
etc...publish
nextEntryArgs
to accept a document view idNext up
async-graphql
panics when DocumentId scalar is not included innextArgs
query args definition #242📋 Checklist
CHANGELOG.md