Skip to content

[18.0][MIG] auto_backup: Migration to 18.0 - #3169

Merged
OCA-git-bot merged 49 commits into
OCA:18.0from
michelerusti:18.0-mig-auto_backup
Feb 13, 2025
Merged

[18.0][MIG] auto_backup: Migration to 18.0#3169
OCA-git-bot merged 49 commits into
OCA:18.0from
michelerusti:18.0-mig-auto_backup

Conversation

@michelerusti

Copy link
Copy Markdown
Contributor

No description provided.

@michelerusti
michelerusti force-pushed the 18.0-mig-auto_backup branch 3 times, most recently from 91e3a81 to 1e35d55 Compare January 17, 2025 15:02
@michelerusti
michelerusti marked this pull request as ready for review January 17, 2025 15:59
@michelerusti michelerusti mentioned this pull request Jan 17, 2025
42 tasks
Comment thread auto_backup/view/db_backup_view.xml Outdated
class="oe_highlight"
/>
</header>
<div class="oe_title">

@fmdl fmdl Jan 26, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add:

<sheat>

>Set the scheduler to active and fill in how often you want backups generated.</li>
</ol>
</div>
</form>

@fmdl fmdl Jan 26, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add:

</sheet>
 <div class="oe_chatter">
                        <field name="message_follower_ids" groups="base.group_user"/>
                        <field name="message_ids"/>
                    </div>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, added!

Should be ok now

@fmdl fmdl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't forget to update the db.backup view

@michelerusti
michelerusti force-pushed the 18.0-mig-auto_backup branch 2 times, most recently from 276413a to 0e4c741 Compare January 30, 2025 16:38
Yenthe666 and others added 20 commits February 10, 2025 16:22
Added all the new fields and sentences. This will be the template for
translations.
Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.
- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in OCA#203.
- Reduce headers.

This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.

It would be ideal to have everything under AGPL though.
* Add self.ensure_ones
* Add test coverage
* [10.0][auto_backup] Menu entry moved

* Update version in manifest
Currently translated at 58.2% (32 of 55 strings)

Translation: server-tools-11.0/server-tools-11.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-11-0/server-tools-11-0-auto_backup/nl/
Added test coverage
Added requirements.txt for pysftp
Added in the roadmap the exact version of pysftp for this to work (0.2.8)
Added in the roadmap the problem with list_db=False
Adapted calls to message_post
Currently translated at 17.5% (14 of 80 strings)

Translation: server-tools-12.0/server-tools-12.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-auto_backup/pt_BR/
Currently translated at 26.2% (21 of 80 strings)

Translation: server-tools-12.0/server-tools-12.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-auto_backup/zh_CN/
francesco-ooops and others added 9 commits February 10, 2025 16:22
Currently translated at 90.0% (72 of 80 strings)

Translation: server-tools-15.0/server-tools-15.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-auto_backup/it/
Currently translated at 90.0% (72 of 80 strings)

Translation: server-tools-15.0/server-tools-15.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-auto_backup/it/
Currently translated at 84.7% (72 of 85 strings)

Translation: server-tools-15.0/server-tools-15.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-auto_backup/it/
Currently translated at 100.0% (85 of 85 strings)

Translation: server-tools-16.0/server-tools-16.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auto_backup/es/
Currently translated at 87.0% (74 of 85 strings)

Translation: server-tools-16.0/server-tools-16.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auto_backup/it/
@michelerusti
michelerusti force-pushed the 18.0-mig-auto_backup branch 2 times, most recently from fff6d8d to e548a73 Compare February 10, 2025 15:51

@tafaRU tafaRU left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
LG overall 👍 , just a nitpick.

Comment thread auto_backup/models/db_backup.py Outdated
@@ -180,7 +180,7 @@ def action_backup(self):
with rec.sftp_connection() as remote:
# Directory must exist

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michelerusti
michelerusti requested a review from fmdl February 11, 2025 13:45
@michelerusti

Copy link
Copy Markdown
Contributor Author

@fmdl is the PR all good now or are there more changes needed? Could you update the review please?

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@michelerusti

Copy link
Copy Markdown
Contributor Author

@OCA/tools-maintainers this PR seems ready for the next stage. Could any of you approve it?

@thomaspaulb

Copy link
Copy Markdown
Contributor

/ocabot migration auto_backup

/ocabot merge nobump

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 13, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-3169-by-thomaspaulb-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit ae96869 into OCA:18.0 Feb 13, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at fe22456. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.