Skip to content

Conversation

@narsaynorath
Copy link
Member

@narsaynorath narsaynorath commented Nov 20, 2024

Adds a button to the chart in explore so we can click "Add to Dashboard" and use Explore as a jump off point for a dashboard widget.

Screenshot 2024-11-20 at 9 58 16 PM

The button has the following functionality:

  • Takes the first 3 series from the chart and opens up the add to dashboard modal
  • The filter should transfer over
  • When switching to table view, the table in dashboards gets filled with the columns from the samples table if added from sample mode
  • When added from aggregate mode, the table view gets the group bys followed by the aggregates

⚠️ Note: The group by doesn't currently get filled in for timeseries charts. I will follow up with another PR to make group by work.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 20, 2024
@codecov
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #81064       +/-   ##
===========================================
+ Coverage   64.79%   78.48%   +13.68%     
===========================================
  Files        7211     7215        +4     
  Lines      319619   319663       +44     
  Branches    44034    44019       -15     
===========================================
+ Hits       207102   250883    +43781     
+ Misses     105804    62405    -43399     
+ Partials     6713     6375      -338     

This modal is coupled strongly with discover saved queries. Moving this
up to a param so I could integrate it properly with Explore
@narsaynorath narsaynorath force-pushed the nar/feat/dashboards-eap-add-to-dashboard branch from fa60561 to 37a98be Compare November 20, 2024 21:47
@narsaynorath narsaynorath changed the base branch from master to nar/ref/dashboards-add-to-dashboard-move-dataset-change-to-caller November 20, 2024 21:47
@narsaynorath narsaynorath changed the title WIP: feat(dashboards): Add to Dashboard from Explore feat(dashboards): Add to Dashboard from Explore Nov 21, 2024
@narsaynorath narsaynorath marked this pull request as ready for review November 21, 2024 14:23
@narsaynorath narsaynorath requested a review from a team as a code owner November 21, 2024 14:23
@narsaynorath narsaynorath requested a review from a team November 21, 2024 14:23
Base automatically changed from nar/ref/dashboards-add-to-dashboard-move-dataset-change-to-caller to master November 21, 2024 14:41
@narsaynorath narsaynorath merged commit 9fb8494 into master Nov 21, 2024
44 checks passed
@narsaynorath narsaynorath deleted the nar/feat/dashboards-eap-add-to-dashboard branch November 21, 2024 17:10
@sentry
Copy link

sentry bot commented Nov 21, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: �[2mexpect(�[22m�[31mjest.fn()�[39m�[2m).�[22mtoHaveBeenCalledWith�[2m(�[22m�[32m...expected�[39m... Object.?(addToDashboardButton.spec.tsx) View Issue

Did you find this useful? React with a 👍 or 👎

@narsaynorath narsaynorath added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Nov 21, 2024
@getsentry-bot
Copy link
Contributor

PR reverted: 2849ca8

getsentry-bot added a commit that referenced this pull request Nov 21, 2024
This reverts commit 9fb8494.

Co-authored-by: narsaynorath <22846452+narsaynorath@users.noreply.github.com>
narsaynorath added a commit that referenced this pull request Nov 21, 2024
iamrajjoshi pushed a commit that referenced this pull request Nov 24, 2024
Adds a button to the chart in explore so we can click "Add to Dashboard"
and use Explore as a jump off point for a dashboard widget.

The button has the following functionality:
- Takes the first 3 series from the chart and opens up the add to
dashboard modal
- The filter should transfer over
- When switching to table view, the table in dashboards gets filled with
the columns from the samples table if added from sample mode
- When added from aggregate mode, the table view gets the group bys
followed by the aggregates

Note: The group by doesn't currently get filled in for timeseries
charts. I will follow up with another PR to make group by work.
iamrajjoshi pushed a commit that referenced this pull request Nov 24, 2024
This reverts commit 9fb8494.

Co-authored-by: narsaynorath <22846452+narsaynorath@users.noreply.github.com>
iamrajjoshi pushed a commit that referenced this pull request Nov 24, 2024
harshithadurai pushed a commit that referenced this pull request Nov 25, 2024
Adds a button to the chart in explore so we can click "Add to Dashboard"
and use Explore as a jump off point for a dashboard widget.

The button has the following functionality:
- Takes the first 3 series from the chart and opens up the add to
dashboard modal
- The filter should transfer over
- When switching to table view, the table in dashboards gets filled with
the columns from the samples table if added from sample mode
- When added from aggregate mode, the table view gets the group bys
followed by the aggregates

Note: The group by doesn't currently get filled in for timeseries
charts. I will follow up with another PR to make group by work.
harshithadurai pushed a commit that referenced this pull request Nov 25, 2024
This reverts commit 9fb8494.

Co-authored-by: narsaynorath <22846452+narsaynorath@users.noreply.github.com>
harshithadurai pushed a commit that referenced this pull request Nov 25, 2024
evanh pushed a commit that referenced this pull request Nov 25, 2024
Adds a button to the chart in explore so we can click "Add to Dashboard"
and use Explore as a jump off point for a dashboard widget.

The button has the following functionality:
- Takes the first 3 series from the chart and opens up the add to
dashboard modal
- The filter should transfer over
- When switching to table view, the table in dashboards gets filled with
the columns from the samples table if added from sample mode
- When added from aggregate mode, the table view gets the group bys
followed by the aggregates

Note: The group by doesn't currently get filled in for timeseries
charts. I will follow up with another PR to make group by work.
evanh pushed a commit that referenced this pull request Nov 25, 2024
This reverts commit 9fb8494.

Co-authored-by: narsaynorath <22846452+narsaynorath@users.noreply.github.com>
evanh pushed a commit that referenced this pull request Nov 25, 2024
andrewshie-sentry pushed a commit that referenced this pull request Dec 2, 2024
Adds a button to the chart in explore so we can click "Add to Dashboard"
and use Explore as a jump off point for a dashboard widget.

The button has the following functionality:
- Takes the first 3 series from the chart and opens up the add to
dashboard modal
- The filter should transfer over
- When switching to table view, the table in dashboards gets filled with
the columns from the samples table if added from sample mode
- When added from aggregate mode, the table view gets the group bys
followed by the aggregates

Note: The group by doesn't currently get filled in for timeseries
charts. I will follow up with another PR to make group by work.
andrewshie-sentry pushed a commit that referenced this pull request Dec 2, 2024
This reverts commit 9fb8494.

Co-authored-by: narsaynorath <22846452+narsaynorath@users.noreply.github.com>
andrewshie-sentry pushed a commit that referenced this pull request Dec 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: Revert Add to a merged PR to revert it (skips CI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants