Skip to content

Add filterable metadata to permissions#2

Closed
davidbanham wants to merge 1 commit intomasterfrom
permission-metadata
Closed

Add filterable metadata to permissions#2
davidbanham wants to merge 1 commit intomasterfrom
permission-metadata

Conversation

@davidbanham
Copy link
Contributor

No description provided.

@nwinch
Copy link
Contributor

nwinch commented Sep 22, 2015

I understand the idea, though I'm concerned that metadata will be easily abused - especially with projects like Ordermentum in mind.

Can you provide some examples of what the range of metadata might be like?

@davidbanham
Copy link
Contributor Author

The metadata would be arbitrary key value pairs. In the case of Ordermentum it would be things like:

type: 'customer'
entity: 'x'
metadata:
  priceGroup: 'foo'
  visibilityGroup: 'bar'

In the case of something like Kredible they might be:

type: 'bandMember'
entity: 'y'
metadata:
  instrument: 'bassoon'

Another point Simon has raised is that in a world where permissions have metadata we would need to deal with the idea of those being mutable. In the world where permissions are just tuples, they can be immutable.

@davidbanham davidbanham deleted the permission-metadata branch October 14, 2015 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants