Skip to content

fix: [#405] The GetAttribute of orm event returns an error value when getting id#478

Merged
hwbrzzl merged 3 commits intov1.13.xfrom
bowen/#405
May 19, 2024
Merged

fix: [#405] The GetAttribute of orm event returns an error value when getting id#478
hwbrzzl merged 3 commits intov1.13.xfrom
bowen/#405

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented May 16, 2024

Closes goravel/goravel#405

📑 Description

✅ 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

@codecov
Copy link

codecov bot commented May 16, 2024

Codecov Report

Attention: Patch coverage is 86.74699% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 45.15%. Comparing base (ad61d31) to head (e508bfd).
Report is 102 commits behind head on v1.13.x.

Files Patch % Lines
database/gorm/test_models.go 81.25% 0 Missing and 6 partials ⚠️
database/gorm/event.go 90.19% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           v1.13.x     #478       +/-   ##
============================================
- Coverage    62.24%   45.15%   -17.10%     
============================================
  Files          125      232      +107     
  Lines         8078    17326     +9248     
============================================
+ Hits          5028     7823     +2795     
- Misses        2717     8954     +6237     
- Partials       333      549      +216     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hwbrzzl hwbrzzl marked this pull request as ready for review May 17, 2024 01:52
Copy link
Member

@krishankumar01 krishankumar01 left a comment

Choose a reason for hiding this comment

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

LGTM

@hwbrzzl hwbrzzl merged commit a631db1 into v1.13.x May 19, 2024
@hwbrzzl hwbrzzl deleted the bowen/#405 branch May 19, 2024 00:19
hwbrzzl pushed a commit that referenced this pull request Mar 20, 2025
* Extract Guard interface and create jwt_guard

* chore: update mocks

* Fix unit test case methods

* chore: update mocks

* Fix a lint error

* Add user provider and custom guards

* chore: update mocks

* Create default guard while creating AuthManager

* Fix unit test suite case methods

* chore: update mocks

* Fix linter and unit test errors

* Cleanup and add more test case methods

* Fix linter issues

* Add unit test case methods to extend Guard and UserProvider

* Code cleanup based on the PR review feedback

* Use mockauth.MockUserProvider

* Fix Unit test case failures

* Add no of EXPECTs for the mockconfig

* Fix couple more mockconfig expects

* Cleanup unnecessary JwtGuard type check and assertions

* Rearrange methods in asc order

* Revert back the Guard interface's Refresh and LoginInUsingID methods

* Fix a typo

* chore: update mocks

* Move custom errors to errors/list.go

* Cleanup jwt_guard parsing guard and authToken

* Fix unit test case errors

* Fix foundation application_test

* User UserProvider to retrive the ID from the user model

* Rename Guard to GuardDriver and retain the signature to support backward compatibility

* Revert back the Refresh func

* Cleanup

* Cleanup

* Cleanup

* Split Auth and JWT Guard tests into its own file

* Cleanup unnecessary type checks

* Cleanup

* Move jwt_guard_test back to auth_test

---------

Co-authored-by: praem90 <6235720+praem90@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants