-
Notifications
You must be signed in to change notification settings - Fork 15
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
Switch to node-level dimension links #932
Conversation
✅ Deploy Preview for thriving-cassata-78ae72 canceled.
|
852a99d
to
bcdec02
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.
Two small comments, but overall look great.
current_user=current_user, | ||
|
||
|
||
@router.post("/nodes/{name}/migrate", status_code=201) # pragma: no cover |
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.
I know this is temporary, but it may feel safer to call if this endpoint is named clearer, e.g. migrate_dim_link
.
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.
good point, renaming...
) | ||
session.commit() | ||
session.refresh(node) | ||
return is_update |
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.
I am not sure this Boolean value is a useful return. I think returning nothing would be cleaner (like in remove_dimension_link
), or returning an Enum (NEW, UPDATED, etc), but this true/false may just catch us by surprise somewhere.
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.
Makes sense! I think it's easier to just return an ActivityType
enum, since we already have this enum for the history APIs. Let me make this change
2db5348
to
e8be470
Compare
e8be470
to
a1a873e
Compare
Summary
This PR makes the final switch over to node-level dimension links. It does so by:
Test Plan
Locally
make check
passesmake test
shows 100% unit test coverageDeployment Plan
ASAP. This blocks all other materialization-related changes. Once this PR has been merged, we also can't make new changes without deploying this migration successfully.