{"action":"created","issue":{"url":"https://api.github.com/repos/AmpersandTarski/ampersand/issues/272","repository_url":"https://api.github.com/repos/AmpersandTarski/ampersand","labels_url":"https://api.github.com/repos/AmpersandTarski/ampersand/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/AmpersandTarski/ampersand/issues/272/comments","events_url":"https://api.github.com/repos/AmpersandTarski/ampersand/issues/272/events","html_url":"https://github.com/AmpersandTarski/ampersand/issues/272","id":126599562,"number":272,"title":"Interface functionality (bug)","user":{"login":"stefjoosten","id":275768,"avatar_url":"https://avatars.githubusercontent.com/u/275768?v=3","gravatar_id":"","url":"https://api.github.com/users/stefjoosten","html_url":"https://github.com/stefjoosten","followers_url":"https://api.github.com/users/stefjoosten/followers","following_url":"https://api.github.com/users/stefjoosten/following{/other_user}","gists_url":"https://api.github.com/users/stefjoosten/gists{/gist_id}","starred_url":"https://api.github.com/users/stefjoosten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefjoosten/subscriptions","organizations_url":"https://api.github.com/users/stefjoosten/orgs","repos_url":"https://api.github.com/users/stefjoosten/repos","events_url":"https://api.github.com/users/stefjoosten/events{/privacy}","received_events_url":"https://api.github.com/users/stefjoosten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AmpersandTarski/ampersand/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"hanjoosten","id":1159672,"avatar_url":"https://avatars.githubusercontent.com/u/1159672?v=3","gravatar_id":"","url":"https://api.github.com/users/hanjoosten","html_url":"https://github.com/hanjoosten","followers_url":"https://api.github.com/users/hanjoosten/followers","following_url":"https://api.github.com/users/hanjoosten/following{/other_user}","gists_url":"https://api.github.com/users/hanjoosten/gists{/gist_id}","starred_url":"https://api.github.com/users/hanjoosten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanjoosten/subscriptions","organizations_url":"https://api.github.com/users/hanjoosten/orgs","repos_url":"https://api.github.com/users/hanjoosten/repos","events_url":"https://api.github.com/users/hanjoosten/events{/privacy}","received_events_url":"https://api.github.com/users/hanjoosten/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-01-14T07:43:26Z","updated_at":"2016-03-25T09:37:04Z","closed_at":null,"body":"This issue is probably superfluous, as we are waiting for Michiel's CRUD feature. Nevertheless, I want to document this issue as a reminder to myself. In the meantime, I would appreciate @Michiel-s 's view on a possible workaround, because I cannot think of one and I need it badly.\r\n\r\n# Situation and Observations\r\nThis issue is about the source code in Statements.adl  (AmpersandTarski/ampersand-models@379a8f965cfd2950b1bff22d0735c556ec21e4ab), which I have compiled with Ampersand v3.2.0[master:62e159f], build time: 07-Dec-15.\r\nHowever, it still doesn't work with Ampersand v3.3.0[master:e9539fc], build time: 25-Jan-16, which is after the fix of issue #260 (representation mismatch)\r\n\r\nThe script contains the following interface definition:\r\n~~~~~~~~~~~~\r\nINTERFACE Template (name[Sequence*Name], seq, seqHead, preText, type, identifier) : I[Template]\r\nROWS[ \"naam van dit template\" : name[Sequence*Name]\r\n    ,  \"Name your items here:\" : seqHead\r\n    , items : seq~;I[Variable]\r\n      COLS[ identifier : identifier\r\n          , seq        : seq\r\n          , preText    : preText\r\n          , type       : type\r\n          ]\r\n    ]\r\n~~~~~~~~~~~\r\nRight after initializing the database, use \"+\" to create a new template. You can give this template a name and you can create new variables. However, these variables are not shown in the interface. The table of items (which should contain variables) stays empty. Yet, in the database and in the interface \"overzicht\" they are visible. Removing `I[Variable]` from the box-expression `seq~;I[Variable]` helps to remove the symptom.\r\n\r\nAfter removing `I[Variable]`, I get to see the variables, but am unable to fill the field `preText`.\r\n![image](https://cloud.githubusercontent.com/assets/275768/12318983/0458c93e-ba9f-11e5-8002-40de86c5e612.png)\r\n\r\n\r\n# Analysis\r\nMy hunch is that the interface functionality does not treat generalization well."},"comment":{"url":"https://api.github.com/repos/AmpersandTarski/ampersand/issues/comments/201221015","html_url":"https://github.com/AmpersandTarski/ampersand/issues/272#issuecomment-201221015","issue_url":"https://api.github.com/repos/AmpersandTarski/ampersand/issues/272","id":201221015,"user":{"login":"hanjoosten","id":1159672,"avatar_url":"https://avatars.githubusercontent.com/u/1159672?v=3","gravatar_id":"","url":"https://api.github.com/users/hanjoosten","html_url":"https://github.com/hanjoosten","followers_url":"https://api.github.com/users/hanjoosten/followers","following_url":"https://api.github.com/users/hanjoosten/following{/other_user}","gists_url":"https://api.github.com/users/hanjoosten/gists{/gist_id}","starred_url":"https://api.github.com/users/hanjoosten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanjoosten/subscriptions","organizations_url":"https://api.github.com/users/hanjoosten/orgs","repos_url":"https://api.github.com/users/hanjoosten/repos","events_url":"https://api.github.com/users/hanjoosten/events{/privacy}","received_events_url":"https://api.github.com/users/hanjoosten/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T09:37:04Z","updated_at":"2016-03-25T09:37:04Z","body":"I think that there are two separate issues here:\r\n1) The expression `items : seq~;I[Variable]` is not a simple expression. Therefore, modifying it's population should not be allowed. A user defined error shoud be generated on this script. I am however not confident on the exact conditions of this restriction.\r\n2) If the expression would be a simple expression (i.e. `items : seq~`), the json file should contain the source of the declaration.  "}}