1. 13 Apr, 2017 1 commit
  2. 12 Apr, 2017 1 commit
  3. 10 Apr, 2017 4 commits
  4. 11 Apr, 2017 1 commit
  5. 10 Apr, 2017 2 commits
  6. 31 Mar, 2017 9 commits
  7. 30 Mar, 2017 1 commit
    • Sylvain Thénault's avatar
      [schema] Make description level mandatory · 746ad8fb9838
      Sylvain Thénault authored
      This is an enum in the original xsd while we don't output possible values
      currently, so in the mean time make it mandatory, it's still a bit better than
      relying on the original schema for that, and it makes sense from a business POV
      to force specification of description level of an archive unit.
      
      A lot of tests have to be updated, some of them because output value is now
      different, others because we've to introduce a scheme+concept to handle the
      validation, but they were not expecting that.
      
      Closes #16687907
      746ad8fb9838
  8. 31 Mar, 2017 1 commit
  9. 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
  10. 29 Mar, 2017 7 commits
  11. 28 Mar, 2017 1 commit
  12. 29 Mar, 2017 3 commits
  13. 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
  14. 28 Mar, 2017 1 commit
  15. 24 Mar, 2017 1 commit
  16. 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
  17. 22 Mar, 2017 1 commit