atomic-data-docs
atomic-data-docs copied to clipboard
Access requests - ask for rights to specific resources
In google Docs, users are shown a ask access to this screen when they open a file which they don't have the rights to. I'd like to offer similar functionality in Atomic Data. In google docs, the access request is sent to the owner. We don't have owners in Atomic, just people with Read access. Should we introduce the owner property? Should it be set in a Drive only?
Endpoint architecture
- There's a
/accessRequestEndpoint. This accepts at least two argument: 1) the resource and 2) the agent making the request. - The User presses a button in the GUI that sends a request to this endpoint.
- The server will create an
AccesRequestresource describing these same fields. The third field will be deduced by who's theOwnerof the resource. - The admin of the server has a Collection for AccessRequests. In the front-end, we create a GUI that adds the rights to the corresponding resource by creating a Commit that modifies the Read resources.
Questions:
- We need some way of notifying the Owner. #28
- The Owner does not exist yet. Should we make this required for Drive resources? Intuitively, this makes sense: there should always be someone in charge of some piece of data.