Skip to content

Conversation

@stoopidJSON
Copy link
Member

@stoopidJSON stoopidJSON commented Jul 11, 2020

This allows attribute saving on entities. Also fixes JWT's only identifying
users as users and not admin/user, etc.
resolves #216
resolves #217

Todos

  • Tests
  • Documentation

Impacted Areas in Application

List general components of the application that this PR will affect:

  • entities
  • JWT

This allows attribute saving on entities. Also fixes JWT's only identifying
users as users and not admin/user, etc.
resolves #216
resolves #217
@stoopidJSON stoopidJSON requested a review from a team July 11, 2020 00:55
"path": "/entity",
"method": "GET"
},
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're wildcarding, do you need the rule above this one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that Casbin is touchy. It is very literal, so anything leading up to a wildcard isn't allowed because of the wildcard, but I'll test this.

entity.address = (address) ? address : entity.address
entity.phone = (phone) ? phone : entity.phone
entity.email = (email) ? email : entity.email
entity.email = (email) ? email : entity.email
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to tab these back?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't realize I did. Probably linter.

"responses" : {
"200" : {
"201" : {
"description" : "contact created"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated: can we capitalize C in contact?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I'm not sure what to put here. The actual message is ${contact.id} created. For now I'm going to leave as is, but we'll circle back on all responses like this to figure out what we want to say there.

@c-w-allen c-w-allen self-requested a review July 13, 2020 14:41
@stoopidJSON
Copy link
Member Author

Not sure what's up with Codecov. There is a ticket #221 to look into this. Merging without Codecov passing.

@stoopidJSON stoopidJSON merged commit 38bd4b1 into master Jul 13, 2020
@stoopidJSON stoopidJSON deleted the revjtanton/issue-216 branch July 13, 2020 15:06
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.

All JWT's identify user as user type Add attribute saving to entities

3 participants