Skip to content

Commit

Permalink
fix some documentation and ExecutionReport text snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
seebi committed Sep 19, 2023
1 parent fe352d5 commit 3165309
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .idea/cmem-plugin-databus.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)

## [Unreleased]
## [1.0.1] 2023-09-19

### Fixed

- some documentation and ExecutionReport text snippets

TODO: add at least one Added, Changed, Deprecated, Removed, Fixed or Security section

## [1.0.0] 2023-09-12

Expand Down
13 changes: 9 additions & 4 deletions cmem_plugin_databus/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _read(self):
PluginParameter(
name="target_file",
label="File",
description="File name where you want to save the dowloaded file"
description="File name where you want to save the dowloaded file"
" from the Databus.",
param_type=ResourceParameterType(),
),
Expand Down Expand Up @@ -306,7 +306,7 @@ def execute(
self, inputs=(), context: ExecutionContext = ExecutionContext()
) -> None:
setup_cmempy_user_access(context.user)
self.log.info(f"Loading file from {self.databus_file_id}")
self.log.info(f"Downloading file from {self.databus_file_id}")

databus_file_resp = requests.get(
self.databus_file_id,
Expand All @@ -330,11 +330,16 @@ def execute(
replace=True
)
if upload_response.status_code < 400:
context.report.update(ExecutionReport(operation_desc="Upload Successful ✓"))
context.report.update(
ExecutionReport(
operation_desc="Download Successful ✓",
entity_count=1
)
)
else:
context.report.update(
ExecutionReport(
operation_desc="Upload Failed ❌",
operation_desc="Download Failed ❌",
error=upload_response.text
)
)
4 changes: 2 additions & 2 deletions cmem_plugin_databus/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def validate_dataset_artifact_uri(uri: str):


@Plugin(
label="Databus Deploy Plugin",
description="Deploys a graph to the Databus",
label="Publish to a DBpedia Databus",
description="Deploys a graph to a Databus",
documentation="""
This CMEM task deploys a knowledge graph to the defined Databus Dataset.
Expand Down

0 comments on commit 3165309

Please sign in to comment.