Skip to content

Commit

Permalink
Merge pull request #30 from chrisgavin/fix-team-cache-for-multiple-in…
Browse files Browse the repository at this point in the history
…stances
  • Loading branch information
jasonmacgowan authored Jan 29, 2024
2 parents 1111936 + 9785e42 commit 770f2bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
entitlements-github-plugin (0.5.2)
entitlements-github-plugin (0.5.3)
contracts (~> 0.17.0)
faraday (~> 2.0)
faraday-retry (~> 2.0)
Expand Down
4 changes: 2 additions & 2 deletions lib/entitlements/backend/github_team/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class TeamNotFound < RuntimeError; end
def initialize(addr: nil, org:, token:, ou:, ignore_not_found: false)
super
Entitlements.cache[:github_team_members] ||= {}
Entitlements.cache[:github_team_members][org] ||= {}
@team_cache = Entitlements.cache[:github_team_members][org]
Entitlements.cache[:github_team_members][org_signature] ||= {}
@team_cache = Entitlements.cache[:github_team_members][org_signature]
end

# Read a single team identified by its slug and return a team object.
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Entitlements
module Version
VERSION = "0.5.2"
VERSION = "0.5.3"
end
end

0 comments on commit 770f2bd

Please sign in to comment.