MCPcopy Create free account
hub / github.com/alephdata/aleph / assignId

Method assignId

ui/src/components/MappingEditor/MappingList.js:52–55  ·  view source on GitHub ↗
(schema)

Source from the content-addressed store, hash-verified

50 }
51
52 assignId(schema) {
53 const schemaCount = this.getSchemaCount(schema);
54 return schemaCount ? `${schema.name}${schemaCount + 1}` : schema.name;
55 }
56
57 // for pre-existing mappings, generate display label from schema id
58 getLabelFromId(id, schema) {

Callers 1

addMappingMethod · 0.95

Calls 1

getSchemaCountMethod · 0.95

Tested by

no test coverage detected