Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
core
picodata
Commits
94fac4ca
Commit
94fac4ca
authored
1 year ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
feat: .proc_get_config
parent
c84161df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!913
feat: pico.config() now shows sources for provided parameters
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
src/info.rs
+10
-0
10 additions, 0 deletions
src/info.rs
test/int/test_config_file.py
+1
-1
1 addition, 1 deletion
test/int/test_config_file.py
with
13 additions
and
1 deletion
CHANGELOG.md
+
2
−
0
View file @
94fac4ca
...
...
@@ -36,6 +36,8 @@ with the `YY.MINOR.MICRO` scheme.
-
`instance.memtx_memory`
->
`instance.memtx.memory`
-
New subcommand
`picodata config default`
for generating contents of the
config.yaml file with default parameter values.
-
New rpc entrypoint:
`.proc_get_config`
which returns the effective
picodata configuration.
-
Change _pico_index table structure.
-
Support index creation with SQL.
...
...
This diff is collapsed.
Click to expand it.
src/info.rs
+
10
−
0
View file @
94fac4ca
use
crate
::
config
::
PicodataConfig
;
use
crate
::
instance
::
Grade
;
use
crate
::
instance
::
InstanceId
;
use
crate
::
replicaset
::
ReplicasetId
;
...
...
@@ -265,3 +266,12 @@ pub fn proc_runtime_info() -> Result<RuntimeInfo<'static>, Error> {
RuntimeInfo
::
try_get
(
node
)
}
////////////////////////////////////////////////////////////////////////////////
// .proc_get_config
////////////////////////////////////////////////////////////////////////////////
#[proc]
pub
fn
proc_get_config
()
->
Result
<
rmpv
::
Value
,
Error
>
{
Ok
(
PicodataConfig
::
get
()
.parameters_with_sources_as_rmpv
())
}
This diff is collapsed.
Click to expand it.
test/int/test_config_file.py
+
1
−
1
View file @
94fac4ca
...
...
@@ -71,7 +71,7 @@ instance:
instance
.
wait_online
()
config
=
instance
.
call
(
"
pico.
config
"
)
config
=
instance
.
call
(
"
.proc_get_
config
"
)
assert
config
==
dict
(
cluster
=
dict
(
tiers
=
dict
(
...
...
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