[
https://issues.apache.org/jira/browse/FC-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14534107#comment-14534107
]
Shawn McKinney commented on FC-100:
-----------------------------------
The solution:
Disable the 'add' button in detail panel when an item from the list has been
selected. Now to add, one must enter the fields manually.
As a next step:
Add a 'copy' button to detail panel for selected items. This will clear the
primary key fields of the entity while preserving the other fields.
Rationale:
Items displayed in detail form are tied to the model components in the list.
Therefore modifying a detail field and clicking add will create a new element
and add to the list, but it also modifies the existing item that was originally
selected. It would be difficult to alter this behavior and complicate the code
and possibly render the code brittle.
This solution was applied across all of the pages in the app.
> RBAC Permission Operation Detail keeps state: consequent addition of
> permissions
> --------------------------------------------------------------------------------
>
> Key: FC-100
> URL: https://issues.apache.org/jira/browse/FC-100
> Project: FORTRESS
> Issue Type: Bug
> Affects Versions: 1.0.0-RC40
> Environment: Web server = Apache Tomcat/8.0.21
> Java 1.8.0_31-b13
> Mac OS X Yosemite 10.10.2
> LDAP = Apacheds-2.0.0-M19
> browser = Safari 8.0.4
> Reporter: Aleksandr B
> Attachments: Screen Shot 2015-05-01 at 12.45.34.png, Screen Shot
> 2015-05-01 at 12.46.58.png
>
>
> After creating a permission object {{ https://galileo/query }} I went on with
> creating permissions and adding them to existing roles. I wanted to create
> the following permissions:
> Permission 1:
> - Object Name = https://galileo/query
> - Operation Name = GET
> - Roles = galieoReader
> Permission 2:
> - Object Name = https://galileo/query
> - Operation Name = POST
> - Roles = galieoReader
> A {{Permission Operation Page}}, when you first open it, contains an empty
> {{RBAC Permission Operation Detail}} panel for managing permissions. After
> searching through the objects, finding the object, searching+finding the
> role, addition of the first permission works flawlessly. However, it is not
> that trivial to add another permission because {{RBAC Permission Operation
> Detail}} panel still contains the details of the previously created
> permission even though it is not highlighted in the table view to the left of
> the management panel. There is no way to clear the management table from the
> previous state besides choosing some link from {{Nav Panel}}, going there,
> and then back to {{Permission Operation Page}}.
> So, I want to add permission #2 using the management panel that still keeps
> state of the previous permission. I change the operation name to {{POST}},
> choose the same role once again, and click the {{add}} button. I get two
> identical POST permissions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)