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

Delete ES element. #733

Open
wants to merge 3 commits into
base: v5-unstable
Choose a base branch
from
Open

Delete ES element. #733

wants to merge 3 commits into from

Conversation

fabricematrat
Copy link
Contributor

No description provided.

@jujugui
Copy link
Contributor

jujugui commented Mar 3, 2017

Refer to this link for build results (access rights to CI server needed):
http://ci-cge.jujugui.org:8080//job/charmstore/2084/

Copy link
Contributor

@mhilton mhilton left a comment

Choose a reason for hiding this comment

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

LGTM with one comment

@@ -1284,7 +1286,13 @@ func (s *Store) DeleteEntity(id *router.ResolvedURL) error {
return errgo.Notef(err, "cannot remove compatibility blob %s", name)
}
}

if s.ES == nil || s.ES.Database == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need to do this check in both places, just call s.ES.delete and let it return nil if its not configured.

Copy link
Contributor

@urosj urosj left a comment

Choose a reason for hiding this comment

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

When charm/5 is deleted, charm/4 needs to be reindexed. We have to keep the promise of indexing the last revision/

@jujugui
Copy link
Contributor

jujugui commented Mar 3, 2017

Refer to this link for build results (access rights to CI server needed):
http://ci-cge.jujugui.org:8080//job/charmstore/2085/

@jujugui
Copy link
Contributor

jujugui commented Mar 3, 2017

Refer to this link for build results (access rights to CI server needed):
http://ci-cge.jujugui.org:8080//job/charmstore/2086/

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