Commit d49a910
authored
Make audit log end dates exclusive (#199)
## Summary
- preserve date-only `--end` values as the exclusive boundary sent to
the API
- remove the no-longer-needed date-only parsing marker
- clarify the CLI help text and cover the boundary with a regression
test
## Testing
- `make test`
- `make build`
- not run: `make lint` (`golangci-lint` is not installed)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes CLI time-window semantics for date-only `--end`, which can
shrink results for scripts that relied on inclusive end-of-day behavior.
>
> **Overview**
> **`audit-logs search` now sends `--end` to the API as an exclusive
boundary** instead of extending date-only values by 24 hours so the
whole calendar day was included.
>
> `parseAuditLogTime` no longer returns a `dateOnly` flag; date strings
like `2026-07-01` are passed through as midnight UTC on that date. The
`--end` flag help text now documents exclusivity, and the regression
test asserts a window from `2026-06-30` through exclusive `2026-07-01`
rather than treating same-day start/end as a full day.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
9e3be94. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: yummybomb <19238148+yummybomb@users.noreply.github.com>1 parent 04d210d commit d49a910
2 files changed
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
| |||
164 | 159 | | |
165 | 160 | | |
166 | 161 | | |
167 | | - | |
| 162 | + | |
168 | 163 | | |
169 | | - | |
| 164 | + | |
170 | 165 | | |
171 | 166 | | |
172 | | - | |
| 167 | + | |
173 | 168 | | |
174 | | - | |
| 169 | + | |
175 | 170 | | |
176 | 171 | | |
177 | 172 | | |
| |||
238 | 233 | | |
239 | 234 | | |
240 | 235 | | |
241 | | - | |
| 236 | + | |
242 | 237 | | |
243 | 238 | | |
244 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments