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

NOISSUE - follow up of PR #657 #723

Merged
merged 1 commit into from
Apr 20, 2019
Merged

Conversation

chombium
Copy link
Collaborator

This PR is a followup of #657. After the @drasko's comment I remembered myself how many times we had complains that some user lost his/hers data because they were updating their Mainflux installation or recreated some of the *-db containers.

This PR, introduces changes to the current behavior of the make cleandocker command.
From now on, an extra parameter must be given in order to delete the persistent volumes, which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition including the persistent volumes) is make pv=true cleandocker.

I understand that this might be a slight problem for the @mainflux/contributors as we'll have to use a new form of the command, but I agree with @drasko's comment that is better to be on the safe side and don't delete the data, the persistent volumes by default, although we, the @mainflux/contributors might have to run the command twice if we forget the pv=true parameter. A command alias would to the trick ;)

@codecov-io
Copy link

codecov-io commented Apr 20, 2019

Codecov Report

Merging #723 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #723   +/-   ##
=======================================
  Coverage   85.32%   85.32%           
=======================================
  Files          64       64           
  Lines        3993     3993           
=======================================
  Hits         3407     3407           
  Misses        399      399           
  Partials      187      187

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b97deb5...0540450. Read the comment docs.

drasko
drasko previously approved these changes Apr 20, 2019
Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko
Copy link
Contributor

drasko commented Apr 20, 2019

@chombium please resolve the conflicts.

This commit, intruduces changes to the current behavior of the "make cleandocker" command.
From now on, an extra parameter must be given in order to delete the persistent volumes,  which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition) is "make pv=true cleandocker".

Signed-off-by: Jovan Kostovski <chombium@gmail.com>
@chombium
Copy link
Collaborator Author

@drasko done

Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko drasko merged commit 5b66b6e into absmach:master Apr 20, 2019
@drasko
Copy link
Contributor

drasko commented Apr 20, 2019

Merged!

Thanks @chombium !

davide83 pushed a commit to davide83/mainflux that referenced this pull request May 13, 2019
This commit, intruduces changes to the current behavior of the "make cleandocker" command.
From now on, an extra parameter must be given in order to delete the persistent volumes,  which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition) is "make pv=true cleandocker".

Signed-off-by: Jovan Kostovski <chombium@gmail.com>
rugwirobaker pushed a commit to rugwirobaker/mainflux that referenced this pull request Jun 26, 2019
This commit, intruduces changes to the current behavior of the "make cleandocker" command.
From now on, an extra parameter must be given in order to delete the persistent volumes,  which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition) is "make pv=true cleandocker".

Signed-off-by: Jovan Kostovski <chombium@gmail.com>
@chombium chombium deleted the ni-657-followup branch April 5, 2020 14:02
manuio pushed a commit that referenced this pull request Oct 12, 2020
This commit, intruduces changes to the current behavior of the "make cleandocker" command.
From now on, an extra parameter must be given in order to delete the persistent volumes,  which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition) is "make pv=true cleandocker".

Signed-off-by: Jovan Kostovski <chombium@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.

4 participants