Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #24621

Closed (moved)
(moved)
Open
Created Dec 14, 2017 by Karsten Loesing@karsten

Exclude lastModifiedMillis in index.json

I noticed that we're including a lastModifiedMillis field in the index.json produced by CollecTor. Here's a local example:

{
  "index_created": "2017-12-14 08:43",
  "build_revision": "56a303e",
  "path": "https://collector.torproject.org",
  "directories": [
    {
      "path": "recent",
      "directories": [
        {
          "path": "bridge-descriptors",
          "directories": [
            {
              "path": "extra-infos",
              "files": [
                {
                  "path": "2017-10-25-18-30-02-extra-infos",
                  "size": 12059081,
                  "last_modified": "2017-10-25 18:30",
                  "lastModifiedMillis": 0     <--------------------
                }
              ]
            },

The reason is that we're using our own Gson instance in CollecTor, and we need to specifically say that we want it to exclude fields without the @Expose annotation. Let's do that. Trivial patch follows.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking