Skip to content

Conversation

@carlos-lopez-tecnativa
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented May 20, 2025

TT56041
@Tecnativa @pedrobaeza @victoralmau could you please review this?

Supersedes #131

legalsylvain and others added 30 commits May 20, 2025 06:33
…hod.

[FIX] Add the organization_id.github_login to the github url

Making the github url the form: https://github.com/OCA/account-analytic/tree/9.0
and not the https://github.com/account-analytic/tree/9.0 before this commit

[IMP] Make travis happy

[IMP] Fix error with teams sync

We already have the organization in the team data,
and github does not provide anymore in the result for the
team data.
[IMP] robustness courtesy @astirpe

[FIX] warning message, courtesy @lasley and @astirpe

[FIX] typo

[UPD] add V11 serie in demo data

[FIX] various

typo

[REF] rename milestone into serie courtesy @sbidoul
[IMP] raise error instead of logging in case of duplicates

To avoid creating additional duplicates.
[FIX] add ondelete cascade
[FIX] team creation from odoo
[FIX] possibility to recursively load an existing object
[REF] github_connector: Fix typo "should not => does not" (OCA#6)
[FIX] github_connector: remove duplicated group
* Fixed JSON response parsing issue while fetching data by URL
* [IMP] Add try-except on branch analyze action

Add try-except statements on analyze actions that could
potentially crash the analyze process.

* [REF] Fix error logging

Changes include:
 - fix error values
 - use error instead of warning

* [IMP] Fix error in analyze call

Fix a programming mistake in the analyze call.
By @RoelAdriaans

* [IMP] Bump version number of github_connector

Bump the version number of github_connector to '11.0.1.1.1'.

* [IMP] Bump version number of github_connector

Bump the version number of github_connector_odoo to
'11.0.1.1.1'.
To play nice with Sentry.
[FIX] github_connector: keyerror 'blog'

Description of the issue/feature this PR addresses:

On new database error when syncing new github organization (example: OCA).
Error traceback: KeyError: 'blog'

Current behavior before PR:

Synchronization gets blog key on `get_odoo_data_from_github` but blog field does not exist.
When it tries to match the key with model attribute we get key error.

Desired behavior after PR is merged:

Get blog key from github data and show it on form view.
If source path does not exists before adding it to modules path, styles
on website are corrupted, making impossible load them from assets.
There's a mix between self and branch arguments in analyze methods.
…functional

This field allows to define where addons are located, but it's hidden right now, because
not everything is properly adjusted for paths different from root.

Making this working, there's no need to hide the field.
linter

Linter

Linter

default value to empty string in get()'s

secure the code

improvment of the code

coding style

coding style
Using os.command gets hung when there's a problem deleting the folder (for example,
when no permissions), so this stucks the cron method or the manual process of
updating source code.

We avoid it using the Python utility for that through shutil.

We also avoid an exception in that case enclosing the sentence in a try/except clause.
victoralmau and others added 5 commits May 20, 2025 09:37
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: interface-github-17.0/interface-github-17.0-github_connector
Translate-URL: https://translation.odoo-community.org/projects/interface-github-17-0/interface-github-17-0-github_connector/
Currently translated at 100.0% (197 of 197 strings)

Translation: interface-github-17.0/interface-github-17.0-github_connector
Translate-URL: https://translation.odoo-community.org/projects/interface-github-17-0/interface-github-17-0-github_connector/it/
@pedrobaeza
Copy link
Member

/ocabot migration github_connector

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone May 20, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request May 20, 2025
2 tasks
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 18.0-mig-github_connector branch 3 times, most recently from c7dc633 to 894e7c0 Compare May 20, 2025 19:43
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 18.0-mig-github_connector branch from 894e7c0 to ee2b805 Compare May 21, 2025 10:25
Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

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

Code review OK

@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 18.0-mig-github_connector branch from ee2b805 to 2ad62a1 Compare May 21, 2025 11:25
@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-132-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a06238f into OCA:18.0 May 21, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@carlos-lopez-tecnativa carlos-lopez-tecnativa deleted the 18.0-mig-github_connector branch May 21, 2025 11:50
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.