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

Refactor graphman rewind to use pause and resume logic #5213

Merged
merged 10 commits into from
May 6, 2024

Conversation

itsjerryokolo
Copy link
Contributor

This PR refactors the graphman rewind command to use the pause and resume function.

Copy link
Member

@incrypto32 incrypto32 left a comment

Choose a reason for hiding this comment

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

@itsjerryokolo I just added some comments and suggestions

node/src/manager/commands/rewind.rs Outdated Show resolved Hide resolved
node/src/manager/commands/rewind.rs Outdated Show resolved Hide resolved
node/src/bin/manager.rs Outdated Show resolved Hide resolved
node/src/bin/manager.rs Outdated Show resolved Hide resolved
node/src/bin/manager.rs Outdated Show resolved Hide resolved
node/src/bin/manager.rs Outdated Show resolved Hide resolved
node/src/bin/manager.rs Outdated Show resolved Hide resolved
node/src/bin/manager.rs Outdated Show resolved Hide resolved
itsjerryokolo and others added 8 commits April 18, 2024 09:20
Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>
Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>
Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>
@itsjerryokolo itsjerryokolo marked this pull request as ready for review April 18, 2024 08:22
@incrypto32 incrypto32 self-requested a review April 18, 2024 15:21
node/src/manager/commands/rewind.rs Outdated Show resolved Hide resolved
@incrypto32 incrypto32 merged commit 09db0ce into master May 6, 2024
7 checks passed
@incrypto32 incrypto32 deleted the graphman-rewind branch May 6, 2024 10:37
incrypto32 added a commit that referenced this pull request Jun 6, 2024
* Refactor deployment pause and resume logic

* Refactor pause_and_resume to use DeploymentLocator, Add cloning functionality to the Context struct,

* Update node/src/manager/commands/rewind.rs

Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>

* Update node/src/bin/manager.rs

Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>

* Update node/src/bin/manager.rs

Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>

* Refactor cloning and pausing logic in manager.rs and rewind.rs

* Refactor code to use mutable connection in assign.rs and remove unused constant in rewind.rs

* removing cloning in manager.rs

* minor refactoring

* node: throw an error when a deployment search matches more than one in rewind

---------

Co-authored-by: Krishnanand V P <44740264+incrypto32@users.noreply.github.com>
Co-authored-by: incrypto32 <vpkrishnanand@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.

2 participants