Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

API1: write datasetUpdateHandler #8

@cellisco

Description

@cellisco

code: opendataplus/apps/datasets/dataset_update_handler.js

Main dataset module that evals all datasets defined in the platform to see if then need updating and orchestrates executing the update...

Main generic function that tracks the last time the dataset was checked and the frequency its is supposed to be checked and if it needs to be checked, orchestrates calling the dataset handlers.

  • check frequency
  • if time to update
    • execute dataset's checkForUpdate module
    • if true
      • execute dataset's "handleDatasetUpdate" module
      • for each document in the dataset
        • if document has not been updated longer than datasetParameter.documentRetentionTime
          • execute dataset's handleExpiredDocuments module for that document

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions