Skip to content

wolfewylie/gov_can-GEDSMACHINE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map the Govt. of Canada

This takes the open data JSON from GEDS on the Government of Canada Open Data portal and inverts it into a tree of the entire government's structure. Secondly, it integrates with Miro to create a team-by-team visualization of that structure.

To install the app in Miro

To install the app for your Team in Miro, CLICK HERE.

The Miro App installation screen. Pick a team to install the app for all boards in that team.

From there, Miro may or may not send you back to your boards. So click the Miro icon in the top-left corner or go directly to Miro.com.

The app has been installed for all of the boards in your selected team

The app has been installed for all of the boards in your selected team. Note that, by default, Miro will show you all the boards you have access to. Click on the "Boards in this team" button on the left sidebar to show only the boards that have been granted access to the app. Then you may open a Board or create a new Board.

Once you have a board open, the app drawer is on the left-hand toolbar, at the bottom. If you open it, you should see the Magic GEDS Machine listed.

The app is listed with the rest of the Miro apps

This will open the Magic GEDS Machine app screen.

The app interface allows you to pick a department and a layout

Once you draw a department or two, you can use Miro's built-in features to draw linkages between them to represent consultations, data, financial obligations or anything else your heart desires.

Linkages between teams at the Canadian Space Agency and the Canadian Dairy Commission

Privacy: The app collects anonymous Google Analytics to track anonymous popularity and usage. No individual or identifiable information is collected or stored. No Miro account information is collected or stored.

To work on the tool on your own

The GEDS data comes from the open data portal here.

That data is not well formed for our needs, though. So the data_prep directory includes three scripts to make it real:

geds_transformery.py just uses regex to read each person in the Open Data file into a proper list.

Geds_department_Builder.py converts that 750MB JSON file into a more concise 5.5MB JSON file that represents every team in the Government of Canada and its population count.

That script also spits out a json file for each federal department. For this exercise, I'm storing those in a Microsoft OneDrive folder.

oneDrive_reader.py reads that folder and gathers the stable file download links into another json file that we can feed into Miro.

That's the end of the Python portion of this exercise. The rest takes place in the miro-app directory.

To run locally, you'll need to create a developer account in Miro and then:

npm install

npm run start

About

Uses open data from the Government of Canada Open Data portal to draw an org chart for any federal department.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published