Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(just): sqlx and check just commands (#4772)

Will Hutchinson8abc337653a4
diff --git a/.sqlx/query-00f5c74ee659c3676ea06b0fd5e3ad33905202426458176b9ba7ea8ac99fc3ee.json b/.sqlx/query-00f5c74ee659c3676ea06b0fd5e3ad33905202426458176b9ba7ea8ac99fc3ee.json
new file mode 100644
index 0000000000..f6e849768f
--- /dev/null
+++ b/.sqlx/query-00f5c74ee659c3676ea06b0fd5e3ad33905202426458176b9ba7ea8ac99fc3ee.json
@@ -0,0 +1,20 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT COUNT(*)\n FROM \"DocumentInstanceModificationData\" dimd\n WHERE \n dimd.\"modificationData\" -> 'highlights' IS NOT NULL\n AND jsonb_typeof(dimd.\"modificationData\" -> 'highlights') = 'object'\n AND dimd.\"modificationData\" -> 'highlights' != '{}';\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "count",
+ "type_info": "Int8"
+ }
+ ],
+ "parameters": {
+ "Left": []
+ },
+ "nullable": [
+ null
+ ]
+ },
+ "hash": "00f5c74ee659c3676ea06b0fd5e3ad33905202426458176b9ba7ea8ac99fc3ee"
+}
diff --git a/.sqlx/query-8650979421df05be29af8d8b21c16cd01dbdbdbad7cce1333ee8b45d1f55cdfb.json b/.sqlx/query-8650979421df05be29af8d8b21c16cd01dbdbdbad7cce1333ee8b45d1f55cdfb.json
new file mode 100644
index 0000000000..3bf9054a8a
--- /dev/null
+++ b/.sqlx/query-8650979421df05be29af8d8b21c16cd01dbdbdbad7cce1333ee8b45d1f55cdfb.json
@@ -0,0 +1,20 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT COUNT(*)\n FROM \"DocumentInstanceModificationData\",\n jsonb_array_elements(\"modificationData\"->'placeables') AS placeable\n WHERE placeable->>'payloadType' = 'thread';\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "count",
+ "type_info": "Int8"
+ }
+ ],
+ "parameters": {
+ "Left": []
+ },
+ "nullable": [
+ null
+ ]
+ },
+ "hash": "8650979421df05be29af8d8b21c16cd01dbdbdbad7cce1333ee8b45d1f55cdfb"
+}
diff --git a/.sqlx/query-effa102b8b4009d40fb90ed8471199aae934ce6e23a5b8c5dc7d2cd0c4c8577a.json b/.sqlx/query-effa102b8b4009d40fb90ed8471199aae934ce6e23a5b8c5dc7d2cd0c4c8577a.json
new file mode 100644
index 0000000000..b699ae57f9
--- /dev/null
+++ b/.sqlx/query-effa102b8b4009d40fb90ed8471199aae934ce6e23a5b8c5dc7d2cd0c4c8577a.json
@@ -0,0 +1,20 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT \"modificationData\" as \"modification_data\"\n FROM \"DocumentInstanceModificationData\"\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "modification_data",
+ "type_info": "Jsonb"
+ }
+ ],
+ "parameters": {
+ "Left": []
+ },
+ "nullable": [
+ false
+ ]
+ },
+ "hash": "effa102b8b4009d40fb90ed8471199aae934ce6e23a5b8c5dc7d2cd0c4c8577a"
+}
diff --git a/tooling/just/rust.just b/tooling/just/rust.just
index ea67b0f262..b6e99f0996 100644
--- a/tooling/just/rust.just
+++ b/tooling/just/rust.just
@@ -3,7 +3,8 @@ import './database.just'
mod sqlx './sqlx.just'
rust-check:
- RUSTFLAGS=-Dwarnings RUSTDOCFLAGS=-Dwarnings CARGO_TERM_COLOR=always SQLX_OFFLINE=true cargo check
+ RUSTFLAGS=-Dwarnings RUSTDOCFLAGS=-Dwarnings CARGO_TERM_COLOR=always SQLX_OFFLINE=true cargo check --workspace --all-features --exclude test_build_full_pdf_modification_data --exclude test_pdf_modification_data_deserialize --exclude sync_service
+ RUSTFLAGS="-Dwarnings -Dclippy::disallowed_methods" RUSTDOCFLAGS=-Dwarnings CARGO_TERM_COLOR=always SQLX_OFFLINE=true cargo check -p sync_service
clippy:
RUSTFLAGS="-Dwarnings -Dclippy::disallowed_methods" RUSTDOCFLAGS=-Dwarnings CARGO_TERM_COLOR=always SQLX_OFFLINE=true cargo clippy --workspace --all-features --exclude sync_service --exclude test_build_full_pdf_modification_data --exclude test_pdf_modification_data_deserialize
diff --git a/tooling/just/sqlx.just b/tooling/just/sqlx.just
index 2af8030257..1dcb5ff6c5 100644
--- a/tooling/just/sqlx.just
+++ b/tooling/just/sqlx.just
@@ -12,7 +12,7 @@ migrate_db $DATABASE_URL:
[no-cd]
prepare_db $DATABASE_URL *FLAGS:
- cargo sqlx prepare --workspace -- {{ FLAGS }} --all-features
+ cargo sqlx prepare --workspace -- {{ FLAGS }} --workspace --exclude sync_service --all-features
[no-cd]
drop_db $DATABASE_URL *FLAGS: