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
Make Gantt tooltip the same as Tree and Graph view #8220
Conversation
To make this work I needed to change the fields exposed via the json representation to those expected via the `tiTooltip` function. Closes apache#8210
49d8c92
to
25f8e2e
Compare
Though it loos like there is a bug in the Duration display for the tiTooltip function I reused. |
var height = document.body.clientHeight - margin.top - margin.bottom-5; | ||
var width = $('.gantt').width() - margin.right - margin.left-5; | ||
|
||
var tickFormat = "%H:%M"; | ||
|
||
var keyFunction = function(d) { | ||
return d.startDate + d.taskName + d.endDate; | ||
return d.start_ate + d.task_id + d.end_date; |
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.
Typo
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.
Whops :)
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.
1 Typo that needs fixing or else LGTM
Co-Authored-By: Kaxil Naik <kaxilnaik@gmail.com>
After apache#8220 we do not need task_types and extra_links variables
After #8220 we do not need task_types and extra_links variables
Extra link didn't appear after changes in apache#8220 for Gantt View
To make this work I needed to change the fields exposed via the json representation to those expected via the `tiTooltip` function. Closes #8210
Extra link didn't appear after changes in #8220 for Gantt View
After #8220 we do not need task_types and extra_links variables
Extra link didn't appear after changes in #8220 for Gantt View
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: bc93bae16989ce86caee56058a84af3c6dd4a739
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: bc93bae16989ce86caee56058a84af3c6dd4a739
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 504c711a6a7a0631745d3a36d628739e7540c7aa
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: bc93bae16989ce86caee56058a84af3c6dd4a739
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 504c711a6a7a0631745d3a36d628739e7540c7aa
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
After apache/airflow#8220 we do not need task_types and extra_links variables GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
Extra link didn't appear after changes in apache/airflow#8220 for Gantt View GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
To make this work I needed to change the fields exposed via the json
representation to those expected via the
tiTooltip
function.Closes #8210.
Before
After:
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.