-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[MIG] web_widget_json_graph: Migration to 15.0 #2222
Conversation
…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]>
@@ -0,0 +1,25 @@ | |||
{ | |||
"name": "Web Widget JSON Graph", | |||
"version": "15.0.1.0.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"version": "15.0.1.0.1", | |
"version": "15.0.1.0.0", |
There was a problem hiding this comment.
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"], |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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",
],
There was a problem hiding this comment.
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*/ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Could you review, please? @frahikLV let's keep this PR, next time we can use vauxoo-dev |
"license": "LGPL-3", | ||
"category": "Hidden/Dependency", | ||
"website": "https://github.com/OCA/web", | ||
"maintainers": ["frahikLV"], |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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"], |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignored
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 😄
a07cd32
to
881cc54
Compare
@luisg123v Suggestions have been addressed, could you review again? cc: @CarmenMiranda |
}); | ||
} | ||
/* Jsl:end*/ | ||
var cx = document.createElement("canvas"); |
There was a problem hiding this comment.
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??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion
881cc54
to
73c2487
Compare
73c2487
to
c5db5ee
Compare
c5db5ee
to
893247b
Compare
@luisg123v Done, I applied all the suggestions, can you review it? cc: @CarmenMiranda |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically LGTM 👍🏼
There was a problem hiding this 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?
/ocabot merge nobump |
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 |
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, |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 0a86047. Thanks a lot for contributing to OCA. ❤️ |
No description provided.