Skip to content
Permalink
Browse files

Order post-initial-import objects into waves

(To avoid error messages during first start.)
  • Loading branch information
mederly committed Apr 28, 2020
1 parent 98b0eba commit cc569bf1e48b2df196757d951bc4a09600ee11a4
Showing with 26 additions and 2 deletions.
  1. 0 ...-home/post-initial-objects/archetypes/{archetype-affiliation.xml → 300-archetype-affiliation.xml}
  2. 0 ...r_files/mp-home/post-initial-objects/archetypes/{archetype-course.xml → 300-archetype-course.xml}
  3. 0 ...mp-home/post-initial-objects/archetypes/{archetype-department.xml → 300-archetype-department.xml}
  4. 0 ...st-initial-objects/archetypes/{archetype-external-person.xml → 300-archetype-external-person.xml}
  5. 0 ...bjects/archetypes/{archetype-generic-grouper-group.xml → 300-archetype-generic-grouper-group.xml}
  6. 0 ...ome/post-initial-objects/archetypes/{archetype-mailing-list.xml → 300-archetype-mailing-list.xml}
  7. 0 ...post-initial-objects/archetypes/{archetype-midpoint-group.xml → 300-archetype-midpoint-group.xml}
  8. 0 ...mp-home/post-initial-objects/archetypes/{archetype-sis-person.xml → 300-archetype-sis-person.xml}
  9. 0 ...p-home/post-initial-objects/bulkActions/{990-test-all-resources.xml → 900-test-all-resources.xml}
  10. +5 −2 .../post-initial-objects/bulkActions/{991-recompute-grouper.xml → 910-recompute-grouper-objects.xml}
  11. 0 ...itial-objects/functionLibraries/{function-library-grouper.xml → 100-function-library-grouper.xml}
  12. 0 ...er_files/mp-home/post-initial-objects/objectTemplates/{template-user.xml → 100-template-user.xml}
  13. +21 −0 demo/grouper/midpoint_server/container_files/mp-home/post-initial-objects/ordering.txt
  14. 0 ...ntainer_files/mp-home/post-initial-objects/orgs/{org-affiliations.xml → 100-org-affiliations.xml}
  15. 0 ..._server/container_files/mp-home/post-initial-objects/orgs/{org-courses.xml → 100-org-courses.xml}
  16. 0 ...container_files/mp-home/post-initial-objects/orgs/{org-departments.xml → 100-org-departments.xml}
  17. 0 ...ner_files/mp-home/post-initial-objects/orgs/{org-generic-groups.xml → 100-org-generic-groups.xml}
  18. 0 ...ainer_files/mp-home/post-initial-objects/orgs/{org-mailing-lists.xml → 100-org-mailing-lists.xml}
  19. 0 ...r_files/mp-home/post-initial-objects/orgs/{org-midpoint-groups.xml → 100-org-midpoint-groups.xml}
  20. 0 ...files/mp-home/post-initial-objects/orgs/{org-grouper-sysadmin.xml → 400-org-grouper-sysadmin.xml}
  21. 0 ...r/container_files/mp-home/post-initial-objects/resources/{resource-grouper.xml → 100-grouper.xml}
  22. 0 ...server/container_files/mp-home/post-initial-objects/resources/{ldap-main.xml → 100-ldap-main.xml}
  23. 0 ...mp-home/post-initial-objects/resources/{scriptedsql-sis-persons.xml → 100-source-sis-persons.xml}
  24. 0 ...er_files/mp-home/post-initial-objects/resources/{target-cs-portal.xml → 100-target-cs-portal.xml}
  25. 0 ...p-home/post-initial-objects/resources/{target-faculty-portal.xml → 100-target-faculty-portal.xml}
  26. 0 .../mp-home/post-initial-objects/resources/{target-mailing-lists.xml → 100-target-mailing-lists.xml}
  27. 0 ...ial-objects/roles/{metarole-grouper-provided-group.xml → 200-metarole-grouper-provided-group.xml}
  28. 0 ..._files/mp-home/post-initial-objects/roles/{metarole-ldap-group.xml → 200-metarole-ldap-group.xml}
  29. 0 ...ontainer_files/mp-home/post-initial-objects/roles/{role-ldap-basic.xml → 200-role-ldap-basic.xml}
  30. 0 ...ost-initial-objects/systemConfigurations/{SystemConfiguration.xml → 000-system-configuration.xml}
  31. 0 .../container_files/mp-home/post-initial-objects/users/{user-banderson.xml → 600-user-banderson.xml}
@@ -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>
@@ -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.
You can’t perform that action at this time.