{"action":"created","issue":{"url":"https://api.github.com/repos/jjacquay712/GoRods/issues/17","repository_url":"https://api.github.com/repos/jjacquay712/GoRods","labels_url":"https://api.github.com/repos/jjacquay712/GoRods/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jjacquay712/GoRods/issues/17/comments","events_url":"https://api.github.com/repos/jjacquay712/GoRods/issues/17/events","html_url":"https://github.com/jjacquay712/GoRods/issues/17","id":165858887,"number":17,"title":"Supporting >1 metadata object with the same Attribute","user":{"login":"simont","id":11146,"avatar_url":"https://avatars.githubusercontent.com/u/11146?v=3","gravatar_id":"","url":"https://api.github.com/users/simont","html_url":"https://github.com/simont","followers_url":"https://api.github.com/users/simont/followers","following_url":"https://api.github.com/users/simont/following{/other_user}","gists_url":"https://api.github.com/users/simont/gists{/gist_id}","starred_url":"https://api.github.com/users/simont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simont/subscriptions","organizations_url":"https://api.github.com/users/simont/orgs","repos_url":"https://api.github.com/users/simont/repos","events_url":"https://api.github.com/users/simont/events{/privacy}","received_events_url":"https://api.github.com/users/simont/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T19:18:19Z","updated_at":"2016-07-15T19:52:38Z","closed_at":null,"body":"iRODS doesn't care if you have more than one AVU with the same attribute. GoRods, however, appears to make the assumption that there can be only one Metadata AVU with a given Attribute associated with a particular collection or data object.\r\n\r\ne.g. the Add() function checks to see if an AVU with this attribute already exists and if so, it prevents a new one being added:\r\nhttps://github.com/jjacquay712/GoRods/blob/master/meta.go#L310\r\n\r\nSupporting iRODS' functionality would seem to be the route to take though this will require some refactoring, etc. to support handling potentially 0..many returned metadata objects as opposed to the current assumption of just ne."},"comment":{"url":"https://api.github.com/repos/jjacquay712/GoRods/issues/comments/233053953","html_url":"https://github.com/jjacquay712/GoRods/issues/17#issuecomment-233053953","issue_url":"https://api.github.com/repos/jjacquay712/GoRods/issues/17","id":233053953,"user":{"login":"jjacquay712","id":231253,"avatar_url":"https://avatars.githubusercontent.com/u/231253?v=3","gravatar_id":"","url":"https://api.github.com/users/jjacquay712","html_url":"https://github.com/jjacquay712","followers_url":"https://api.github.com/users/jjacquay712/followers","following_url":"https://api.github.com/users/jjacquay712/following{/other_user}","gists_url":"https://api.github.com/users/jjacquay712/gists{/gist_id}","starred_url":"https://api.github.com/users/jjacquay712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjacquay712/subscriptions","organizations_url":"https://api.github.com/users/jjacquay712/orgs","repos_url":"https://api.github.com/users/jjacquay712/repos","events_url":"https://api.github.com/users/jjacquay712/events{/privacy}","received_events_url":"https://api.github.com/users/jjacquay712/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T19:52:38Z","updated_at":"2016-07-15T19:52:38Z","body":"Looks like you're correct, iRods doesn't mind duplicate AVU attribute names as long as the value or unit differs:\r\n\r\n```\r\n[john@localhost tester]$ imeta -C add gorods testattr test test # Success\r\n[john@localhost tester]$ imeta -C add gorods testattr test test # Fail\r\nERROR: rcModAVUMetadata failed with error -809000 CATALOG_ALREADY_HAS_ITEM_BY_THAT_NAME\r\n[john@localhost tester]$ imeta -C add gorods testattr test test2 # Success\r\n```\r\n\r\nI'll add more specific checks for matching value & unit, rather than just checking the attribute name. Will also look into returning a slice of meta structs. Thanks for the report! "}}
{"actor":{"display_login":"jjacquay712"}}