[PR #4121] [MERGED] HSB-450 feature: user last active on #4675

Closed
opened 2026-03-17 02:11:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4121
Author: @mirarifhasan
Created: 6/13/2024
Status: Merged
Merged: 6/21/2024
Merged by: @balub

Base: nextHead: feat/user-last-active-on


📝 Commits (4)

  • 7278309 feat: userLastActiveOnInterceptor added and update func added in userService
  • 28aef4d chore: changed user model parameter description
  • 289c42a chore: commented out docker volume for hopp-old-service
  • f4345be chore: changed backend to work with secure cookies

📊 Changes

8 files changed (+100 additions, -5 deletions)

View changed files

📝 docker-compose.yml (+2 -2)
packages/hoppscotch-backend/prisma/migrations/20240621062554_user_last_active_on/migration.sql (+2 -0)
📝 packages/hoppscotch-backend/prisma/schema.prisma (+2 -1)
📝 packages/hoppscotch-backend/src/app.module.ts (+5 -1)
packages/hoppscotch-backend/src/interceptors/user-last-active-on.interceptor.ts (+67 -0)
📝 packages/hoppscotch-backend/src/interceptors/user-last-login.interceptor.ts (+0 -1)
📝 packages/hoppscotch-backend/src/user/user.model.ts (+6 -0)
📝 packages/hoppscotch-backend/src/user/user.service.ts (+16 -0)

📄 Description

Closes HSB-450

Description

This PR introduces lastActiveOn column in user table of database to track user's last activity timestamp.

For the client-side note, lastActiveOn field added in GQL model.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

Nil


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4121 **Author:** [@mirarifhasan](https://github.com/mirarifhasan) **Created:** 6/13/2024 **Status:** ✅ Merged **Merged:** 6/21/2024 **Merged by:** [@balub](https://github.com/balub) **Base:** `next` ← **Head:** `feat/user-last-active-on` --- ### 📝 Commits (4) - [`7278309`](https://github.com/hoppscotch/hoppscotch/commit/72783095a5b0ae4dff62c2d6e0079f7ae318e3d2) feat: userLastActiveOnInterceptor added and update func added in userService - [`28aef4d`](https://github.com/hoppscotch/hoppscotch/commit/28aef4d9ed1d4e47bba81fb4f791579a1e1b72fe) chore: changed user model parameter description - [`289c42a`](https://github.com/hoppscotch/hoppscotch/commit/289c42a8e25630776e84db06e3e64d85248f9f80) chore: commented out docker volume for hopp-old-service - [`f4345be`](https://github.com/hoppscotch/hoppscotch/commit/f4345bedc9307519c43718696a28f178b043959a) chore: changed backend to work with secure cookies ### 📊 Changes **8 files changed** (+100 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docker-compose.yml` (+2 -2) ➕ `packages/hoppscotch-backend/prisma/migrations/20240621062554_user_last_active_on/migration.sql` (+2 -0) 📝 `packages/hoppscotch-backend/prisma/schema.prisma` (+2 -1) 📝 `packages/hoppscotch-backend/src/app.module.ts` (+5 -1) ➕ `packages/hoppscotch-backend/src/interceptors/user-last-active-on.interceptor.ts` (+67 -0) 📝 `packages/hoppscotch-backend/src/interceptors/user-last-login.interceptor.ts` (+0 -1) 📝 `packages/hoppscotch-backend/src/user/user.model.ts` (+6 -0) 📝 `packages/hoppscotch-backend/src/user/user.service.ts` (+16 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> <!-- Issue # here --> Closes HSB-450 ### Description <!-- Add a brief description of the pull request --> This PR introduces `lastActiveOn` column in `user` table of database to track user's last activity timestamp. For the client-side note, `lastActiveOn` field added in GQL model. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> Nil --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:11:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4675
No description provided.