{"action":"created","issue":{"url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/issues/1321","repository_url":"https://api.github.com/repos/kerdokullamae/test_koik_issued","labels_url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/issues/1321/labels{/name}","comments_url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/issues/1321/comments","events_url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/issues/1321/events","html_url":"https://github.com/kerdokullamae/test_koik_issued/issues/1321","id":310061062,"number":1321,"title":"JPP ja \"www-s nähtavuse\" seosed ja pärandumine - KY lisamine või JPP lisamine/muutmine","user":{"login":"kerdokullamae","id":15349596,"avatar_url":"https://avatars2.githubusercontent.com/u/15349596?v=4","gravatar_id":"","url":"https://api.github.com/users/kerdokullamae","html_url":"https://github.com/kerdokullamae","followers_url":"https://api.github.com/users/kerdokullamae/followers","following_url":"https://api.github.com/users/kerdokullamae/following{/other_user}","gists_url":"https://api.github.com/users/kerdokullamae/gists{/gist_id}","starred_url":"https://api.github.com/users/kerdokullamae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerdokullamae/subscriptions","organizations_url":"https://api.github.com/users/kerdokullamae/orgs","repos_url":"https://api.github.com/users/kerdokullamae/repos","events_url":"https://api.github.com/users/kerdokullamae/events{/privacy}","received_events_url":"https://api.github.com/users/kerdokullamae/received_events","type":"User","site_admin":false},"labels":[{"id":882298715,"url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/labels/C:%20AIS","name":"C: AIS","color":"0000aa","default":false},{"id":882298891,"url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/labels/P:%20highest","name":"P: highest","color":"aa8888","default":false},{"id":882300871,"url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/labels/T:%20enhancement","name":"T: enhancement","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/milestones/13","html_url":"https://github.com/kerdokullamae/test_koik_issued/milestone/13","labels_url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/milestones/13/labels","id":3224698,"number":13,"title":"AIS.5","description":"","creator":{"login":"kerdokullamae","id":15349596,"avatar_url":"https://avatars2.githubusercontent.com/u/15349596?v=4","gravatar_id":"","url":"https://api.github.com/users/kerdokullamae","html_url":"https://github.com/kerdokullamae","followers_url":"https://api.github.com/users/kerdokullamae/followers","following_url":"https://api.github.com/users/kerdokullamae/following{/other_user}","gists_url":"https://api.github.com/users/kerdokullamae/gists{/gist_id}","starred_url":"https://api.github.com/users/kerdokullamae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerdokullamae/subscriptions","organizations_url":"https://api.github.com/users/kerdokullamae/orgs","repos_url":"https://api.github.com/users/kerdokullamae/repos","events_url":"https://api.github.com/users/kerdokullamae/events{/privacy}","received_events_url":"https://api.github.com/users/kerdokullamae/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":42,"state":"closed","created_at":"2018-03-28T09:13:24Z","updated_at":"2018-03-30T13:08:43Z","due_on":"2014-05-22T07:00:00Z","closed_at":"2018-03-28T09:13:24Z"},"comments":22,"created_at":"2018-03-30T13:03:04Z","updated_at":"2018-03-30T13:09:57Z","closed_at":null,"author_association":"OWNER","body":"**Reported by sven syld on 7 Jul 2015 16:52 UTC**\n'''Objekt'''\r\n...jätk piletile #1307 JPP ja \"www-s nähtavuse\" seosed ja pärandumine\r\n\r\n'''Kirjeldus'''\r\n2. Kui KYle lisatakse JPP(d), siis peavad need rakenduma/lisatama ka alamatele KYdele.\r\n3. Kui KYlt eemaldatakse/muudetakse JPP, siis peab küsima kasutajalt, ’’„Kas ta soovib eemaldada/muuta 100% samasisulise JPP ka alamatelt?“’’ (jah/ei/katkesta) ja toimima vastuse järgi.\r\n4. Kui kõrgemal KY tasandil eksisteerib JPP, siis uue alam-KY-kirje lisamisel peavad ülatasandi JPP(d) rakenduma/lisatama ka kõnealusele alamale.\r\n5. Alam KYlt ei saa muutmise käigus eemaldada JPP väärtusi, mis on ülemal, saab ainult lisada.\r\n\r\n'''Todo'''\r\n 1) Lõhnab selle järgi, et pärandunud JPP-d ja oma JPP-d tuleb eristada - lisada description_unit_access_condition.inheritance_type_id väli (vt osadel tabelitel on see olemas). Endal on see XClassifier::INHERITANCE_TYPE_OWN ja pärijatel XClassifier::INHERITANCE_TYPE_PARENTS\r\n\r\n 2) Teha PG protseduur, mis pärandab JPP kõikidele alluvatele (lisamise-muutmise-kustutamise näol), vt nt:\r\n   - dira.description_unit_person_recalculate_current - seda kutsub trigger välja\r\n   - dira.description_unit_person_recalculate_all(bigint) - mida kutsub eelmine omakorda välja\r\n...recalculate ei ole eriti tabav termin, äkki mõni neist [bequeath](https://translate.google.ee/?source=osdd#en/et/bequeath), \r\n[legate](https://translate.google.ee/?source=osdd#en/et/legate). Ja \"inherit\" ei saa panna, sest see on enamvähem ainuke termin pärandi saaja jaoks, mida läheb ka vaja.\r\n\r\n 3) Kuniks saabuvad vastused küsimustele, võib teha jõuga pärandamise valmis\r\n\r\n 4) Detailvaates ja haldusvaates siis näidata nii enda kui pärandatud JPP'sid. Haldusvaates pärandatud JPP-d on mittemuudetavad.\r\n\r\n 5) Olenevalt küsimuste vastusest, kuidas laheneb \"100% samasisuline jpp\", võib juhtuda, et triggerdamisel tuleb hakata erandeid tekitama. Nt kui muudetakse JPP ja otsustatakse neid mitte pärandada (niimoodi nagu ma küs2-s välja pakun), tuleb pärandamine kuidagi katkestada. Üks variant oleks selleks vahetutele alluvatele päranduse tüübiks muuta \"O\" ja protseduuri kirjutada erand, mis olemasoleva 100% samasuguse \"O\"-tüüpi kirje puhul pärandamise katkestab. Samasisulisuse kontroll panna eraldi protseduuri. Sama protseduuri peaks saama ka ülema kustutamise puhul kasutada.\r\n\r\n 6) Kirjelduses p4 uue alluva lisamine teha kas mudeli või triggeriga. Triggeriga oleks kindlam, sest meil on olemas ka API liidesed; pealegi on protseduurid juba olemas.\r\n\r\n'''Küsimused'''\r\n 1. Kuna pärandunud JPP-d ei saa niikuinii muuta (p4 ja p5), siis küsimuse \"100% samasisulise JPP\" juures tekib vastuolu; pärandunud JPP on alati 100% sama. Kas siin on mõeldud ise sisestatud 100% sama JPP-sid?\r\n 2. Kui ei soovita \"100% sama JPP\" eemaldada, siis kas vahetud alluvad peaksid muutuma antud JPP uuteks \"peremeesteks\"? \r\n 3. Sama küsimus ka muutmise puhul - kas sel juhul muudetakse JPP ainult vanemal, vahetud alluvad saavad vana JPP uuteks peremeesteks, ilma uue JPP-ta?\r\n 4. Kui alluval on sisestatud JPP ja ülevalt tuleb 100% sama, kas alluva JPP tuleks siis \"sulandada\" ülema pärandiks?"},"comment":{"url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/issues/comments/377520862","html_url":"https://github.com/kerdokullamae/test_koik_issued/issues/1321#issuecomment-377520862","issue_url":"https://api.github.com/repos/kerdokullamae/test_koik_issued/issues/1321","id":377520862,"user":{"login":"kerdokullamae","id":15349596,"avatar_url":"https://avatars2.githubusercontent.com/u/15349596?v=4","gravatar_id":"","url":"https://api.github.com/users/kerdokullamae","html_url":"https://github.com/kerdokullamae","followers_url":"https://api.github.com/users/kerdokullamae/followers","following_url":"https://api.github.com/users/kerdokullamae/following{/other_user}","gists_url":"https://api.github.com/users/kerdokullamae/gists{/gist_id}","starred_url":"https://api.github.com/users/kerdokullamae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerdokullamae/subscriptions","organizations_url":"https://api.github.com/users/kerdokullamae/orgs","repos_url":"https://api.github.com/users/kerdokullamae/repos","events_url":"https://api.github.com/users/kerdokullamae/events{/privacy}","received_events_url":"https://api.github.com/users/kerdokullamae/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T13:09:57Z","updated_at":"2018-03-30T13:09:57Z","author_association":"OWNER","body":"**Comment by timo.torim on 14 Sep 2015 08:11 UTC**\npunktid 1 ja 2 sai lükatud edasi ticketisse #1333."}}
{"actor":{"display_login":"kerdokullamae"}}