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 missing xml fields on storage usage. #808

Merged
merged 1 commit into from Feb 14, 2014

Conversation

ksauzz
Copy link
Contributor

@ksauzz ksauzz commented Feb 13, 2014

Problem: Storage usage api responds 500 internal error on xml request.
Fix: Add missing supported xml fields to the definitions.
Reported by: #797

This PR includes:

  • update supported xml fields
  • add riak_test to xml response on storage usage.


storage_stats_request(UserConfig, Begin, End) ->
{storage_stats_json_request(UserConfig, Begin, End),
storage_stats_xml_request(UserConfig, Begin, End)}.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong indent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@ksauzz ksauzz added this to the 1.4.5 milestone Feb 14, 2014
@ksauzz ksauzz added the Bug label Feb 14, 2014
@ksauzz ksauzz self-assigned this Feb 14, 2014

extract_usage(#xmlElement{name=Name, content=[Content]}, Acc) ->
[{Name, extract_value(Content)}] ++ Acc;
extract_usage(_, Acc) ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this clause needed?

@shino
Copy link
Contributor

shino commented Feb 14, 2014

Source diff looks good, riak_test runs successfully. Nice!

I added some not important comments.

@shino
Copy link
Contributor

shino commented Feb 14, 2014

  • Eunit and eqc tests pass
  • Dialyzer output clean (no new warnings)
  • xref
  • riak_test tests pass

@shino
Copy link
Contributor

shino commented Feb 14, 2014

👍

- update supported xml fields
- add riak_test to xml response on storage usage.
- improve rtcs:datetime to more helpful format.
ksauzz added a commit that referenced this pull request Feb 14, 2014
…-stat

Fix missing xml fields on storage usage.
@ksauzz ksauzz merged commit 473cf3a into release/1.4 Feb 14, 2014
@ksauzz
Copy link
Contributor Author

ksauzz commented Feb 14, 2014

Thanks 🍫

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants