
I provided this client with several iterations of REPL scripts regarding the image collection in their CMS. I first wrote a script based on the client’s request to archive all of the images in their CMS that were older than a certain date. This process involved determining which attribute of the image collection caused an image to become archived, then setting up logic to target the image collection and change the value of the attribute through MongoDB aggregation pipelines. This script was tested locally, then on a staging site, and finally was run on the client’s live site.
I also wrote a script that would find all of the active images used throughout the Visit Irving site and create a report with specifically requested information about each image. While some of the code in this extensive script to find and report on all of their images was reused from existing scripts, I had to comb through the code from these scripts, compile the relevant parts, and make adjustments to fit to the unique settings and needs of this particular client and their requests. In addition to providing the required report, I also ensured that the data was presented in a clear, easily-readable format, including, for example, MM-DD-YYY date formatting rather than UTC formatting.

