Skip to content

Dev#230

Merged
MarioRaafat merged 104 commits intomainfrom
dev
Dec 24, 2025
Merged

Dev#230
MarioRaafat merged 104 commits intomainfrom
dev

Conversation

@MarioRaafat
Copy link
Owner

No description provided.

Alyaa242 and others added 30 commits December 8, 2025 13:03
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): ya rab el aggregation y4t8l b2a
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): ya rab el aggregation y4t8l b2a

* fix(notifications): el data kter wel 5er kteer
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): ya rab el aggregation y4t8l b2a

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): ya rab el aggregation y4t8l b2a

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): ya rab el aggregation y4t8l b2a

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer
* fix(notifications): fix some bugs

* fix(notifications): fix some bugs

* fix(notifications): sort response

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): fix aggregation bug

* fix(notifications): ya rab el aggregation y4t8l b2a

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): el data kter wel 5er kteer

* fix(notifications): expo

* fix(notifications): expo

* fix(notifications): expo
* fix(trends): use built in function for hashtag extraction

* fix(hashtags): convert hashtag names to lowercase

* fix(trends): adjust candidates TTL

* refactor(trends): remove debugging params

* fix(trends): edit hashtag regex

* refactor(trends): move cron expression to queue constants file

* fix(dependencies): resolve package lock error

* refactor(trends): use built in cron expression constants

* test(trends): fix unit tests

---------

Co-authored-by: shady <149704119+shady-2004@users.noreply.github.com>
AmiraKhalid04 and others added 25 commits December 15, 2025 12:57
* feat(trend): increase TTL time for trend just for testing scenarios

* test(trend): fix unit tests

* feat(trend): add  trigger endpoint for calculating trends
* fix(auth): fix access tokens on delete account

* test(user): fix user tests
* fix(search): store mentions in elasticsearch

* fix(search): search query in mentions
* fix(search): store mentions in elasticsearch

* fix(search): search query in mentions

* fix(migrations): remove previous migrations
* fix(chat): fix fk constraints

* fix(db): remove migration files
* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests
* test(search): test elasticsearch module

* test(search): add search test cases
* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests

* fix(notifications): unit tests
* fix(trend): change trend to be last 24 hrs just for testing purpose

* fix(trend): change counter and add logging for debugging
* test(tweets): increased service cov

* feat(timeline): for-you v2 (under test)

* fix(timeline): circular dependency with bg module

* fix(timeline): bug

* test(explore): explore unit tests

* test(tweets): tweets unit test

* test(explore-job): explore job unit tests

* test(messages): messages unit test

* feat(timeline): v2 done with seen property and interests based

* fix(test): unit tests

* fix(ci): fix package-lock.json

---------

Co-authored-by: Mario Raafat <mariorafat10@gmail.com>
Co-authored-by: Mario Raafat <136023677+MarioRaafat@users.noreply.github.com>
Co-authored-by: Alyaa Ali <eissaalyaa@gmail.com>
* fix(trend): change trend to be last 24 hrs just for testing purpose

* fix(trend): change counter and add logging for debugging

* fix(trend): update weight factors
* test(tweets): increased service cov

* feat(timeline): for-you v2 (under test)

* fix(timeline): circular dependency with bg module

* fix(timeline): bug

* test(explore): explore unit tests

* test(tweets): tweets unit test

* test(explore-job): explore job unit tests

* test(messages): messages unit test

* feat(timeline): v2 done with seen property and interests based

* fix(test): unit tests

* fix(ci): fix package-lock.json

* fix(migrations): remove migration file

---------

Co-authored-by: Mario Raafat <mariorafat10@gmail.com>
Co-authored-by: Mario Raafat <136023677+MarioRaafat@users.noreply.github.com>
Co-authored-by: Alyaa Ali <eissaalyaa@gmail.com>
* feat(timeline): for-you v2 (under test)

* fix(timeline): circular dependency with bg module

* fix(timeline): bug

* feat(timeline): v2 done with seen property and interests based

* fix(test): unit tests

* fix(ci): fix package-lock.json

* fix(timeline): bug in refresh sign up

* fix(test): mig remove

* fix(timeline): fix dependencies

* fix(timeline): bug in refresh sign up

---------

Co-authored-by: Alyaa Ali <eissaalyaa@gmail.com>
* fix(migrations): clear migrations

* fix(ai-summary): arabic summary
* fix(explore): remove followed users from who to follow

* refactor(explore): remove unnecessary logs

* fix(media): add heic extension
@github-actions
Copy link

Coverage after merging dev into main will be

91.01%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   app.controller.ts87.80%66.67%100%100%19, 33, 88, 88, 88
   app.service.ts90%71.43%100%100%101, 122–123, 123, 195, 21, 21, 23, 242, 25, 250, 27, 29–30, 330, 339, 349, 363, 372, 380
src/auth
   auth.controller.ts80.11%68.90%87.50%89.20%102, 105, 107, 110, 110, 122, 133, 145, 160, 175, 201, 213, 224, 237, 253, 273, 291, 310, 314–316, 329, 352, 367, 382, 396, 420, 462–464, 469–470, 470, 475–478, 478, 490, 495, 520–522, 527–528, 528, 533–536, 536, 547, 552, 577, 618–620, 625–626, 626, 631–634, 634, 645, 650, 663, 675, 697
   auth.service.ts89.56%81.65%94.29%93.93%107–108, 1085, 143, 432, 480, 510, 543–544, 56, 56, 565–566, 57–58, 589, 59, 590, 60–62, 646, 651, 673, 70, 704, 708, 71, 728, 756, 77, 775, 78, 797–798, 802–803, 811, 811, 811–812, 815, 822, 822, 822–823, 828, 828, 828–829, 832, 837–838, 838, 838–839, 842, 844, 844, 844–845, 848, 848, 848–849, 878–879, 885, 888–889, 981, 981, 990, 990, 992–993
   captcha.service.ts96.30%90%100%100%16, 69
   username.service.ts94.50%86.84%100%98.44%112, 115, 42, 47, 7, 77
