Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CouchDB index support to implicit private data collections #4780

Open
denyeart opened this issue Apr 2, 2024 · 2 comments
Open

Add CouchDB index support to implicit private data collections #4780

denyeart opened this issue Apr 2, 2024 · 2 comments

Comments

@denyeart
Copy link
Contributor

denyeart commented Apr 2, 2024

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

@solo-daemon
Copy link
Contributor

@bkiran6398 are you working on it?

@bkiran6398
Copy link
Contributor

@bkiran6398 are you working on it?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants