Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Get author info tooltips working again #2104

Merged
merged 5 commits into from
Apr 30, 2019
Merged

Conversation

smashwilson
Copy link
Contributor

Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • Suggestion: You can use checklists to keep track of progress for the sections on metrics, tests, documentation, and user research.

Description of the Change

Fixes #2094 by updating the GraphQL query and component props to reflect the renaming of Organization#membersWithRole to Organization#members.

Screenshot

N/A

Alternate Designs

UserMentionTooltipItem is one of the old-style tooltips. I could modernize it, but I opted for a surgical fix here.

Benefits

User mention tooltips will work again.

Possible Drawbacks

N/A

Applicable Issues

Fixes #2094

Metrics

N/A

Tests

I tested it out with the PR in the issue screenshot 😄

Documentation

N/A

Release Notes

  • User mention tooltips correctly fetch data again.

User Experience Research (Optional)

N/A

@smashwilson smashwilson self-assigned this Apr 29, 2019
@codecov
Copy link

codecov bot commented Apr 29, 2019

Codecov Report

Merging #2104 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2104      +/-   ##
==========================================
+ Coverage   92.55%   92.58%   +0.03%     
==========================================
  Files         207      207              
  Lines       12021    12021              
  Branches     1746     1746              
==========================================
+ Hits        11126    11130       +4     
+ Misses        895      891       -4
Impacted Files Coverage Δ
lib/containers/user-mention-tooltip-container.js 100% <100%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ef8aac...a566a46. Read the comment docs.

Otherwise, it turns out the `.splice()` calls modify the query directly, 
which can contaminate other specs in really weird ways 😱
Copy link
Contributor

@kuychaco kuychaco left a comment

Choose a reason for hiding this comment

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

Thanks for getting these working again!

LGTM! 👍

@smashwilson smashwilson merged commit cf10092 into master Apr 30, 2019
@smashwilson smashwilson deleted the aw/author-info-tooltip branch April 30, 2019 13:20
smashwilson added a commit that referenced this pull request May 8, 2019
Get author info tooltips working again
This was referenced May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Author info tooltip card is broken
2 participants