mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4074] [MERGED] HSB-445 feature: storing user last login timestamp #4646
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4646
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4074
Author: @mirarifhasan
Created: 5/19/2024
Status: ✅ Merged
Merged: 5/27/2024
Merged by: @balub
Base:
next← Head:feat/user-last-login-time📝 Commits (7)
c97d2e0feat: lastLoggedOn added in schema and service function83f081dfeat: add lastLoggedOn logic for magic link7c4f873test: update test casesd76f7c8feat: add lastLoggedOn in gql model3048376fix: nullable allowed in model attributec9d51d4fix: resolve feedback909f87dfeat: user last login interceptor added📊 Changes
15 files changed (+123 additions, -34 deletions)
View changed files
➕
packages/hoppscotch-backend/prisma/migrations/20240519093155_add_last_logged_on_to_user/migration.sql(+2 -0)📝
packages/hoppscotch-backend/prisma/schema.prisma(+12 -11)📝
packages/hoppscotch-backend/src/admin/admin.service.spec.ts(+2 -11)📝
packages/hoppscotch-backend/src/auth/auth.controller.ts(+5 -0)📝
packages/hoppscotch-backend/src/auth/auth.service.spec.ts(+13 -8)📝
packages/hoppscotch-backend/src/auth/auth.service.ts(+3 -1)➕
packages/hoppscotch-backend/src/interceptors/user-last-login.interceptor.ts(+26 -0)📝
packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts(+1 -0)📝
packages/hoppscotch-backend/src/team-collection/team-collection.service.spec.ts(+1 -0)📝
packages/hoppscotch-backend/src/user-collection/user-collection.service.spec.ts(+1 -0)📝
packages/hoppscotch-backend/src/user-request/user-request.service.spec.ts(+1 -0)📝
packages/hoppscotch-backend/src/user-settings/user-settings.service.spec.ts(+1 -0)📝
packages/hoppscotch-backend/src/user/user.model.ts(+6 -0)📝
packages/hoppscotch-backend/src/user/user.service.spec.ts(+28 -0)📝
packages/hoppscotch-backend/src/user/user.service.ts(+21 -3)📄 Description
Closes HSB-444
Description
This PR introduces the ability to store the user's last login timestamp in
hoppscotch-backendpackage (in theusertable).lastLoggedOnis the property to access the data. This value can be nullable for previous data.Checks
Additional Information
Nil
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.