Closed anhqle closed 1 month ago
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @anhqle and the rest of your teammates on Graphite
Name | Link |
---|---|
Latest commit | 899ad81ae07024ba23e954fd943a1de09bf21f7c |
Latest deploy log | https://app.netlify.com/sites/thriving-cassata-78ae72/deploys/6645712ea1846a00088972b4 |
This functionality is added in #1001 instead
Summary
This PR changes the
create_somenode
methods intoupsert_somenode
, which create if a node doesn't exist and update if it does exist.This is useful because users just want to "make the nodes this way" without having to first check for existence. An example use case is writing a notebook with a bunch of upsert, which would be reproducible and idempotent.
The commit so far only changes
create_source
intoupsert_source
. If the approach makes sense I'll make the same changes to other nodes types & and add tests.Test Plan
make check
passesmake test
shows 100% unit test coverageDeployment Plan