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

#261 - compute overall state #262

Merged
merged 5 commits into from Feb 1, 2017
Merged

#261 - compute overall state #262

merged 5 commits into from Feb 1, 2017

Conversation

mohierf
Copy link
Collaborator

@mohierf mohierf commented Jan 26, 2017

No description provided.

@mohierf mohierf changed the title #261 - compute overall state [WiP] - #261 - compute overall state Jan 26, 2017
@mohierf mohierf changed the title [WiP] - #261 - compute overall state #261 - compute overall state Jan 27, 2017
Compute overall host/service state on insertion
Fix broken tests
@coveralls
Copy link

coveralls commented Jan 28, 2017

Coverage Status

Coverage decreased (-0.7%) to 46.773% when pulling 0c613e0 on #261 into d7a4ac0 on develop.


# Host overall was computed, update the host overall state
lookup = {"_id": item['_id']}
patch_internal('host', {"_overall_state_id": overall_state}, False, False, **lookup)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think (but not sure) the patch_internal modify the _etag, so need return the new _etag. if we don't do this the _etag returned by the post method will be wrong

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Îndeed, yes, it modifies the _etag. this is why I had to modify the tests ... but how do you modify the returned _etag? Please do the modification ...

@ddurieux
Copy link
Contributor

I added code to have the right (new) etag in the response

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.0%) to 46.521% when pulling 712db88 on #261 into d7a4ac0 on develop.

@coveralls
Copy link

coveralls commented Jan 31, 2017

Coverage Status

Coverage decreased (-1.0%) to 46.5% when pulling 404e03f on #261 into d7a4ac0 on develop.

Copy link
Collaborator Author

@mohierf mohierf left a comment

Choose a reason for hiding this comment

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

Approved. Rebase / squash and we can merge

@mohierf mohierf merged commit bd5eccb into develop Feb 1, 2017
@mohierf mohierf deleted the #261 branch February 1, 2017 06:47
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