1. 31 Mar, 2017 1 commit
  2. 30 Mar, 2017 4 commits
    • Sylvain Thénault's avatar
      [profile gen] Export URL for keyword reference content · 3da29cc2d6c8
      Sylvain Thénault authored
      not text. Consistently with SEDA 1/0.2 export.
      3da29cc2d6c8
    • Sylvain Thénault's avatar
      [profile scheme] Use the cwuri_url static method to generate URLs for SEDA 2 export · dd0fa3ba2760
      Sylvain Thénault authored
      as this was already done for SEDA 1/0.2 export.
      
      Move method from SEDA 1 export to the common base class with SEDA 2 export to
      make it available there and avoid duplication. Also SEDA 2 test needs update
      since this method return cwuri instead of absolute_url.
      
      Related to extranet #15934739
      dd0fa3ba2760
    • Sylvain Thénault's avatar
      [profile gen] Be more resilient about supported concept's languages · 455ce14bb7bf
      Sylvain Thénault authored
      Export used to chose concept value by searching for label with the following
      language code:
      
      1. version specific (seda-2, seda-1 or seda-02)
      2. seda
      3. en
      
      and crash if no matching label was found. But it seems we don't want it to crash
      because we use some concept which has e.g. only a concept in 'fr' language code.
      At some point we may want to improve this, depending on the relation (internal
      seda vocabulary vs open vocabulary such as keyword reference), but for now,
      let's add 'fr' to the expected language list and fallback to any language if
      none has been found so the export doesn't fail.
      
      Related to extranet #15934212
      455ce14bb7bf
    • Sylvain Thénault's avatar
      Provide a way to control the compound graph · 0ae7957cf9e3
      Sylvain Thénault authored
      useful for e.g. the saem_ref cube that introduces some entity types (Activity)
      which would be shared by different compound graph while we want it to be
      skipped.
      0ae7957cf9e3
  3. 29 Mar, 2017 7 commits
  4. 28 Mar, 2017 1 commit
  5. 29 Mar, 2017 3 commits
  6. 22 Mar, 2017 1 commit
    • Sylvain Thénault's avatar
      [schema] Fix definition of the container relation · a88deb387b2b
      Sylvain Thénault authored
      Cardinality and permissions defined on the relation type wasn't considered as
      expected because the relation is added dynamically in post_build_callback. We
      have to set them explicitly there.
      
      This added to a bug in the cloning code led to entities with several containers.
      To fix this, migration script pick the container with the greatest eid since it
      should be the one which is not unexpectedly copied. Anyway, even if that's wrong
      that's no big deal because there are only demo instances for now which don't
      really care of data loss.
      
      This patch also set properly cardinality on container relation for
      SEDAArchiveUnit, which is expected to be optional while mandatory for others.
      This has not been detected before since it wasn't actually mandatory by default
      before this patch.
      a88deb387b2b
  7. 28 Mar, 2017 1 commit
  8. 24 Mar, 2017 1 commit
  9. 23 Mar, 2017 1 commit
    • Sylvain Thénault's avatar
      [schema] Fix iter_all_rdefs utility function to skip rdef not reachable from the container · d3dee90b9183
      Sylvain Thénault authored
      The previous implementation was yielding rdefs which were not in the compound
      graph, because of the blind loop on every rdef of an rtype.
      
      To fix this, we can't use structure_def whose data structure isn't adapted to
      this use-case, rather iterate top-down from the root (this 'child_structure'
      method is unfortunatly not in compound.Graph, we might add it there at some
      point).
      d3dee90b9183
  10. 22 Mar, 2017 4 commits
  11. 21 Mar, 2017 3 commits
  12. 17 Mar, 2017 7 commits
  13. 16 Mar, 2017 6 commits