Commit 4c4e5d9d authored by Mahdi Ben Jelloul's avatar Mahdi Ben Jelloul
Browse files

Rename data_parution_jo in official_journal_date

parent 1eda1e27
......@@ -26,7 +26,7 @@
"description": "Forfait logement (en % du montant forfaitaire du RSA)",
"id": "prestations.minima_sociaux.rsa.forfait_logement",
"metadata": {
"date_parution_jo": {
"official_journal_date": {
"2009-06-01": "2009-05-01"
}
}
......
......@@ -7,7 +7,7 @@
"2016-01-01": "Décret 2015-1710 du 21/12/2015, art. 2 (crée art. D843-1 du CSS)",
"2009-06-01": "Décret 2009-404 du 15/04/2009, art. 2 (modif art. R262-1 du CASF)"
},
"date_parution_jo": {
"official_journal_date": {
"2016-01-01": "2015-12-22",
"2009-06-01": "2009-04-16"
},
......
......@@ -63,7 +63,7 @@
"rowSpan": 2
}, {
"Header": "Parution au JO",
"id": "date_parution_jo",
"id": "official_journal_date",
"width": 0.7,
"colSpan": 1,
"depth": 1,
......@@ -152,7 +152,7 @@
"rowSpan": 2
}, {
"Header": "Parution au JO",
"id": "date_parution_jo",
"id": "official_journal_date",
"width": 0.7,
"colSpan": 1,
"depth": 1,
......@@ -235,7 +235,7 @@
"rowSpan": 2
}, {
"Header": "Parution au JO",
"id": "date_parution_jo",
"id": "official_journal_date",
"width": 0.7,
"colSpan": 1,
"depth": 1,
......@@ -313,7 +313,7 @@
"value": null,
"unit": "currency-EUR"
},
"date_parution_jo": "2015-12-22",
"official_journal_date": "2015-12-22",
"reference": "Décret 2015-1710 du 21/12/2015, art. 2 (crée art. D843-1 du CSS)",
"notes": "Remplacement du RSA activité par la Prime d'activité"
}, {
......@@ -346,7 +346,7 @@
"value": 6,
"unit": "currency-EUR"
},
"date_parution_jo": "2009-04-16",
"official_journal_date": "2009-04-16",
"reference": "Décret 2009-404 du 15/04/2009, art. 2 (modif art. R262-1 du CASF)"
}]
}
......@@ -42,7 +42,7 @@ it('extractValues can extract dates from a parameter node', () => {
it('extractValues can extract metadata from a parameter node', () => {
const data = extractValues(rsaForFaitLogement)
expect(data['date_parution_jo']).toEqual({"2009-06-01": "2009-05-01"})
expect(data['official_journal_date']).toEqual({"2009-06-01": "2009-05-01"})
});
it('extractValues can extract dates from a custom parameter node', () => {
......
......@@ -74,7 +74,7 @@ function buildColumn(parameter, lang) {
function buildMetaDataColumns(parameter, lang) {
const metadata = {
reference: {title: msg.references[lang], width: 1.8},
date_parution_jo: {title: msg.parutionJO[lang], width: 1},
official_journal_date: {title: msg.parutionJO[lang], width: 1},
notes: {title: 'Notes', width: 3.5},
}
return flow([
......
......@@ -14,7 +14,7 @@ const pick = require('lodash.pick')
const pickBy = require('lodash.pickby')
const union = require('lodash.union')
const METADATA_FIELD_NAMES = ['date_parution_jo', 'reference', 'notes']
const METADATA_FIELD_NAMES = ['official_journal_date', 'reference', 'notes']
function extractData(parameterNode) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment