Skip to content

Commit 960fc63

Browse files
committed
Standardize on published_date rather than publish_date (much much smaller blast radius)
1 parent 29d5c8b commit 960fc63

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

policy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ An individual `Rule` object is defined by the following fields:
334334
| `geography_id` | UUID | Required | Unique ID of [Geography](/geography#general-information) |
335335
| `geography_json` | JSON | Required | The GeoJSON that defines the geographical coordinates.
336336
| `effective_date` | [timestamp][ts] | Optional | `start_date` for first published policy that uses this geo. Server should set this when policies are published. This may be used on the client to distinguish between “logical” geographies that have the same name. E.g. if a policy publishes a geography on 5/1/2020, and then another policy is published which references that same geography is published on 4/1/2020, the effective_date will be set to 4/1/2020.
337-
| `publish_date` | [timestamp][ts] | Required | Timestamp that the policy was published, i.e. made immutable |
337+
| `published_date` | [timestamp][ts] | Required | Timestamp that the policy was published, i.e. made immutable |
338338
| `prev_geographies` | UUID[] | Optional | Unique IDs of prior [geographies](/geography#general-information) replaced by this one |
339339

340340
[Top][toc]

policy/examples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ File: [`tiered-parking-fees-per-hour.json`](tiered-parking-fees-per-hour.json)
474474
"description": "First hour $2, second hour $4, every hour onwards $10",
475475
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
476476
"start_date": 1558389669540,
477-
"publish_date": 1558389669540,
477+
"published_date": 1558389669540,
478478
"end_date": null,
479479
"prev_policies": null,
480480
"provider_ids": [],
@@ -535,7 +535,7 @@ File: [`tiered-parking-fees-per-hour-in-bounds.json`](tiered-parking-fees-per-ho
535535
"description": "First hour $2, second hour $4, every hour onwards $10",
536536
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
537537
"start_date": 1558389669540,
538-
"publish_date": 1558389669540,
538+
"published_date": 1558389669540,
539539
"end_date": null,
540540
"prev_policies": null,
541541
"provider_ids": [],
@@ -604,7 +604,7 @@ File: [`tiered-parking-fees-total.json`](tiered-parking-fees-total.json)
604604
"description": "If parked for <1hr $2 upon exit, if parked for 1-2 hours $4 upon exit, if parked for longer than 2 hours $10 upon exit",
605605
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
606606
"start_date": 1558389669540,
607-
"publish_date": 1558389669540,
607+
"published_date": 1558389669540,
608608
"end_date": null,
609609
"prev_policies": null,
610610
"provider_ids": [],

policy/examples/tiered-parking-fees-per-hour-in-bounds.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "First hour $2, second hour $4, every hour onwards $10",
99
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
1010
"start_date": 1558389669540,
11-
"publish_date": 1558389669540,
11+
"published_date": 1558389669540,
1212
"end_date": null,
1313
"prev_policies": null,
1414
"provider_ids": [],
@@ -86,4 +86,4 @@
8686
}
8787
]
8888
}
89-
}
89+
}

policy/examples/tiered-parking-fees-per-hour.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "First hour $2, second hour $4, every hour onwards $10",
99
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
1010
"start_date": 1558389669540,
11-
"publish_date": 1558389669540,
11+
"published_date": 1558389669540,
1212
"end_date": null,
1313
"prev_policies": null,
1414
"provider_ids": [],
@@ -78,4 +78,4 @@
7878
}
7979
]
8080
}
81-
}
81+
}

policy/examples/tiered-parking-fees-total.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"description": "If parked for <1hr $2 upon exit, if parked for 1-2 hours $4 upon exit, if parked for longer than 2 hours $10 upon exit",
99
"policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
1010
"start_date": 1558389669540,
11-
"publish_date": 1558389669540,
11+
"published_date": 1558389669540,
1212
"end_date": null,
1313
"prev_policies": null,
1414
"provider_ids": [],
@@ -78,4 +78,4 @@
7878
}
7979
]
8080
}
81-
}
81+
}

0 commit comments

Comments
 (0)