Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Changelog

## [Version 1.1.1](https://github.com/dataiku/dss-plugin-confluence/releases/tag/v1.1.1) - Feature release - 2025-06-28

- Fix following API change
- Add support for links to flow_zone, scenario, dashboard, recipe, managed_folder, statistics_worksheet, lambda_service

## [Version 1.1.0](https://github.com/dataiku/dss-plugin-confluence/releases/tag/v1.1.0) - Feature release - 2024-06-14

Expand Down
12 changes: 2 additions & 10 deletions python-lib/wikitransfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def article_title(self, project_key, article_id):
return name

def find_dss_links(self, md):
dss_links_regexp = re.compile(r'(\barticle\b|\bsaved_model\b|\binsight\b|\bproject\b|\bdataset\b|\bflow_zone\b|\bscenario\b|\bdashboard\b|\brecipe\b|\bmanaged_folder\b|\bstatistics_worksheet\b|\blambda_service\b|\banalysis\b):([a-zA-Z0-9_]+)\.?([a-zA-Z0-9_]+)?',
dss_links_regexp = re.compile(r'(\barticle\b|\bsaved_model\b|\binsight\b|\bproject\b|\bdataset\b):([a-zA-Z0-9_]+)\.?([a-zA-Z0-9_]+)?',
flags=re.I | re.X)
return dss_links_regexp.findall(md)

Expand All @@ -183,15 +183,7 @@ def build_dss_path(self, object_type, project_key, object_id):
'saved_model': '/savedmodels/' + object_id + '/versions/',
'insight': '/dashboards/insights/' + object_id + '_/view',
'project': '/',
'dataset': '/datasets/' + object_id + '/explore/',
'flow_zone': '/flow/?zoneId={}'.format(object_id),
'scenario': '/scenarios/' + object_id + '/runs/list/',
'dashboard': '/dashboards/' + object_id + '/view/',
'recipe': '/recipes/' + object_id + '/',
'managed_folder': '/managedfolder/' + object_id + '/view/',
'statistics_worksheet': '/statistics/worksheet/' + object_id,
'lambda_service': '/api-designer/' + object_id + '/endpoints/',
'analysis': '/analysis/' + object_id + '/script/',
'dataset': '/datasets/' + object_id + '/explore/'
}
if object_type == 'article':
return project_key + '.' + object_id
Expand Down