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

Make Gantt tooltip the same as Tree and Graph view #8220

Merged
merged 2 commits into from Apr 9, 2020

Conversation

ashb
Copy link
Member

@ashb ashb commented Apr 8, 2020

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

image

After:

image


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.

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
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Apr 8, 2020
@ashb ashb force-pushed the gantt-tooltip-same-as-tree branch from 49d8c92 to 25f8e2e Compare April 8, 2020 17:55
@ashb
Copy link
Member Author

ashb commented Apr 8, 2020

Though it loos like there is a bug in the Duration display for the tiTooltip function I reused.

@ashb ashb requested review from mik-laj and kaxil April 9, 2020 10:13
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;
Copy link
Member

Choose a reason for hiding this comment

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

Typo

Copy link
Member Author

Choose a reason for hiding this comment

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

Whops :)

Copy link
Member

@kaxil kaxil left a 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>
@ashb ashb merged commit 08c9b0a into apache:master Apr 9, 2020
@ashb ashb deleted the gantt-tooltip-same-as-tree branch April 9, 2020 20:20
@ashb ashb added this to the Airflow 1.10.11 milestone Apr 9, 2020
kaxil added a commit to kaxil/airflow that referenced this pull request Apr 14, 2020
After apache#8220 we do not need task_types and extra_links variables
@kaxil kaxil mentioned this pull request Apr 14, 2020
5 tasks
kaxil added a commit that referenced this pull request Apr 14, 2020
After #8220 we do not need task_types and extra_links variables
@kaxil kaxil mentioned this pull request Apr 14, 2020
5 tasks
kaxil added a commit to kaxil/airflow that referenced this pull request Apr 14, 2020
Extra link didn't appear after changes in  apache#8220 for Gantt View
kaxil pushed a commit that referenced this pull request Apr 14, 2020
To make this work I needed to change the fields exposed via the json
representation to those expected via the `tiTooltip` function.

Closes #8210
kaxil added a commit that referenced this pull request Apr 16, 2020
Extra link didn't appear after changes in  #8220 for Gantt View
kaxil added a commit that referenced this pull request Apr 16, 2020
After #8220 we do not need task_types and extra_links variables
kaxil added a commit that referenced this pull request Apr 16, 2020
Extra link didn't appear after changes in  #8220 for Gantt View
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Feb 11, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: bc93bae16989ce86caee56058a84af3c6dd4a739
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: bc93bae16989ce86caee56058a84af3c6dd4a739
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2021
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 504c711a6a7a0631745d3a36d628739e7540c7aa
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: bc93bae16989ce86caee56058a84af3c6dd4a739
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2021
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 504c711a6a7a0631745d3a36d628739e7540c7aa
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 15, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 15, 2021
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2021
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 23, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 23, 2021
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 25, 2021
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 25, 2021
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 9, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 9, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 3, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 3, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 6, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 6, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jul 8, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jul 8, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Aug 26, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Aug 26, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 3, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 3, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
aglipska pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 7, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
aglipska pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 7, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 7, 2022
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 7, 2022
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jan 27, 2023
After apache/airflow#8220 we do not need task_types and extra_links variables

GitOrigin-RevId: 54d3c9a55c974ecb1ea2b4524294ffbc42905ac2
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jan 27, 2023
Extra link didn't appear after changes in  apache/airflow#8220 for Gantt View

GitOrigin-RevId: 1fbe8d8bee164de81e8ac9332e1d49f0de03b3e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI time zone not used in Gantt charts tooltips
2 participants