How mabdraboh/arcgis-portal-governance works
This repository implements ArcGIS Enterprise portal governance: a schema is prepared, the Python engine audits portal items against security, integrity, lifecycle, metadata, and governance rules, and audit results feed a hosted feature layer used by an operational Dashboard. Dashboard Arcade formatting and an HTML list template provide an actionable presentation. The README documents the end-to-end deployment; the sampled engine excerpts show feature-service table updates, but not every audit-stage implementation detail.
Main entry points: governance_engine.py Governance Engine · create_gdb_schema.py Schema Generator · dashboard_arcade.js List Formatting · dashboard_list_layout.html List Template
Components 18
Data Setup
- Schema Generator
create_gdb_schema.py - File Geodatabase
Governance Audit
- Governance Engine
governance_engine.py - ArcGIS Portal
- Security Checks
governance_engine.py - Integrity Checks
governance_engine.py - Lifecycle Checks
governance_engine.py - Metadata Checks
governance_engine.py - Governance Checks
governance_engine.py
Audit Results
- Hosted Feature Layer
- Item Audit
- Violation Instances
- Owner Summary
- Audit Summary
Dashboard
- ArcGIS Dashboard
- List Formatting
dashboard_arcade.js - List Template
dashboard_list_layout.html
Other components
- Portal Operator
Connections 18
- Portal Operator → Schema Generator: prepares schema
README.md - Schema Generator → File Geodatabase: creates tables
README.md - Portal Operator → Hosted Feature Layer: publishes schema
README.md - Portal Operator → Governance Engine: runs audit
README.md - Governance Engine → ArcGIS Portal: enumerates items
README.md - Governance Engine → Security Checks: evaluates rules
README.md - Governance Engine → Integrity Checks: evaluates rules
README.md - Governance Engine → Lifecycle Checks: evaluates rules
README.md - Governance Engine → Metadata Checks: evaluates rules
README.md - Governance Engine → Governance Checks: evaluates rules
README.md - Governance Engine → Hosted Feature Layer: updates tables
governance_engine.py - Hosted Feature Layer → Item Audit: stores item audit
- Hosted Feature Layer → Violation Instances: stores violations
- Hosted Feature Layer → Owner Summary: stores owner totals
- Hosted Feature Layer → Audit Summary: stores run totals
- ArcGIS Dashboard → Hosted Feature Layer: uses data source
README.md - ArcGIS Dashboard → List Formatting: applies formatting
README.md - ArcGIS Dashboard → List Template: renders list
README.md