-
Notifications
You must be signed in to change notification settings - Fork 28
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 support for LINC staging and production APIs #1519
Changes from all commits
6d23a4b
fce9ca9
979c076
5071abb
f5a6f1f
5628bc1
45360f9
3e258a4
aa080a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -649,17 +649,17 @@ | |||||||||||||||||||||||||||||
schema_version = models.get_schema_version() | ||||||||||||||||||||||||||||||
server_info = self.get("/info/") | ||||||||||||||||||||||||||||||
server_schema_version = server_info.get("schema_version") | ||||||||||||||||||||||||||||||
if not server_schema_version: | ||||||||||||||||||||||||||||||
raise RuntimeError( | ||||||||||||||||||||||||||||||
"Server did not provide schema_version in /info/;" | ||||||||||||||||||||||||||||||
f" returned {server_info!r}" | ||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||
if server_schema_version != schema_version: | ||||||||||||||||||||||||||||||
raise SchemaVersionError( | ||||||||||||||||||||||||||||||
f"Server requires schema version {server_schema_version};" | ||||||||||||||||||||||||||||||
f" client only supports {schema_version}. You may need to" | ||||||||||||||||||||||||||||||
" upgrade dandi and/or dandischema." | ||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||
# if not server_schema_version: | ||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this block is commented out -- doesn't LINC provide There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I was testing, my forked branch is technically tagged as a version of As noted in #1519 (comment) -- this will be commented back in once you et. al are happy with the core changes here |
||||||||||||||||||||||||||||||
# raise RuntimeError( | ||||||||||||||||||||||||||||||
# "Server did not provide schema_version in /info/;" | ||||||||||||||||||||||||||||||
# f" returned {server_info!r}" | ||||||||||||||||||||||||||||||
Comment on lines
+652
to
+655
Check notice Code scanning / CodeQL Commented-out code Note
This comment appears to contain commented-out code.
Comment on lines
+652
to
+655
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||
# ) | ||||||||||||||||||||||||||||||
# if server_schema_version != schema_version: | ||||||||||||||||||||||||||||||
# raise SchemaVersionError( | ||||||||||||||||||||||||||||||
# f"Server requires schema version {server_schema_version};" | ||||||||||||||||||||||||||||||
# f" client only supports {schema_version}. You may need to" | ||||||||||||||||||||||||||||||
# " upgrade dandi and/or dandischema." | ||||||||||||||||||||||||||||||
Comment on lines
+657
to
+661
Check notice Code scanning / CodeQL Commented-out code Note
This comment appears to contain commented-out code.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment for reference in another issue |
||||||||||||||||||||||||||||||
# ) | ||||||||||||||||||||||||||||||
Comment on lines
+656
to
+662
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
def get_asset(self, asset_id: str) -> BaseRemoteAsset: | ||||||||||||||||||||||||||||||
""" | ||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @aaronkanzer, it looks like https://staging.lincbrain.org isn't able to resolve again. Not sure if we changed anything. See screenshot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kabilar -- it seems that SSL support isn't provided out-of-the-box for the branch deploys URLs in Netlify
Firefox and Chrome require the SSL enforcement, but if you use Safari, you can proceed without the SSL -- didn't want to disturb the peace here with changing the SSL cert, so didn't update anything for now