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

chore: assets and utilities clean up #9041

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Apr 21, 2023

Description 📝

  • Clean up files in packages/manager/src/assets/ and packages/manager/src/utilities/
  • Deleted util functions that were not used and that I don't think were worth keeping
  • Removed some old unused assets
  • Removed some default exports

Preview 📷

  • There should be no visual changes 🚨

How to test 🧪

  • Verify automated testing passes
  • Do a quick once-over of the entire App and check for crashes and regressions

@cypress
Copy link

cypress bot commented Apr 21, 2023

Passing run #3155 ↗︎

0 151 3 0 Flakiness 0

Details:

Merge branch 'develop' into chore/repo-cleanup-utils-and-assets
Project: Cloud Manager E2E Commit: 58fcdf6273
Status: Passed Duration: 15:06 💡
Started: Apr 24, 2023 9:34 PM Ended: Apr 24, 2023 9:49 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@@ -1,5 +1,3 @@
const escapeStringForCLI = (value: string) => {
export const escapeStringForCLI = (value: string) => {
return value.replace(/(["'$`\\])/g, '\\$1');
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a potential for some more cleanup, possibly in a separate PR: This util essentially does the same as https://github.com/linode/manager/blob/develop/packages/manager/src/utilities/generate-cli.ts#L2-L10. However the one in generate-cli is more comprehensive in what it handles. Do we want to move forward with just one solution?

Copy link
Member Author

Choose a reason for hiding this comment

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

Made myself a note to revisit this

Copy link
Contributor

@jaalah-akamai jaalah-akamai left a comment

Choose a reason for hiding this comment

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

Really good cleanup 🧼

@jaalah-akamai jaalah-akamai added the Add'tl Approval Needed Waiting on another approval! label Apr 24, 2023
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Those were some colorful distro .pngs!

Verified that the deleted files are not used and didn't see any unexpected errors when clicking through Cloud to test on Friday; just tested Linode region functionality and that still looks good too.

sortCreatedDESC,
filter(propSatisfies(startsWith('private'), 'id'))
);
import { always, cond, groupBy, propOr } from 'ramda';
Copy link
Contributor

Choose a reason for hiding this comment

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

Less ramda is a 🏆 .

@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Apr 24, 2023
@bnussman-akamai bnussman-akamai merged commit 326ea5f into linode:develop Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Clean Up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants