Refactored JavaScript files so that Events page sources meeting data from vrms_data.json#6815
Conversation
…t file and call appendMeetingTimes from vrms-events now
…rmatted and inserted in right-col-content.js
…content.js to sort vrmsData but lives on vrmsEvents.js
…on stored in vrms-events.js
…refactor-js-events-page-6023
|
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes. |
| --- | ||
| --- | ||
|
|
||
| {% assign vrmsData = site.data.external.vrms_data %} |
Check notice
Code scanning / CodeQL
Syntax error
| * @return {String} - The name of the day represented by the time string. Example 2020-05-13 was a wednesday. I.e rv = 'Wednesday' | ||
| */ | ||
| function getDayString(date) { | ||
| let new_date = new Date(date); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
|
Review ETA: EOD 5/7/24 |
aadilahmed
left a comment
There was a problem hiding this comment.
Hi @irais-valenzuela , great job so far, the meeting data on the "events" page matches the live site exactly.
However, the meeting data is blank on the "events-check" page, which I believe is because you commented out the code in api-events.js . To maintain the behavior of the original events page, you should revert api-events.js back to its original code.
|
@aadilahmed Thanks for catching that! I just restored the code. Let me know if everything else is good. |
aadilahmed
left a comment
There was a problem hiding this comment.
Everything works as expected, great job @irais-valenzuela !
There was a problem hiding this comment.
Great job @irais-valenzuela on this Complexity: Large issue!
- Code changes are clean, correct and achieve the desired refactoring
- Pull Request is well-formed with proper branching and description of work
- The description could be improved slightly by replacing both of the "Visual changes" detail-summary blocks with a single line "no visual changes"
- Local testing of
/events-checkshows that event list is consistent with the live/eventspage - Local testing of
/projects/civic-tech-jobsshows that event list is consistent with the live/projects/civic-tech-jobspage - Local testing of
/eventsshows that event list is consistent with the live/projects/civic-tech-jobspage
Unfortunately in the process of checking events, I discovered discrepancies between the events on pages sourcing data from the API calls versus pages sourcing data from the vrms-data.json file,
- Those will be addressed in #6838
Thank you @irais-valenzuela for this contribution to Hack for LA!
Fixes #6023
What changes did you make?
Why did you make the changes (we will use this info to test)?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
No changes to website.Visuals after changes are applied
No changes to website.