Skip to content

Conversation

blythed
Copy link
Collaborator

@blythed blythed commented Sep 2, 2025

See #2915.

@jieguangzhou
Copy link
Collaborator

#2915 (comment)

@blythed blythed force-pushed the feature/components-table branch 5 times, most recently from e4289dd to 2b2720e Compare September 4, 2025 10:02
@blythed blythed force-pushed the feature/components-table branch from 2b2720e to cb3451b Compare September 4, 2025 10:17
@blythed blythed marked this pull request as ready for review September 4, 2025 10:17
Copy link
Collaborator

@jieguangzhou jieguangzhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also test it on postgresql also, Because earlier some refactor UTs passed, but PostgreSQL tests didn’t.

Comment on lines 45 to 51
t = self.db['Deployment']
components = (
t.filter(t['parent'] == 'VectorIndex')
.select('component', 'uuid', 'identifier')
.execute()
)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to do this in other services, for example CDC, Cronjob, etc...

Comment on lines +584 to +585
r = {**r, 'version': 0, 'uuid': t.uuid}
self.create_component(r)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We’ve already imported the schema, so it seems like create_component isn’t needed in the create method anymore. This is just for creating the schema of the data table, right?

for v in item.values():
_set_context(v, context)

_set_context(self, self.uuid)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If different parent components share the same subcomponent, then the context would become ambiguous, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true.

@blythed blythed force-pushed the feature/components-table branch 9 times, most recently from 7b046a9 to b3aeb0a Compare September 5, 2025 09:27
@blythed blythed force-pushed the feature/components-table branch from b3aeb0a to 7fc1b2e Compare September 5, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants