[NAS-2568] Configurable identification of metadata files Created: 17/Oct/16 Updated: 03/Nov/16 Resolved: 19/Oct/16 |
|
Status: | Resolved |
Project: | NetarchiveSuite |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | 5.2 |
Type: | New Feature | Priority: | Minor |
Reporter: | Colin Rosenthal | Assignee: | Colin Rosenthal |
Resolution: | Fixed | ||
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Sprint: | NAS 5.2 |
Verification: | Do some harvests with the default metadata version. Change the version number and restart and do some more harvests. Check that you can configure regex to view one or the other (or both) in viewerproxy. |
Description |
We haven't decided how we ignore old metadata files and use only the new ones after compression. e.g. do we rename or otherwise hide the old metadata files or just restrict our searches to the new names. In order to enable various possibilities, make the current identification mechanism(s) configurable - e.g. make METADATA_FILE_PATTERN_SUFFIX in common Constants a setting. Similarly logic for wayback indexing in ArchiveFile.index() method. |
Comments |
Comment by Colin Rosenthal [ 18/Oct/16 ] |
Added two settings: settings.harvester.harvesting.metadata.filename.versionnumber settings.common.metadata.fileregexsuffix The first specifies the version number in the metadata filename. The second is a regex which determines which metadata files are recognised by the viewerproxy and wayback indexer. |