profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/chessbr/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Christian Hess chessbr Shuup Commerce Inc Blumenau, Brazil

chessbr/rest-jwt-permission 13

Module that check API View permissions from JWT payloads

chessbr/shuup-channels 5

Enable Django Channels on Shuup platform

chessbr/shuup-cli 5

Shuup Command Line Interface (CLI)

chessbr/giustizia-scrap 3

Project that scans for italian citizenship judicial processes in Giustizia Civile from Rome court.

chessbr/shuup-admin-channel 3

Add admin notifications using Shuup Channels

chessbr/python-boleto 2

A Python library for generating Boletos

chessbr/rest-jwt-permission-example 1

Django Rest JWT Permission Examples

chessbr/shuup-api-permission 1

Shuup API Permission

chessbr/shuup-br 1

A Shoop add-on for custom Brazilian e-commerce

chessbr/shuup-cielo 1

Cielo gateway payment add-on for Shoop

push eventchessbr/shuup

Christian Hess

commit sha 4f3084e7d36ebb2568e59ff5af9ecf50857c0a65

Update documentation

view details

Christian Hess

commit sha a6158618c9927753a277e8e8c407983d43bd7d76

Update deprecations

view details

Christian Hess

commit sha 17b8693703b04e5eb6b725bfff40b1b3d0078524

Add visibility attribute on the catalog context Make it possible to return only visible products when purchasibility is False

view details

Christian Hess

commit sha 2050db0f0c7bbee612cbb054b217356e6c5877a3

Reindex catalog and test the new visibility attribute in context

view details

Christian Hess

commit sha f906fae7f3d9c6a285db6b7b7a3f7a368dd3d50c

Front: use LISTED and SEARCHABLE filters correctly

view details

push time in 2 days

push eventchessbr/shuup

Christian Hess

commit sha 4c3c1105eb4fa3fa1a0f96388b48d8c1d1c525af

DOCUMENTATION

view details

Christian Hess

commit sha 37f403487d34c749476eacfeecb9f442a7653cd6

Update deprecations

view details

Christian Hess

commit sha aedff4414bb14656f25ccaf0cf1f70be0f63efa1

Add visibility attribute on the catalog context Make it possible to return only visible products when purchasibility is False

view details

Christian Hess

commit sha cb5edb05bac49d0a37d9fdacc33f798f4f3032ab

Reindex catalog and test the new visibility attribute in context

view details

Christian Hess

commit sha 261169587dd8d47b832e42a050ae50c70a6f3a39

Front: use LISTED and SEARCHABLE filters correctly

view details

push time in 2 days

Pull request review commentshuup/shuup

Add order status history.

 def ensure_default_statuses(self):             else:                 OrderStatus.objects.create(**defaults) +        self.ensure_allowed_next_statuses()++    def ensure_allowed_next_statuses(self):+        """+        Populates allowed_next_statuses with default values.+        """+        # run only if there are no allowed_next_statues defined.+        os_qs = OrderStatus.objects.filter(~Q(allowed_next_statuses=None))+        if not os_qs:+            order_status_qs = OrderStatus.objects.all()+            for order_status in order_status_qs:

ok, there is no way for us to really decide if we can actually run this ensure_allowed_next_statuses. Let's go back to the migration idea, so it will run only once. Create a migration in core that will call this and that's it.

eberonsh

comment created time in 3 days

PullRequestReviewEvent

Pull request review commentshuup/shuup

Add order status history.

         <div class="col-sm-12">             {{ order_contents() }}         </div>+        {% set _order_history = order.order_history.all() %}
{% if order.order_history.exists() %}
        <div class="col-sm-12">
            {{ order_status_history(order.order_history.all()) }}
        </div>
{% endif %}
eberonsh

comment created time in 3 days

PullRequestReviewEvent

PR opened shuup/shuup

Core: don't make attribute choices required fields
+20 -1

0 comment

3 changed files

pr created time in 3 days

create barnchchessbr/shuup

