Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
45626796
Commit
45626796
authored
1 month ago
by
Jakub Ziebinski
Browse files
Options
Downloads
Patches
Plain Diff
Replace the import of settings from helpy by those from beekeepy
parent
24e0b28a
No related branches found
No related tags found
2 merge requests
!600
v1.27.5.21 Release
,
!583
Remove helpy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clive/__private/settings/_safe_settings.py
+8
-8
8 additions, 8 deletions
clive/__private/settings/_safe_settings.py
with
8 additions
and
8 deletions
clive/__private/settings/_safe_settings.py
+
8
−
8
View file @
45626796
...
...
@@ -7,9 +7,9 @@ from datetime import timedelta
from
pathlib
import
Path
from
typing
import
Literal
,
TypeVar
,
cast
,
get_args
,
overload
from
beekeepy
import
RemoteHandleSettings
from
beekeepy
import
Settings
as
BeekeepySettings
from
helpy
import
HttpUrl
from
helpy
import
Settings
as
HelpySettings
from
beekeepy.interfaces
import
HttpUrl
from
inflection
import
underscore
from
clive.__private.core.constants.setting_identifiers
import
(
...
...
@@ -311,14 +311,14 @@ class SafeSettings:
def
communication_retries_delay_secs
(
self
)
->
float
:
return
self
.
_get_node_communication_retries_delay_secs
()
def
settings_factory
(
self
,
http_endpoint
:
HttpUrl
)
->
Helpy
Settings
:
helpy_settings
=
Helpy
Settings
(
http_endpoint
=
http_endpoint
)
def
settings_factory
(
self
,
http_endpoint
:
HttpUrl
)
->
RemoteHandle
Settings
:
remote_handle_settings
=
RemoteHandle
Settings
(
http_endpoint
=
http_endpoint
)
helpy
_settings
.
timeout
=
timedelta
(
seconds
=
self
.
communication_timeout_total_secs
)
helpy
_settings
.
max_retries
=
self
.
communication_attempts_amount
helpy
_settings
.
period_between_retries
=
timedelta
(
seconds
=
self
.
communication_retries_delay_secs
)
remote_handle
_settings
.
timeout
=
timedelta
(
seconds
=
self
.
communication_timeout_total_secs
)
remote_handle
_settings
.
max_retries
=
self
.
communication_attempts_amount
remote_handle
_settings
.
period_between_retries
=
timedelta
(
seconds
=
self
.
communication_retries_delay_secs
)
return
helpy
_settings
return
remote_handle
_settings
def
_get_node_chain_id
(
self
)
->
str
|
None
:
from
clive.__private.core.validate_schema_field
import
is_schema_field_valid
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment