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: Bug bash fixes #1029

Merged
merged 5 commits into from
Sep 22, 2023
Merged

fix: Bug bash fixes #1029

merged 5 commits into from
Sep 22, 2023

Conversation

kiram15
Copy link
Contributor

@kiram15 kiram15 commented Sep 13, 2023

https://2u-internal.atlassian.net/browse/ENT-7682

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

@kiram15 kiram15 requested a review from a team September 14, 2023 15:15
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (e5edf15) 83.03% compared to head (79d7f7d) 83.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1029   +/-   ##
=======================================
  Coverage   83.03%   83.03%           
=======================================
  Files         412      412           
  Lines        8857     8859    +2     
  Branches     1821     1821           
=======================================
+ Hits         7354     7356    +2     
  Misses       1464     1464           
  Partials       39       39           
Files Changed Coverage Δ
...ttings/SettingsApiCredentialsTab/ZeroStateCard.jsx 100.00% <ø> (ø)
...s/SettingsApiCredentialsTab/APICredentialsPage.jsx 100.00% <100.00%> (ø)
.../settings/SettingsApiCredentialsTab/CopyButton.jsx 93.75% <100.00%> (+0.89%) ⬆️
...nents/settings/SettingsApiCredentialsTab/index.jsx 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +15 to +16
const newData = data;
['user', 'id'].forEach(prop => delete newData[prop]);
Copy link
Contributor

@marlonkeating marlonkeating Sep 18, 2023

Choose a reason for hiding this comment

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

Do we need to make a newData variable here? Because we're just making a reference copy, this statement is equivalent to deleting from the original data variable.

Copy link
Contributor Author

@kiram15 kiram15 Sep 19, 2023

Choose a reason for hiding this comment

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

We just had some eslint things about making direct changes to a parameter. Maybe the error isn't smart enough to catch something being pass by reference vs value but I still don't love to change passed in variables

@kiram15 kiram15 merged commit ed98264 into master Sep 22, 2023
6 checks passed
@kiram15 kiram15 deleted the kiram15/ENT-7682 branch September 22, 2023 14:57
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.

2 participants