fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Add CouchDB index support to implicit private data collections

Open denyeart opened this issue 10 months ago • 2 comments

Current Status

Defining a CouchDB index in a chaincode for an implicit private data collection such as: META-INF/statedb/couchdb/collections/_implicit_org_Org1MSP/indexes

results in error:

[privacyenabledstate] HandleChaincodeDeploy -> ERRO 4e9 Error processing index for chaincode [marblesp]: cannot create an index for an undefined collection=[_implicit_org_Org1MSP]

Expected

This story has two variants:

  • In the chaincode definition, define a CouchDB index for a specific named organization's implicit private data collection
  • In the chaincode definition, define a CouchDB index for all organization's implicit private data collections

  Acceptance

  • Index created for named organization upon chaincode deployment.
  • Index created for each organization upon creation of their implicit private data collection state database (occurs upon first write to an org's collection).

Solution

No response

Please let us know if you plan to work on this.

No response

denyeart avatar Apr 02 '24 14:04 denyeart

@bkiran6398 are you working on it?

solo-daemon avatar Apr 03 '24 16:04 solo-daemon

@bkiran6398 are you working on it?

Hello @solo-daemon , Yes I am working on this feature.

bkiran6398 avatar Apr 03 '24 16:04 bkiran6398