bagisto / bagisto

Free and open source laravel eCommerce platform
https://bagisto.com
Open Software License 3.0
15.27k stars 2.2k forks source link

Customer model still has `channel_id` as fillable #1532

Closed accountmine closed 5 years ago

accountmine commented 5 years ago

Bug report

Title

Customer model still has channel_id as fillable

https://github.com/bagisto/bagisto/blob/15d935e68b2dda9dbf47bb370d9bd3d29ad6901c/packages/Webkul/Customer/src/Models/Customer.php#L20

But actual column were removed. As a result API register is broken

https://github.com/bagisto/bagisto/blob/04c93e233906d9b2f271ab7c873f0d78ab9781a0/packages/Webkul/Customer/src/Database/Migrations/2019_09_26_163950_remove_channel_id_from_customers_table.php

Don't you guys run any tests when you pushing changes like this?

prashant-webkul commented 5 years ago

@accountmine We heavily rely on manual testing. And it gets done on a periodical basis.

accountmine commented 5 years ago

@prashant-webkul Are you considering implementing unit tests? Also, I wish you code would be more consistent.

Some notes on API

My suggestion would be to focus a bit more on API side of it. It will be big push for this project as people would be able to use more other front-end frameworks

accountmine commented 5 years ago

@prashant-webkul Would you mind helping me with those? https://forums.bagisto.com/topic/425/promotion-free-shipping-over-100 and https://forums.bagisto.com/topic/423/api-how-to-get-parent-url_key?

prashant-webkul commented 5 years ago

@accountmine We are in transition phase for implementing some unit tests and then automating them also. We are targeting releases around this year's end will come with unit & functional test assertions performed with the help of automation testing and with CI too.

Currently team is too over occupied with other deliverable(s) that unit and functional tests have taken a road block.

But it will be done be assure of that.

prashant-webkul commented 5 years ago

@accountmine On this: https://forums.bagisto.com/topic/425/promotion-free-shipping-over-100

You can make your own action class and push it into discount-rules config file with its fully qualified path and then you need to push that same thing in pricerules.cart.actions after successfully merging your configuration you would be able to see your action class in cart rule forms.

accountmine commented 5 years ago

@prashant-webkul Thank you.

Free shipping after some amount in cart everywhere in e-commerce nowadays why not to add some native support?