branch : fix-attr-m2m

created branch time in 3 days

PullRequestReviewEvent

Pull request review commentshuup/shuup

Add order status history.

  @receiver(post_migrate) def on_migrate(sender, **kwargs):-    from .models import SupplierModule+    from .models import OrderStatus, OrderStatusManager, SupplierModule      SupplierModule.ensure_all_supplier_modules() +    os_qs = OrderStatus.objects.filter(~Q(allowed_next_statuses=None))+    if not os_qs:+        OrderStatusManager().ensure_allowed_next_statuses()

so make ensure_allowed_next_statuses to not overwrite if they were already created, make it safe to run everytime

eberonsh

comment created time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha 1cfd7177f706d5f6c8f737c77b013f3ae7136335

Fix unit tests by indexing catalog products

view details

Christian Hess

commit sha 63b062ccec35fd7d2822d06865d5eaf216d60f28

Core: fix sales unit FK field Remove the deprecatation warning

view details

push time in 3 days

Pull request review commentshuup/shuup

Add order status history.

  @receiver(post_migrate) def on_migrate(sender, **kwargs):-    from .models import SupplierModule+    from .models import OrderStatus, OrderStatusManager, SupplierModule      SupplierModule.ensure_all_supplier_modules() +    os_qs = OrderStatus.objects.filter(~Q(allowed_next_statuses=None))+    if not os_qs:+        OrderStatusManager().ensure_allowed_next_statuses()

I think it is safe to run this every time 🤔

eberonsh

comment created time in 3 days

Pull request review commentshuup/shuup

Add order status history.

+<div class="d-sm-none d-md-block table-responsive">+    <table class="table table-striped {% if not order_status_history %} hidden {% endif %}">+        <thead>+        <tr>+            <th>{% trans %}State{% endtrans %}</th>+            <th>{% trans %}User{% endtrans %}</th>+            <th>{% trans %}Status{% endtrans %}</th>+            <th>{% trans %}Description{% endtrans %}</th>+            <th>{% trans %}Actions{% endtrans %}</th>+        </tr>+        </thead>+        <tbody>+        {% for status_history_item in order_status_history %}+            <tr>+                <td>{{ status_history_item.created_on|datetime }}</td>+                <td>{{ status_history_item.creator }}</td>+                <td>{{ status_history_item.next_order_status }}</td>+                <td>{{ status_history_item.description if status_history_item.description else '-' }}</td>+                <td>+                    {% if not (status_history_item.order.is_complete() or status_history_item.order.is_canceled()) %}+                    <a+                        href="{{ url('shuup_admin:order.delete-order-status-history', pk=status_history_item.order_id) }}"+                        data-order-status-history="{{ status_history_item.pk }}"+                        name="delete-order-status-history-link"+                        class="btn btn-danger btn-sm"+                    >+                        <i class="fa fa-close"></i> {{ _("Delete") }}+                    </a>+                    {% endif %}++                </td>+            </tr>+        {% endfor %}+        </tbody>+    </table>+</div>+<div class="d-none d-sm-block d-md-none mobile-list-group {% if not order_status_history %} hidden {% endif %}">+    <ul class="list-group">+        {% for status_history_item in order_status_history %}+            <li class="list-group-item">+                <div class="row">+                    <div class="col-sm-8">+                        {{ status_history_item.created_on|datetime }}<br>+                        {{ status_history_item.creator }}<br>+                        {% trans %}Description{% endtrans %}: {{ status_history_item.description if status_history_item.description else '-' }}+                    </div>+                    <div class="col-sm-4 text-right">+                        <strong>{{ status_history_item.next_order_status }}</strong>+                    </div>+                    <div class="col-xs-1 text-center">+                        {% if not (status_history_item.order.is_complete() or status_history_item.order.is_canceled()) %}

hummm I'm not sure we want to allow deleting order status changes :)

eberonsh

comment created time in 3 days

Pull request review commentshuup/shuup

Add order status history.

 class OrderStatusListView(PicotableListView):         Column(             "default", _("Default"), linked=False, filter_config=ChoicesFilter([(False, _("yes")), (True, _("no"))])         ),+        Column(+            "allowed_next_statuses",+            _("Allowed Next Status"),+            linked=False,+            display="get_allowed_next_statuses_display",+        ),+        Column(+            "visible_for_customer",+            _("Visible For Customer"),+            linked=False,+            filter_config=ChoicesFilter([(False, _("yes")), (True, _("no"))]),+        ),         Column(             "is_active", _("Active"), linked=False, filter_config=ChoicesFilter([(False, _("yes")), (True, _("no"))])         ),     ]++    def get_allowed_next_statuses_display(self, instance):+        order_status_names = [order_status.name for order_status in instance.allowed_next_statuses.all()]+        return ", ".join(order_status_names) if order_status_names else _("No allowed next status.")+++class OrderDeleteStatusHistoryView(BaseDeleteView):

yeah we likely don't need this, at least for now

eberonsh

comment created time in 3 days

Pull request review commentshuup/shuup

Add order status history.

 class OrderHistoryItem(DashboardItem):      def get_context(self):         context = super(OrderHistoryItem, self).get_context()-        context["orders"] = Order.objects.filter(customer=self.request.customer).order_by("-created_on")[:5]+        context["order_status_history"] = (

no, keep showing the orders, just show the order history inside the order detail view

eberonsh

comment created time in 3 days

Pull request review commentshuup/shuup

Add order status history.

             </tr>         </thead>         <tbody>-            {% for order in orders %}+            {% for order_status_change in order_status_history %}

no need to change this

eberonsh

comment created time in 3 days

Pull request review commentshuup/shuup

Add order status history.

 {% endblock %}  {% block dashboard_content %}-    {% if orders %}-        <div class="table-responsive">+    {% if order_status_history %}

oh no, show the order status changes inside the order detail instead 😅 , so the user can see the history changes for a single order

eberonsh

comment created time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha 948a6e22a2d586f923d23d40ff1b2286e3af8e3f

Add catalog migration file

view details

Christian Hess

commit sha 59cb3b07fb0b3b9dd3ff24275db77f821a02d8ee

Create catalog method to annotate existing querysets

view details

Christian Hess

commit sha 56b78e1894c3028c3381b984140ec5b43cc5d4cf

Core: do not update stocks every time ShopProduct is saved Move the logic to the admin once a product is changed. This prevents calling an expensive method multiple times.

view details

Christian Hess

commit sha 6fdc048fb9781f2975a76c805032c92986a3871e

Index the price of parent products and fallback to zero Never index null prices

view details

Christian Hess

commit sha c6a3672a9cf0b6141c8ccf21595aed6ef65e1be2

Front: use the new Catalog API Remove broken cache that was storing queryset with complex product data that doesn't make sense as the cache should be placed in template level instead

view details

Christian Hess

commit sha e3c13097ad166d68860448d3959803072230f366

Xtheme: use the new Catalog API

view details

Christian Hess

commit sha 767d7f96b7f650998a8d0866cebdbc2dbd336de6

Core: do not update stocks every time ShopProduct is saved

view details

Christian Hess

commit sha a1824a869bae2be645dfa7deff9b350c28977b8a

Fix unit tests by indexing catalog products

view details

Christian Hess

commit sha 156407eddb8a6ae4c3ececa473fdb5c4c4a890de

Core: fix sales unit FK field Remove the deprecatation warning

view details

push time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha 556871d52935de986cb8413ed4e9bc99ab49fca0

Front: enforce setting the current customer to the basket When there is a customer and the basket still doesn't have a customer, set it on the address phase. There are cases when an anonymous user create a basket (adding a product) and the checkout phases can't have access to the current basket.customer as it was never set after the user logs is. Only set the customer when there is no one set previously. Refs https://trello.com/c/YnkkHRR5

view details

Christian Hess

commit sha f50ee248e20de070f137a9396d403ea94a524db0

Merge pull request #2562 from chessbr/fix-basket-customer Front: enforce setting the current customer to the basket

view details

Christian Hess

commit sha 6b2eccb942997bfd6cdaff36b4eb26ab9750ea84

Add initial ProductCatalog API and tests

view details

Christian Hess

commit sha 0182d49cf240fe0da842d632ee59e9d209017cab

Add initial implementation for the default product price

view details

Christian Hess

commit sha 482688e6479d977e420eff5164aa1484366a77ff

Admin: index produce prices when object is saved in view

view details

Christian Hess

commit sha f8f6a88852b6675a4d04faae46cd640a49c7e8cf

Add initial implementation for the default product price

view details

Christian Hess

commit sha 7b60567a2b6571c81c1b70d3acc205b78c415d0d

Add availability model to track when products are available

view details

Christian Hess

commit sha c6e504ab5ea8a76491f1d708de8c7865964d2730

Make simple supplier to update product availability on index

view details

Christian Hess

commit sha 2f758d20c7152f9188cc0935c1b0ae2b4690467c

Use pricing module to index shop product prices

view details

Christian Hess

commit sha 0ff23db65c267f5e702930904084fe849230e768

Add Product Catalog API documentation

view details

Christian Hess

commit sha d068f40ddd6657c92b2673fc998198553f5faf90

Add management command to reindex product prices

view details

Christian Hess

commit sha eea383add8666e7d6376da7efb1030e9956a66b8

Merge catalog price and availability status inside one model

view details

Christian Hess

commit sha 237554b791ac0796873f8155fbbfbd1aaead51a3

Implement the product indexing in the CGP module

view details

Christian Hess

commit sha 89b0109bd379f9b4b98d703aa7a87b3b934cee71

Implement correct contact filtering and fix discounted prices

view details

Christian Hess

commit sha eab80965789e8a4f4cb38ce4e3b4d3917e85a3d1

Test CGP with variations and get best prices first

view details

Christian Hess

commit sha 82f3af1476c403349b4b12a61d70375b51cf6c5c

Improve the performance a little and add more tests

view details

Christian Hess

commit sha c7e99c6f9742b615d538883651cc888568d26af2

Small performance improvements

view details

Christian Hess

commit sha 614ad031721c97aa2b3550ada5ad2ca159ac5242

Add catalog migration file

view details

Christian Hess

commit sha 651feb5b16307e33e8dfb0bbbfc4135c4febf16b

Create catalog method to annotate existing querysets

view details

Christian Hess

commit sha 34484bd75de2451f718c89585f3342c73c63a076

Core: do not update stocks every time ShopProduct is saved Move the logic to the admin once a product is changed. This prevents calling an expensive method multiple times.

view details

push time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha 556871d52935de986cb8413ed4e9bc99ab49fca0

Front: enforce setting the current customer to the basket When there is a customer and the basket still doesn't have a customer, set it on the address phase. There are cases when an anonymous user create a basket (adding a product) and the checkout phases can't have access to the current basket.customer as it was never set after the user logs is. Only set the customer when there is no one set previously. Refs https://trello.com/c/YnkkHRR5

view details

Christian Hess

commit sha f50ee248e20de070f137a9396d403ea94a524db0

Merge pull request #2562 from chessbr/fix-basket-customer Front: enforce setting the current customer to the basket

view details

push time in 3 days

push eventshuup/shuup

Christian Hess

commit sha 556871d52935de986cb8413ed4e9bc99ab49fca0

Front: enforce setting the current customer to the basket When there is a customer and the basket still doesn't have a customer, set it on the address phase. There are cases when an anonymous user create a basket (adding a product) and the checkout phases can't have access to the current basket.customer as it was never set after the user logs is. Only set the customer when there is no one set previously. Refs https://trello.com/c/YnkkHRR5

view details

Christian Hess

commit sha f50ee248e20de070f137a9396d403ea94a524db0

Merge pull request #2562 from chessbr/fix-basket-customer Front: enforce setting the current customer to the basket

view details

push time in 3 days

PR merged shuup/shuup

Front: enforce setting the current customer to the basket

When there is a customer and the basket still doesn't have a customer, set it on the address phase.

There are cases when an anonymous user create a basket (adding a product) and the checkout phases can't have access to the current basket.customer as it was never set after the user logs is.

Only set the customer when there is no one set previously.

Refs https://trello.com/c/YnkkHRR5

+9 -1

1 comment

3 changed files

chessbr

pr closed time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha e1bbfd65e07212f27e6c0a89c60c213031616a3f

Admin: improve user and permission groups admin - Admin: remove the members field from the permission groups - Admin: add the groups field in user picotable list - Admin: improve the format of the user list for mobile devices Refs OR-30

view details

Emiliano Beronich

commit sha 099ed5dc386a9fc1cc153cc897dcda5d6271e517

Add product validator and shows a warning for not valid products.

view details

Christian Hess

commit sha d5630e213e7d35af570bfc4d52d0cee13abe9714

Merge pull request #2550 from eberonsh/addProductValidators Add product validator and shows a warning for not valid products.

view details

Christian Hess

commit sha 3281ddec33fbb097587e28cf2255be2ca19af99b

Fixed small issues with new admin product issue warnings

view details

Christian Hess

commit sha 04bd23cdef94e5a2262d13e2d9906ad1fe963143

Merge branch 'master' into improve-user-admin

view details

Christian Hess

commit sha 82add19c9064c991207de2dd9599e80065b6e5dc

Merge pull request #2552 from chessbr/improve-user-admin Admin: improve user and permission groups admin

view details

Christian Hess

commit sha 8801b57ef01eb91d7223345504e33ace65aab90d

Add initial ProductCatalog API and tests

view details

Christian Hess

commit sha 446196cb6ac441ecb0b17f508a76e70a1a8fdedb

Add initial implementation for the default product price

view details

Christian Hess

commit sha 9e27870de6088d4d4b7b01198cc3e8164c4dad28

Admin: index produce prices when object is saved in view

view details

Christian Hess

commit sha 5fd999eaa61857419995f83da8a2845958b61352

Add initial implementation for the default product price

view details

Christian Hess

commit sha b4ccd725bc9bf8efa8889b216800ef1fb54ac41f

Add availability model to track when products are available

view details

Christian Hess

commit sha 490509e8905dbda5917e59ba251a186083dd71da

Make simple supplier to update product availability on index

view details

Christian Hess

commit sha d445adf722f52cf1b82906e4834369116b2ab8fc

Use pricing module to index shop product prices

view details

Christian Hess

commit sha 08758081d3e98b71d58a86a0f71c8919439681a8

Add Product Catalog API documentation

view details

Christian Hess

commit sha b957a63bc18abcb4698e3dfdd0dfbb3b95dc44ae

Add management command to reindex product prices

view details

Christian Hess

commit sha 255165862510ee7ab68a4790ae8552d01b76dc7e

Merge catalog price and availability status inside one model

view details

Christian Hess

commit sha 6a64ca7e3086268ceb71cad402ffc383f02e66c4

Implement the product indexing in the CGP module

view details

Christian Hess

commit sha ff2efacd40c09525943e4d14e100b46713a6da62

Implement correct contact filtering and fix discounted prices

view details

Christian Hess

commit sha 128a42799835cdfdbbba9e224f61d7a6a8f8d005

Test CGP with variations and get best prices first

view details

Christian Hess

commit sha 8afa21e8be476619c788689a97b8ebd573b9a5de

Improve the performance a little and add more tests

view details

push time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha e1bbfd65e07212f27e6c0a89c60c213031616a3f

Admin: improve user and permission groups admin - Admin: remove the members field from the permission groups - Admin: add the groups field in user picotable list - Admin: improve the format of the user list for mobile devices Refs OR-30

view details

Christian Hess

commit sha 04bd23cdef94e5a2262d13e2d9906ad1fe963143

Merge branch 'master' into improve-user-admin

view details

Christian Hess

commit sha 82add19c9064c991207de2dd9599e80065b6e5dc

Merge pull request #2552 from chessbr/improve-user-admin Admin: improve user and permission groups admin

view details

Christian Hess

commit sha 556871d52935de986cb8413ed4e9bc99ab49fca0

Front: enforce setting the current customer to the basket When there is a customer and the basket still doesn't have a customer, set it on the address phase. There are cases when an anonymous user create a basket (adding a product) and the checkout phases can't have access to the current basket.customer as it was never set after the user logs is. Only set the customer when there is no one set previously. Refs https://trello.com/c/YnkkHRR5

view details

push time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha e1bbfd65e07212f27e6c0a89c60c213031616a3f

Admin: improve user and permission groups admin - Admin: remove the members field from the permission groups - Admin: add the groups field in user picotable list - Admin: improve the format of the user list for mobile devices Refs OR-30

view details

Christian Hess

commit sha 3281ddec33fbb097587e28cf2255be2ca19af99b

Fixed small issues with new admin product issue warnings

view details

Christian Hess

commit sha 04bd23cdef94e5a2262d13e2d9906ad1fe963143

Merge branch 'master' into improve-user-admin

view details

Christian Hess

commit sha 82add19c9064c991207de2dd9599e80065b6e5dc

Merge pull request #2552 from chessbr/improve-user-admin Admin: improve user and permission groups admin

view details

push time in 3 days

push eventshuup/shuup

Christian Hess

commit sha e1bbfd65e07212f27e6c0a89c60c213031616a3f

Admin: improve user and permission groups admin - Admin: remove the members field from the permission groups - Admin: add the groups field in user picotable list - Admin: improve the format of the user list for mobile devices Refs OR-30

view details

Christian Hess

commit sha 04bd23cdef94e5a2262d13e2d9906ad1fe963143

Merge branch 'master' into improve-user-admin

view details

Christian Hess

commit sha 82add19c9064c991207de2dd9599e80065b6e5dc

Merge pull request #2552 from chessbr/improve-user-admin Admin: improve user and permission groups admin

view details

push time in 3 days

PR merged shuup/shuup

Admin: improve user and permission groups admin
  • Admin: remove the members field from the permission groups
  • Admin: add the groups field in user picotable list
  • Admin: improve the format of the user list for mobile devices

Refs OR-30

image image image

+25 -45

1 comment

4 changed files

chessbr

pr closed time in 3 days

push eventchessbr/shuup

Emiliano Beronich

commit sha 099ed5dc386a9fc1cc153cc897dcda5d6271e517

Add product validator and shows a warning for not valid products.

view details

Christian Hess

commit sha d5630e213e7d35af570bfc4d52d0cee13abe9714

Merge pull request #2550 from eberonsh/addProductValidators Add product validator and shows a warning for not valid products.

view details

Christian Hess

commit sha 3281ddec33fbb097587e28cf2255be2ca19af99b

Fixed small issues with new admin product issue warnings

view details

Christian Hess

commit sha 04bd23cdef94e5a2262d13e2d9906ad1fe963143

Merge branch 'master' into improve-user-admin

view details

push time in 3 days

push eventchessbr/shuup

Christian Hess

commit sha bf07f979a10f1d3f66d6105a0aa5b2420f86da8a

save

view details

push time in 4 days

push eventchessbr/shuup

Christian Hess

commit sha d3a4a9e8c3b9d0caf32624d4f9fb085fa39b4b08

Front: enforce setting the current customer to the basket When there is a customer and the basket still doesn't have a customer, set it on the address phase. There are cases when an anonymous user create a basket (adding a product) and the checkout phases can't have access to the current basket.customer as it was never set after the user logs is. Only set the customer when there is no one set previously. Refs https://trello.com/c/YnkkHRR5

view details

push time in 4 days