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
52 changes: 28 additions & 24 deletions .github/scripts/update-permissions-tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,31 +240,35 @@ def process_operations_grants(self) -> None:

print(f"✅ Parsed {len(operations_tables)} operation tables: {', '.join(operations_tables.keys())}")

# Update custom-roles.md
target_file = self.docs_repo / 'platform-enterprise_docs' / 'orgs-and-teams' / 'custom-roles.md'
# Update both custom-roles.md files
target_files = [
self.docs_repo / 'platform-cloud' / 'docs' / 'orgs-and-teams' / 'custom-roles.md',
self.docs_repo / 'platform-enterprise_docs' / 'orgs-and-teams' / 'custom-roles.md',
]

for section_name, table_content in operations_tables.items():
try:
print(f" Updating {section_name} section...")
self.update_operations_table(target_file, section_name, table_content)
self.successes.append(f"{target_file.relative_to(self.docs_repo)} ({section_name})")
print(f" ✅ Updated successfully")
except TableUpdateError as e:
error_msg = str(e)
print(f" ❌ {error_msg}")
self.errors.append({
'file': f"{target_file.relative_to(self.docs_repo)} ({section_name})",
'error': error_msg,
'type': 'update_error'
})
except Exception as e:
error_msg = f"Unexpected error: {str(e)}"
print(f" ❌ {error_msg}")
self.errors.append({
'file': f"{target_file.relative_to(self.docs_repo)} ({section_name})",
'error': error_msg,
'type': 'unexpected_error'
})
for target_file in target_files:
for section_name, table_content in operations_tables.items():
try:
print(f" Updating {target_file.relative_to(self.docs_repo)} - {section_name} section...")
self.update_operations_table(target_file, section_name, table_content)
self.successes.append(f"{target_file.relative_to(self.docs_repo)} ({section_name})")
print(f" ✅ Updated successfully")
except TableUpdateError as e:
error_msg = str(e)
print(f" ❌ {error_msg}")
self.errors.append({
'file': f"{target_file.relative_to(self.docs_repo)} ({section_name})",
'error': error_msg,
'type': 'update_error'
})
except Exception as e:
error_msg = f"Unexpected error: {str(e)}"
print(f" ❌ {error_msg}")
self.errors.append({
'file': f"{target_file.relative_to(self.docs_repo)} ({section_name})",
'error': error_msg,
'type': 'unexpected_error'
})

def generate_error_report(self) -> None:
"""Generate UPDATE_ERRORS.md if there were any errors."""
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-permissions-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
- `platform-enterprise_docs/orgs-and-teams/roles.md` (Role permissions table)

#### From `docs/grants_operations.md`:
- `platform-cloud/docs/orgs-and-teams/custom-roles.md` (Operations tables by section)
- `platform-enterprise_docs/orgs-and-teams/custom-roles.md` (Operations tables by section)

### Review Checklist
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ internal/tmp
# OSS repo clones
multiqc_docs/multiqc_repo
wave_docs/wave_repo
platform-repo/*

# Python
__pycache__/
Expand Down
2 changes: 2 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

[context.deploy-preview.build.environment]
INCLUDE_NEXT="true"
EXCLUDE_PLATFORM_API="true"
EXCLUDE_OPENAPI="true"

# Seqera API docs are too large to host / build on netlify on their own.
# The appropriate ENVVAR is set to disable the API Builds on Netlify for the main docs site.
Expand Down
1 change: 1 addition & 0 deletions platform-cloud/cloud-sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"orgs-and-teams/organizations",
"orgs-and-teams/workspace-management",
"orgs-and-teams/roles",
"orgs-and-teams/custom-roles",
"monitoring/dashboard",
"administration/credit-management"
]
Expand Down
245 changes: 245 additions & 0 deletions platform-cloud/docs/orgs-and-teams/custom-roles.md

Large diffs are not rendered by default.

281 changes: 143 additions & 138 deletions platform-enterprise_docs/orgs-and-teams/custom-roles.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading