You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to integrate the current beta version of the notebook through MCP, but some interfaces on the GMS page did not respond. It feels like some task caused the lag
This is my test code snippet: @test
public void testNotebookAdd() {
NotebookInfo notebookInfo = new NotebookInfo();
NotebookInfo.setDescription ("Test Workbook");
NotebookInfo.setTitle ("Test Workbook Notebook");
notebookInfo.setExternalUrl(new Url("www.baidu.com"));
ChangeAuditStamps changeAuditStamps = new ChangeAuditStamps();
AuditStamp auditStamp = new AuditStamp();
auditStamp.setActor(UrnUtils.getUrn("urn:li:corpuser:datahub"));
auditStamp.setTime(System.currentTimeMillis());
changeAuditStamps.setCreated(auditStamp);
changeAuditStamps.setLastModified(auditStamp);
changeAuditStamps.setDeleted(auditStamp);
notebookInfo.setChangeAuditStamps(changeAuditStamps);
MetadataWriteResponse response = restEmitterProvider.syncMetadata2DhPlatform("notebook", "urn:li:notebook:(verse-workbook,14)", notebookInfo);
InstitutionalMemory institutionalMemory = new InstitutionalMemory();
InstitutionalMemoryMetadataArray institutionalMemoryMetadataArray = new InstitutionalMemoryMetadataArray();
InstitutionalMemoryMetadata institutionalMemoryMetadata = new InstitutionalMemoryMetadata();
institutionalMemoryMetadata.setUrl(new Url("www.baidu.com"));
InstitutionalMemoryMetadata. setDescription ("Baidu Website");
institutionalMemoryMetadata.setCreateStamp(auditStamp);
institutionalMemoryMetadataArray.add(institutionalMemoryMetadata);
institutionalMemory.setElements(institutionalMemoryMetadataArray);
MetadataWriteResponse response2 = restEmitterProvider.syncMetadata2DhPlatform("notebook", "urn:li:notebook:(verse-workbook,14)", institutionalMemory);
}
The text was updated successfully, but these errors were encountered:
Do you mind providing the datahub-gms log trace related to the error you're encountering? It should provide some hint about what is wrong here... Also, can you provide a bit more detail about what is happening inside of "syncMetadata2DhPlatform" function call?
I tried to integrate the current beta version of the notebook through MCP, but some interfaces on the GMS page did not respond. It feels like some task caused the lag
This is my test code snippet:
@test
public void testNotebookAdd() {
NotebookInfo notebookInfo = new NotebookInfo();
NotebookInfo.setDescription ("Test Workbook");
NotebookInfo.setTitle ("Test Workbook Notebook");
notebookInfo.setExternalUrl(new Url("www.baidu.com"));
ChangeAuditStamps changeAuditStamps = new ChangeAuditStamps();
AuditStamp auditStamp = new AuditStamp();
auditStamp.setActor(UrnUtils.getUrn("urn:li:corpuser:datahub"));
auditStamp.setTime(System.currentTimeMillis());
changeAuditStamps.setCreated(auditStamp);
changeAuditStamps.setLastModified(auditStamp);
changeAuditStamps.setDeleted(auditStamp);
notebookInfo.setChangeAuditStamps(changeAuditStamps);
MetadataWriteResponse response = restEmitterProvider.syncMetadata2DhPlatform("notebook", "urn:li:notebook:(verse-workbook,14)", notebookInfo);
InstitutionalMemory institutionalMemory = new InstitutionalMemory();
InstitutionalMemoryMetadataArray institutionalMemoryMetadataArray = new InstitutionalMemoryMetadataArray();
InstitutionalMemoryMetadata institutionalMemoryMetadata = new InstitutionalMemoryMetadata();
institutionalMemoryMetadata.setUrl(new Url("www.baidu.com"));
InstitutionalMemoryMetadata. setDescription ("Baidu Website");
institutionalMemoryMetadata.setCreateStamp(auditStamp);
institutionalMemoryMetadataArray.add(institutionalMemoryMetadata);
institutionalMemory.setElements(institutionalMemoryMetadataArray);
MetadataWriteResponse response2 = restEmitterProvider.syncMetadata2DhPlatform("notebook", "urn:li:notebook:(verse-workbook,14)", institutionalMemory);
}
The text was updated successfully, but these errors were encountered: