Skip to content

Commit

Permalink
Add cacheDuration to production aggregates
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#112.
  • Loading branch information
iay committed Jul 1, 2020
1 parent f8ed8f9 commit eaaa2d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
15 changes: 6 additions & 9 deletions mdx/uk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ before being included in the `export` version consumed by interfederation partne

### Export Preview Aggregate vs. Export Aggregate

Status (2020-04-22):
Status (2020-07-01):

* The `export-preview` aggregate includes a `cacheDuration` attribute with a
value of six hours.
* These aggregates are currently identical.

## Production Maturity Pipeline

Expand Down Expand Up @@ -60,16 +59,13 @@ when it appeared in the fallback aggregate, which would be too late to take corr

### Test Aggregate vs. Production Aggregate

Status (2020-04-22):
Status (2020-07-01):

* The `test` aggregate does not include the `<UKFederationMember>` label (`ukf-meta#34`).

* The `test` aggregate does not include the entity-level copy of the scopes for an
identity provider (`ukf-meta#49`).

* The `test` aggregate includes a `cacheDuration` attribute with a
value of six hours.


### `cds-all` Aggregate vs. Production Aggregate

Expand All @@ -81,6 +77,7 @@ Status (2017-12-05):

### Fallback Aggregate vs. Production Aggregate

Status (2018-01-08):
Status (2020-07-01):

* These aggregates are currently identical.
* The `back` aggregate does not currently include the `cacheDuration` attribute
which is present with a value of six hours in all others.
12 changes: 10 additions & 2 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@
<ref bean="errorTerminatingFilter"/>

<ref bean="assembleAggregate"/>
<bean parent="mda.SetCacheDurationStage"
p:cacheDuration="${cacheDuration.aggregate.duration}"/>
<ref bean="uk_finaliseProduction"/>
<ref bean="uk_normaliseNamespaces"/>

Expand Down Expand Up @@ -373,6 +375,8 @@
<ref bean="errorTerminatingFilter"/>

<ref bean="assembleAggregate"/>
<bean parent="mda.SetCacheDurationStage"
p:cacheDuration="${cacheDuration.aggregate.duration}"/>

<!--
Remove embedded images used in mdui:Logo elements.
Expand Down Expand Up @@ -496,6 +500,8 @@

<!-- make an aggregate first so that we're only traversing one item -->
<ref bean="assembleAggregate"/>
<bean parent="mda.SetCacheDurationStage"
p:cacheDuration="${cacheDuration.aggregate.duration}"/>

<!-- remove many things that the CDS doesn't look at -->
<ref bean="CDSStripUnwanted"/>
Expand Down Expand Up @@ -749,6 +755,8 @@

<ref bean="stripUkfedlabelNamespace"/>
<ref bean="assembleAggregate"/>
<bean parent="mda.SetCacheDurationStage"
p:cacheDuration="${cacheDuration.aggregate.duration}"/>
<ref bean="stripEntityScopes"/>
<ref bean="stripEmptyExtensions"/>
<ref bean="uk_finaliseExport"/>
Expand Down Expand Up @@ -853,10 +861,10 @@

<ref bean="stripUkfedlabelNamespace"/>
<ref bean="assembleAggregate"/>
<ref bean="stripEntityScopes"/>
<ref bean="stripEmptyExtensions"/>
<bean parent="mda.SetCacheDurationStage"
p:cacheDuration="${cacheDuration.aggregate.duration}"/>
<ref bean="stripEntityScopes"/>
<ref bean="stripEmptyExtensions"/>
<ref bean="uk_finaliseExport"/>

<bean id="uk_normaliseExportPreview" parent="mda.XSLTransformationStage"
Expand Down

0 comments on commit eaaa2d0

Please sign in to comment.