Skip to content

Commit

Permalink
Merge pull request #1739 from Inist-CNRS/ensure-uri-is-clean2
Browse files Browse the repository at this point in the history
ensure uri is clean
  • Loading branch information
parmentf authored Nov 6, 2023
2 parents d4c70b6 + 2a503e5 commit 7c4148d
Show file tree
Hide file tree
Showing 33 changed files with 71 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cypress/e2e/phase_1/publication.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe('Dataset Publication', () => {

cy.get('[data-rowindex=0]', { timeout: 3000 }).should(
'contains.text',
['2', '"Alain"', '"Chabat"', 'true'].join(''),
['"2"', '"Alain"', '"Chabat"', 'true'].join(''),
);
});
it('should filter by firstName', () => {
Expand All @@ -147,12 +147,12 @@ describe('Dataset Publication', () => {

cy.get('[data-rowindex=0]', { timeout: 3000 }).should(
'contains.text',
['1', '"Bobby"', '"Womack"', 'true'].join(''),
['"1"', '"Bobby"', '"Womack"', 'true'].join(''),
);

cy.get('[data-rowindex=1]', { timeout: 3000 }).should(
'contains.text',
['4', '"Rob"', '"Zombie"', 'false'].join(''),
['"4"', '"Rob"', '"Zombie"', 'false'].join(''),
);
});
it('should filter by boolean', () => {
Expand All @@ -173,12 +173,12 @@ describe('Dataset Publication', () => {

cy.get('[data-rowindex=0]', { timeout: 3000 }).should(
'contains.text',
['1', '"Bobby"', '"Womack"', 'true'].join(''),
['"1"', '"Bobby"', '"Womack"', 'true'].join(''),
);

cy.get('[data-rowindex=1]', { timeout: 3000 }).should(
'contains.text',
['2', '"Alain"', '"Chabat"', 'true'].join(''),
['"2"', '"Alain"', '"Chabat"', 'true'].join(''),
);
});
});
Expand Down
2 changes: 2 additions & 0 deletions workers/loaders/atom.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

3 changes: 2 additions & 1 deletion workers/loaders/corpus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')

path = uri
value = get('uri').trim()
2 changes: 2 additions & 0 deletions workers/loaders/csv-comma.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()
2 changes: 2 additions & 0 deletions workers/loaders/csv-semicolon.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()
2 changes: 2 additions & 0 deletions workers/loaders/csv.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/doi-list.ini
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-conditor.ini
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,5 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()
2 changes: 2 additions & 0 deletions workers/loaders/json-datacite.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-import.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-inspirehep.ini
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,5 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()
2 changes: 2 additions & 0 deletions workers/loaders/json-istex.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-lines.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-lodex.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-optimized.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-protege-resolver.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-protege.ini
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-report.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json-wordpress.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/json.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/mods.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/rdf.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/rss.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/skos.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

4 changes: 4 additions & 0 deletions workers/loaders/tar-gz.ini
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,7 @@ value = env('parser')

path = lodexStamp.uploadedFilename
value = env('source')

path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/tei-persee.ini
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/tei.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/tsv-double-quotes.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()
2 changes: 2 additions & 0 deletions workers/loaders/tsv-wos.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/tsv.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/xml.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/zip-raw.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

2 changes: 2 additions & 0 deletions workers/loaders/zip.ini
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,6 @@ path = lodexStamp.usedParser
value = env('parser')
path = lodexStamp.uploadedFilename
value = env('source')
path = uri
value = get('uri').trim()

0 comments on commit 7c4148d

Please sign in to comment.