appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

chore: updated dependencies removed unused dependencies.

Open yaldram opened this issue 2 years ago • 15 comments

Description

  • Add resolution for json5 dependency to resolve package vulnerabilities.
  • Remove babel-plugin-styled-components because it was unused.
  • Related to react-scripts , if everything builds and dev server is running as expected we have no issues.

Fixes #19448

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

  • Non-breaking change.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce. Please also list any relevant details for your test configuration. Delete anything that is not important

  • Manual
  • Jest
  • Cypress

Test Plan

  • All tests need to pass.
  • Does not need a regression.

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:

Dev activity

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] PR is being merged under a feature flag

QA activity:

  • [ ] Test plan has been approved by relevant developers
  • [ ] Test plan has been peer reviewed by QA
  • [ ] Cypress test cases have been added and approved by either SDET or manual QA
  • [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
  • [ ] Added Test Plan Approved label after reveiwing all Cypress test

yaldram avatar Jan 03 '23 05:01 yaldram

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
appsmith ✅ Ready (Inspect) Visit Preview Jan 6, 2023 at 7:47AM (UTC)

vercel[bot] avatar Jan 03 '23 05:01 vercel[bot]

  • Removed babel-plugin-styled-components from package.json
  • Added json5 to package.json
  • Changed the optimization setting in craco config file for dev environment (minimize: false)

what-the-diff[bot] avatar Jan 03 '23 05:01 what-the-diff[bot]

@yaldram Thank you for cleaning up the codebase. I really appreciate this.

There are a few things I'd like to ask you to add to the PR description.

  1. What was the issue?
  2. What changes have we made to resolve the issue?
  3. The task issue id which calls for this resolution.
  4. How do we know if this change breaks anything? (Which tests would tell us this)

riodeuno avatar Jan 03 '23 05:01 riodeuno

@riodeuno I have updated the pull request description. This Pull request resolves a vulnerability, it needs no Q/A as it is related to the react-scrips dependencies, we aren't shipping this code to our customers.

yaldram avatar Jan 03 '23 07:01 yaldram

@yaldram I don't see a few details in the PR:

  1. An issue id.
  2. The PR seems to say Breaking change. If this is correct, we need to elaborate on what could break.
  3. If we only expect existing tests to pass, we need to mention that in the tests section.
  4. If we need a full regression for this, we will need to mention that as well.

riodeuno avatar Jan 03 '23 07:01 riodeuno

@riodeuno done.

yaldram avatar Jan 03 '23 07:01 yaldram

/ok-to-test sha=8aa1e6c

yaldram avatar Jan 03 '23 13:01 yaldram

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3829820427. Workflow: Appsmith External Integration Test Workflow. Commit: 8aa1e6c. PR: 19441. Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19441&runId=3829820427_1

github-actions[bot] avatar Jan 03 '23 13:01 github-actions[bot]

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/Application/CommunityIssues_Spec.ts cypress/integration/Smoke_TestSuite/Application/EchoApiCMS_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/BugTests/Autocomplete_JS_spec.ts cypress/integration/Smoke_TestSuite/ClientSideTests/BugTests/Bug9334_Spec.ts cypress/integration/Smoke_TestSuite/ClientSideTests/ExplorerTests/Scrolling_Spec.ts cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitDiscardChange/DiscardChanges_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitImport/GitImport_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/DeleteBranch_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/GitBugs_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/GitSyncedApps_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/Git_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Git/GitSync/SwitchBranches_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/VisualTests/DatasourcePageLayout_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/Form/FormWidget_spec.js cypress/integration/Smoke_TestSuite/ServerSideTests/Datasources/SMTPDatasource_spec.js cypress/integration/Smoke_TestSuite/ServerSideTests/Datatypes/MySQL_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/Datatypes/MySQL_false_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/GenerateCRUD/Mongo_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/GenerateCRUD/MySQL1_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/GenerateCRUD/MySQL2_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/GenerateCRUD/Postgres1_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/GenerateCRUD/Postgres2_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/JsFunctionExecution/JSFunctionExecution_spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/Postgres_DataTypes/Character_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/QueryPane/Mongo_Spec.js cypress/integration/Smoke_TestSuite/ServerSideTests/QueryPane/Mongo_Spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/QueryPane/Postgres_Spec.js

github-actions[bot] avatar Jan 03 '23 14:01 github-actions[bot]

/ok-to-test sha=0321735

Aishwarya-U-R avatar Jan 04 '23 02:01 Aishwarya-U-R

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3834643630. Workflow: Appsmith External Integration Test Workflow. Commit: 0321735. PR: 19441. Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19441&runId=3834643630_1

github-actions[bot] avatar Jan 04 '23 02:01 github-actions[bot]

/ok-to-test sha=0321735

IAmAnubhavSaini avatar Jan 04 '23 11:01 IAmAnubhavSaini

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3837413467. Workflow: Appsmith External Integration Test Workflow. Commit: 0321735. PR: 19441. Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19441&runId=3837413467_1

github-actions[bot] avatar Jan 04 '23 11:01 github-actions[bot]

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ServerSideTests/JsFunctionExecution/JSFunctionExecution_spec.ts cypress/integration/Smoke_TestSuite/ServerSideTests/QueryPane/EmptyDataSource_spec.js

github-actions[bot] avatar Jan 04 '23 12:01 github-actions[bot]

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ServerSideTests/QueryPane/EmptyDataSource_spec.js cypress/integration/Smoke_TestSuite/ServerSideTests/QueryPane/EmptyDataSource_spec.js

github-actions[bot] avatar Jan 04 '23 12:01 github-actions[bot]

/ok-to-test sha=ed45952

IAmAnubhavSaini avatar Jan 06 '23 07:01 IAmAnubhavSaini

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3853537836. Workflow: Appsmith External Integration Test Workflow. Commit: ed45952. PR: 19441. Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=19441&runId=3853537836_1

github-actions[bot] avatar Jan 06 '23 07:01 github-actions[bot]

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite/ClientSideTests/BugTests/Autocomplete_JS_spec.ts

github-actions[bot] avatar Jan 06 '23 08:01 github-actions[bot]

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite_Fat/ClientSideTests/Refactoring/Refactoring_spec.ts

github-actions[bot] avatar Jan 06 '23 08:01 github-actions[bot]

The following are new failures, please fix them before merging the PR cypress/integration/Smoke_TestSuite_Fat/ClientSideTests/Refactoring/Refactoring_spec.ts

github-actions[bot] avatar Jan 06 '23 09:01 github-actions[bot]