mojodna / osm-pds-pipelines

OSM PDS pipeline
https://quay.io/repository/mojodna/osm-pds-pipelines
ISC License
31 stars 4 forks source link

Simplify changes protocol #4

Closed kamicut closed 6 years ago

kamicut commented 6 years ago

We can simplify the changes protocol emitted by osm2obj by removing the action attribute and adding a visible attribute:

If an OSM entity is a) created, it is visible=true with a version=1 b) modified, it is visible=true with a version>1 d) deleted, it is visible=false

kamicut commented 6 years ago

@mojodna I had problems with destructuring assignments, it could not recognize the ... syntax. I simplified a bit using your suggestions.

mojodna commented 6 years ago

Oh, good point. That syntax works with recent 8.x but not with 6.x (which is the Lambda runtime).