I am developing a web application which is like a online shopping platform. I read from some post saying that mutable data cannot be share publicly, but only immutable data. Is that correct? If not, how can I store the data in a public container.
The current method I use is that the data will be store in a mutable data entry, but only the user (creator) can view for the data. The step is as follow:
The user enter the webpage.
The webpage detect whether the user has the MD entry call “product”
If no, then create one and continue to step 4.
If yes, navigate to home page.
However, the MD entry created is for the user only… How to let the webpage itself have a MD entry or a variable that keeps all the information users uploaded?
If you wish to do this then pre-create the MDs with you as the owner and allow everyone to add fields. I am under the understanding that the permissions can be set for each field. Thus the MDs exist but empty till the APP loads up the MD.
Of course you can write your APP such that the user owns the MD for the product they create/upload. Then all you need to do is pre-create the needed indexing MDs for pointing to the product. (eg Cars, xyzbrand, abcmodel)
Yes, but there are circumstances where a sale site wants the user to own their data, but say a order where you don’t want the user to modify once order is accepted. This could cause logistic issues where the customer changes the order and claims the seller over charged. And causes a lot of trouble. So it would be good for the actual order to be placed in a site owner owned MD.
But that is wasteful. The company would want to add fields to the order. Like “order picked”, “back ordered” items etc etc, rather than create new MDs just to make notes and add fields.
So I can see a lot of use for the company/shop owing the order object when a customer orders an item from them. And the customer would have read rights to that order.
To remove ownership means that the permissions has to allow anyone to read the customer’s order rather than just the store owner and the customer. (when multiple IDs are included in the ownership & permissions). Too bad if you are ordering sensitive things (creams, prescriptions, or whatever)