cargo's People
cargo's Issues
Feedback
Hello! Thanks for your time and efforts. You can find some comments about the homework below.
BE
- No migrations in the repo.
- CORS_ORIGIN_WHITELIST = ["http://localhost:8080"] -- in my case I had to modify it because 8080 was already occupied.
- It would be nice to see a bit more complex db schema
- back.api.test.test_api.APITest.test_get_user_list:29 -- It appears unclear to me. The obtained username is compared to the admin or user. But 'owner' key is used for self.fail statement. I would just omit that 'else' block as it is redundant. If a test fails, let it fail and then investigate the issue.
- back.api.test.test_api.APITest.test_get_user_details:39 -- it might happen that id would become different
- back.api.test.test_api.APITest.test_get_shipment_list -- again, if a test fails, let it fail, I don't see a need to use self.fail statement. Just compare the actual response with expected.
- back.api.test.test_api.APITest.test_add_shipment -- It might be best to divide this test into two parts: creation and permissions. Additionaly, usually you want to make sure that response code is what was expected and then verify that content is in db.
- len(Shipment.objects.all()) -- Shipment.objects.count()
- self.assertGreaterEqual(response.status_code, 400) -- why not just self.assertEqual?
- back.api.test.test_api.APITest.test_delete_shipment -- why 300 code for delete? I think the default is 204
FE
- What's the reason of using jquery's ajax?
- No error handling. A user should be notified if something is wrong.
Summary:
I appreciate how the code is organized and not overly confusing, especially the FE section. However, I would expect slightly more advanced methods for testing and model structure.
Please feel free to tackle the issues listed above If you are willing to so. However, I don't want to raise false expectations, so just be aware that our partners are looking for middle+ level.
Do not hesitate to request clarifications on my comments.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.