-
Notifications
You must be signed in to change notification settings - Fork 6
157 add a config db table #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pmslavin
wants to merge
29
commits into
master
Choose a base branch
from
157-add-a-config-db-table
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e5a22dc
ConfigKey types and lib prototypes
pmslavin 343cae0
Add tests; Before STI
pmslavin 17a503e
STI with init_subclass
pmslavin b4ff786
Add tests; base64; value get/set
pmslavin 118b555
Add validator classes
pmslavin 231a9bd
Validator ser/deser
pmslavin 852c33e
Key validation; lib funcs and tests
pmslavin 74d57ff
ConfigGroups; lib funcs and tests
pmslavin a273d55
Begin ConfigSet
pmslavin b89f84f
ConfigSet save/load/hmac
pmslavin 8baa131
ConfigSet apply to db; Updated tests
pmslavin e3974ca
Lib funcs for ConfigSet export/apply
pmslavin 2bee0af
Bool and description support; Update lib funcs
pmslavin 0de5aeb
Add migrate_config_util
pmslavin d45999a
Enable startup without ini
pmslavin 03a477e
Add startup env vars to CI
pmslavin 270434f
Add startup env vars to CI
pmslavin 75bdf6b
Add startup config for memcache host
pmslavin 1c85157
Enable ConfigSet load on startup
pmslavin 181c72a
Config value substitution; default ConfigSet; update conftest
pmslavin 995d0b4
New config.get format; CI patch for hydra_client
pmslavin 629940c
Tidy config.py; Read config has from env
pmslavin a85fbbf
Merge branch 'master' into 157-add-a-config-db-table
pmslavin f65ad58
Resolve merge conflict in lib.cache
pmslavin bd56dbe
Resolve merge conflict in lib.cache
pmslavin dca8285
Resolve merge conflict in test_templates
pmslavin 816fd52
Resolve merge conflict in lib.template
pmslavin 0c51974
Resolve merge conflict in test_templates
pmslavin 96a0589
Resolve merge conflict in lib.template
pmslavin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"name": "Default ConfigSet", "description": "The default Hydra startup state", "timestamp": "2025-01-24 15:15:28", "keys": {"log_level": {"type": "string", "value": "INFO", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_aux_dir": {"type": "string", "value": "__HOME_DIR__/.hydra", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "datetime_format": {"type": "string", "value": "%Y-%m-%dT%H:%M:%S.%f000Z", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "seasonal_key": {"type": "integer", "value": 9999, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "seasonal_year": {"type": "integer", "value": 1678, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "db_instance": {"type": "string", "value": "MySQL", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "db_upper_bound": {"type": "integer", "value": 100, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "db_lower_bound": {"type": "integer", "value": 5, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "db_export_target": {"type": "string", "value": "__HYDRA_AUX_DIR__/audit", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "db_purge_threshold": {"type": "integer", "value": 10000, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "db_compression_threshold": {"type": "integer", "value": 50000, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "sqlite_backup_dir": {"type": "string", "value": "__HYDRA_AUX_DIR__/audit", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "sqlite_dbfile": {"type": "string", "value": "__HYDRA_BASE_DIR__/HydraDB/hydra.db", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "sqlite_backup_url": {"type": "string", "value": "__SQLITE_BACKUP_DIR__/audit.db", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_domain": {"type": "string", "value": "127.0.0.1", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_port": {"type": "integer", "value": 8080, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "hydra_server_path": {"type": "string", "value": "soap", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_json_path": {"type": "string", "value": "json", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_http_path": {"type": "string", "value": "http", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_soap_path": {"type": "string", "value": "soap", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_url": {"type": "string", "value": "http://__HYDRA_SERVER_DOMAIN__:__HYDRA_SERVER_PORT__/__HYDRA_SERVER_PATH__?wsdl", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_server_layout_xsd_path": {"type": "string", "value": "__HYDRA_BASE_DIR__/static/resource_layout.xsd", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_domain": {"type": "string", "value": "http://127.0.0.1", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_port": {"type": "integer", "value": 8080, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "hydra_client_path": {"type": "string", "value": "json", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_json_path": {"type": "string", "value": "json", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_http_path": {"type": "string", "value": "http", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_soap_path": {"type": "string", "value": "soap", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_user": {"type": "string", "value": "root", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "hydra_client_password": {"type": "string", "value": "", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "filesys_img_src": {"type": "string", "value": "__HOME_DIR__/.hydra/images/", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "filesys_file_src": {"type": "string", "value": "__HOME_DIR__/.hydra/files/", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "unit_conversion_user_file": {"type": "string", "value": "__HYDRA_BASE_DIR__/static/user_units.xml", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "unit_conversion_default_file": {"type": "string", "value": "__HYDRA_BASE_DIR__/static/unit_definitions.xml", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "templates_template_xsd_path": {"type": "string", "value": "__HYDRA_BASE_DIR__/static/template.xsd", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "logging_conf_log_config_path": {"type": "string", "value": "__HYDRA_BASE_DIR__/logging.conf", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "logging_conf_log_file_dir": {"type": "string", "value": "__HYDRA_BASE_DIR__/log", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "search_page_size": {"type": "integer", "value": 2000, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "polyvis_polyvis_url": {"type": "string", "value": "http://localhost:5000/", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "security_max_login_attempts": {"type": "integer", "value": 7, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}, "cache_type": {"type": "string", "value": "diskcache", "rules": "{\"max_length\": null, \"min_length\": null}", "description": ""}, "limits_project_max_nest_depth": {"type": "integer", "value": 32, "rules": "{\"max_value\": null, \"min_value\": null}", "description": ""}}, "digest": "48050a66b5a9669ec6c41f0ffd09c22ec6b8fa6c32debd8bb3d3d7186d6220f2"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This use of
inspectis present only to allow the CI tests to pass withhydra-client-pythonmaster, which uses the oldconfig.get()syntax with .ini file sections.