Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Fixed

- An opt-out written under another property name now counts as off. Spring binds only `usage.reporting.enabled` (and its relaxed forms, such as `USAGE_REPORTING_ENABLED`), so `usage-reporting.enabled=false`, `usage_reporting.enable=false`, `usage.reporting.disabled=true`, `usage.reporting=false` or `USAGE_REPORTING=off` used to be ignored and reporting stayed on. Any property naming usage reporting whose "enabled"-like key is not clearly on, whose "disabled"-like key is on, or which is given a value that is not clearly on, now turns reporting off.
- Usage reporting now stays off once it is turned off. `usage.reporting.enabled` / `USAGE_REPORTING_ENABLED` used to turn reporting off only for `false`: `off`, `no`, `0`, a blank value or a typo all left it on. It now fails closed and is read through the trace client's `allowsReporting` helper: only `true`, `on`, `yes` or `1` (any case) keeps reporting on, and anything else turns it off. `docker-compose.yml` now passes a blank `USAGE_REPORTING_ENABLED` through as blank (off) instead of replacing it with `true`. The vendored `TraceClient` is now trace-client-java 0.8.0, whose `TRACE_USAGE_REPORTING` and `DO_NOT_TRACK` checks fail closed too: `TRACE_USAGE_REPORTING` set to anything but blank or `true`/`on`/`yes`/`1`, `DO_NOT_TRACK` set to anything but blank or `0`/`false`/`off`/`no`, or an environment that cannot be read, turns reporting off

### Added

- Usage reporting to the maintainers' trace service: a `startup` event once per process and a `backup-completed` event when a backup run finishes, each tagged with the program version and a random installation ID (`TRACE_INSTALL_ID`, or a UUID kept in `~/.config/gh-backup/trace-install-id`) and nothing else, sent from a background thread that never delays a backup or holds up exit by more than the client's 5-second timeout. Nothing about the users, organizations or repositories being backed up is sent. On by default; a one-line notice is logged the first time it runs on a machine (recorded in `~/.config/gh-backup/usage-reporting-notice-shown`), and it is turned off with `-Dusage.reporting.enabled=false` or `USAGE_REPORTING_ENABLED=false` (`usage.reporting.endpoint` and `usage.reporting.key` are documented in `CONFIG.md`; the Docker daemon takes `USAGE_REPORTING_ENABLED` from `.env`)
Expand All @@ -36,6 +31,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Fixed

- An opt-out written under another property name now counts as off. Spring binds only `usage.reporting.enabled` (and its relaxed forms, such as `USAGE_REPORTING_ENABLED`), so `usage-reporting.enabled=false`, `usage_reporting.enable=false`, `usage.reporting.disabled=true`, `usage.reporting=false` or `USAGE_REPORTING=off` used to be ignored and reporting stayed on. Any property naming usage reporting whose "enabled"-like key is not clearly on, whose "disabled"-like key is on, or which is given a value that is not clearly on, now turns reporting off.
- Usage reporting now stays off once it is turned off. `usage.reporting.enabled` / `USAGE_REPORTING_ENABLED` used to turn reporting off only for `false`: `off`, `no`, `0`, a blank value or a typo all left it on. It now fails closed and is read through the trace client's `allowsReporting` helper: only `true`, `on`, `yes` or `1` (any case) keeps reporting on, and anything else turns it off. `docker-compose.yml` now passes a blank `USAGE_REPORTING_ENABLED` through as blank (off) instead of replacing it with `true`. The vendored `TraceClient` is now trace-client-java 0.8.0, whose `TRACE_USAGE_REPORTING` and `DO_NOT_TRACK` checks fail closed too: `TRACE_USAGE_REPORTING` set to anything but blank or `true`/`on`/`yes`/`1`, `DO_NOT_TRACK` set to anything but blank or `0`/`false`/`off`/`no`, or an environment that cannot be read, turns reporting off
- The usage-reporting notice is now logged on every run when the JVM has no usable home directory (`user.home` unset or blank), instead of never: with nowhere to keep the `~/.config/gh-backup/usage-reporting-notice-shown` marker, the `startup` and `backup-completed` events were previously sent without the notice ever appearing, contrary to `README.md` and `CONFIG.md`, which now describe this case
- Documentation accuracy: `USER_GUIDE.md` now describes the web interface served in web mode — the backup form, which takes one user or organization per submission and shows the server's success or error message, and the status section with its totals, refresh button and remembered list, card and gallery views — where it previously only said to open `http://localhost:8080`
- `POST /api/backups` now answers a backup that fails with an unchecked exception (such as a `GHException` from github-api while listing repositories) with `500 Internal Server Error` and `{ "success": false, "message": "Error: ..." }`, as `COMMANDS.md` documents, instead of Spring Boot's default error body, which has no `message`, so the web UI showed only `Failed to create backup.`. No `backup-completed` event is reported for it. Previously only an `IOException` was handled this way; the command line and daemon already handled both
Expand Down