Skip to content

Commit 5f1b594

Browse files
committed
#402 add status/notes + improve list_actions
1 parent 52b0627 commit 5f1b594

18 files changed

+79
-3
lines changed

R/geoflow_action.R

+15-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ geoflow_action <- R6Class("geoflow_action",
7070
options = list(),
7171
#'@field available_options a list of available options for the actions
7272
available_options= list(),
73+
#'@field status status
74+
status = "stable",
75+
#'@field notes notes
76+
notes = "",
7377

7478
#'@description Initialize a \link{geoflow_action}
7579
#'@param yaml a yaml file
@@ -90,6 +94,8 @@ geoflow_action <- R6Class("geoflow_action",
9094
#'@param script action script
9195
#'@param options action options
9296
#'@param available_options available options for the action
97+
#'@param status status of the action (experimental, stable, deprecated, superseded)
98+
#'@param notes notes
9399
initialize = function(yaml = NULL,
94100
id = NULL,
95101
funders = list(), authors = list(), maintainer = NULL,
@@ -99,7 +105,8 @@ geoflow_action <- R6Class("geoflow_action",
99105
pid_generator = NULL, pid_types = list(),
100106
generic_uploader = FALSE,
101107
fun = NULL, script = NULL, options = list(),
102-
available_options = list()){
108+
available_options = list(),
109+
status = "stable", notes = ""){
103110

104111
if(!is.null(yaml)){
105112
self$fromYAML(yaml)
@@ -125,6 +132,8 @@ geoflow_action <- R6Class("geoflow_action",
125132
self$script <- script
126133
self$options <- options
127134
self$available_options <- available_options
135+
self$status = status
136+
self$notes = notes
128137
}
129138
},
130139

@@ -161,6 +170,8 @@ geoflow_action <- R6Class("geoflow_action",
161170
}
162171
return(opt)
163172
})
173+
self$status = if(!is.null(yml$status)) yml$status else "<unknown>"
174+
self$notes = if(!is.null(yml$notes)) yml$notes else ""
164175
},
165176

166177
#'@description Check that all packages required for the action are available, if yes,
@@ -341,6 +352,9 @@ list_actions <- function(raw = FALSE){
341352
target_dir = action$target_dir,
342353
pid_generator = action$isPIDGenerator(),
343354
packages = paste(action$packages, collapse=","),
355+
status = action$status,
356+
notes = action$notes,
357+
maintainer = if(!is.null(action$maintainer$name)){action$maintainer$name}else{ if(action$maintainer$orphaned) "<orphaned>" else "<unknown>" },
344358
stringsAsFactors = FALSE
345359
))
346360
}))

inst/actions/atom4R_dataverse_deposit_record.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ types:
1414
- Metadata publication
1515
- DOI management
1616
def: Deposits/Publish data and/or metetadata on a Dataverse using the Sword API
17+
status: experimental
1718
target: job
1819
target_dir: dataverse
1920
pid_generator: dataverse

inst/actions/d4storagehub4R_upload_data.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ maintainer:
1010
types:
1111
- Data upload
1212
def: Upload data/metadata to a D4Science Workspace
13+
status: stable
1314
target: NA
1415
target_dir: NA
1516
generic_uploader: true

inst/actions/dataone_upload_datapackage.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ types:
1414
- Metadata publication
1515
- DOI management
1616
def: Uploads a data package to a DataOne metacat node
17+
status: experimental
1718
target: job
1819
target_dir: dataone
1920
pid_generator: dataone

inst/actions/eml_create_eml.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ maintainer:
1111
types:
1212
- Metadata production
1313
def: Produce an EML metadata object
14+
status: experimental
1415
target: entity
1516
target_dir: metadata
1617
packages:

inst/actions/geometa_create_iso_19110.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ maintainer:
1919
types:
2020
- Metadata production
2121
def: Produce an ISO 19110 metadata object and export it to XML
22+
status: stable
2223
target: entity
2324
target_dir: metadata
2425
packages:

inst/actions/geometa_create_iso_19115.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ maintainer:
1919
types:
2020
- Metadata production
2121
def: Produce an ISO/OGC 19115 metadata object and export it to XML
22+
status: stable
2223
target: entity
2324
target_dir: metadata
2425
packages:

inst/actions/geonapi_publish_iso_19139.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ maintainer:
1616
types:
1717
- Metadata publication
1818
def: Publish/Update an ISO/OGC 19139 metadata object with GeoNetwork API
19+
status: stable
1920
target: entity
2021
target_dir: metadata
2122
packages:

inst/actions/geonode4R_publish_ogc_services.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ types:
1414
- Data publication
1515
- Metadata publication
1616
def: Publish data to GeoNode OGC web-services (WMS/WFS/WCS)
17+
status: experimental
1718
target: NA
1819
target_dir: NA
1920
packages:

inst/actions/geosapi_publish_ogc_services.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ types:
1818
- Data publication
1919
- Metadata publication
2020
def: Publish data to GeoServer OGC web-services (WMS/WFS/WCS)
21+
status: stable
2122
target: NA
2223
target_dir: NA
2324
packages:

inst/actions/ocs4R_upload_data.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ maintainer:
1212
types:
1313
- Data upload
1414
def: Upload data to an OCS Cloud (NextCloud/Owncloud) Workspace
15+
status: experimental
1516
target: NA
1617
target_dir: NA
1718
generic_uploader: false

inst/actions/ows4R_publish_iso_19139.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ maintainer:
1616
types:
1717
- Metadata publication
1818
def: Publish/Update an ISO/OGC XML metadata object using OGC CSW Protocol
19+
status: stable
1920
target: entity
2021
target_dir: metadata
2122
packages:

inst/actions/rmarkdown_create_metadata.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ types:
99
- Metadata production
1010
- Reporting
1111
def: Generate a Markdown out of a entity
12+
status: experimental
1213
target: entity
1314
target_dir: markdown
1415
packages:

inst/actions/sf_write_dbi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ types:
1212
- Data writing
1313
- Data upload
1414
def: Import features data into Postgres/Postgis
15+
status: stable
1516
target: entity
1617
target_dir: data
1718
packages:

inst/actions/sf_write_generic.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ types:
1212
- Data writing
1313
- Data upload
1414
def: Import features data into several formats
15+
status: stable
1516
target: entity
1617
target_dir: data
1718
packages:

inst/actions/sf_write_shp.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ maintainer:
1111
types:
1212
- Data writing
1313
def: Import features data and zip files
14+
status: stable
1415
target: entity
1516
target_dir: data
1617
packages:

inst/actions/zen4R_deposit_record.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ types:
1515
- Metadata publication
1616
- DOI management
1717
def: Deposits/Publish data and/or metadata in the Zenodo infrastructure
18+
status: stable
1819
target: job
1920
target_dir: zenodo
2021
pid_generator: zenodo

man/geoflow_action.Rd

+48-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)