Compare commits

..

1 Commits

Author SHA1 Message Date
cab8a437aa Update 'otc_metadata/data/services.yaml'
All checks were successful
gl/check check status: success (cab8a437aa745516c7abfee31052275ba255341c)
Public waf
2023-06-12 10:02:15 +00:00
6 changed files with 14 additions and 214 deletions

View File

@ -373,7 +373,8 @@ documents:
service_type: dis
title: User Guide
type: umn
- hc_location: api/dli
- environment: internal
hc_location: api/dli
html_location: docs/dli/api-ref
link: /data-lake-insight/api-ref/
pdf_name: dli-api-ref
@ -381,7 +382,8 @@ documents:
service_type: dli
title: API Reference
type: api-ref
- hc_location: usermanual/dli
- environment: internal
hc_location: usermanual/dli
html_location: docs/dli/umn
link: /data-lake-insight/umn/
pdf_name: dli-umn
@ -654,7 +656,7 @@ documents:
service_type: ims
title: Developer Guide
type: dev
- environment: public
- html_location: docs/ims/public-images
link: /image-management-service/public-images/
pdf_name: ims-public-images
rst_location: doc/public-images/source
@ -810,7 +812,7 @@ documents:
pdf_name: obs-swiftapi
rst_location: doc/swiftapi/source
service_type: obs
title: API Reference (Swift) - Deprecated
title: API Reference (Swift)
type: swiftapi
- hc_location: api_obs/obs
html_location: docs/obs/s3api
@ -1085,7 +1087,8 @@ documents:
service_type: waf
title: User Guide
type: umn
- hc_location: api/dwaf
- environment: internal
hc_location: api/dwaf
html_location: docs/wafd/api-ref
link: /web-application-firewall-dedicated/api-ref/
pdf_name: wafd-api-ref
@ -1093,7 +1096,8 @@ documents:
service_type: wafd
title: API Reference
type: api-ref
- hc_location: usermanual/dwaf
- environment: internal
hc_location: usermanual/dwaf
html_location: docs/wafd/umn
link: /web-application-firewall-dedicated/umn/
pdf_name: wafd-umn
@ -1328,7 +1332,7 @@ services:
service_category: big_data
service_title: DataArts Studio
service_type: dataarts_studio
service_uri: data-arts-studio
service_uri: dataarts-studio
environment: internal
teams:
- name: docs-bigdata-ai-rw
@ -1376,7 +1380,7 @@ services:
service_uri: distributed-cache-service
environment: public
teams:
- name: docs-orchestration-rw
- name: docs-database-rw
permission: write
- repositories:
- environment: internal
@ -1479,7 +1483,7 @@ services:
service_title: Data Lake Insight
service_type: dli
service_uri: data-lake-insight
environment: public
environment: internal
teams:
- name: docs-bigdata-ai-rw
permission: write
@ -1995,7 +1999,7 @@ services:
service_category: network
service_title: Virtual Private Network
service_type: vpn
service_uri: virtual-private-network
service_uri: virtual-private-network/umn/
environment: public
teams:
- name: docs-network-rw

View File

@ -113,55 +113,6 @@ class Services(object):
res[cat]["docs"].append(res_doc)
return res
def service_types_with_doc_types(self, environment=None):
"""Retrieve type and title from services and corresponding docs.
As well as a list of all available doc types with title.
:param str environment: Optional service environment.
"""
service_list = []
docs = []
for service in self.all_services:
if not service["service_title"]:
continue
if not service["service_type"]:
continue
doc_list = []
for doc in self.all_docs:
if "environment" in doc:
if doc["environment"] != environment:
continue
if doc["service_type"] == service["service_type"]:
doc_list.append({
"title": doc["title"],
"type": doc["type"]
})
new_doc = {
"type": doc["type"],
"title": doc["title"]
}
type_exists = any(
doc_dict["type"] == new_doc["type"] for doc_dict in docs
)
if not type_exists:
docs.append(new_doc)
service_list.append({
"service_title": service["service_title"],
"service_type": service["service_type"],
"docs": doc_list
})
res = {
"services": service_list,
"docs": docs
}
return res
def docs_by_service_category(self, category, environment=None):
"""List services matching category

View File

@ -45,7 +45,6 @@ otcdocs_doc_type = '{{ doc_type }}'
otcdocs_service_category = '{{ service_category }}'
otcdocs_service_title = '{{ service_title }}'
otcdocs_service_type = '{{ service_type }}'
otcdocs_search_environment = 'hc_de'
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the

View File

@ -4,4 +4,3 @@ requests
jinja2
dirsync
cookiecutter
opensearch-py

View File

@ -32,11 +32,9 @@ def process_services(args, services):
block_on_rejected_reviews=True,
dismiss_stale_approvals=True,
enable_push=False,
enable_status_check=True,
status_check_contexts=["gl/check"],
enable_merge_whitelist=True,
merge_whitelist_usernames=["zuul"],
required_approvals=1,
)
gitea_repo_template = dict(
default_branch="main",

File diff suppressed because it is too large Load Diff