openknowledge-archive / dpr-api

DEPRECATED - Data Package Registry API and Frontend
http://frictionlessdata.io/
MIT License
7 stars 6 forks source link

Converge with openspending conductor API #253

Closed subhankarb closed 7 years ago

subhankarb commented 7 years ago

There were total 3 issues to make dpr-api converge with open-spending API.

Making pull request for three separately was a problem as all three issues were closely related to each other . That is why raising the pull request for all three issues at a time. Below are the commits for each issues:

rufuspollock commented 7 years ago

Commit messages

First commit message is:

[l] Added API /api/bitstore/authorize_upl -refs #248

As i understand the commit this is simply false! You are actually adding /api/datastore/authorise (?).

For a large commit there is a minimal summary. As i note in the review this makes it very hard to understand what is going on in the change.

Second commit:

Modified bitstore upload finalize API - refs #251

Suggest could improve to:

[api]: Refactored finalize API for package upload to simple `/package/upload` - refs #251.

Part of our refactor to get more compatibility with the OpenSpending data package API.

Other comments

subhankarb commented 7 years ago

We want to converge API of both dpr-api and os-conductor. The epic frictionlessdata/dpr-api#249 addressed all the changes we wanted to make so that dpmpy works with both the APIs.

In epic frictionlessdata/dpr-api#249 we mentioned three issues that is related to dpr-api.

This is largely a refactor / modify change. As such, I was not sure I could see where we were removing the old APIs and their tests?

General point (unrelated this commit): Why two separate files: app/auth/annotations.py and app/utils/auth_helper.py?

rufuspollock commented 7 years ago

@subhankarb the summary is much better -- well done 👍 :1st_place_medal: .

Only thing missing was to have had a classic commit summary first line e.g.

[refactor][l]: Refactor to converge our API with openspending conductor API.

...