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

fix: Extra x's when replacing / hiding tokens #3740

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Conversation

ajay-sentry
Copy link
Contributor

@ajay-sentry ajay-sentry commented Feb 13, 2025

Description

This PR aims to fix some weird behavior when hiding org upload tokens where an extra character was being added to the end of each pattern due to the "|" operator being present and comparing the last character in each sequence, an empty "" and converting that character to an "x" as well.

We just remove the "|" and we're good

Closes https://github.com/codecov/internal-issues/issues/174

Screenshots

BEFORE

Screen.Recording.2025-02-13.at.3.28.13.PM.mov

AFTER

Screen.Recording.2025-02-13.at.3.26.50.PM.mov

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

codecov-staging bot commented Feb 13, 2025

Bundle Report

Changes will decrease total bundle size by 2 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system 6.26MB -1 bytes (-0.0%) ⬇️
gazebo-staging-esm 6.31MB -1 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-staging-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js -1 bytes 5.19kB -0.02%

Files in assets/index-legacy.*.js:

  • ./src/pages/AccountSettings/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx → Total Size: 3.05kB
view changes for bundle: gazebo-staging-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js -1 bytes 5.02kB -0.02%

Files in assets/index.*.js:

  • ./src/pages/AccountSettings/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx → Total Size: 3.05kB

Copy link

codecov bot commented Feb 13, 2025

Bundle Report

Changes will decrease total bundle size by 2 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.26MB -1 bytes (-0.0%) ⬇️
gazebo-production-esm 6.31MB -1 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js -1 bytes 5.02kB -0.02%

Files in assets/index.*.js:

  • ./src/pages/AccountSettings/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx → Total Size: 3.05kB
view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js -1 bytes 5.19kB -0.02%

Files in assets/index-legacy.*.js:

  • ./src/pages/AccountSettings/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx → Total Size: 3.05kB

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.84%. Comparing base (7eded14) to head (47c2ebc).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3740   +/-   ##
=======================================
  Coverage   98.84%   98.84%           
=======================================
  Files         823      823           
  Lines       14863    14863           
  Branches     4229     4229           
=======================================
  Hits        14692    14692           
  Misses        165      165           
  Partials        6        6           
Files with missing lines Coverage Δ
...s/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.69% <ø> (ø)
Pages 98.52% <100.00%> (ø)
Services 99.24% <ø> (ø)
Shared 99.37% <ø> (ø)
UI 99.07% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-notifications
Copy link

codecov-notifications bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3740   +/-   ##
=======================================
  Coverage   98.84%   98.84%           
=======================================
  Files         823      823           
  Lines       14863    14863           
  Branches     4229     4229           
=======================================
  Hits        14692    14692           
  Misses        165      165           
  Partials        6        6           
Files with missing lines Coverage Δ
...s/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.69% <ø> (ø)
Pages 98.52% <100.00%> (ø)
Services 99.24% <ø> (ø)
Shared 99.37% <ø> (ø)
UI 99.07% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-qa
Copy link

codecov-qa bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.84%. Comparing base (7eded14) to head (47c2ebc).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3740   +/-   ##
=======================================
  Coverage   98.84%   98.84%           
=======================================
  Files         823      823           
  Lines       14863    14863           
  Branches     4229     4229           
=======================================
  Hits        14692    14692           
  Misses        165      165           
  Partials        6        6           
Files with missing lines Coverage Δ
...s/tabs/OrgUploadToken/RegenerateOrgUploadToken.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.69% <ø> (ø)
Pages 98.52% <100.00%> (ø)
Services 99.24% <ø> (ø)
Shared 99.37% <ø> (ø)
UI 99.07% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
47c2ebc Thu, 13 Feb 2025 23:37:04 GMT Cloud Enterprise

@ajay-sentry ajay-sentry added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 594a732 Feb 13, 2025
62 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/174-extra-x branch February 13, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants