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

Rc june 2024 #92

Merged
merged 3 commits into from
Jun 28, 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: 7 additions & 1 deletion pg_backup_api/news.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# pg-backup-api release notes

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

## 2.1.1 (2024-06-29)

### Buxfixes

- Functions/methods signatures updates to fix regression with Barman <= 3.9

## 2.1.0 (2024-01-25)

Expand Down
8 changes: 7 additions & 1 deletion pg_backup_api/news.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# © Copyright EnterpriseDB UK Limited 2021-2023 - All rights reserved.
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.

# pg-backup-api News - History of user-visible changes

pg-backup-api release notes:
- version: "2.1.1"
date: "20240629"
changes:
Buxfixes:
- Functions/methods signatures updates to fix regression with Barman <= 3.9

- version: "2.1.0"
date: "20240125"
changes:
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/logic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
17 changes: 11 additions & 6 deletions pg_backup_api/pg_backup_api/logic/utility_controller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down Expand Up @@ -82,15 +82,20 @@ def diagnose() -> 'Response':
for model in available_models: # pyright: ignore
model_dict[model] = barman.__config__.get_model(model)

barman_diagnose.exec_diagnose(server_dict,
model_dict,
errors_list,
show_config_source=False)
barman_diagnose.exec_diagnose(
server_dict,
model_dict,
errors_list,
show_config_source=False,
) # pyright: ignore [reportCallIssue]
# An attribute error is thown when calling `model_names()` if using Barman
# older than 3.10, in which case models are not yet implemented, so we fall
# back to the old signature of diagnose command.
except AttributeError:
barman_diagnose.exec_diagnose(server_dict, errors_list)
barman_diagnose.exec_diagnose(
server_dict,
errors_list,
) # pyright: ignore [reportCallIssue]

# 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/pg_backup_api/run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/server_operation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/tests/test_run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/tests/test_server_operation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/pg_backup_api/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2021-2023
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/scripts/changelogs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# © Copyright EnterpriseDB UK Limited 2021-2023 - All rights reserved.
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
"""
Generate news.md from a source yaml file using Jinja templates.
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/scripts/templates/news.md.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pg-backup-api release notes

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

{% for release in data["pg-backup-api release notes"] %}
{# ## v22.9 (2022-02-24) #}
Expand Down
2 changes: 1 addition & 1 deletion pg_backup_api/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © Copyright EnterpriseDB UK Limited 2013-2021
# © Copyright EnterpriseDB UK Limited 2021-2024 - All rights reserved.
#
# This file is part of Postgres Backup API.
#
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.1.0
2.1.1
Loading