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

Add /health.json and /instances.json #131

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Conversation

grisu48
Copy link
Collaborator

@grisu48 grisu48 commented Jan 24, 2022

Add /instances.json path to query all currently known instances as json object and /health.json to query the health of the instance. Both are required for CLI tools to query the instance without using the WebUI.

This PR addresses #124

@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #131 (c097f8b) into master (df4bf3d) will decrease coverage by 0.12%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #131      +/-   ##
==========================================
- Coverage   84.47%   84.35%   -0.13%     
==========================================
  Files          28       28              
  Lines        2384     2391       +7     
==========================================
+ Hits         2014     2017       +3     
- Misses        370      374       +4     
Impacted Files Coverage Δ
ocw/urls.py 100.00% <ø> (ø)
ocw/views.py 56.09% <50.00%> (-2.73%) ⬇️

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 df4bf3d...c097f8b. Read the comment docs.

@grisu48 grisu48 changed the title WIP: Add instances.json WIP: Add /instances.json Jan 25, 2022
Add instances.json path to query all currently known instances as json
object.
@grisu48 grisu48 changed the title WIP: Add /instances.json WIP: Add /health.json and /instances.json Jan 25, 2022
@grisu48 grisu48 changed the title WIP: Add /health.json and /instances.json Add /health.json and /instances.json Feb 3, 2022
@grisu48 grisu48 marked this pull request as ready for review February 3, 2022 08:00
@grisu48
Copy link
Collaborator Author

grisu48 commented Feb 3, 2022

Codecod complains because I introduced new http methods in a class, which is also not covered by any other tests before.

@grisu48 grisu48 requested a review from asmorodskyi February 8, 2022 08:14
@grisu48
Copy link
Collaborator Author

grisu48 commented Feb 8, 2022

Poking @asmorodskyi again to review this PR.

@asmorodskyi
Copy link
Collaborator

cool idea and nice implementation 👍

@asmorodskyi asmorodskyi merged commit 97da904 into SUSE:master Feb 8, 2022
@grisu48 grisu48 deleted the json branch February 8, 2022 08:37
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