Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8
fix: resolve all CI build and test errors#1007
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -205,7 +205,7 @@ export class ObjectStackProtocolImplementation implements ObjectStackProtocol { | ||||||||||||||||||||||
| ? JSON.parse(record.metadata) | ||||||||||||||||||||||
| : record.metadata; | ||||||||||||||||||||||
| // Hydrate back into registry | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, data, 'name'); | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, data, 'name' as any); | ||||||||||||||||||||||
| return data; | ||||||||||||||||||||||
| }); | ||||||||||||||||||||||
| } else { | ||||||||||||||||||||||
| @@ -219,7 +219,7 @@ export class ObjectStackProtocolImplementation implements ObjectStackProtocol { | ||||||||||||||||||||||
| const data = typeof record.metadata === 'string' | ||||||||||||||||||||||
| ? JSON.parse(record.metadata) | ||||||||||||||||||||||
| : record.metadata; | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, data, 'name'); | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, data, 'name' as any); | ||||||||||||||||||||||
| return data; | ||||||||||||||||||||||
| }); | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| @@ -254,7 +254,7 @@ export class ObjectStackProtocolImplementation implements ObjectStackProtocol { | ||||||||||||||||||||||
| ? JSON.parse(record.metadata) | ||||||||||||||||||||||
| : record.metadata; | ||||||||||||||||||||||
| // Hydrate back into registry for next time | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, item, 'name'); | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, item, 'name' as any); | ||||||||||||||||||||||
| } else { | ||||||||||||||||||||||
| // Try alternate type name | ||||||||||||||||||||||
| const alt = request.type.endsWith('s') ? request.type.slice(0, -1) : request.type + 's'; | ||||||||||||||||||||||
| @@ -266,7 +266,7 @@ export class ObjectStackProtocolImplementation implements ObjectStackProtocol { | ||||||||||||||||||||||
| ? JSON.parse(altRecord.metadata) | ||||||||||||||||||||||
| : altRecord.metadata; | ||||||||||||||||||||||
| // Hydrate back into registry for next time | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, item, 'name'); | ||||||||||||||||||||||
| SchemaRegistry.registerItem(request.type, item, 'name' as any); | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| } catch { | ||||||||||||||||||||||
| @@ -980,7 +980,11 @@ export class ObjectStackProtocolImplementation implements ObjectStackProtocol { | ||||||||||||||||||||||
| const data = typeof record.metadata === 'string' | ||||||||||||||||||||||
| ? JSON.parse(record.metadata) | ||||||||||||||||||||||
| : record.metadata; | ||||||||||||||||||||||
| SchemaRegistry.registerItem(record.type, data, 'name'); | ||||||||||||||||||||||
| if (record.type === 'object') { | ||||||||||||||||||||||
| SchemaRegistry.registerObject(data as any, record.packageId || 'sys_metadata'); | ||||||||||||||||||||||
| } else { | ||||||||||||||||||||||
| SchemaRegistry.registerItem(record.type, data, 'name' as any); | ||||||||||||||||||||||
Comment on lines
+983
to
+986
CopilotAI | ||||||||||||||||||||||
| if(record.type==='object'){ | |
| SchemaRegistry.registerObject(dataasany,record.packageId||'sys_metadata'); | |
| }else{ | |
| SchemaRegistry.registerItem(record.type,data,'name'asany); | |
| constpackageId=(recordasany).package_id??record.packageId??'sys_metadata'; | |
| constnamespace=(recordasany).namespace??(dataasany)?.namespace; | |
| if(record.type==='object'){ | |
| SchemaRegistry.registerObject(dataasany,packageId,namespace); | |
| }else{ | |
| SchemaRegistry.registerItem(record.type,data,'name'asany,packageId); |
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIMar 31, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DB fallback hydration always uses
SchemaRegistry.registerItem(...). Fortype === 'object',SchemaRegistry.getItem('object', ...)delegates togetObject()(objectContributors), so registering viaregisterItemwon’t make future object lookups/listing work. Consider branching onrecord.type/request.type === 'object'and hydrating object records viaSchemaRegistry.registerObject(...)(and pass namespace/package id from the sys_metadata row so FQNs and package scoping are preserved).