Skip to content

Fix Class import for AnonCreds Registry routes#3495

Merged
jamshale merged 8 commits intoopenwallet-foundation:mainfrom
OpSecId:fix-anoncreds-revocation-active-routes
Feb 6, 2025
Merged

Fix Class import for AnonCreds Registry routes#3495
jamshale merged 8 commits intoopenwallet-foundation:mainfrom
OpSecId:fix-anoncreds-revocation-active-routes

Conversation

@PatStLouis
Copy link
Copy Markdown
Contributor

The wrong validator was being imported for 2 of the AnonCreds revocation management routes, validating the ID against the indy method.

…ds routes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
@PatStLouis PatStLouis requested review from ianco and jamshale February 6, 2025 22:14
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
@jamshale
Copy link
Copy Markdown
Contributor

jamshale commented Feb 6, 2025

I noticed another stupid mistake here

INDY_CRED_REV_ID_EXAMPLE,

Could you fix this as part of this PR.

@jamshale
Copy link
Copy Markdown
Contributor

jamshale commented Feb 6, 2025

Actually. Forget that comment. I see that those are the same. Should be renamed but not important.

@jamshale
Copy link
Copy Markdown
Contributor

jamshale commented Feb 6, 2025

Interop tests have been a problem today. This is small enough I can merge it without them passing.

@PatStLouis
Copy link
Copy Markdown
Contributor Author

@jamshale I'm not sure what a cred_rev_id is and there doesn't seem to be the equivalent for anoncreds. I'll investigate

@jamshale
Copy link
Copy Markdown
Contributor

jamshale commented Feb 6, 2025

@PatStLouis You can ignore that. It could be renamed to remove the INDY'ism but the cred_rev_id object is the same in anoncreds and indy.

@PatStLouis
Copy link
Copy Markdown
Contributor Author

@jamshale there seems to be a circular import issue, I'll look into it

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
@PatStLouis
Copy link
Copy Markdown
Contributor Author

@jamshale I've renamed them for consistency's sake

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 6, 2025

@jamshale jamshale merged commit f0c62cb into openwallet-foundation:main Feb 6, 2025
10 of 11 checks passed
ff137 pushed a commit to didx-xyz/acapy that referenced this pull request Feb 13, 2025
…#3495)

* Import the anoncreds revocation registry ID validator for the anoncreds routes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* Linting

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* Add AnonCreds Cred Rev ID values

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* rename anoncreds revocation openapi classes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* linting

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* rename anoncreds revocation openapi classes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* update test fixtures

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* Lint

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

---------

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
ff137 pushed a commit to didx-xyz/acapy that referenced this pull request Feb 13, 2025
…#3495)

* Import the anoncreds revocation registry ID validator for the anoncreds routes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* Linting

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* Add AnonCreds Cred Rev ID values

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* rename anoncreds revocation openapi classes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* linting

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* rename anoncreds revocation openapi classes

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* update test fixtures

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

* Lint

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>

---------

Signed-off-by: PatStLouis <patrick.st-louis@opsecid.ca>
@PatStLouis PatStLouis deleted the fix-anoncreds-revocation-active-routes branch October 14, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants