Skip to content

Refactor JavaScript so that Events page sources meeting data from vrms_data.json #6023

@roslynwythe

Description

@roslynwythe

Overview

We need to refactor the JavaScript that generates the list of meetings on the Events page, so that it retrieves meeting data from the file data/external/vrms_data.json, in order to reduce the latency and improve the reliability of the Events page. For testing purposes, a new page events-check will be created that will maintain the behavior of the current events page.

Details

The project pages currently sources meeting data from data/external/vrms_data.json and so elements of that code can be refactored so that functions can be called from the Events page as well.

Action Items

  • Copy events.html then rename the copy to events-check.html and change the permalink to /events-check
  • Copy events.js then rename the copy events-check.js and update events-check.html to reference the renamed file
  • Copy _includes/events-page/right-col-content.html then rename the copy to _includes/events-page/right-col-content-check.html and update events-check.html to reference the renamed file
  • Copy assets/js/right-col-content.js then rename the copy assets/js/right-col-content-check.js and modify _includes/events-page/right-col-content-check.html to reference the renamed file
  • Confirm that the appearance and meeting data on /events-check are identical to /events
  • Open the file assets/js/project.js in your IDE and understand the code used to display project meetings. If there is code that can be shared between the project and events pages, move those elements to a new file assets/js/utility/vrms-events.js.
  • If code was moved to assets/js/utility/vrms-events.js, refactor the code in assets/js/project.js to reference function(s) in the new file, and perform testing to confirm that functionality on the Project page1 is unchanged.
  • Refactor the code in assets/js/right-col-content.js and _includes/events-page/right-col-content.html to reference the function(s) in assets/js/utility/vrms-events.js and perform testing to confirm that functionality on the Event page2 is unchanged.

Resources/Instructions

Merge Team

Footnotes

  1. Project page - sample

  2. Events webpage

Metadata

Metadata

Type

No type

Projects

Status

QA

Relationships

None yet

Development

No branches or pull requests

Issue actions