Refactor JavaScript so that Project Meetings page sources meeting data from vrms_data.json #7873
Conversation
…functions like in right-col-content.js
…oject-Meetings-page-sources-meeting-data-from-vrms_data.json-hackforla#6059
…roject-meetings.js file
|
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. |
|
Review ETA: EOD 2/08/25 |
Cloid
left a comment
There was a problem hiding this comment.
The code refactor is really good and meets the condition of the case. Looking at both live and this branch changes, there is a reduce in latency. Good job. The only changes I request are just simplifying the logic so it's easier to read and debug. Will approve after.
Hi @Cloid , The recommended changes do make the code a lot easier and simpler. However, I see scope for further refactoring the almost similar |
|
I agree that consolidating it into a single utility file would be more efficient. I was working under the assumption that this wasn’t an option. If that is the end goal, it would be helpful to mention it in both the PR and the Issue itself to ensure clear communication with the team. I'll approve it right after. Definitely, good catch on the similarities. |
|
Review ETA: 12 Feb 2025 @ 6 PM (GMT) |
There was a problem hiding this comment.
Hey @innith, thank you for working on this. Nice work!
Kudos
- The pull request is made with the correct branch.
- The pull request post contains a linked issue, and what changes you made and why are clear.
- The changes to the files are accurate. (Even though the changes that are made to the
assets/js/project-meetings.jsare copied from lines 26 - 123 ofassets/js/right-col-content.jsit is ok to do so in this particular case.) - You have claimed the orginiating issue well (#6059).
- I can see the changes in my local environment.
Suggested changes
- For the "CodeQL Alerts" section of the PR post, please check off the relevant box(es).
- For the Screenshots section of the PR post, you can remove the dropdowns and put "No visual changes to website".
- You could also update the PR post title like this: Refactor JavaScript so that Project Meetings page sources meeting data from vrms_data.json
After making these changes, please re-request a review from me. Feel free to reach out if you need help with anything.
Hey @mugdhchauhan , Thank you for the feedback, made the changes to the PR post as suggested |
|
Hi @Cloid , shall I work on the changes to project-meeting.js file as you suggested. |
|
Hey @innith, thanks for your efforts, however, some changes you made are incomplete. In the PR title:
Please see below example to see what the Screenshot section should like in the PR post. Screenshot section exampleYou just have to write "No visual changes to website" once as there are no screenshots. Please see below example to see how to re-request a review. Re-request review exampleFor the reviewer you want to re-request a review from please click the circular arrows icon next to their username in the "Reviewers" section on the upper right-hand side of the page. After making these changes, please re-request a review from me. Thanks! |
|
Review ETA: 17 Feb 2025 @ 6 PM (GMT) |
mugdhchauhan
left a comment
There was a problem hiding this comment.
Nice one @innith, thanks for making the changes as suggested in my review. I have approved this PR now. 👍
DrAcula27
left a comment
There was a problem hiding this comment.
@innith Great job on your Medium Issue! Your code passed the ABC's, including:
- PR is made from the correct branch
- PR links to the correct issue:
- The correct files
assets/js/project-meetings.jsandassets/js/utility/project-meetings-check.jswere edited - No extra edits were made
- Appearance of the website looks good (Chrome and Firefox)
- Latency is visibly improved!
Fixes
- I agree with @Cloid's comments on simplifying the logic so it's easier to read and debug. Once you make those changes, let me know and I will approve. Thanks!
|
Before giving my first review I spoke with @daras-cu about this PR and she confirmed the code and files changed by @innith are correct. Hence, I have approved. If you still want to make modifications to code I would suggest discussing with a Team Lead first. I don't mind to re-review again if it becomes necessary. Thanks. |
Cloid
left a comment
There was a problem hiding this comment.
Given @mugdhchauhan's context I'll approve the changes for this PR. Thank you for clarification and sorry for delay in approval.
|
Hi @DrAcula27 Would you please re-review? Thanks |
DrAcula27
left a comment
There was a problem hiding this comment.
Everything still looks good to me!
|
Thanks for working on this. The changes are good. I will now merge. |


Fixes #6059
What changes did you make?
assets/js/project-meetings.jsto source data fromdata/external/vrms_data.json, using functions inassets/js/utility/vrms-events.jsassets/js/project-meetings-check.jsto evaluate the changes made toassets/js/project-meetings.jsWhy did you make the changes (we will use this info to test)?
CodeQL Alerts
After the PR has been submitted and the resulting GitHub actions/checks have been completed, developers should check the PR for CodeQL alert annotations.
Check the PR's comments. If present on your PR, the CodeQL alert looks similar as shown
Please let us know that you have checked for CodeQL alerts. Please do not dismiss alerts.
Instructions for resolving CodeQL alerts
If CodeQL alert/annotations appear, refer to How to Resolve CodeQL alerts.
In general, CodeQL alerts should be resolved prior to PR reviews and merging
Screenshots of Proposed Changes To The Website (if any, please do not include screenshots of code changes)