Giter Club home page Giter Club logo

buytogether's People

Contributors

liorsilberman avatar meitarrizner avatar nofaralfasi avatar omeramsc avatar pazmenachem avatar rawanabuleil avatar thetaxas2468 avatar yftacherzog avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buytogether's Issues

Fix client module and pytest warning

i have fixed the client module with its migrations tests,it was creating a client with false fields and fixed pytest warning that was about collecting TestFields as a test class.

Modify ERD

In this modification:

  • We have deleted the field user_type that was in the table User because:
  1. It is not usable
  2. not effective
  3. extra field that was added by us and cant not be used either now or in the future

Add signup for supplier,client

i will be adding the login functionality with the signup
and i will do the authenticate part for the supplier in order to continue
doing the project logic.

Fix product templates

In this i am fixing the product template as said
and all templates should be in the base DIR/template.

Fix supplier module

i have fixed the supplier module with its migrations tests,it was creating a client with false fields.

Use specific exception on delete_product

delete_product is using broad exception (except Exception). This will make us ignore all failures there, which is seldom what we're after.

The exception needs to change so we ignore only the specific exception that is raised when we try to delete a non-existing element.

Create ordered_products page

Create a web page that display all the ordered of each client.
This page needs to contains a ordered_products table and options to add order/delete order/change quantity.

Fix custom_user

I have :
fixed the migration files
fixed the order of the migration files
fixed the customuser
created the currect way of using the User from django
removed few functions that is not needed
removed few tests that is not needed because django User have created a tests for them already
changed few tests
fixed the migration tests
wrote a better way of testing and the order of saving that happend because of they change of the customuser
and few more.

Add login tag

log in tag was missing and i have added it in order to have login signup tags on the main page for not logged in users.

Adding Supplier product model

in this model the following has been done :
**** creating an app with the name supplierProduct .

  1. creating model which has two foreign keys : one foreign key from product , one from supplier
    • note : the supplier has not been merged yet and since this model depends on it , this code is not final and any changes
      on the supplier model will effect this model
  2. creating test functions : test.py
  3. adding 0002_test_data.py file

Add Delivery Location Module

In this module i have added :

  • functions that is related to the module
  • module fields with checks and validators
  • 0002_test_data to test the module
  • register it to the admin
  • added it to the project
  • added tests to test the functionallity of the module

UI and user input and query to the client and suppliers will be done in a seperated PR and Issue.

Add logout

i have added logging out functionality so if you are logged in you can log out but if you are logged out you will not be able to log out.

Add PR review process and general acceptance criteria to contributing guide

The contributing guide needs to define the process for reviewing a PR and the quality of the commits.

Some suggestions:

  • Descriptive commit message titles and bodies, explaining what the PR is about and if it depends on any other unmerged PRs
  • Students-driven quality review cycles (no LGTMs) and only then mentors provide their reviews.
  • Code review needs to be according to the task requirements - i.e. you need to know the acceptance criteria of the task before reviewing.
  • Code needs to be merged before the weekend.

TEST_DATA defined twice

I (@yftacherzog) asked for TEST_DATA to be reused between the tests and the migration files, and @thetaxas2468 did that, defining the TEST_DATA inside the tests, which @Omeramsc later said should not be done.

I still wouldn't like it to be defined twice, as it makes the tests more fragile given the coupling between the migration data and the tests content. I also agree that it should be defined in the migration file.

If no objections, I think the proper way to have it is to define it on the migration files, and then import it on the tests. Generally speaking, we prefer having the tests import constants coming from the code being tested rather than the other way around.

Add account field in supplier and client

i have changed many things in order to
get a correct project and to have the authentication ability
and future functions that is built in django user model
here are few things:

  • I have added a one to one field for each user and supplier
    that is pointed to a user account in django user model
  • I have changed the migration tests in order to get
    a correct test that do not fail
  • Updated some of few functions in client and supplier
  • Update confest file in order to get rid off warnings
  • Updated pytest test files to have a correct tests

contribution file clarify change

#13
edit: fix #48
need to clarify whether linking an issue is required.

Review Requirements

  • When reviewing, confirm that the code accomplishes the requirements and the acceptance criteria by using one or both ways:
    A GitHub issue: the code fixes the problem.
    Adding a feature: elaborate in the commit the purpose of the code.
    Both cases should have accompanying unit tests that cover all the relevant edge cases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.