Skip to content
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

fix(app-install): reject duplicate identical cells #1773

Merged
merged 12 commits into from Jan 19, 2023

Conversation

jost-s
Copy link
Contributor

@jost-s jost-s commented Jan 17, 2023

Summary

When you install an app with a cell that already exists for the same agent, the installation will error now.

TODO:

  • CHANGELOG(s) updated with appropriate info
  • Just before pressing the merge button, ensure new entries to CHANGELOG(s) are still under the UNRELEASED heading

@jost-s jost-s requested a review from maackle January 17, 2023 12:24
@jost-s jost-s requested a review from maackle January 18, 2023 02:25
Copy link
Member

@maackle maackle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

crates/holochain/src/conductor/conductor.rs Outdated Show resolved Hide resolved
@jost-s jost-s enabled auto-merge (squash) January 18, 2023 17:41
@jost-s jost-s merged commit b84c5c5 into develop Jan 19, 2023
@jost-s jost-s deleted the fix/reject-app-install-with-duplicate-cells branch January 19, 2023 15:01
maackle added a commit that referenced this pull request Jan 19, 2023
* Write failing test for disabling clones

* Fix problem where disabled clones are started at conductor restart

* Fixes for macos (#1777)

* chore: update holonix version

* chore(nix):fix dev shell for macos

* chore(kitsune_p2p/types): update sysinfo to fix build

* chore(nix): update holonix version

* chore(nix): remove crate2nix override

* chore(nix): revert disabling crate2nix for macos

* chore(nix): update holonix

* dummy commit to trigger CI

* chore(nix): use crate2nix from nixpkgs

* docs(readme): remove chat + forum and add Discord link (#1778)

* Add Discord link to Readme

Removed the link to chat.holochain.net and in its place added the discord server link to the readme

* Update README.md

* countersigning top level docs (#1768)

* countersigning top level docs

* Update crates/hdk/src/lib.rs

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

* Update crates/hdk/src/lib.rs

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

* fix(app-install): reject duplicate identical cells (#1773)

* add failing test for two identical apps install

* add failing test for duplicate app installation

* check there's no identical running cell when installng an app

* update changelog

* search through all cells for identical cell

* add specific error for duplicate cells

* clippy: combine find & is_some() to any

* document call_info in hdk (#1765)

* Apply suggestions from code review

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

* remove docs saying links are to entries (#1767)

Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
Co-authored-by: Abraham Njama <62102332+abe-njama@users.noreply.github.com>
Co-authored-by: David Meister <thedavidmeister@gmail.com>
Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>
maackle added a commit that referenced this pull request Jan 19, 2023
* clone cell calls return cell info

* add clone cell refactor to changelog

* rename cell type to snake_case during serialization

* mention cell info serde in changelog

* remove unimplemented app request signal_subscription

* add docs for cell info

* remove unused import

* refactor to return Cell instead of CellInfo for clone calls

* update changelog

* update app info test

* remove redundant clone

* break out Cell into ProvisionedCell and ClonedCell

* fix intra-doc links

* Keep clone cells disabled on restart (#1775)

* Write failing test for disabling clones

* Fix problem where disabled clones are started at conductor restart

* Fixes for macos (#1777)

* chore: update holonix version

* chore(nix):fix dev shell for macos

* chore(kitsune_p2p/types): update sysinfo to fix build

* chore(nix): update holonix version

* chore(nix): remove crate2nix override

* chore(nix): revert disabling crate2nix for macos

* chore(nix): update holonix

* dummy commit to trigger CI

* chore(nix): use crate2nix from nixpkgs

* docs(readme): remove chat + forum and add Discord link (#1778)

* Add Discord link to Readme

Removed the link to chat.holochain.net and in its place added the discord server link to the readme

* Update README.md

* countersigning top level docs (#1768)

* countersigning top level docs

* Update crates/hdk/src/lib.rs

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

* Update crates/hdk/src/lib.rs

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

* fix(app-install): reject duplicate identical cells (#1773)

* add failing test for two identical apps install

* add failing test for duplicate app installation

* check there's no identical running cell when installng an app

* update changelog

* search through all cells for identical cell

* add specific error for duplicate cells

* clippy: combine find & is_some() to any

* document call_info in hdk (#1765)

* Apply suggestions from code review

Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

* remove docs saying links are to entries (#1767)

Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
Co-authored-by: Abraham Njama <62102332+abe-njama@users.noreply.github.com>
Co-authored-by: David Meister <thedavidmeister@gmail.com>
Co-authored-by: Jost Schulte <jost.schulte@protonmail.com>

Co-authored-by: Michael Dougherty <maackle.d@gmail.com>
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
Co-authored-by: Abraham Njama <62102332+abe-njama@users.noreply.github.com>
Co-authored-by: David Meister <thedavidmeister@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants