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

[17.0][MIG] auto_backup: Migration to 17.0 #2975

Open
wants to merge 64 commits into
base: 17.0
Choose a base branch
from

Conversation

rpinset
Copy link
Member

@rpinset rpinset commented Jun 28, 2024

second attempt at #2894

Yenthe666 and others added 30 commits June 28, 2024 09:37
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/
Currently translated at 100.0% (80 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/
Currently translated at 100.0% (80 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/
Currently translated at 100.0% (80 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/
Currently translated at 51.2% (41 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/hr/
Currently translated at 80.2% (69 of 86 strings)

Translation: server-tools-14.0/server-tools-14.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auto_backup/it/
@rpinset rpinset marked this pull request as draft June 28, 2024 08:15
@rpinset rpinset closed this Jun 28, 2024
@rpinset rpinset reopened this Jun 28, 2024
@rpinset
Copy link
Member Author

rpinset commented Jun 28, 2024

@CRogos all the checks are green but I followed the commands on this page for the translations but it didn't work
https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests

@rpinset rpinset marked this pull request as ready for review June 28, 2024 08:19
@CRogos
Copy link
Contributor

CRogos commented Jun 28, 2024

I use the vscode terminal:

git config --global --add rebase.instructionFormat "(%an <%ae>) %s"
git rebase -i origin/17.0
// change "pick" by "f" where needed, and save + close the file.
git push -f

@gurneyalex
Copy link
Member

/ocabot migration auto_backup

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jul 2, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Jul 2, 2024
35 tasks
@Crazor
Copy link

Crazor commented Sep 3, 2024

It appears the build task has stalled...

@litmount
Copy link

litmount commented Sep 9, 2024

It appears the build task has stalled...

It does seems stuck, can anyone with privileges please check on this?

@SodexisTeam
Copy link
Member

@rpinset

Please add the Python package to the requirements.txt file as shown in the attached screenshot.
image
Currently, we are using this PR, but we are encountering conflicts in the requirements.txt file while running gitaggregate

@SodexisTeam
Copy link
Member

@rpinset
When can we expect this PR to be merged?

@rpinset
Copy link
Member Author

rpinset commented Sep 26, 2024

Please add the Python package to the requirements.txt file as shown in the attached screenshot. image Currently, we are using this PR, but we are encountering conflicts in the requirements.txt file while running gitaggregate

Hello @SodexisTeam , I added "pygount" in Requirements.txt but I don't know what external_dependencies require it.
I already use it too. But I'm struggling with the OCA CI, maybe my environment is not optimal and I should redo it.
All tests are OK
@gurneyalex can you try merge ?

@percevaq
Copy link

percevaq commented Oct 8, 2024

It does not work correctly, try to create a directory per backup.

If the path is backups
Create a file for each backup respecting the path and not trying to create a directory for each backup.

@rpinset
Copy link
Member Author

rpinset commented Nov 26, 2024

It does not work correctly, try to create a directory per backup.

If the path is backups Create a file for each backup respecting the path and not trying to create a directory for each backup.

Hello @percevaq
There has been no code change at this level since v16 and the v17 installation is functional for me.
Does your comment only come from reading the code or from tests?
image
Have a good day

@rpinset
Copy link
Member Author

rpinset commented Nov 26, 2024

@gurneyalex can you try merge ?

@gurneyalex All tests are OK can you try merge ?

Copy link
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

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

The commit history is still not OK:
image

@rpinset
Copy link
Member Author

rpinset commented Nov 30, 2024

The commit history is still not OK:
image

Sorry @CRogos for having commits in September because Bots find a difference between my branch and the destination.
I will take back your git commands minimizing commits, when I have more time to take the head. It is a particular use.

My branch works, if someone is more used to it, fork, pull request and inform here.

@lmonterogarcia
Copy link

lmonterogarcia commented Jan 9, 2025

@CRogos @rpinset When can we expect this PR to be merged?

Thanks in advance.

Copy link

@anavarronm1983 anavarronm1983 left a comment

Choose a reason for hiding this comment

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

I understand that the SFTP connection is made with a username and password or with a username and key. I have tried it both ways, but it throws the same key error even though I don't use a key for the sftp connection.
backup1
backup2

@Christian-RB
Copy link

As this PR seems to be stuck I have created a new one #3180 retaining @rpinset authorship and fixing the commit history @CRogos. I’d appreciate your collaboration there

@Christian-RB
Copy link

I understand that the SFTP connection is made with a username and password or with a username and key. I have tried it both ways, but it throws the same key error even though I don't use a key for the sftp connection. backup1 backup2

This is because the remote needs to be in the known_hosts list. The pysft library let you add extra information as a known_host entry IMO it would be nice to implement that as a new field in the configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.