-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ap/unsubscribe after 3 notifs #218
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a1044cb
edited prisma schema to add notifsCount attribute for tracking notifs
ananyaspatil 571693a
resolved warnings
ananyaspatil 9999089
update notif_count and delete followed_course/section when 3 notif_co…
ananyaspatil 5996009
clean up code, resolve warnings
ananyaspatil 2bef658
editing notifyer tests
ananyaspatil d7559c9
fix broken tests
sebwittr 8d728c8
testing
elvincheng3 cb54a76
added integration tests for notifyer changes
ananyaspatil e15402f
deleted unnecessary lines
ananyaspatil 089ebc0
delete comments
ananyaspatil 76a26a1
create unit test subdirectory
ananyaspatil 5652f0c
edit test.yaml
ananyaspatil cd326b6
edit test.yaml
ananyaspatil 78d3b9f
edit unittest command
ananyaspatil 41fa740
add unittest jest.config file
ananyaspatil 210f182
moved unit tests to unit subdirectory
ananyaspatil e894992
moved more tests to unit subdirectory
ananyaspatil 93412f3
remove unused import and comments
ananyaspatil 05dc02b
remove unused import
ananyaspatil 6449ce3
edit test
ananyaspatil ecc8013
remove updater export
ananyaspatil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
prisma/migrations/20240814155920_add_notif_counts/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- AlterTable | ||
ALTER TABLE "followed_courses" ADD COLUMN "notif_count" INTEGER NOT NULL DEFAULT 0; | ||
|
||
-- AlterTable | ||
ALTER TABLE "followed_sections" ADD COLUMN "notif_count" INTEGER NOT NULL DEFAULT 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this yaml change wasn't intended to be a fix, just a proof of concept. i think it would make sense if we broke down the test directories into unit and integration subdirectories, and had separate testing CI for unit vs integration tests. it's best if we have clear separation between unit and integration, just in case we have tests that were intended to be unit tests but ended up relying on some dependency. would also be best if the unit tests did not have the db, elastic, or graph spun up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that makes sense, I kept the general subdirectory to hold integration tests & have made a separate unit subdirectory.