Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Add jupyter endpoint to ordered list after other lesson endpoints #199

Merged
merged 2 commits into from Jul 27, 2020

Conversation

Mierdin
Copy link
Member

@Mierdin Mierdin commented Jul 20, 2020

In #198 I added some logic to create an ordered list in which endpoints should be started, to preserve network connection order for lessons that use it.

However, in doing this, only lessons that were explicitly provided in the lesson metadata were started. Any "hidden" endpoints (which is how we currently start jupyter pods for lessons that need it) didn't get started. Lessons that used a jupyter notebook would never start, because the health checks would still expect the jupyter server to be accessible, despite the fact that the pod was never created.

This PR fixes this, by moving the aforementioned logic ahead of the addition of a jupyter endpoint, and when creating the hidden endpoint for jupyter notebooks, an entry is added to both the ordered list, as well as the unordered map that is used for the API.

Signed-off-by: Matt Oswalt <matt@oswalt.dev>
@Mierdin Mierdin added this to In progress in Antidote v0.7.0 via automation Jul 20, 2020
Signed-off-by: Matt Oswalt <matt@oswalt.dev>
@codecov
Copy link

codecov bot commented Jul 27, 2020

Codecov Report

Merging #199 into master will decrease coverage by 0.36%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #199      +/-   ##
==========================================
- Coverage   27.69%   27.33%   -0.37%     
==========================================
  Files          24       24              
  Lines        2401     2433      +32     
==========================================
  Hits          665      665              
- Misses       1671     1703      +32     
  Partials       65       65              
Impacted Files Coverage Δ
scheduler/requests.go 0.00% <0.00%> (ø)
api/exp/curricula.go 0.00% <0.00%> (ø)
api/exp/collections.go 0.00% <0.00%> (ø)

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 10aeafe...c96dfcf. Read the comment docs.

@Mierdin Mierdin merged commit 7bf1700 into master Jul 27, 2020
Antidote v0.7.0 automation moved this from In progress to Done Jul 27, 2020
@Mierdin Mierdin deleted the fix-jupyter-nonstart branch July 27, 2020 23:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant