Skip to content

Conversation

@damian-molinski
Copy link
Contributor

@damian-molinski damian-molinski commented Nov 28, 2025

Description

This PR updates, and finishes, db migration to signed docs 0.0.4 format (parameters and collaborators)

Related Issue(s)

Resolves #3769

Description of Changes

  • Adds DocumentCollaborators and DocumentParameters tables for fast join lookups
  • Updates queries in DocumentsV2Dao, LocalDraftDocumentsV2Dao and ProposalsV2Dao to work with parameters
  • Updates migration and removes old tables
  • DocumentRefDto now have additional format "Flatten". It's used to encode/decode parameters from documents_v2 and local_documents_drafts columns where it's also stored for easier reading

Related Pull Requests

Please confirm the following checks

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream module

@damian-molinski damian-molinski self-assigned this Nov 28, 2025
@damian-molinski damian-molinski added the squad: face Frontend Catalyst Experience Team label Nov 28, 2025
@damian-molinski damian-molinski moved this from New to 🏗 In progress in Catalyst Nov 28, 2025
@damian-molinski damian-molinski marked this pull request as ready for review December 2, 2025 11:55
@damian-molinski damian-molinski moved this from 🏗 In progress to 👀 In review in Catalyst Dec 2, 2025
damian-molinski and others added 4 commits December 2, 2025 13:03
….com:input-output-hk/catalyst-voices into feat/db_collaborators_adjustments_3769_part2
Copy link
Contributor

@dt-iohk dt-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. There were other comments for minor stuff, consider it approved once you address them

@damian-molinski damian-molinski merged commit 26f1448 into feat/db_collaborators_adjustments_3769 Dec 4, 2025
40 checks passed
@damian-molinski damian-molinski deleted the feat/db_collaborators_adjustments_3769_part2 branch December 4, 2025 12:09
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Catalyst Dec 4, 2025
damian-molinski added a commit that referenced this pull request Dec 5, 2025
* chore: port over parameters changes

* feat(cat-voices): adjust database to signed docs 0.0.4 (#3791)

* tables

* wip

* proposals dao tests

* bump db schema

* db index name fix

* migration -> use createAll()

* update migration

* update migration

* chore: remove print

* update ref dto flatten implementation

* migration toFlatten()

* fix: proposals dao

* fix: documents dao and local drafts dao

* chore: clean up TODO

* fix: failing tests

* chore: markdown order

* web: skips for db tests

* fix: db tests on web

* fix: analyzer

* unskip tests

* rename

* CatalystId.toUri -> CatalystId.toString

* use same instead of identical

* use hasLength

* metadata dao tests

* use hasLength in documents v2 dao

* feat: use hasLength in proposals v2 dao tests

* fix(cat-voices): storing catIds with coma usernames (#3813)

* tables

* wip

* proposals dao tests

* bump db schema

* db index name fix

* migration -> use createAll()

* update migration

* update migration

* chore: remove print

* update ref dto flatten implementation

* migration toFlatten()

* fix: proposals dao

* fix: documents dao and local drafts dao

* chore: clean up TODO

* fix: failing tests

* chore: markdown order

* web: skips for db tests

* fix: db tests on web

* fix: analyzer

* unskip tests

* chore: use converters

* update tests

* hello world test

* fix: documents dao hasLength

* feat(cat-voices): filtering proposals by original author (#3810)

* tables

* wip

* proposals dao tests

* bump db schema

* db index name fix

* migration -> use createAll()

* update migration

* update migration

* chore: remove print

* update ref dto flatten implementation

* migration toFlatten()

* fix: proposals dao

* fix: documents dao and local drafts dao

* chore: clean up TODO

* fix: failing tests

* chore: markdown order

* web: skips for db tests

* fix: db tests on web

* fix: analyzer

* unskip tests

* feat: filtering author on first version

* change filter name from author to originalAuthor

* Adds originalAuthor filter to documentsDao

* authorId -> originalAuthorId

* originalAuthors

* fix: spelling

* use authors from documents for originalAuthors

* feat(cat-voices): validating proposal submission action author (#3814)

* tables

* wip

* proposals dao tests

* bump db schema

* db index name fix

* migration -> use createAll()

* update migration

* update migration

* chore: remove print

* update ref dto flatten implementation

* migration toFlatten()

* fix: proposals dao

* fix: documents dao and local drafts dao

* chore: clean up TODO

* fix: failing tests

* chore: markdown order

* web: skips for db tests

* fix: db tests on web

* fix: analyzer

* unskip tests

* feat: filtering author on first version

* change filter name from author to originalAuthor

* Adds originalAuthor filter to documentsDao

* authorId -> originalAuthorId

* originalAuthors

* fix: spelling

* docs

* use authors from documents for originalAuthors

* fix: campaign total ask tests

* fix: proposals dao tests

* test: proposals dao authors

* fix: spelling

* chore: extract _getValidActionsCTE()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squad: face Frontend Catalyst Experience Team

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants