Skip to content
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

Prepare release 2.1.0 #90

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pg_backup_api/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

© Copyright EnterpriseDB UK Limited 2021-2023 - All rights reserved.

## 2.1.0 (2024-01-25)

### Notable changes

- Barman now supports changes in the configuration whilst it's running. This
pg-backup-api release adds the required endpoints to trigger that switch
when requested.

## 2.0.0 (2023-10-03)

### Notable changes
Expand Down
9 changes: 9 additions & 0 deletions pg_backup_api/news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
# pg-backup-api News - History of user-visible changes

pg-backup-api release notes:
- version: "2.1.0"
date: "20240125"
changes:
Notable changes:
- |
Barman now supports changes in the configuration whilst it's running. This
pg-backup-api release adds the required endpoints to trigger that switch
when requested.

- version: "2.0.0"
date: "20231003"
changes:
Expand Down
10 changes: 9 additions & 1 deletion pg_backup_api/pg_backup_api/logic/utility_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,18 @@ def diagnose() -> 'Response':
else:
server_dict[server] = Server(conf)

available_models = barman.__config__.model_names()
model_dict = {}
for model in available_models: # pyright: ignore
model_dict[model] = barman.__config__.get_model(model)

# errors list with duplicate paths between servers
errors_list = barman.__config__.servers_msg_list

barman_diagnose.exec_diagnose(server_dict, errors_list)
barman_diagnose.exec_diagnose(server_dict,
model_dict,
errors_list,
show_config_source=False)

# new outputs are appended, so grab the last one
stored_output = json.loads(output._writer.json_output["_INFO"][-1])
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.1.0
Loading