Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4608 - Added description field to role #3684

Closed
wants to merge 1 commit into from

Conversation

dhlavac
Copy link
Member

@dhlavac dhlavac commented Jul 28, 2016

No description provided.

@theforeman-bot
Copy link
Member

There were the following issues with the commit message:

  • 22ed5bf must be in the format fixes #redmine_number - brief description

If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project.

More guidelines are available in Coding Standards or on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

@dhlavac dhlavac changed the title Fixes#4608 - Added description field to role Fixes #4608 - Added description field to role Jul 28, 2016
@theforeman-bot
Copy link
Member

There were the following issues with the commit message:

  • 22ed5bf must be in the format fixes #redmine_number - brief description

If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project.

More guidelines are available in Coding Standards or on the Foreman wiki.


This message was auto-generated by Foreman's prprocessor

@tbrisker
Copy link
Member

[test] - this activates the CI testing until you are added to the allowed list.

@dhlavac dhlavac force-pushed the feature/4608 branch 2 times, most recently from 11f15aa to 9948868 Compare July 29, 2016 12:09
@dLobatog
Copy link
Member

This one was closed already in bugzilla as WONTFIX (https://bugzilla.redhat.com/show_bug.cgi?id=1104176) - what's the use case? It complicates our form for little benefit IMO.

@ares
Copy link
Member

ares commented Aug 1, 2016

The reason was "As per upstream bug, adding description here to roles only would be inappropriate.", in upstream issue the only reason I can find is that it can't be considered as a bug so it was changed to RFE. Redmine issue remained open without further comments.

The use-case that I find useful is writing some description to the role. E.g. default role could have description that it's being shared for all users. Maybe we should put it into the seed file but the question is how to deal with localization. Anyway I'd like to add comments to my roles.

It complicates our form for little benefit IMO.

you mean the form that only has name field on the first tab?

@ares
Copy link
Member

ares commented Aug 1, 2016

[test]

@ares
Copy link
Member

ares commented Sep 2, 2016

@dhlavac could you please rebase?

@ares ares self-assigned this Sep 2, 2016
@theforeman-bot
Copy link
Member

Can an existing organization member please verify this patch?

2 similar comments
@theforeman-bot
Copy link
Member

Can an existing organization member please verify this patch?

@theforeman-bot
Copy link
Member

Can an existing organization member please verify this patch?

@ares
Copy link
Member

ares commented Sep 5, 2016

add to PR whitelist

@ares
Copy link
Member

ares commented Sep 21, 2016

@dLobatog are you still against merging and do we need more opinions to decide?

@dLobatog
Copy link
Member

On 09/21, Marek Hulán wrote:

@dLobatog are you still against merging and we need more opinions to decide?

I don't think it makes sense to have this or the other description field
PR I saw. The bugzilla associated is closed, and I can't find any logical
use for the field, but I won't block merging it.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#3684 (comment)

Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

@bbuckingham
Copy link
Member

Given that our RBAC is very fine grained and to a certain extent requires the user to know some of the internal implementation, I think the description on a role could be useful to users. It seems like in the future, it may be useful to have more default roles defined for the user. So that they could then use them directly or as input to build out roles specific to their needs. If/when that occurred, this could be useful in letting the user know what those default roles are.

@thomasmckay
Copy link
Contributor

I'd +1 adding description too. RBAC can get very complex when used realistically for larger groups of users. Being able to add notes to a role would be a benefit.

@ares
Copy link
Member

ares commented Sep 23, 2016

@dhlavac looks good, it only needs to list the new attribute in app/views/api/v2/roles/base.json.rabl so API lists it, otherwise 👍

@dhlavac
Copy link
Member Author

dhlavac commented Sep 26, 2016

@ares added

@ares
Copy link
Member

ares commented Sep 26, 2016

Thanks @dhlavac, merged as 5384798. Could you please also create a simple patch for hammer-cli-foreman so it starts displaying the field?

@ares ares closed this Sep 26, 2016
@dhlavac
Copy link
Member Author

dhlavac commented Sep 26, 2016

@ares sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants