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

[16.0][MIG] github_connector: Migration to version 16.0 #118

Merged
merged 65 commits into from
Mar 7, 2024

Conversation

carolinafernandez-tecnativa
Copy link

@carolinafernandez-tecnativa carolinafernandez-tecnativa commented Jan 8, 2024

  • Standard migration to v16
  • Add python external dependecies: responses in requirements.txt and manifest.py in order to avoid error message "ModuleNotFoundError: No module named 'responses'"

@Tecnativa
TT45633

@pedrobaeza @victoralmau

legalsylvain and others added 30 commits January 8, 2024 14:50
…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.
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.

Some non-blocking suggestions.

Please check all tabs of all menus to display the data correctly (colspan), some examples:

  • Organizations > Github
  • Teams > Github
  • Repositories > Github

github_connector/models/abstract_github_model.py Outdated Show resolved Hide resolved
github_connector/models/abstract_github_model.py Outdated Show resolved Hide resolved
github_connector/models/abstract_github_model.py Outdated Show resolved Hide resolved
@carolinafernandez-tecnativa carolinafernandez-tecnativa force-pushed the 16.0-mig-github_connector branch 4 times, most recently from 27a634b to 03f944e Compare February 1, 2024 13:56
@pedrobaeza
Copy link
Member

Is this still WIP?

@carolinafernandez-tecnativa
Copy link
Author

carolinafernandez-tecnativa commented Feb 29, 2024

Is this still WIP?

no, it is ready for review Thanks!

@victoralmau
Copy link
Member

Please check all tabs of all menus to display the data correctly (colspan), some examples:

* Organizations > Github

* Teams > Github

* Repositories > Github

This is still pending (I haven't seen any changes to it), can you check it?

@carolinafernandez-tecnativa
Copy link
Author

03f944e

I have changed on this: 03f944e

On which section is not displaying well or could you please give me an example ? thanks!
I have checked and it looks okay.

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.

Can you check "Light Sync" and "Full Sync" buttons in "Github" tabs to make them display a little better?

@carolinafernandez-tecnativa
Copy link
Author

Code review OK.

Can you check "Light Sync" and "Full Sync" buttons in "Github" tabs to make them display a little better?

I could't get a better display for them, do you have any idea how to do it?

@pedrobaeza
Copy link
Member

/ocabot migration github_connector

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Mar 7, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 7, 2024
2 tasks
requirements.txt Outdated Show resolved Hide resolved
@pedrobaeza
Copy link
Member

/ocabot migration github_connector

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 0301f47 into OCA:16.0 Mar 7, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@pedrobaeza pedrobaeza deleted the 16.0-mig-github_connector branch March 7, 2024 19:29
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.