Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 41ffe80e898ec332521860c9edff2afc6211c226
https://github.com/tribe29/checkmk/commit/41ffe80e898ec332521860c9edff2afc6…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M tests/unit/cmk/gui/watolib/test_gui_rulesets.py
M tests/unit/cmk/gui/watolib/test_hosts_and_folders.py
M tests/unit/cmk/gui/watolib/test_watolib_search.py
Log Message:
-----------
Simplify tests
Change-Id: Iea67836e5e6a3fe233e88ec2aab0ccc3ea3a7640
Commit: fb100e3534ba68162395dcf96e81f00f7f2517ab
https://github.com/tribe29/checkmk/commit/fb100e3534ba68162395dcf96e81f00f7…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M cmk/gui/globals.py
M cmk/gui/utils/transaction_manager.py
M tests/unit/cmk/gui/utils/test_transaction_manager.py
Log Message:
-----------
TransactionManager: Cleanup access to global config.user
Change-Id: I69d3cd1643ac01d2b97691c121f7837176c67f89
Commit: 98877a92ff4a81e8f6e220ce2905ff3d0bcc6354
https://github.com/tribe29/checkmk/commit/98877a92ff4a81e8f6e220ce2905ff3d0…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M cmk/gui/bi.py
M cmk/gui/config.py
M cmk/gui/crash_reporting.py
M cmk/gui/dashboard.py
M cmk/gui/forms.py
M cmk/gui/globals.py
M cmk/gui/gui_background_job.py
M cmk/gui/help.py
M cmk/gui/htmllib/__init__.py
M cmk/gui/htmllib/foldable_container.py
M cmk/gui/inventory.py
M cmk/gui/key_mgmt.py
M cmk/gui/login.py
M cmk/gui/logwatch.py
M cmk/gui/main.py
M cmk/gui/mobile.py
M cmk/gui/node_visualization.py
M cmk/gui/notifications.py
M cmk/gui/notify.py
M cmk/gui/page_menu.py
M cmk/gui/pagetypes.py
M cmk/gui/plugins/dashboard/stats.py
M cmk/gui/plugins/metrics/artwork.py
M cmk/gui/plugins/metrics/html_render.py
M cmk/gui/plugins/openapi/endpoints/acknowledgement.py
M cmk/gui/plugins/openapi/endpoints/downtime.py
M cmk/gui/plugins/openapi/fields.py
M cmk/gui/plugins/sidebar/bookmarks.py
M cmk/gui/plugins/sidebar/custom_links.py
M cmk/gui/plugins/sidebar/dashboards.py
M cmk/gui/plugins/sidebar/main_menu.py
M cmk/gui/plugins/sidebar/master_control.py
M cmk/gui/plugins/sidebar/search.py
M cmk/gui/plugins/sidebar/site_status.py
M cmk/gui/plugins/sidebar/tactical_overview.py
M cmk/gui/plugins/sidebar/utils.py
M cmk/gui/plugins/sidebar/views.py
M cmk/gui/plugins/sidebar/virtual_host_tree.py
M cmk/gui/plugins/sidebar/wato.py
M cmk/gui/plugins/userdb/utils.py
M cmk/gui/plugins/views/availability.py
M cmk/gui/plugins/views/commands.py
M cmk/gui/plugins/views/icons/__init__.py
M cmk/gui/plugins/views/icons/builtin.py
M cmk/gui/plugins/views/icons/inventory.py
M cmk/gui/plugins/views/icons/wato.py
M cmk/gui/plugins/views/layouts.py
M cmk/gui/plugins/views/mkeventd.py
M cmk/gui/plugins/views/utils.py
M cmk/gui/plugins/visuals/filters.py
M cmk/gui/plugins/wato/bi_config.py
M cmk/gui/plugins/wato/bi_valuespecs.py
M cmk/gui/plugins/wato/builtin_attributes.py
M cmk/gui/plugins/wato/check_mk_configuration.py
M cmk/gui/plugins/wato/utils/__init__.py
M cmk/gui/sidebar.py
M cmk/gui/sites.py
M cmk/gui/table.py
M cmk/gui/user_notify.py
M cmk/gui/utils/labels.py
M cmk/gui/utils/transaction_manager.py
M cmk/gui/valuespec.py
M cmk/gui/views.py
M cmk/gui/visuals.py
M cmk/gui/wato/mkeventd.py
M cmk/gui/wato/page_handler.py
M cmk/gui/wato/pages/activate_changes.py
M cmk/gui/wato/pages/analyze_configuration.py
M cmk/gui/wato/pages/audit_log.py
M cmk/gui/wato/pages/automation.py
M cmk/gui/wato/pages/backup.py
M cmk/gui/wato/pages/bulk_discovery.py
M cmk/gui/wato/pages/bulk_edit.py
M cmk/gui/wato/pages/bulk_import.py
M cmk/gui/wato/pages/diagnostics.py
M cmk/gui/wato/pages/fetch_agent_output.py
M cmk/gui/wato/pages/folders.py
M cmk/gui/wato/pages/global_settings.py
M cmk/gui/wato/pages/host_diagnose.py
M cmk/gui/wato/pages/host_rename.py
M cmk/gui/wato/pages/hosts.py
M cmk/gui/wato/pages/notifications.py
M cmk/gui/wato/pages/parentscan.py
M cmk/gui/wato/pages/password_store.py
M cmk/gui/wato/pages/predefined_conditions.py
M cmk/gui/wato/pages/read_only.py
M cmk/gui/wato/pages/rulesets.py
M cmk/gui/wato/pages/services.py
M cmk/gui/wato/pages/sites.py
M cmk/gui/wato/pages/users.py
M cmk/gui/wato/user_profile.py
M cmk/gui/watolib/activate_changes.py
M cmk/gui/watolib/changes.py
M cmk/gui/watolib/downtime.py
M cmk/gui/watolib/git.py
M cmk/gui/watolib/groups.py
M cmk/gui/watolib/hosts_and_folders.py
M cmk/gui/watolib/main_menu.py
M cmk/gui/watolib/network_scan.py
M cmk/gui/watolib/password_store.py
M cmk/gui/watolib/passwords.py
M cmk/gui/watolib/predefined_conditions.py
M cmk/gui/watolib/read_only.py
M cmk/gui/watolib/search.py
M cmk/gui/watolib/services.py
M cmk/gui/watolib/snapshots.py
M cmk/gui/watolib/users.py
M cmk/gui/watolib/utils.py
M cmk/gui/webapi.py
M cmk/gui/weblib.py
M cmk/gui/werks.py
M cmk/gui/wsgi/applications/utils.py
M tests/unit/cmk/gui/htmllib/test_html_cls.py
M tests/unit/cmk/gui/plugins/views/test_views_utils.py
M tests/unit/cmk/gui/test_gui_config.py
M tests/unit/cmk/gui/test_index.py
M tests/unit/cmk/gui/test_key_mgmt.py
M tests/unit/cmk/gui/test_sidebar.py
M tests/unit/cmk/gui/test_views.py
Log Message:
-----------
Replace cmk.gui.config.user with cmk.gui.globals.user
This cleans up the config.user reference which already was an alias
for the request global user object. The call sites now directly
access the object.
Change-Id: I0110e54c0dfc1314681437feba4d11ffed919ff4
Commit: 004a0d68891904f60ff007250c277a504f767776
https://github.com/tribe29/checkmk/commit/004a0d68891904f60ff007250c277a504…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M cmk/gui/config.py
M cmk/gui/cron.py
M cmk/gui/globals.py
M cmk/gui/login.py
M cmk/gui/plugins/metrics/graph_images.py
M cmk/gui/plugins/userdb/utils.py
M cmk/gui/sidebar.py
M cmk/gui/sites.py
M cmk/gui/userdb.py
A cmk/gui/utils/logged_in.py
M cmk/gui/utils/script_helpers.py
M cmk/gui/utils/transaction_manager.py
M cmk/gui/view_utils.py
M cmk/gui/wato/pages/automation.py
M cmk/gui/watolib/network_scan.py
M cmk/gui/watolib/search.py
M cmk/gui/wsgi/auth.py
M tests/unit/cmk/gui/htmllib/test_html_cls.py
M tests/unit/cmk/gui/test_gui_config.py
A tests/unit/cmk/gui/utils/test_logged_in.py
M tests/unit/cmk/gui/utils/test_transaction_manager.py
Log Message:
-----------
Extract logged in user handling to dedicated module
Change-Id: I1412e02e1a84205b0e8eac232cb2eaa8d38c3aa6
Commit: 75cd1c5fedf15ad4f50cbd0e4761bfa1d6c7d2c3
https://github.com/tribe29/checkmk/commit/75cd1c5fedf15ad4f50cbd0e4761bfa1d…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M tests/unit/cmk/gui/utils/test_logged_in.py
Log Message:
-----------
Add first test for UserContext
Change-Id: I61c10e167766a1144e11cc5ee4d7e903ff347247
Commit: 8a06d78d2964f060ee2a8b671bdd289fa62964bc
https://github.com/tribe29/checkmk/commit/8a06d78d2964f060ee2a8b671bdd289fa…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M cmk/gui/utils/logged_in.py
M tests/unit/cmk/gui/utils/test_logged_in.py
Log Message:
-----------
UserContext now allows nesting
Change-Id: I39290afabaf804e347e87007b0532baaf4897044
Commit: 888bae58710995e4a19bd6a04225a795f66bafff
https://github.com/tribe29/checkmk/commit/888bae58710995e4a19bd6a04225a795f…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-08 (Thu, 08 Jul 2021)
Changed paths:
M cmk/gui/cron.py
M cmk/gui/plugins/metrics/graph_images.py
M cmk/gui/utils/logged_in.py
M cmk/gui/utils/script_helpers.py
M cmk/gui/wato/pages/automation.py
M cmk/gui/watolib/network_scan.py
M cmk/gui/wsgi/auth.py
M cmk/update_config.py
M tests/unit/cmk/gui/utils/test_logged_in.py
Log Message:
-----------
Replace manual setting of logged in user with context manager
The scope of the logged in users is clarified with this change. Also
nesting of different login sessions is now easily possible and more
robust than before.
Change-Id: I100341e50c9f5f5a2efb6a5ca306b140246163a8
Compare:
https://github.com/tribe29/checkmk/compare/5c8c294557b7...888bae587109