Title: Change MerginProject constructor to force one instance per project by dvdkon · Pull Request #283 · MerginMaps/python-api-client · GitHub
Open Graph Title: Change MerginProject constructor to force one instance per project by dvdkon · Pull Request #283 · MerginMaps/python-api-client
X Title: Change MerginProject constructor to force one instance per project by dvdkon · Pull Request #283 · MerginMaps/python-api-client
Description: Currently there can be multiple instances of MerginProject in memory that represent a single project (directory). This is an issue, because doing an operation on one instance will desync metadata in the others, which caused syncing to fail in db-sync. This PR changes the MerginProject constructor to return the existing instance for a given directory, if one exists. It also bumps the library version, so I can make subsequent changes in db-sync.
Open Graph Description: Currently there can be multiple instances of MerginProject in memory that represent a single project (directory). This is an issue, because doing an operation on one instance will desync metadata i...
X Description: Currently there can be multiple instances of MerginProject in memory that represent a single project (directory). This is an issue, because doing an operation on one instance will desync metadata i...
Opengraph URL: https://github.com/MerginMaps/python-api-client/pull/283
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6a8ce429-a838-7ef0-b5aa-155fb643f293 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AC20:5D591:D9E1C8:11EC227:69818E9D |
| html-safe-nonce | 5847a6117b0046a5f4cb13c53b3f2626f5750285135624d1efce328b03d4cbfe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzIwOjVENTkxOkQ5RTFDODoxMUVDMjI3OjY5ODE4RTlEIiwidmlzaXRvcl9pZCI6IjU5MzcwNjg3Nzk3NzQyNTA2NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d33f89877573e294e3c48c9a6a2b4c03ce2cfd760c93e9da1ea30deccb69d9f7 |
| hovercard-subject-tag | pull_request:3110587443 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/MerginMaps/python-api-client/pull/283/files |
| twitter:image | https://avatars.githubusercontent.com/u/3526303?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3526303?s=400&v=4 |
| og:image:alt | Currently there can be multiple instances of MerginProject in memory that represent a single project (directory). This is an issue, because doing an operation on one instance will desync metadata i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/MerginMaps/python-api-client git https://github.com/MerginMaps/python-api-client.git |
| octolytics-dimension-user_id | 88134486 |
| octolytics-dimension-user_login | MerginMaps |
| octolytics-dimension-repository_id | 182099139 |
| octolytics-dimension-repository_nwo | MerginMaps/python-api-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 182099139 |
| octolytics-dimension-repository_network_root_nwo | MerginMaps/python-api-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dd58d68a7813bbec9c91422c8c35f4af33832d70 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width