Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unused variable in getDayString #7296

Conversation

pluto-bell
Copy link
Member

@pluto-bell pluto-bell commented Aug 15, 2024

Fixes #7013

What changes did you make?

  • Removed an unused variable in function getDayString in file right-col-content.js

Why did you make the changes (we will use this info to test)?

  • To make the code readable, clear and uncluttered.
  • This fix makes the function easier to understand for developers moving forward.

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

No visual changes made

Copy link

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.

git checkout -b pluto-bell-resolve-codeQL-alert#114-issue#7013 gh-pages
git pull https://github.com/pluto-bell/hack4la.git resolve-codeQL-alert#114-issue#7013

@github-actions github-actions bot added role: back end/devOps Tasks for back-end developers P-Feature: Events https://www.hackforla.org/events/ Complexity: Small Take this type of issues after the successful merge of your second good first issue size: 0.5pt Can be done in 3 hours or less Feature: Code Alerts labels Aug 15, 2024
@pluto-bell pluto-bell changed the title removed unused variable in getDayString remove unused variable in getDayString Aug 15, 2024
@pluto-bell pluto-bell changed the title remove unused variable in getDayString removed unused variable in getDayString Aug 15, 2024
@mrodz mrodz self-requested a review August 17, 2024 19:55
@mrodz
Copy link
Member

mrodz commented Aug 17, 2024

Availability: Weekdays 6:30-9PM, Weekends 9AM-5PM
ETA: 13:15 8/17

@github-actions github-actions bot added role: front end Tasks for front end developers Draft Issue is still in the process of being created labels Aug 17, 2024
Copy link
Member

@mrodz mrodz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pluto-bell, your code changes look good!

  • Removed unused variable
  • Documented changes
  • Explained reasoning for changes
  • Resolves CodeQL alert
  • Correct to branch
  • Linked issue(s)

However, I believe you misread the instructions on the CodeQL issue:

Create an issue branch and proceed with the code update

This does not mean creating a new issue on top of the CodeQL issue and merging a PR to close two separate issues. Instead, make one branch associated with #7013 and develop your patch on there.

Can you please apply your changes to a branch associated with #7013, and close the extra issue (#7295)?


Here are some examples of merged PRs that fix CodeQL alerts:


Re-request my review once you've got this done.

@github-actions github-actions bot removed role: front end Tasks for front end developers Draft Issue is still in the process of being created labels Aug 18, 2024
@pluto-bell
Copy link
Member Author

pluto-bell commented Aug 18, 2024

Thanks @mrodz! I did misread the instructions, and that makes way more sense. I've closed out issue #7295 and editing the description of this PR.

Since the branch name is already linked to issue #7013 ("resolve-codeQL-alert#114-issue#7013") I didn't change anything there. If I'm misunderstanding what you're looking for, please let me know.

@pluto-bell pluto-bell requested a review from mrodz August 18, 2024 04:52
@t-will-gillis t-will-gillis requested a review from ihop-56 August 18, 2024 17:05
Copy link
Member

@mrodz mrodz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you closed the extra issue—nice! Thanks for cleaning it up. Everything looks good to me and I think you're in a good state to merge.

For future issues, you don't need to include the # before any issue numbers. Also, you don't need to include the CodeQL alert number as prior PRs do not include it, and its CodeQL number can be obtained from the tracking issue.

Merge team, see my previous review. I am approving this issue as while the branch name does not explain the fixes, previously-merged CodeQL patches also do not relay changes in the branch name.

@jphamtv
Copy link
Member

jphamtv commented Aug 22, 2024

Hey @ihop-56, Could you please provide your estimated time for review and your availability? Thanks!

@ihop-56
Copy link
Member

ihop-56 commented Aug 22, 2024 via email

Copy link
Member

@ihop-56 ihop-56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pluto-bell, I reviewed the changes, and everything looks great. The unused variable in the getDayString function was correctly removed. There are no visual changes to the website, and the code is cleaner as a result. Nice job!

@t-will-gillis t-will-gillis merged commit 79f598f into hackforla:gh-pages Aug 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complexity: Small Take this type of issues after the successful merge of your second good first issue Feature: Code Alerts P-Feature: Events https://www.hackforla.org/events/ role: back end/devOps Tasks for back-end developers size: 0.5pt Can be done in 3 hours or less
Projects
Development

Successfully merging this pull request may close these issues.

Resolve CodeQL Alert #114 - Generated by GHA
5 participants