-
Notifications
You must be signed in to change notification settings - Fork 527
Feature/components table #2923
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
base: main
Are you sure you want to change the base?
Feature/components table #2923
Conversation
e4289dd
to
2b2720e
Compare
2b2720e
to
cb3451b
Compare
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.
Could you also test it on postgresql also, Because earlier some refactor UTs passed, but PostgreSQL tests didn’t.
t = self.db['Deployment'] | ||
components = ( | ||
t.filter(t['parent'] == 'VectorIndex') | ||
.select('component', 'uuid', 'identifier') | ||
.execute() | ||
) | ||
|
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.
We also need to do this in other services, for example CDC, Cronjob, etc...
r = {**r, 'version': 0, 'uuid': t.uuid} | ||
self.create_component(r) |
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.
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?
superduper/components/component.py
Outdated
for v in item.values(): | ||
_set_context(v, context) | ||
|
||
_set_context(self, self.uuid) |
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.
If different parent components share the same subcomponent, then the context would become ambiguous, right?
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.
That's true.
7b046a9
to
b3aeb0a
Compare
b3aeb0a
to
7fc1b2e
Compare
See #2915.