-
Notifications
You must be signed in to change notification settings - Fork 29
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
Test /server-info endpoint in Dockerized environment #1020
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1020 +/- ##
===========================================
- Coverage 88.59% 62.78% -25.82%
===========================================
Files 78 78
Lines 10855 10858 +3
===========================================
- Hits 9617 6817 -2800
- Misses 1238 4041 +2803
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dandi/dandi-archive#1108 was addressed/closed -- should we retry this PR now @jwodder? |
@yarikoptic I'm still getting a 404 for |
note: I have followed up on dandi/dandi-archive#1108 (comment) . I think that the path forward of the least resistance would be to switch to use both main and staging support that$> curl https://dandiarchive.org/server-info/
{"schema_version":"0.6.3","schema_url":"https://raw.githubusercontent.com/dandi/schema/master/releases/0.6.3/dandiset.json","version":"0.2.41","services":{"api":{"url":"https://api.dandiarchive.org/api"},"webui":{"url":"https://dandiarchive.org"},"jupyterhub":{"url":"https://hub.dandiarchive.org/"}},"cli-minimal-version":"0.14.2","cli-bad-versions":[]}%
$> curl https://gui-staging.dandiarchive.org/server-info/
{"schema_version":"0.6.3","schema_url":"https://raw.githubusercontent.com/dandi/schema/master/releases/0.6.3/dandiset.json","version":"0.2.41","services":{"api":{"url":"https://api-staging.dandiarchive.org/api"},"webui":{"url":"https://gui-staging.dandiarchive.org"},"jupyterhub":{"url":"https://hub.dandiarchive.org/"}},"cli-minimal-version":"0.14.2","cli-bad-versions":[]}% or do you see any problem with that @jwodder ? |
@yarikoptic Would the Archive continue to support older versions of the CLI that use |
Well, ATM the actual deployment still has |
@yarikoptic No, |
@jwodder - please reapproach this PR to be finalized. It seems that trailing
|
@yarikoptic The Dockerized API instance currently returns 404 for |
Please investigate why , check it with @AlmightyYakob et al. |
Resolved merge conflict, to see if we still experience the issue or this PR could be finalized. |
merge might need to be redone or rebased to address
|
@@ -6,13 +6,15 @@ | |||
import os.path as op | |||
from pathlib import Path | |||
import time | |||
from typing import Iterable, List |
Check notice
Code scanning / CodeQL
Unused import Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 24 days ago
To fix the problem, we need to remove the unused import statement for List
from the typing
module. This will clean up the code and remove the unnecessary dependency. The change should be made in the dandi/tests/test_utils.py
file, specifically on line 9.
-
Copy modified line R9
@@ -8,3 +8,3 @@ | ||
import time | ||
from typing import Iterable, List | ||
from typing import Iterable | ||
from urllib.parse import urlparse, urlunparse |
so it is still the case that for local instance it likely requires that trailing
looking at that point in browser gives more info: and there is none with indeed, in dandi-archive
so, it is netlify's thing and
so just a redirect to http://localhost:8000/api/info/ which works
@waxlamp @mvandenburgh -- why don't we just serve/redirect it directly from django? |
Closes #977.
Blocked by dandi/dandi-archive#1108.