src/auth/guards
   facebook.guard.ts100%100%100%100%
   github.guard.ts100%100%100%100%
   google-auth.guard.ts100%100%100%100%
   jwt.guard.ts48.78%56.25%66.67%40.91%12, 14, 14, 14–15, 18–19, 21–22, 22, 22–24, 26, 28, 28, 28–29, 33, 7
   optional-jwt.guard.ts84.62%100%50%85.71%8
   ws-jwt.guard.ts96.61%90%100%100%16, 52
src/auth/strategies
   facebook.strategy.ts88.41%79.49%100%100%11, 11, 15–17, 36–37, 37
   github.strategy.ts89.23%81.08%100%100%11, 11, 15–17, 39, 39
   google.strategy.ts92%83.33%100%100%10, 10, 14–15
   jwt.strategy.ts92.31%75%100%100%8
src/azure-storage
   azure-storage.service.ts98.04%92.86%100%100%11
src/background-jobs
   background-jobs.ts95.74%0%100%100%16–17
src/background-jobs/ai-summary
   ai-summary.processor.ts81.63%71.43%100%84.85%19, 21, 63, 63, 63, 66, 71, 73–74
   ai-summary.service.ts100%100%100%100%
src/background-jobs/elasticsearch
   es-delete-tweet.service.ts100%100%100%100%
   es-delete-user.service.ts100%100%100%100%
   es-follow.service.ts100%100%100%100%
   es-index-tweet.service.ts100%100%100%100%
   es-sync.processor.ts90.70%83.13%93.75%95.69%100, 103, 149–150, 23, 23, 242, 25, 258, 26, 32, 349, 358, 363, 365, 84–86, 99
   es-update-user.service.ts100%100%100%100%
src/background-jobs/email
   email.controller.ts96.15%75%100%100%9
   email.processor.ts97.67%91.67%100%100%18
   email.service.ts100%100%100%100%
src/background-jobs/explore
   explore-jobs.controller.ts86.36%75%75%92.86%10, 45
   explore-jobs.cron.ts95.24%83.33%100%100%16
   explore-jobs.processor.ts95.29%80%100%100%101, 12, 155, 18
   explore-jobs.service.ts96.28%82.98%100%100%119, 179, 188–190, 321, 33, 33
src/background-jobs/hashtag
   hashtag.controller.ts96.15%75%100%100%8
   hashtag.processor.ts90.91%75%100%100%12, 15
   hashtag.service.ts96.15%87.50%100%100%10
src/background-jobs/notifications/clear
   clear.processor.ts87.50%82.35%100%90.48%12, 26, 33–35
   clear.service.ts70%50%66.67%88.89%38, 40, 40–41, 41
src/background-jobs/notifications/follow
   follow.processor.ts92.11%75%100%100%18, 18, 33
   follow.service.ts100%100%100%100%
src/background-jobs/notifications/like
   like.processor.ts94.44%85%100%100%19, 19–20
   like.service.ts100%100%100%100%
src/background-jobs/notifications/mention
   mention.processor.ts94.85%88.37%100%100%23, 23–25, 72
   mention.service.ts100%100%100%100%
src/background-jobs/notifications/message
   message.processor.ts92.86%78.57%100%100%19, 19–20
   message.service.ts100%100%100%100%
src/background-jobs/notifications/quote
   quote.processor.ts94.74%86.67%100%100%23, 23–25
   quote.service.ts100%100%100%100%
src/background-jobs/notifications/reply
   reply.processor.ts90.54%83.33%100%95.24%20, 20–22, 82–84
   reply.service.ts100%100%100%100%
src/background-jobs/notifications/repost
   repost.processor.ts94.29%85.71%100%100%19, 19–20, 27
   repost.service.ts100%100%100%100%
src/background-jobs/timeline
   timeline.cron.ts57.14%75%0%62.50%11–12, 7, 7
   timeline.processor.ts91.75%79.17%100%95.52%139, 141–142, 146, 23, 23–25
   timeline.service.ts20.59%0%0%43.75%19–20, 29, 31, 31–32, 32, 40–41, 54, 56, 56–57, 57, 65–66, 75, 77, 77–78, 78
src/background-jobs/videos
   compress-video.processor.ts68.24%50%50%75.41%100, 100, 100, 104, 107–109, 109, 109, 75–76, 78, 80–81, 91–92, 95–96, 98
   compress-video.service.ts100%100%100%100%
src/category
   category.controller.ts90.48%75%100%100%13, 20
   category.service.ts94.44%75%100%100%11
src/chat
   chat.controller.ts86.36%75%100%91.30%37, 47, 51–52, 61, 75
   chat.repository.ts67.36%56.67%77.78%74.67%106, 106, 126, 148, 168–170, 175, 175, 177–179, 179, 179–181, 181,

@MarioRaafat MarioRaafat merged commit e54b33d into main Dec 24, 2025
3 checks passed
@AmiraKhalid04
Copy link
Collaborator

❤️🎉🎉

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.

5 participants