Skip to content

Conversation

damian-molinski
Copy link
Contributor

@damian-molinski damian-molinski commented May 16, 2025

Description

Accepts CoseHeaders.type list value and and converts DocumentType to support a list instead of single value.

Based on specs (link)

Related Issue(s)

Resolves #2579

Description of Changes

Converts DocumentType enum into class for supporting multiple values.
Note. note enum so we can supporty partially known types or dynamic definisions.

Breaking changes

FE will start sending type as CborList so backend have to be ready.

Related PRs

BE:
input-output-hk/catalyst-libs#338
input-output-hk/catalyst-libs#356

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 May 16, 2025
@damian-molinski damian-molinski added the dart Pull requests that update Dart code label May 16, 2025
@damian-molinski damian-molinski moved this from New to 🏗 In progress in Catalyst May 16, 2025
Copy link
Contributor

github-actions bot commented May 17, 2025

Test Report | ${\color{lightgreen}Pass: 812/816}$ | ${\color{red}Fail: 0/816}$ |

@damian-molinski damian-molinski changed the title feat(cat-voice): Multi value DocumentType feat(cat-voice): DocumentType list value May 19, 2025
@damian-molinski damian-molinski changed the title feat(cat-voice): DocumentType list value feat(cat-voices): DocumentType list value May 19, 2025
@damian-molinski damian-molinski added do not merge yet PR is not ready to be merged yet review me PR is ready for review labels May 19, 2025
dt-iohk
dt-iohk previously approved these changes May 20, 2025
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

@damian-molinski damian-molinski moved this from 🏗 In progress to 🛑 Blocked in Catalyst Jun 5, 2025
@bkioshn bkioshn mentioned this pull request Jun 9, 2025
10 tasks
* fix(cat-gateway): modify doc type

Signed-off-by: bkioshn <[email protected]>

* fix(cat-gateway): change from list string to list uuid

Signed-off-by: bkioshn <[email protected]>

* fix(cat-gateway): remove unused func in doctype

Signed-off-by: bkioshn <[email protected]>

* fix(cat-gateway): use old doctype

Signed-off-by: bkioshn <[email protected]>

* fix(cat-gateway): use impl array for doctype

Signed-off-by: bkioshn <[email protected]>

* fix(cat-gateway): improve doctype

Signed-off-by: bkioshn <[email protected]>

---------

Signed-off-by: bkioshn <[email protected]>
@damian-molinski damian-molinski added squad: gatekeepers Catalyst App Backend, System Development & Integration Team and removed dart Pull requests that update Dart code review me PR is ready for review labels Jun 18, 2025
@bkioshn
Copy link
Contributor

bkioshn commented Jun 18, 2025

DO NOT MERGE this feature

Once this feature can be merged, the following task need to be done before merge.

  • Update cargo.toml (properly tag cat lib)
  • Local testing

CREATE TABLE IF NOT EXISTS signed_docs (
id UUID NOT NULL, -- UUID v7
ver UUID NOT NULL, -- UUID v7
type UUID NOT NULL, -- UUID v4
type UUID [] NOT NULL, -- List of UUID v4
Copy link
Collaborator

Choose a reason for hiding this comment

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

NAK. Can't change schema like this. Requires a V3_update_signed_docs.sql which performs a table modification of this one column. And it needs to be able to migrate the data.

@github-project-automation github-project-automation bot moved this from 🛑 Blocked to 🔖 Ready in Catalyst Jul 10, 2025
@github-actions github-actions bot deleted the feat/multi_type_document branch August 4, 2025 06:04
@damian-molinski damian-molinski added the no-track Used to skip tracking in Swarmia analytics, etc. label Aug 11, 2025
@Mr-Leshiy Mr-Leshiy closed this Aug 15, 2025
@github-project-automation github-project-automation bot moved this from 🔖 Ready to 🔬 Ready For QA in Catalyst Aug 15, 2025
@Mr-Leshiy Mr-Leshiy moved this from 🔬 Ready For QA to ✅ Done in Catalyst Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge yet PR is not ready to be merged yet no-track Used to skip tracking in Swarmia analytics, etc. squad: face Frontend Catalyst Experience Team squad: gatekeepers Catalyst App Backend, System Development & Integration Team
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Support DocumentType list value
5 participants