apisonator 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/Gemfile.on_prem.lock +1 -1
- data/lib/3scale/backend/alerts.rb +7 -2
- data/lib/3scale/backend/version.rb +1 -1
- data/licenses.xml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 356ca549dce065646329337096b0c3233ea3be1fdf599b135c144f5c887e5754
|
|
4
|
+
data.tar.gz: 04af4be3b14ce0299bbefc968349e7f063222d9a61d10557a4ffade0a5c683db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 850c97fc6f5835da57e1918881aa2f4ce0e086fb550c2bda024b98c9e1e62b829aadb1f0b45dd7b690aa0bd5b5cfb712de1d4914f39eab8caa5107e28c48f600
|
|
7
|
+
data.tar.gz: 0d45268818cd98bf0c8684fe1340544e230c85fdef7d05b4f37d0c1db4d963d21fc2f50455bf1226619276ec6402c3be3af9ee755b783f8ee5d2ec5c300b8e66
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Apisonator will be tracked in this document.
|
|
4
4
|
|
|
5
|
+
## 3.4.2 - 2021-06-17
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed exception raised when TTL = 0 in `UsagesChecked.mark_all_checked`
|
|
10
|
+
([#290](https://github.com/3scale/apisonator/pull/290)).
|
|
11
|
+
|
|
5
12
|
## 3.4.1 - 2021-06-16
|
|
6
13
|
|
|
7
14
|
### Changed
|
data/Gemfile.lock
CHANGED
data/Gemfile.on_prem.lock
CHANGED
|
@@ -80,8 +80,13 @@ module ThreeScale
|
|
|
80
80
|
ttl >= 0 ? ttl : ALERT_TTL
|
|
81
81
|
end.min
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
# Setex fails when ttl = 0. Also, if it's 0, we don't need to mark it
|
|
84
|
+
# as checked, because the "already_notified" key for the bin is just
|
|
85
|
+
# about to expire, so we'll need to check all the usages.
|
|
86
|
+
if ttl > 0
|
|
87
|
+
storage.setex(key_usage_already_checked(service_id, app_id), ttl, '1'.freeze)
|
|
88
|
+
Memoizer.clear(Memoizer.build_key(self, :need_to_check_all?, service_id, app_id))
|
|
89
|
+
end
|
|
85
90
|
end
|
|
86
91
|
|
|
87
92
|
def self.invalidate(service_id, app_id)
|
data/licenses.xml
CHANGED