Skip to content

feat: get user log by id + get user logs paginated - #247

Merged
vzart merged 2 commits into
final/iteration2from
feat/base-log-endpoints
Jun 14, 2023
Merged

feat: get user log by id + get user logs paginated#247
vzart merged 2 commits into
final/iteration2from
feat/base-log-endpoints

Conversation

@kaitoz11

Copy link
Copy Markdown
Member

No description provided.

@kaitoz11kaitoz11 added the enhancement New feature or request label Jun 13, 2023
@kaitoz11kaitoz11 added this to the Iteration 3 milestone Jun 13, 2023
@kaitoz11
kaitoz11 requested a review from vzartJune 13, 2023 17:29
@kaitoz11kaitoz11 self-assigned this Jun 13, 2023
This was linked to issues Jun 13, 2023

@vzartvzart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@vzart
vzart merged commit 52a2e71 into final/iteration2Jun 14, 2023
ChienNQuang added a commit that referenced this pull request Jun 21, 2023
* add: user group schema
* add: digital files and entries schema
* update: digital files and entries schema
* add: dtos for new tables
* add: base methods for entities
* update: migrations indexing
* test: add integration tests (#209)
* test: add integration tests for approve borrow request (#204)
* test: add integration tests
* fix: some stuff and add an assertion
* test: add integration tests for borrow document (#208)
* test: add integration tests
fix: time
* fix and add stuffs
* cleanup
* Feat/reset password (#215)
* add: reset password token entity, configuration, and added to app db context
also renamed the parameter of OnModelCreating in ApplicationDbContext.cs to modelBuilder to satisfy SonarLint
* chore: refactored SendResetPasswordHtmlMail method of IMailService.cs
also:
- Pass a reset password token hash so frontend can call the right link
- Change one template variable name to ResetPasswordTokenHash and send the token along
- Renamed HTMLMailData.cs to HtmlMailData.cs to satisfy sonarlint
* add: IAuthDbContext.cs and registered it
* chore: refactored IdentityService to be using abstractions instead of implementations
* chore: add reset token creation logic to UserCreatedEventHandler.cs
* chore: UserId foreign key naming in configuration
* chore: add migrations for reset password token table
* chore: modified service a little bit
- Changing the way service registrations work so that 2 interfaces share the same instance
- Pass the whole entity to event so that auth db context can get its id
- I forgot the db context model snapshot
* chore: tweaks how tokens are sent
- send the token instead of the hashed version of it
* add: endpoint and service to reset password
* refactor: add salt (#224)
* test: add unit test for password hashing
* feat(SecurityUtil.cs): add password hashing implementation
* refactor: add salt and pepper for password hashing
* fix(IdentityService.cs): remove unused dependencies
* fix: seed some more data and fix swagger not loading
* add: logging entities
* add: permission entity
* add: request logs
* add: document now has IsPrivate property and user log
* add: current user service and permission manager
* update: clear mapping for jwt claims
* update: fix login
* fix: something
* add: logging to room, locker, folder creation and update
* add: logging to users and staffs
* update: restore import endpoint
* Update/import (#239)
* update: add audit and private status to document when create new import request
* add: get all issued documents
* add: checkin endpoint
* add: approve and reject endpoint for document
* finish: almost everything
* reason
* rename endpoint
* a
* modified: get all document now only return public document (#236)
* get document log by id + get document logs paginated (#244)
* permission
* feat: get user log by id + get user logs paginated (#247)
Co-authored-by: Vzart <85790072+Vzart@users.noreply.github.com>
* feat: get folder log by id + get folder logs paginated (#251)
* feat: get folder log by id + get folder logs paginated
* fix: my skill issue
---------
Co-authored-by: Vzart <85790072+Vzart@users.noreply.github.com>
* Feat: implement get locker logs paginated + get locker log by id (#256)
* feat: implement getting all logs and by Id for lockers
* refactoring
* refactoring
* Update GetAllLockerLogsPaginated.cs
* feat: implement get employees for the department the current user is in (#235)
* feat: implement get employees for the department the current user is in
* refactoring
* Update GetAllEmployeesPaginated.cs
* refactoring
---------
Co-authored-by: Nguyen Quang Chien <87883163+ChienNQuang@users.noreply.github.com>
* feat: get room log by ID and get room logs paginated (#241)
* feat: get room log by ID and logs paginated
* add: documentation for endpoints
---------
Co-authored-by: Nguyen Quang Chien <87883163+ChienNQuang@users.noreply.github.com>
* feat: implement get documents of a user (#240)
* feat: implement get documents of a user
* refactoring
* feat: implement get request logs paginated + get request log by id (#257)
* feat: implement get borrow request logs paginated + get borrow request log by id
* added borrow type filter
* refactoring
* Update GetAllRequestLogsPaginated.cs
* feat: get self documents (#238)
* feat: get self documents
* fix: minor stuff
---------
Co-authored-by: Nguyen Quang Chien <87883163+ChienNQuang@users.noreply.github.com>
* adsfads
* fuck me
* fuck me
* fuck me 2
* fuck me 3
* fuck me 4
* haha
* fuck me
* i dont know what i do
* fuck me 5
* borrow works now
* refactor kinda oke i guess
* fuck
* add: migration for Logging
* fix: migrations work now
* test: borrow is end to end test ok I think, suppose, nothing gonna go wrong rite?
* test: import request are done
* final
* Delete .fleet directory
* final 2
---------
Co-authored-by: StarryFolf <67864500+StarryFolf@users.noreply.github.com>
Co-authored-by: kaitozu <43519768+kaitoz11@users.noreply.github.com>
Co-authored-by: Vzart <85790072+Vzart@users.noreply.github.com>
Co-authored-by: Vzart <vo.dang.khoa.main@gmail.com>
@ChienNQuang
ChienNQuang deleted the feat/base-log-endpoints branch July 3, 2023 05:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get user logs paginated Get user log by ID

2 participants

@kaitoz11@vzart