hyperledger / hyperledger/fabric

Add CouchDB index support to implicit private data collections

Open
#4,780 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.