Skip to content

Commit 1758b20

Browse files
authored
fix org reference for central node (#42)
### Root cause config.toml had central_repository = "DevSeed Team" (no org prefix), but the CSV data on disk has developmentseed/DevSeed Team (with org prefix). When the Jinja template passed "DevSeed Team" as REPO_CENTRAL to the visualization, prepareData created nodes from the CSV with id: "developmentseed/DevSeed Team", so the lookup d.id === "DevSeed Team" failed. This likely happened during the refactoring, probably because I removed the center node visualization. I made a followup ticket to fully remove #40 The config value was shortened to just the display name, but the CSV (which was generated earlier with the full owner/repo format) wasn't regenerated. Two changes made: 1. config.toml — restored the full owner/repo format: central_repository = "developmentseed/DevSeed Team". This matches the CSV data and the convention used by every other repository in the config. 2. python/templates/index.html.jinja line 54 — changed the title display from {{ central_repository }} to {{ central_repository.split('/')[-1] }} so the heading still renders as "DevSeed Team" rather than the full path.
1 parent 148977e commit 1758b20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title = "The Development Seed Contributor Network"
22
author = "Pete Gadomski"
33
description = "An interactive visualization of contributors to Development Seed code and their connections to other repositories"
4-
central_repository = "DevSeed Team"
4+
central_repository = "developmentseed/DevSeed Team"
55
repositories = [
66
"developmentseed/titiler",
77
"developmentseed/lonboard",

python/templates/index.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<div id="chart-introduction">
5252
<div id="chart-title">
5353
<h1>The Contributor Network of</h1>
54-
<h1><span id="title-repo-name" class="central-repo">{{ central_repository }}</span></h1>
54+
<h1><span id="title-repo-name" class="central-repo">{{ central_repository.split('/')[-1] }}</span></h1>
5555
<p id="last-commit-date"></p>
5656
</div>
5757
<div id="chart-intro-text">

0 commit comments

Comments
 (0)