-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(permissions): fetch permissions return an exception when the server doesn't return an 200 response #635
Conversation
if response.is_a?(Net::HTTPOK) | ||
JSON.parse(response.body) | ||
else | ||
raise ForestLiana::Errors::HTTP403Error.new("Permission could not be retrieved") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 Better <3
@@ -6,7 +6,7 @@ module Ability | |||
module Permission | |||
include Fetch | |||
|
|||
TTL = (ENV['FOREST_PERMISSIONS_EXPIRATION_IN_SECONDS'] || 1).to_i.second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hihi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏 Thank you guys. 🔥
Code Climate has analyzed commit af78c98 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (55% is the threshold). This pull request will bring the total coverage in the repository to 48.7%. View more on Code Climate. |
## [8.0.15](v8.0.14...v8.0.15) (2023-10-23) ### Bug Fixes * **permissions:** fetch permissions return an exception when the server doesn't return an 200 response ([#635](#635)) ([9a7590b](9a7590b))
🎉 This PR is included in version 8.0.15 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
## [8.0.15](ForestAdmin/forest-rails@v8.0.14...v8.0.15) (2023-10-23) ### Bug Fixes * **permissions:** fetch permissions return an exception when the server doesn't return an 200 response ([#635](ForestAdmin/forest-rails#635)) ([9a7590b](ForestAdmin/forest-rails@9a7590b))
## [8.0.15](ForestAdmin/forest-rails@v8.0.14...v8.0.15) (2023-10-23) ### Bug Fixes * **permissions:** fetch permissions return an exception when the server doesn't return an 200 response ([#635](ForestAdmin/forest-rails#635)) ([9a7590b](ForestAdmin/forest-rails@9a7590b))
Definition of Done
General
Security