Skip to content

Commit

Permalink
Order post-initial-import objects into waves
Browse files Browse the repository at this point in the history
(To avoid error messages during first start.)
  • Loading branch information
mederly committed Apr 28, 2020
1 parent 98b0eba commit cc569bf
Show file tree
Hide file tree
Showing 31 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- (c) 2019 Evolveum, All rights reserved -->

<!-- Actually this is not really needed, as the objects were imported in non-raw mode
(and presumably in the correct order). But let's keep this here. -->

<s:search xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<s:type>ObjectType</s:type>
<s:searchFilter>
<q:inOid>
<q:value>d48ec05b-fffd-4262-acd3-d9ff63365b62</q:value>
<q:value>e897468f-20bd-419c-8fc5-1fe60e2600de</q:value>
<q:value>d48ec05b-fffd-4262-acd3-d9ff63365b62</q:value> <!-- org-grouper-sysadmin -->
<q:value>e897468f-20bd-419c-8fc5-1fe60e2600de</q:value> <!-- user-banderson -->
</q:inOid>
</s:searchFilter>
<s:action>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Notes on objects ordering
=========================

Objects are ordered to be imported in waves. Objects in each wave can depend only on objects in preceding waves.
(By depending we mean that the other object should exist in repo in order to assure warning-less import. Usually,
assigned/induced objects should exist. Objects that are referenced e.g. in groovy code are not required at the
import time.)

Waves are:
- 000: system configuration
- 100: resources (do not depend on anything)
root orgs (do not depend on anything)
user template (inactive until users are imported)
grouper function library (inactive until async updates come)
- 200: metaroles and roles (contain constructions i.e. references to resources)
- 300: archetypes (induce resources, root orgs, metaroles)
- 400: specific orgs i.e. org-grouper-sysadmin (has an archetype)
- 600: specific users i.e. user-banderson (is in specific orgs)
- 9xx: bulk actions (testing all resource, recomputing grouper objects)
importing scavenger task

0 comments on commit cc569bf

Please sign in to comment.