Skip to content

Lowercase data keys for DownloadProgress event - #481

Merged
imsodin merged 1 commit into
syncthing:masterfrom
fejese:master
Jan 2, 2020
Merged

imsodin merged 1 commit into
syncthing:masterfrom
fejese:master

Conversation

@fejese

@fejese fejese commented Dec 30, 2019

Copy link
Copy Markdown
Contributor

It looks like that (at least on v1.3.2) the keys in the dict for each item in the data dict of DownloadProgress event are lowercase:

$ curl -XGET -H "X-API-Key: foobar" 'http://localhost:8384/rest/events?events=DownloadProgress'
[
  {
    "id": 1,
    "globalID": 42,
    "time": "2019-12-30T16:33:49.201583273Z",
    "type": "DownloadProgress",
    "data": {
      "folder1": {
        "file1.ext": {
          "total": 12,
          "reused": 0,
          "copiedFromOrigin": 0,
          "copiedFromOriginShifted": 0,
          "copiedFromElsewhere": 0,
          "pulled": 12,
          "pulling": 12,
          "bytesDone": 123,
          "bytesTotal": 456
        }
      }
    }
  }
]

make html passes and file:///.../syncthing-docs/_build/html/events/downloadprogress.html shows expected change

@imsodin
imsodin merged commit 68983fb into syncthing:master Jan 2, 2020
calmh added a commit that referenced this pull request Jan 15, 2020
* master:
  Add Netlify config
  users/contrib: add MacPorts package for macOS, cleanup (#483)
  events: Lowercase data keys for DownloadProgress event (#481)
@syncthing syncthing locked and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants