Skip to content

chore(fe): Convert <IntegrationCodeMappings /> to an FC #90820

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

Merged
merged 4 commits into from
May 6, 2025

Conversation

leeandher
Copy link
Member

Pretty straight forward, the only two interesting changes are:

  • All the special casing for handling the cursor has been removed. There were workarounds to handle the cursor in state and manually update the cache, but it's much simpler to just omit the cursor when a new tab is selected. it honestly didn't even make sense because refreshing the page after clicking a new tab would yield new results when we suddenly start respecting the cursor (I also introduced this workaround 3 years ago so i dont mind dogging on it lol)
  • Instead of trying to update the list to include the newly created code mapping, just refetch. The list is sorted so if the codemapping started with an A, but was on page 10, the results would appear as [Aproj, Xproj, Yproj, Zproj] then refreshing would cause it to disappear. This means after manually creating a code mapping, you won't immediately see it in the list, though only if you have >100. TBH these pages should have search anyway.

@leeandher leeandher requested a review from a team May 2, 2025 15:43
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 2, 2025
leeandher added a commit that referenced this pull request May 5, 2025
While working on #90820 I
noticed the repo list doesn't paginate.

The page links were setting the query params, but the api call didn't
use em.
@leeandher leeandher force-pushed the leander/convert-gh-mapping branch from 4a4d11a to ef5827b Compare May 5, 2025 21:34
Copy link

codecov bot commented May 5, 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   #90820      +/-   ##
==========================================
- Coverage   87.80%   84.02%   -3.78%     
==========================================
  Files       10283    10283              
  Lines      583590   583517      -73     
  Branches    22579    22577       -2     
==========================================
- Hits       512407   490304   -22103     
- Misses      70769    92799   +22030     
  Partials      414      414              

@leeandher leeandher merged commit 179efc8 into master May 6, 2025
42 of 48 checks passed
@leeandher leeandher deleted the leander/convert-gh-mapping branch May 6, 2025 14:50
andrewshie-sentry pushed a commit that referenced this pull request May 12, 2025
While working on #90820 I
noticed the repo list doesn't paginate.

The page links were setting the query params, but the api call didn't
use em.
andrewshie-sentry pushed a commit that referenced this pull request May 12, 2025
Pretty straight forward, the only two interesting changes are:
- All the special casing for handling the cursor has been removed. There
were workarounds to handle the cursor in state and manually update the
cache, but it's much simpler to just omit the cursor when a new tab is
selected. it honestly didn't even make sense because refreshing the page
after clicking a new tab would yield new results when we suddenly start
respecting the cursor (I also introduced this workaround 3 years ago so
i dont mind dogging on it lol)
- Instead of trying to update the list to include the newly created code
mapping, just refetch. The list is sorted so if the codemapping started
with an A, but was on page 10, the results would appear as [Aproj,
Xproj, Yproj, Zproj] then refreshing would cause it to disappear. This
means after manually creating a code mapping, you won't immediately see
it in the list, though only if you have >100. TBH these pages should
have search anyway.
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants