| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:ebe1644b-7cd3-c2be-2747-e1b63e62d7e0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CC4C:1A30B9:27AE345:351EFD4:6992EF2A |
| html-safe-nonce | 0929a4cd83a45b050d50208369db354b2e4e16dc8b3d3ab74dd415d81f24f63f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzRDOjFBMzBCOToyN0FFMzQ1OjM1MUVGRDQ6Njk5MkVGMkEiLCJ2aXNpdG9yX2lkIjoiMjg5Nzc5MzEzMzM0NDY0OTAwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8053cfe89df51c6c6b7a42abb14b578e5d47d6129c8f29bab7f15ed60dcd982b |
| hovercard-subject-tag | pull_request:755566516 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,network-graph,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| twitter:image | https://avatars.githubusercontent.com/u/29315002?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/29315002?s=400&v=4 |
| og:image:alt | Fixes #50
Adds add_or_update to DiffSync class that requires a DiffSyncModel to be passed in and will attempt to add or update an existing object
Convert one of the examples over to use the new me... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01ab16879a3159e6f0717ab948b9b562e162a6aafd1f4393b786b07b747df244 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/networktocode/diffsync git https://github.com/networktocode/diffsync.git |
| octolytics-dimension-user_id | 13106404 |
| octolytics-dimension-user_login | networktocode |
| octolytics-dimension-repository_id | 292296974 |
| octolytics-dimension-repository_nwo | networktocode/diffsync |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 292296974 |
| octolytics-dimension-repository_network_root_nwo | networktocode/diffsync |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b1570f3928bef80fa5fc7890ce0942e9b696ad9d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnetworktocode%2Fdiffsync%2Fpull%2F70%2Fcommits%2F7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnetworktocode%2Fdiffsync%2Fpull%2F70%2Fcommits%2F7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=networktocode%2Fdiffsync |
| Reload | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| Reload | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| Reload | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
networktocode
| https://github.com/networktocode |
| diffsync | https://github.com/networktocode/diffsync |
|
Notifications
| https://github.com/login?return_to=%2Fnetworktocode%2Fdiffsync |
|
Fork
30
| https://github.com/login?return_to=%2Fnetworktocode%2Fdiffsync |
|
Star
179
| https://github.com/login?return_to=%2Fnetworktocode%2Fdiffsync |
|
Code
| https://github.com/networktocode/diffsync |
|
Issues
39
| https://github.com/networktocode/diffsync/issues |
|
Pull requests
8
| https://github.com/networktocode/diffsync/pulls |
|
Discussions
| https://github.com/networktocode/diffsync/discussions |
|
Actions
| https://github.com/networktocode/diffsync/actions |
|
Projects
0
| https://github.com/networktocode/diffsync/projects |
|
Security
0
| https://github.com/networktocode/diffsync/security |
|
Insights
| https://github.com/networktocode/diffsync/pulse |
|
Code
| https://github.com/networktocode/diffsync |
|
Issues
| https://github.com/networktocode/diffsync/issues |
|
Pull requests
| https://github.com/networktocode/diffsync/pulls |
|
Discussions
| https://github.com/networktocode/diffsync/discussions |
|
Actions
| https://github.com/networktocode/diffsync/actions |
|
Projects
| https://github.com/networktocode/diffsync/projects |
|
Security
| https://github.com/networktocode/diffsync/security |
|
Insights
| https://github.com/networktocode/diffsync/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fnetworktocode%2Fdiffsync%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fnetworktocode%2Fdiffsync%2Fissues%2Fnew%2Fchoose |
| dgarros | https://github.com/dgarros |
| networktocode:main | https://github.com/networktocode/diffsync/tree/main |
|
Conversation
45
| https://github.com/networktocode/diffsync/pull/70 |
|
Commits
19
| https://github.com/networktocode/diffsync/pull/70/commits |
|
Checks
0
| https://github.com/networktocode/diffsync/pull/70/checks |
|
Files changed
| https://github.com/networktocode/diffsync/pull/70/files |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
Add add_or_update to DiffSync class.
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#top |
|
Show all changes
19 commits
| https://github.com/networktocode/diffsync/pull/70/files |
|
b2dc459
Add add_or_update to DiffSync class.
FragmentedPacket Oct 11, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/b2dc45909a1de2dd3efaa80788cccbe2e26b24ec |
|
8161a2d
Merge branch 'main' of git://github.com/networktocode/diffsync into 5…
FragmentedPacket Oct 26, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/8161a2dbf54af513652bca7f09695c20691673ff |
|
b172cf0
Update diffsync.add to only raise ObjectAlreadyExists if objects diff…
FragmentedPacket Oct 26, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/b172cf0ba8097016b9918b9b5fe86e496c5c7407 |
|
182542b
Pylint to pass for tests for diffsync.add
FragmentedPacket Oct 26, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/182542bdde9da85b134bbcd93d5dbe2260c9aa48 |
|
7ed20cb
Add get_or_create along with tests.
FragmentedPacket Oct 27, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
f4f63e4
Addressed some of the feedback from Glenn.
FragmentedPacket Oct 29, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/f4f63e4cab6051e030885bf9e008586284d0d62f |
|
c4c32cf
Rename get_or_create/get_or_instantiate. Update tests.
FragmentedPacket Oct 29, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/c4c32cf04ef88047c9754a66f0504a25e3784d6e |
|
e61b560
Add testing for update_or_create. Return object in ObjectAlreadyExist…
FragmentedPacket Oct 30, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/e61b560a54935ba950a2bcbac5c80c0fd415dae7 |
|
e917055
Update doc strings
FragmentedPacket Oct 31, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/e917055f5bc36c2b9ad103cc31c76394679fccbd |
|
8f3b328
Add example of new methods.
FragmentedPacket Oct 31, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/8f3b3283b529822fd3f631412d87be0daf44814b |
|
c43f789
Updates to add device to diffsync. Update tests. Update test names an…
FragmentedPacket Nov 6, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/c43f789e6ff092eb44b7c05aceb762bcc02192a1 |
|
95cb2f0
Few doc updates for licensing year. Remove var assignment for error t…
FragmentedPacket Nov 6, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/95cb2f00bf6dea6c50f66afd1d3217bde4bfd389 |
|
37b3bca
Update diffsync/__init__.py
FragmentedPacket Nov 8, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/37b3bca06e46f3deb52eb917cd3f77b2a830028b |
|
93a0a74
Update tests/unit/test_diffsync.py
FragmentedPacket Nov 8, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/93a0a745e7b2313449d248835b44e3da1db4ec01 |
|
025a401
Require attrs for update_or, Set existing_object as attribute in Obje…
FragmentedPacket Nov 8, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/025a40163dff62326a7734fd9d38c20493952675 |
|
6c747f1
Add README.md to example-04. Add Example 04 to examples/index.rst
FragmentedPacket Nov 12, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/6c747f113b6aa1664f2a95f24dee43299074b653 |
|
4f9bf4b
Use python 3.9.7 for black.
FragmentedPacket Nov 12, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/4f9bf4b3d938c928bc789b4cf8b138be11f23a83 |
|
c970516
Update to support 3.9 and black for compatibility.
FragmentedPacket Nov 12, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/c970516218dd0a87a3b5eda56457b2f50d2dee41 |
|
647d971
Believe I fixed the dependencies
FragmentedPacket Nov 12, 2021
| https://github.com/networktocode/diffsync/pull/70/commits/647d9719025f31c06db7237e675ab94472038adc |
|
Clear filters
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
__init__.py
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-c5f5ac5ef038272841fff7473e3b0a3ba7dac422040bcd3219093089ac2244d6 |
|
backend_b.py
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-ced1a8f5a6ba27c55674e97f2cca7ba6bae549df593394daa88cd5445e70aede |
|
test_diffsync.py
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-391cf6ea1f3f86bbcda642c1875b14963af60dd2c9f554b1e5c1cfc39df7cddf |
|
Prev
| https://github.com/networktocode/diffsync/pull/70/commits/182542bdde9da85b134bbcd93d5dbe2260c9aa48 |
|
Next
| https://github.com/networktocode/diffsync/pull/70/commits/f4f63e4cab6051e030885bf9e008586284d0d62f |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
| https://github.com/FragmentedPacket |
| FragmentedPacket | https://github.com/networktocode/diffsync/commits?author=FragmentedPacket |
|
| https://github.com/networktocode/diffsync/blob/main/.github/CODEOWNERS#L2 |
| diffsync/__init__.py | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-c5f5ac5ef038272841fff7473e3b0a3ba7dac422040bcd3219093089ac2244d6 |
|
View file
| https://github.com/networktocode/diffsync/blob/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876/diffsync/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/networktocode/diffsync/pull/70/commits/{{ revealButtonHref }} |
|
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-c5f5ac5ef038272841fff7473e3b0a3ba7dac422040bcd3219093089ac2244d6 |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
| Please reload this page | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876 |
|
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-c5f5ac5ef038272841fff7473e3b0a3ba7dac422040bcd3219093089ac2244d6 |
| examples/01-multiple-data-sources/backend_b.py | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-ced1a8f5a6ba27c55674e97f2cca7ba6bae549df593394daa88cd5445e70aede |
|
View file
| https://github.com/networktocode/diffsync/blob/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876/examples/01-multiple-data-sources/backend_b.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/networktocode/diffsync/pull/70/commits/{{ revealButtonHref }} |
|
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-ced1a8f5a6ba27c55674e97f2cca7ba6bae549df593394daa88cd5445e70aede |
|
| https://github.com/networktocode/diffsync/blob/main/.github/CODEOWNERS#L2 |
| tests/unit/test_diffsync.py | https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-391cf6ea1f3f86bbcda642c1875b14963af60dd2c9f554b1e5c1cfc39df7cddf |
|
View file
| https://github.com/networktocode/diffsync/blob/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876/tests/unit/test_diffsync.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/networktocode/diffsync/pull/70/commits/{{ revealButtonHref }} |
|
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-391cf6ea1f3f86bbcda642c1875b14963af60dd2c9f554b1e5c1cfc39df7cddf |
|
| https://github.com/networktocode/diffsync/pull/70/commits/7ed20cba0a2cbacefcbcc33f0e3027d6744ba876#diff-391cf6ea1f3f86bbcda642c1875b14963af60dd2c9f554b1e5c1cfc39df7cddf |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |