Skip to content

fix(export): show 'Data export requires Business Plan' on 404 for SaaS #97546

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JoshFerge
Copy link
Member

Right now it is confusing that a user can try and export tags but we do not tell them why. if we're on SaaS, send a more helpful error message.

Ideally, we should probably just gray out the button entirely if the user is not on business with a tooltip.

…; add test; keep generic/self-hosted fallback
@JoshFerge JoshFerge changed the title dataExport: show 'Data export requires Business Plan' on 404 for SaaS fix(export): show 'Data export requires Business Plan' on 404 for SaaS Aug 8, 2025
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 8, 2025
@JoshFerge JoshFerge requested review from a team August 8, 2025 23:31
t(
"We tried our hardest, but we couldn't export your data. Give it another go."
);
err?.status === 404 && !isSelfHosted
Copy link
Member

Choose a reason for hiding this comment

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

404 seems like the wrong status to return if they dont have the feature - is it worth following this pr up with an update in the backend?

roggenkemper
roggenkemper previously approved these changes Aug 8, 2025
"We tried our hardest, but we couldn't export your data. Give it another go."
);
err?.status === 404 && !isSelfHosted
? t('Data export requires Business Plan')
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't the button be disabled or removed if they can't export on their plan

Copy link
Member

Choose a reason for hiding this comment

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

is there a feature flag?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah that is probably the better fix

Copy link
Member Author

Choose a reason for hiding this comment

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

if not features.has("organizations:discover-query", organization):

Copy link
Member Author

Choose a reason for hiding this comment

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

i just updated the branch. let me know if that makes sense.

…scover-query; show GS hovercard via hookName
Copy link

codecov bot commented Aug 8, 2025

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   #97546   +/-   ##
=======================================
  Coverage   80.61%   80.61%           
=======================================
  Files        8559     8559           
  Lines      376754   376746    -8     
  Branches    24492    24491    -1     
=======================================
- Hits       303732   303731    -1     
+ Misses      72652    72645    -7     
  Partials      370      370           

…o hovercard); keep button enabled when feature present
Copy link
Member

@roggenkemper roggenkemper left a comment

Choose a reason for hiding this comment

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

i think the only change we need to make here is actually disabling/hiding TagExportDropdown if they don't have the feature flag. the button in discover is probably gated, but it's not in the tag drawer on issue details. with that, we shouldn't even need to update the error message since they won't be able to attempt to export

…add spec. dataExport: remove 404 Business Plan messaging and test; rely on gating
`/${organization.slug}/${project.slug}/issues/${group.id}/tags/${tagKey}/export/`,
'_blank'
);
<Feature features="organizations:discover-query" organization={organization}>
Copy link
Member

Choose a reason for hiding this comment

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

Feature is already wrapped with withOrganization so we shouldn't have to pass organization in here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants