foreman_remote_execution 16.5.0 → 16.5.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7ab6da71abb1f6879c72a92ca2079d66e7d16dfcea6b4bd63158504b9e82b3f
|
|
4
|
+
data.tar.gz: b2546d71ce8e945bf9a216775b29806ce9b14b851e87335ec985430a755f4e9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6acb5db610da524f0daf9606f0aa5981244cc4b31e98eb50a5f6e02d419e3f05732fe848a0637db805eb1ac0fbb47d3532a48df2509daa18ded733c679afea52
|
|
7
|
+
data.tar.gz: a0e0613cf11ace197fd3b722bce74b7c9884102662560545556e220d3f03b0b7e6bcbe14deb22b1df0e8feb931c4aab3527fdadcff4121e33a3334a5d2f28326
|
|
@@ -56,8 +56,9 @@ const WrappedTargetingHosts = () => {
|
|
|
56
56
|
}
|
|
57
57
|
}, [dispatch, intervalExists]);
|
|
58
58
|
|
|
59
|
-
// Use
|
|
59
|
+
// Use refs to avoid infinite loop from handleSearch depending on pagination.per_page and searchQuery
|
|
60
60
|
const perPageRef = useRef(pagination.per_page);
|
|
61
|
+
const searchQueryRef = useRef(searchQuery);
|
|
61
62
|
|
|
62
63
|
const handleSearch = useCallback(
|
|
63
64
|
(query, status) => {
|
|
@@ -71,11 +72,15 @@ const WrappedTargetingHosts = () => {
|
|
|
71
72
|
[stopApiInterval]
|
|
72
73
|
);
|
|
73
74
|
|
|
74
|
-
// Keep
|
|
75
|
+
// Keep refs in sync with state
|
|
75
76
|
useEffect(() => {
|
|
76
77
|
perPageRef.current = pagination.per_page;
|
|
77
78
|
}, [pagination.per_page]);
|
|
78
79
|
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
searchQueryRef.current = searchQuery;
|
|
82
|
+
}, [searchQuery]);
|
|
83
|
+
|
|
79
84
|
const handlePagination = useCallback(
|
|
80
85
|
args => {
|
|
81
86
|
stopApiInterval();
|
|
@@ -112,9 +117,19 @@ const WrappedTargetingHosts = () => {
|
|
|
112
117
|
};
|
|
113
118
|
}, [dispatch, apiUrl, autoRefresh, getData]);
|
|
114
119
|
|
|
120
|
+
// Only respond to external statusFilter changes (from chart clicks)
|
|
121
|
+
// searchQuery changes are handled directly by handleSearch calls from the UI
|
|
115
122
|
useEffect(() => {
|
|
116
|
-
|
|
117
|
-
|
|
123
|
+
dispatch(stopInterval(TARGETING_HOSTS));
|
|
124
|
+
const defaultPagination = { page: 1, per_page: perPageRef.current };
|
|
125
|
+
setApiUrl(
|
|
126
|
+
getApiUrl(
|
|
127
|
+
buildSearchQuery(searchQueryRef.current, statusFilter),
|
|
128
|
+
defaultPagination
|
|
129
|
+
)
|
|
130
|
+
);
|
|
131
|
+
setPagination(defaultPagination);
|
|
132
|
+
}, [statusFilter, dispatch]);
|
|
118
133
|
|
|
119
134
|
return (
|
|
120
135
|
<TargetingHostsPage
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_remote_execution
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.5.
|
|
4
|
+
version: 16.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Remote Execution team
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: deface
|