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

[MIG] web_widget_json_graph: Migration to 15.0 #2222

Merged
merged 4 commits into from
May 21, 2022

Conversation

frahikLV
Copy link
Contributor

No description provided.

luisg123v and others added 3 commits May 19, 2022 15:45
…CA#1733)

This module allows to load a line graph per ordered pair from an
One2many or
Many2many field.

Co-Authored-By: Francisco Luna <[email protected]>
Co-Authored-By: José Robles <[email protected]>
Co-Authored-By: Luis González <[email protected]>
Co-Authored-By: Nhomar Hernández <[email protected]>

Co-authored-by: Francisco Luna <[email protected]>
Co-authored-by: José Robles <[email protected]>
Co-authored-by: Nhomar Hernández <[email protected]>
@luisg123v
Copy link

@frahikLV could you open a new PR from vauxoo-dev and announce it on #2053, please?

@@ -0,0 +1,25 @@
{
"name": "Web Widget JSON Graph",
"version": "15.0.1.0.1",

Choose a reason for hiding this comment

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

Suggested change
"version": "15.0.1.0.1",
"version": "15.0.1.0.0",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

"license": "LGPL-3",
"category": "Hidden/Dependency",
"website": "https://github.com/OCA/web",
"maintainers": ["frahikLV"],

Choose a reason for hiding this comment

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

Don't remove maintainers. Add yourself to existing ones if that's what you want.

Choose a reason for hiding this comment

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

Maybe you can add them like:

"maintainers": [
    "luisg123v",
    "frahikLV",
],

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,27 @@
/* eslint no-undef: 0*/

Choose a reason for hiding this comment

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

What error are you avoiding here?

Could it be specific to the problematic line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, moved to line 18

@luisg123v
Copy link

Hi @hugho-ad, @CarmenMiranda

Could you review, please?

@frahikLV let's keep this PR, next time we can use vauxoo-dev

CC @moylop260 @desdelinux

"license": "LGPL-3",
"category": "Hidden/Dependency",
"website": "https://github.com/OCA/web",
"maintainers": ["frahikLV"],

Choose a reason for hiding this comment

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

Maybe you can add them like:

"maintainers": [
    "luisg123v",
    "frahikLV",
],

"data": [],
"assets": {
"web.assets_backend": [
"web_widget_json_graph/static/src/js/web_widget_json_graph.js"

Choose a reason for hiding this comment

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

Can you add the comma at the end?? So if more assets are added later on just a line is added and they don't have to edit your line to add the comma and add another line, also it helps keep a better track of commits 😄

Same in the "web.assets_qweb"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

"/web/static/src/js/libs/nvd3.js",
],
_render: function () {
jsLibs: ["/web/static/lib/Chart/Chart.js"],

Choose a reason for hiding this comment

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

Can you separate the list??

jsLibs: [
    "/web/static/lib/Chart/Chart.js",
],

So if more libs are added later on just a line is added and they don't have to edit your line to add the comma, break the line, and add another line, also it helps keep a better track of commits

Choose a reason for hiding this comment

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

This is black I think. If so, it can't be avoided

Choose a reason for hiding this comment

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

Drop, it's JS code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ignored

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This change cannot be applied because prettier returns it to the current format.

Choose a reason for hiding this comment

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

Ohh, ok, It's ok 😄

@frahikLV frahikLV force-pushed the 15.0-mig-web_widget_json_graph branch 2 times, most recently from a07cd32 to 881cc54 Compare May 20, 2022 16:17
@frahikLV
Copy link
Contributor Author

@luisg123v Suggestions have been addressed, could you review again?

cc: @CarmenMiranda

});
}
/* Jsl:end*/
var cx = document.createElement("canvas");
Copy link

@CarmenMiranda CarmenMiranda May 20, 2022

Choose a reason for hiding this comment

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

Just a question, here you are creating another element canvas but you already have it in the template JSONGraph why don't you use it like these examples??

web_kanban_gauge

website_links

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion

@frahikLV frahikLV force-pushed the 15.0-mig-web_widget_json_graph branch from 881cc54 to 73c2487 Compare May 20, 2022 21:44
@frahikLV frahikLV mentioned this pull request May 20, 2022
47 tasks
@frahikLV frahikLV force-pushed the 15.0-mig-web_widget_json_graph branch from 73c2487 to c5db5ee Compare May 20, 2022 21:48
@frahikLV frahikLV force-pushed the 15.0-mig-web_widget_json_graph branch from c5db5ee to 893247b Compare May 20, 2022 21:49
@frahikLV
Copy link
Contributor Author

@luisg123v Done, I applied all the suggestions, can you review it?

cc: @CarmenMiranda

Copy link

@CarmenMiranda CarmenMiranda left a comment

Choose a reason for hiding this comment

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

Technically LGTM 👍🏼

Copy link

@luisg123v luisg123v left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@moylop260 @hugho-ad, what do you think?

@luisg123v
Copy link

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Sorry @luisg123v you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@luisg123v
Copy link

luisg123v commented May 21, 2022

Hi @moylop260,

Since this module is not merged into the base branch, I'm not able to merge because I'm not registered as a maintainer on that branch.

Could you run the command by me, please?

Regards,

@moylop260
Copy link

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-2222-by-moylop260-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b32101b into OCA:15.0 May 21, 2022
@OCA-git-bot
Copy link
Contributor

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

@frahikLV frahikLV deleted the 15.0-mig-web_widget_json_graph branch May 21, 2022 07:26
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.

6 participants