Skip to content

Commit

Permalink
user [email protected] initiated a sync from Lightning
Browse files Browse the repository at this point in the history
  • Loading branch information
openfn[bot] authored and github-actions[bot] committed Oct 17, 2024
1 parent 0b4d9a3 commit eae9256
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 3 deletions.
50 changes: 50 additions & 0 deletions openfn-cd92dd57-9a3c-4318-bdcb-f57a386cf811-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,56 @@ workflows:
target_job: New-job
condition_type: always
enabled: true
fetch-metadata-and-generate-opts-json:
name: fetch-metadata-and-generate-opts-json
jobs:
Get-metadata-file-from-Sharepoint:
name: Get metadata file from Sharepoint
adaptor: '@openfn/language-msgraph@latest'
credential: null
body: |
// Check out the Job Writing Guide for help getting started:
// https://docs.openfn.org/documentation/jobs/job-writing-guide
Map-metadata-file-to-option-set-Json-format:
name: Map metadata file to option-set Json format
adaptor: '@openfn/language-common@latest'
credential: null
body: |
// Check out the Job Writing Guide for help getting started:
// https://docs.openfn.org/documentation/jobs/job-writing-guide
Save-option-set-json-to-github:
name: Save option-set json to github
adaptor: '@openfn/language-http@latest'
credential: null
body: |
// Check out the Job Writing Guide for help getting started:
// https://docs.openfn.org/documentation/jobs/job-writing-guide
triggers:
webhook:
type: webhook
enabled: true
edges:
webhook->Get-metadata-file-from-Sharepoint:
source_trigger: webhook
target_job: Get-metadata-file-from-Sharepoint
condition_type: always
enabled: true
Get-metadata-file-from-Sharepoint->Map-metadata-file-to-option-set-Json-format:
source_job: Get-metadata-file-from-Sharepoint
target_job: Map-metadata-file-to-option-set-Json-format
condition_type: on_job_success
enabled: true
Map-metadata-file-to-option-set-Json-format->Save-option-set-json-to-github:
source_job: Map-metadata-file-to-option-set-Json-format
target_job: Save-option-set-json-to-github
condition_type: on_job_success
enabled: true
fhir-encounters:
name: fhir-encounters
jobs:
Expand Down
65 changes: 62 additions & 3 deletions openfn-cd92dd57-9a3c-4318-bdcb-f57a386cf811-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"inserted_at": "2024-09-05T06:59:05Z",
"updated_at": "2024-10-07T16:48:01Z",
"scheduled_deletion": null,
"history_retention_period": null,
"dataclip_retention_period": null,
"retention_policy": "retain_all",
"project_credentials": {
"[email protected]": {
"id": "3141d874-5456-4168-9680-ce04efb1089c",
Expand Down Expand Up @@ -35,6 +32,9 @@
"owner": "[email protected]"
}
},
"history_retention_period": null,
"dataclip_retention_period": null,
"retention_policy": "retain_all",
"workflows": {
"wf1-dhis2-omrs-migration": {
"id": "94e04fb5-d5ae-45ad-be31-98b902f36861",
Expand Down Expand Up @@ -391,6 +391,65 @@
"target_job_id": "2c3fe742-6630-4282-872a-ca07f8dc2a71"
}
}
},
"fetch-metadata-and-generate-opts-json": {
"id": "57a7ef39-d396-4959-a725-85c4bef08c6a",
"name": "fetch-metadata-and-generate-opts-json",
"inserted_at": "2024-10-11T18:17:48.712376Z",
"lock_version": 3,
"triggers": {
"webhook": {
"enabled": true,
"id": "e86ca050-ad88-4936-8c14-6eac23922017",
"type": "webhook"
}
},
"jobs": {
"Get-metadata-file-from-Sharepoint": {
"id": "c9712182-a389-4664-8e10-f275f87fb478",
"name": "Get metadata file from Sharepoint",
"body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n",
"adaptor": "@openfn/language-msgraph@latest",
"project_credential_id": null
},
"Map-metadata-file-to-option-set-Json-format": {
"id": "bbc012b5-4811-4354-888c-f10b0294901d",
"name": "Map metadata file to option-set Json format",
"body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n",
"adaptor": "@openfn/language-common@latest",
"project_credential_id": null
},
"Save-option-set-json-to-github": {
"id": "56f67a06-cf99-42b5-81c5-49c058b5126c",
"name": "Save option-set json to github",
"body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n",
"adaptor": "@openfn/language-http@latest",
"project_credential_id": null
}
},
"edges": {
"webhook->Get-metadata-file-from-Sharepoint": {
"enabled": true,
"id": "a1a8243d-dfe8-48ff-88ab-793f4176e2ce",
"source_trigger_id": "e86ca050-ad88-4936-8c14-6eac23922017",
"condition_type": "always",
"target_job_id": "c9712182-a389-4664-8e10-f275f87fb478"
},
"Get-metadata-file-from-Sharepoint->Map-metadata-file-to-option-set-Json-format": {
"enabled": true,
"id": "22252bb8-2e4c-422e-8aa3-667b04d67400",
"source_job_id": "c9712182-a389-4664-8e10-f275f87fb478",
"condition_type": "on_job_success",
"target_job_id": "bbc012b5-4811-4354-888c-f10b0294901d"
},
"Map-metadata-file-to-option-set-Json-format->Save-option-set-json-to-github": {
"enabled": true,
"id": "3342bdc4-487d-49d2-839c-3c6d7835af8f",
"source_job_id": "bbc012b5-4811-4354-888c-f10b0294901d",
"condition_type": "on_job_success",
"target_job_id": "56f67a06-cf99-42b5-81c5-49c058b5126c"
}
}
}
},
"requires_mfa": false
Expand Down

0 comments on commit eae9256

Please sign in to comment.