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

[13.0][MIG] web_timeline: Migration to 13.0 #1557

Merged
merged 66 commits into from
Apr 17, 2020

Conversation

Tardo
Copy link
Member

@Tardo Tardo commented Mar 23, 2020

Supersedes #1470

  • Improved CSS
  • Improved default vis options: Now needs hold "ctrl" key to zoom in/out and the space between elements has been reduced
  • Fixed all travis warnings
  • Some refactor to ES6
  • Removed unused code
  • Improved how the arrows are drawn on canvas

Before:
before

After:
after

cc @Tecnativa TT19831

@OCA-git-bot
Copy link
Contributor

Hi @tarteo,
some modules you are maintaining are being modified, check this out!

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Thanks! Tested on runbot. Just a minor comment:

web_timeline/README.rst Show resolved Hide resolved
Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Also, another icon should be used as the activity view type already uses this one:
image

web_notify/tests/test_res_users.py Outdated Show resolved Hide resolved
@Tardo Tardo changed the title [13.0][MIG] web_timeline: Migration to 13.0 [WIP][13.0][MIG] web_timeline: Migration to 13.0 Mar 24, 2020
@Tardo Tardo force-pushed the 13.0-mig-web_timeline branch 2 times, most recently from 72f8422 to 28fbcbc Compare March 25, 2020 12:05
@Tardo Tardo changed the title [WIP][13.0][MIG] web_timeline: Migration to 13.0 [13.0][MIG] web_timeline: Migration to 13.0 Mar 25, 2020
@Tardo
Copy link
Member Author

Tardo commented Mar 25, 2020

Changes done

Copy link
Member

@ernestotejeda ernestotejeda left a comment

Choose a reason for hiding this comment

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

Functional review: OK

@pedrobaeza
Copy link
Member

@yajo please update your review

.isort.cfg Show resolved Hide resolved
web_notify/tests/test_res_users.py Outdated Show resolved Hide resolved
web_timeline/readme/CREDITS.rst Outdated Show resolved Hide resolved
lmignon and others added 11 commits March 30, 2020 19:20
* Avoid to display all items of group_by model
* Remove unnecessary readgroup
* Remove dependency on project. Modify module structure. Imporve readme file.
* Add setup.py
* [FIX] Correct write when grouped by

* Remove blank lines

* Minor changes
* Update the vis.js framework to latest stable version (v4.20.1) to add new functionality and save almost
400ko of source code in odoo assets (the vis dev team has isolate the code for timeline widget from the
 rest of their widgets)

* Add the possibility to display events with no duration (instantaneous) as the same time has regular events

* Add the possibility to choose between two scroll mode :
  -  zoom in time resolution (default)
  or
  -  vertical scroll (web browser default behaviour)

Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
@pedrobaeza
Copy link
Member

pedrobaeza commented Mar 30, 2020

You have changed the repo to website in the README.

@Tardo
Copy link
Member Author

Tardo commented Mar 30, 2020

Oops! sorry, changed!

@dreispt dreispt added this to the 13.0 milestone Apr 6, 2020
@Tardo
Copy link
Member Author

Tardo commented Apr 6, 2020

@dreispt this pr is ready to review.

@mohammad0omar
Copy link

I am trying to run this with the project timeline module

but in the console, I've got this warning
**
**### vis-timeline-graph2d.min.js:59 This build has been deprecated.

In case you are importing this through a URL it will result in a 404 eventually.
In case you are importing this through Node it will be replaced by the peer build eventually.

Please use the peer or standalone build instead.
Peer: https://visjs.github.io/vis-timeline/examples/timeline/peer-build.html
Standalone: https://visjs.github.io/vis-timeline/examples/timeline/standalone-build.html
(anonymous) @ vis-timeline-graph2d.min.js:59
(anonymous) @ vis-timeline-graph2d.min.js:26
(anonymous) @ vis-timeline-graph2d.min.js:26
21:16:25.228 DevTools failed to parse SourceMap: http://localhost:8069/web_timeline/static/lib/vis-timeline/vis-timeline-graph2d.min.js.map**

then when clicking on the timeline icon in the kanban view to access the timeline view
this error GET http://localhost:8069/web_timeline/static/lib/vis-timeline/vis-timeline-graph2d.min.css net::ERR_ABORTED 404 (NOT FOUND)

, to solve this I've temporary setted the URLs in timeline_view.js to this and same for cssLibs

then the clicking on the icon will let you go to the timeline view but will not be initiated because of this error
util.js:191 Uncaught (in promise) TypeError: i.createNewDataPipeFrom is not a function
at ns (util.js:191)
at e.value (Timeline.js:317)
at Class.on_data_loaded_2 (timeline_renderer.js:358)
at timeline_renderer.js:336

@chienandalu
Copy link
Member

@yajo Can you update your review?

@pedrobaeza
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 13.0-ocabot-merge-pr-1557-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot OCA-git-bot merged commit c73870e into OCA:13.0 Apr 17, 2020
@OCA-git-bot
Copy link
Contributor

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

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.