Commit 65f6df9
authored
NO JIRA. Misc fixes and refactoring (#23)
# Description of changes
This PR contains a lot of fixes, refactorings and a couple of new features:
## Fixes
* The documentations is made up-to-date with the actual funtionality and now is more similar in format to the other microservices in that it lists the exposed and consumed interfaces.
* In particular the record is no set straight on the version info JSON files, which are required.
* Validation of object import directories is now more strict:
* version dirs must all have a corresonding version info JSON file which must be well-formed.
* versions must be consecutive
## Refactorings
* To avoid confusion between the object-version-properties extension and the `vN.json` version info JSON files, names and docs have been updated to make the use more consistent.
* The object import directory validation is broken up into smaller methods for readability.
## New features
* It is now possible to archive an old (closed) layer. This feature is for now only useful for recovery scenario where some manual steps outside the service are likely to be necessary. The advantage of having at least the archiving be done through the service, is that the consistency check is automatically triggered and the dmftar command is executed with the exact same parameters and environment as when a new top layer is created.
## Dropped feature
* It was possible before to allow timestamps instead of version strings such as `v1` as version directory names. This feature was not used and has been dropped to reduce code complexity.1 parent 32775c4 commit 65f6df9
26 files changed
Lines changed: 885 additions & 207 deletions
File tree
- docs
- img
- src
- main
- assembly/dist/cfg
- java/nl/knaw/dans/datavault
- core
- resources
- test
- java/nl/knaw/dans/datavault/core
- resources
- debug-etc
- test-input
- invalid-version-object-NaN
- invalid-version-object-no-v
- multi-version-object
- simple-object
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
Large diffs are not rendered by default.
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
16 | 48 | | |
17 | 49 | | |
18 | 50 | | |
19 | 51 | | |
20 | 52 | | |
21 | 53 | | |
| 54 | + | |
22 | 55 | | |
23 | 56 | | |
24 | 57 | | |
25 | | - | |
26 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
27 | 61 | | |
28 | | - | |
29 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
30 | 65 | | |
31 | | - | |
32 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
33 | 69 | | |
34 | 70 | | |
35 | 71 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
54 | 89 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
59 | 95 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
67 | 105 | | |
68 | 106 | | |
69 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
0 commit comments