Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions catalyst-gateway/bin/src/db/event/signed_docs/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@ async fn filter_by_type(
}
}

/// Pre-seeded documents `f14.sql`, `f15.sql`, `old_format_signed_doc.sql` and
/// `test_signed_documents.sql`
const PRE_SEED_DATA: usize = 57;
/// Pre-seeded documents `f14.sql`, `f15.sql`, `old_format_signed_doc.sql`
const PRE_SEED_DATA: usize = 55;

async fn filter_all(docs: &[FullSignedDoc]) {
let filter = DocsQueryFilter::all();
Expand Down
32 changes: 0 additions & 32 deletions catalyst-gateway/event-db/seed/test_signed_documents.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

@pytest.mark.preprod_indexing
def test_document_put_and_get_endpoints(proposal_doc_factory, rbac_chain_factory):
(proposal_doc, role_id) = proposal_doc_factory()
rbac_chain = rbac_chain_factory()
(proposal_doc, role_id) = proposal_doc_factory()
(cat_id, sk_hex) = rbac_chain.cat_id_for_role(role_id)
proposal_doc_id = proposal_doc.metadata["id"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def deprecated_proposal(rbac_chain):
"ver": "0194d490-30bf-7473-81c8-a0eaef369619",
},
}
with open("./test_data/signed_docs/proposal.json", "r") as json_file:
with open("./test_data/signed_docs/proposal.deprecated.json", "r") as json_file:
content = json.load(json_file)

doc = SignedDocumentV1(proposal_metadata_json, content)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"content-encoding": "br",
"content-type": "application/json",
"id": "0199802c-21b4-7dc8-8537-7eae5ea4c4d3",
"parameters": [
{
"cid": "0x",
"id": "0199802c-21b4-7d91-986d-0e913cd81391",
"ver": "0199802c-21b4-7d91-986d-0e913cd81391"
}
],
"type": "48c20109-362a-4d32-9bba-e0a9cf8b45be",
"ver": "0199802c-21b4-7dc8-8537-7eae5ea4c4d3"
},
{}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[
{
"content-encoding": "br",
"content-type": "application/json",
"id": "0199802c-21b4-7b2c-aafd-0af557e8408c",
"parameters": [
{
"cid": "0x",
"id": "0199802c-21b4-721f-aa1d-5123b006879e",
"ver": "0199802c-21b4-721f-aa1d-5123b006879e"
}
],
"type": "0b8424d4-ebfd-46e3-9577-1775a69d290c",
"ver": "0199802c-21b4-7b2c-aafd-0af557e8408c"
},
{
"$id": "https://cardano.org/schemas/catalyst/comments",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"multiLineTextEntry": {
"$comment": "UI - Multiline text entry without any markup or rich text capability.",
"pattern": "^[\\S\\s]+$",
"type": "string",
"x-note": "Enter multiple lines of plain text. You can use line breaks but no special formatting."
}
},
"description": "Schema for comments on Catalyst proposals",
"maintainers": [
{
"name": "Catalyst Team",
"url": "https://projectcatalyst.io/"
}
],
"properties": {
"comment": {
"description": "The comments on the proposal",
"properties": {
"content": {
"$ref": "#/definitions/multiLineTextEntry",
"description": "The comment text content",
"maxLength": 2000,
"minLength": 1
}
},
"required": [
"content"
],
"type": "object"
}
},
"required": [
"comment"
],
"title": "Proposal Comments Schema",
"type": "object",
"x-changelog": {
"2025-06-16": [
"Updating maxLength for content text"
]
}
}
]
Loading
Loading