This repository was archived by the owner on Oct 27, 2025. It is now read-only.
Commit a351f80
committed
Add 'political' property to hash
Content Publisher has two means of designating an edition to be
'political':
1. 'system political': if associated with role appointments or
political organisations
2. 'editor political': if the publisher has explicitly marked the
document as political via the "Gets history mode" checkbox in
Content Publisher's UI.
For the purposes of importing these docs into Whitehall, we don't
particularly care the _means_ by which a document is considered
political. We don't need the overhead of having to map one 'flavour'
of political to Whitehall's representation of that 'flavour'. It
is enough to just pass the derived boolean from Content Publisher,
into Whitehall (which has its own 'political' boolean override
equivalent: https://github.com/alphagov/whitehall/blob/f5afce65514b02767df8625ccfa40c681046c95e/db/schema.rb#L444)1 parent 7ede631 commit a351f80
2 files changed
Lines changed: 10 additions & 1 deletion
File tree
- app/models/whitehall_migration
- spec/models/whitehall_migration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
0 commit comments