-
Notifications
You must be signed in to change notification settings - Fork 6
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
Review of code #299
Comments
@pwalsh thank-you for this thorough and really useful review. We'll go through and look at each and address as appropriate. |
@rufuspollock I updated the review with my investigation. Please take a look. |
Nearly done but a few outstanding items. @zelima please can you link subissues into this so we get accurate totals. |
FIXED. each issue is fixed or marked as wontfix. The only outstanding issue about search is #327 |
StageConfig
, but we need one - agreed. See Create production configuration in flask #311 [FIXED]except Exception as e raise Exception is weird: https://github.com/frictionlessdata/dpr-api/blob/master/app/__init__.py#L71Still not fixed: https://github.com/frictionlessdata/dpr-api/blob/master/app/package/models.py#L31Do we really want to read any object from S3, rather than iterate over a stream? https://github.com/frictionlessdata/dpr-api/blob/master/app/package/models.py#L68This really just duplicates logic from the above method, with no clear reason why (could have a more general method to get an object from S3): https://github.com/frictionlessdata/dpr-api/blob/master/app/package/models.py#L72Exception
and return False, especially on operations such as reading, writing and deleting user data, we have a real problem waiting to appear in unexpected ways. Please review the whole codebase for this issue. Another example: https://github.com/frictionlessdata/dpr-api/blob/master/app/package/models.py#L228Is it not better (performance, indexing) to use posgres' native enum? https://github.com/frictionlessdata/dpr-api/blob/master/app/package/models.py#L255(publisher, package, version)
was unique key for Package model. So this method was returning multiple packages. Can change this now. As we created (publisher, package) unique key forPackage
model. So combination of publisher and package will return one row now. See Use sql-alchemy's one method in place of first #313 [FIXED]Is staticmethod the best implementation for many of the methods on here? https://github.com/frictionlessdata/dpr-api/blob/master/app/package/models.py#L239@classmethod
. But we do not get much benefit. [WONTFIX]As github does not guarantee we will get an email, will this not break in certain conditions? https://github.com/frictionlessdata/dpr-api/blob/master/app/auth/controllers.py#L118user_name / username? https://github.com/frictionlessdata/dpr-api/blob/master/app/auth/controllers.py#L113username
. Not a problem [WONTFIX]~~The text was updated successfully, but these errors were encountered: