hyperstack-org / hyperstack-org/hyperstack

allow active record objects to be passed to operations

Đang mở
#214 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
538
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Currently you have to pass the id, then on the server side find the id. It would be good to do this automatically.

However that is easy.. the harder part is to keep the abstraction whole, you need to pass the current record changes to the server, so that the current client context can be resestablished on the server.

Currently for example the hypermodel save and fetch operations, gathers up all the related records to the record being saved/fetched, and sends not only the record to being saved (or vector to record to be fetched) but also any of the related records that have changed values.

This is used so that on the server the context of the fetch/save is reproduced on the server.

What we should do is create a mixin that can be added to Operations, that adds this behavior, and then use it to implement fetch and save, and then allow it be used by other application defined operations.

This would help make implementation of #213 straight forward

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.