-
Notifications
You must be signed in to change notification settings - Fork 7
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
PyPI version check #475
PyPI version check #475
Conversation
Codecov Report
@@ Coverage Diff @@
## master #475 +/- ##
=========================================
Coverage ? 90.61%
=========================================
Files ? 36
Lines ? 2439
Branches ? 282
=========================================
Hits ? 2210
Misses ? 178
Partials ? 51
Continue to review full report at Codecov.
|
Guys, why not send CLI version to api(via user-agent header) and check via server side? |
Do you propose to move PyPI request from neuro client to one of (which?) our servers? |
Just add to Http client right user-agent header, like 'neuro/0.2.dev'
API can throw exception if client too old for parsing response. I know that better to use versioning in url(/v1/) but my solution is more cheap at this moment.
I think my idea is not opposite to this PR, it side feature |
From my understanding, you are proposing to send client version in What servers should do? Should we modify all our existing entrypoints (platform, registry, auth, and storage) to process the header? |
Yes
Yes, we need to modify our existing entrypoints. Servers must check client version.
Yes. It`s can be one global value or different for each per end-point.
We can have two variables: required_version, recommended_version It's can be decorator like: |
Sorry, modifying all endpoints for all servers is not an option. Especially manual modifying. |
The code is dirty somewhere but better structure requires config refactoring.
Let's do it in a separate PR.