πŸ“… 2023-05-21 β€” Session: Implemented Mapbox JSON manipulation and disk space troubleshooting

πŸ•’ 04:50–06:55
🏷️ Labels: Mapbox, JSON, Disk Space, Linux, Programming, Automation
πŸ“‚ Project: Dev
⭐ Priority: MEDIUM

Session Goal

The session aimed to explore and implement techniques for manipulating Mapbox style JSON files programmatically and to troubleshoot disk space issues on a filesystem root.

Key Activities

  • PHP Class for Divi Builder: Developed a PHP class for custom module field templates in Divi Builder, focusing on border style selection.
  • Mapbox Style Exploration: Reviewed Mapbox style JSON files, including the β€˜Monochrome’ style, and explored the Mapbox Style Specification.
  • Programmatic JSON Editing: Implemented a workflow for programmatically editing Mapbox style JSON using the Mapbox Styles API, including fetching, modifying, validating, saving, and uploading JSON styles.
  • JSON Manipulation Techniques: Discussed various techniques for modifying JSON documents programmatically, including using JSON libraries and templating engines.
  • Python JSON Parsing: Provided Python code snippets for reading and manipulating JSON data using the json module.
  • Disk Space Troubleshooting: Outlined steps to troubleshoot and resolve disk space issues on the filesystem root, including using the df and du commands to analyze disk usage.

Achievements

  • Successfully explored and documented methods for programmatically manipulating Mapbox style JSON files.
  • Developed a systematic approach for troubleshooting disk space issues on Linux systems.

Pending Tasks

  • Further exploration of advanced JSON manipulation techniques using external configurations and rule-based transformations.
  • Implementation of automated scripts for disk space monitoring and alerting.