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

Metrics now automatically update with new semesters #186

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Conversation

JustKong13
Copy link
Contributor

@JustKong13 JustKong13 commented Feb 13, 2024

Summary

Previously when we moved to a new semester, someone needed to manually change the codebase in order to make that semester available to be viewed on the metrics page.

  • Newly added semesters automatically also get added to metrics
  • Metrics page automatically loads with the current semester set by in the settings

Test Plan

Originally on the metrics page there isn't an option for Spring 25.
Screenshot 2024-02-15 at 12 26 11 AM

I can now add the Spring 25 semester via the settings.
Screenshot 2024-02-15 at 12 27 03 AM

And now it is available as an option.
Screenshot 2024-02-15 at 12 29 06 AM

Notes

The dropdown menu of the metrics page has the abbreviation semester "SP", rather than the the fully spelled out word "spring".

Breaking Changes

@JustKong13 JustKong13 requested a review from a team as a code owner February 13, 2024 16:55
@dti-github-bot
Copy link
Member

dti-github-bot commented Feb 13, 2024

[diff-counting] Significant lines: 17.

Copy link

github-actions bot commented Feb 13, 2024

Visit the preview URL for this PR (updated for commit 86c7523):

https://zing-lsc--pr186-sp24-metric-tg2573cy.web.app

(expires Thu, 22 Feb 2024 05:22:29 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1fc18307b178c916e2663810a6932f60b173c01b

@JustKong13 JustKong13 changed the title manually added and fixed metric semesters Metrics now automatically update with new semesters Feb 15, 2024
Copy link
Contributor

@rgu0114 rgu0114 left a comment

Choose a reason for hiding this comment

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

Great work on this PR Justin, thanks for continuing to make the Zing codebase extensible and more self-sufficient for the future! The functionality looks good – the only thing I would note is that admin users are able to enter negative numbers for the year, but that's okay for now/can be addressed in a future PR. Overall though, this looks great and I liked the simplicity in your solution.

@JustKong13 JustKong13 merged commit b979fd2 into main Feb 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants