Commit faccc24
committed
feat(data): add until time argument skewing
During building the Request instance via RequestBuilder,
we need to skew the time of an until argument a bit.
For Day granularity, it's necessary to include the complete given day.
For Second granularity, it's necessary to add second to avoid
exclusion of elements because of micro/nanosecond timestamps in databases.
For Lenient, we want to the complete day, too - that's why it's lenient.
Adds a test for the skewing.1 parent a8fb4ef commit faccc24
1 file changed
Lines changed: 27 additions & 0 deletions
File tree
- xoai-data-provider/src/main/java/io/gdcc/xoai/dataprovider/repository
xoai-data-provider/src/main/java/io/gdcc/xoai/dataprovider/repository/RepositoryConfiguration.java
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
90 | 117 | | |
91 | 118 | | |
92 | 119 | | |
| |||
0 commit comments