Closed yarikoptic closed 5 months ago
@dandi/archive-maintainers is there an easy way to avoid hardcoding dandi-cli version here and take it from
cli-minimal-version
of https://github.com/dandi/dandi-archive/blob/HEAD/dandiapi/api/views/info.py#L65 ?Change is "inspired" by a user who pointed me to that line which didn't work on his mac with OSX having python 3.7 systemwide
One way would be to hit the /server-info
endpoint and grab the version number from there. @mvandenburgh, @jjnesbitt, @marySalvi, can you think of other ways that don't involve asking the server? Can we build this value into both the server and client by using a common build-time resource somehow?
One way would be to hit the
/server-info
endpoint and grab the version number from there. @mvandenburgh, @jjnesbitt, @marySalvi, can you think of other ways that don't involve asking the server? Can we build this value into both the server and client by using a common build-time resource somehow?
Calling /server-info
would be the easiest way imo, and isn't really a compromise since the client relies on server up-time anyway.
@dandi/archive-maintainers is there an easy way to avoid hardcoding dandi-cli version here and take it from
cli-minimal-version
of https://github.com/dandi/dandi-archive/blob/HEAD/dandiapi/api/views/info.py#L65 ?Change is "inspired" by a user who pointed me to that line which didn't work on his mac with OSX having python 3.7 systemwide