Skip to content
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

OKI code review #41

Closed
9 of 12 tasks
pwalsh opened this issue Dec 6, 2016 · 10 comments
Closed
9 of 12 tasks

OKI code review #41

pwalsh opened this issue Dec 6, 2016 · 10 comments

Comments

@pwalsh
Copy link

pwalsh commented Dec 6, 2016

@Fak3
Copy link
Contributor

Fak3 commented Dec 6, 2016

Travis build fixed (coveralls repo enabled after rename)

@rufuspollock
Copy link
Contributor

rufuspollock commented Dec 6, 2016

@pwalsh

The CLI only has two methods - validate and publish. The requirements for the CLI are quite clear and much more extensive.

We have not had plans to implement all of this as we went with user stories that were more minimal and focused on publish only.

Publishing requires username and password on each publish action. Yet we do use jwt elsewhere. Please explain how auth/z works, and document it in the README. I don't understand why we'd want to use the password at all, once we have a jwt.

I'm still rather unclear on good practice with jwt. Giving out an infinitely lived token in the jwt seems to me problematic so we have a model where you have an access key that you can use (like an API key) and you submit that to get a jwt that you can use throughout a request cycle e.g. for publish.

As I've noted elsewhere, it is an unusual design to not properly validate data packages locally before pushing them to the server. We can completely avoid a whole class of user interactions, server error responses, and bad data quality, by doing this.

At the moment we do validate the json before pushing but not the data. Are you asking that we validate data too. Definitely something sensible to do but not MVP.

@pwalsh
Copy link
Author

pwalsh commented Dec 6, 2016

@rgrp the user stories are/where a way to order the requirements, not replace them. In any event, all but one of the API methods there are directly relevant to publishers: list, create, update, read, validate, delete.

@rufuspollock
Copy link
Contributor

@pwalsh that was not how i had understood it. We did user stories and then picked prioritized ones. There is a bunch of stuff in the requirements that were not in the prioritized user stories. Let me be clear: I think requirements are good too - just not what we have been working off.

@pwalsh
Copy link
Author

pwalsh commented Dec 6, 2016

@rgrp currently, the validation of the DP is not profile-aware, and profile-specific validation is built into datapackage-py so is readily available. I think it would be useful. Likewise with data validation on the client (or server, if must) using goodtables or jsontableschema.Table - all the logic is there, and adding them to the client would ensure that the assumptions for tabular data on the server (vis, resource endpoints etc.) are safe assumptions to make.

@pwalsh
Copy link
Author

pwalsh commented Dec 6, 2016

@rgrp about long-lived JWT tokens, I'm not 100% sure myself. @akariv WDYT, and what do we do on OpenSpending?

@Fak3
Copy link
Contributor

Fak3 commented Dec 6, 2016

@pwalsh The dpm name is already taken on the pypi. Can we pick dpmpy or any other name to publish there? Or maybe someone can convince current owners to release it for us? (they seem to abandon it 4 years ago)

@pwalsh
Copy link
Author

pwalsh commented Dec 6, 2016

@Fak3 :). @rgrp owns dpm on pypi. It was the first ever implementation of this tooling.

@rufuspollock rufuspollock added this to the Sprint - 19 Dec 2016 milestone Dec 6, 2016
rufuspollock added a commit that referenced this issue Dec 13, 2016
[setup][s]: get package version in standard OKI way - refs #41.
@rufuspollock
Copy link
Contributor

@pwalsh I'm still stuck re pypi because i don't have access to my account anymore. I've requested access to my account again here https://sourceforge.net/p/pypi/support-requests/685/ (but that was 2m ago and nothing has moved!)

@rufuspollock
Copy link
Contributor

FIXED. I'm closed as fixed. Remaining items are either blocked e.g. #71 or are items that are planned but not immediate e.g. local data validation #46 or the work on other commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants