appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

chore: Merge two import export services into a single one

Open nayan-rafiq opened this issue 1 year ago • 36 comments

Description

We've ended up with two services for import and export - one for file import and another one for git import. The code is duplicated in both of the services. This PR merges the services into a single one.

Fixes #22940

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

  • Chore (housekeeping or task changes that don't impact user perception)

How Has This Been Tested?

  • Manual
  • JUnit

Test Plan

Add Testsmith test cases links that relate to this PR

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

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] 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

nayan-rafiq avatar May 05 '23 05:05 nayan-rafiq

/build-deploy-preview

Parthvi12 avatar May 05 '23 06:05 Parthvi12

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4890522087. Workflow: On demand build Docker image and deploy preview. skip-tests: . env: . PR: 23017. recreate: .

github-actions[bot] avatar May 05 '23 06:05 github-actions[bot]

Deploy-Preview-URL: https://ce-23017.dp.appsmith.com

github-actions[bot] avatar May 05 '23 06:05 github-actions[bot]

@nayan-rafiq Following issues are observed on DP regarding importing json in existing application

  • [x] On importing app's json say app2 on an imported app say app1, the reconnect modal comes up again of app1

    • Import an app from json which has datasources , reconnect modal will come up, skip to application.
    • On this imported app, import another app from inside application, observe reconnect modal appears with previously connected app.
  • [x] Not able to import json in existing app, if that json is already imported in some other app of same workspace.

    • Import app's json in existing app, create new app say app2 in same workspace and try to import json again in the app2 observe error is thrown
Screenshot 2023-05-05 at 4 43 19 PM

both issues exists on release as well: https://github.com/appsmithorg/appsmith/issues/22829 , not a blocker for PR.

Parthvi12 avatar May 05 '23 11:05 Parthvi12

/ok-to-test sha=1cb1840

nayan-rafiq avatar May 05 '23 20:05 nayan-rafiq

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

github-actions[bot] avatar May 05 '23 20:05 github-actions[bot]

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4897283867. Commit: 1cb1840. The following are new failures, please fix them before merging the PR:

  1. cypress/integration/Regression_TestSuite/ClientSideTests/ActionExecution/uiToCode/uiToCode_spec.ts
  2. cypress/integration/Regression_TestSuite/ClientSideTests/Templates/Fork_Template_spec.js
  3. cypress/integration/Regression_TestSuite/ServerSideTests/MySQL_Datatypes/False_Spec.ts
To know the list of identified flaky tests - Refer here

github-actions[bot] avatar May 05 '23 21:05 github-actions[bot]

@nayan

  • [x] Reconnect modal is coming up for welcome tour in DP, (Edit: This behaviour is observed on release as well not a blocker for PR) refer:

https://user-images.githubusercontent.com/80334441/236733313-856d0ed9-1994-4598-8747-bc31d7acc541.mov

Parthvi12 avatar May 08 '23 04:05 Parthvi12

/build-deploy-preview

nayan-rafiq avatar May 08 '23 16:05 nayan-rafiq

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4917368443. Workflow: On demand build Docker image and deploy preview. skip-tests: . env: . PR: 23017. recreate: .

github-actions[bot] avatar May 08 '23 16:05 github-actions[bot]

Deploy-Preview-URL: https://ce-23017.dp.appsmith.com

github-actions[bot] avatar May 08 '23 17:05 github-actions[bot]

/build-deploy-preview skip-tests=true recreate=true

nayan-rafiq avatar May 09 '23 06:05 nayan-rafiq

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4923173724. Workflow: On demand build Docker image and deploy preview. skip-tests: true. env: ``. PR: 23017. recreate: true.

github-actions[bot] avatar May 09 '23 06:05 github-actions[bot]

Deploy-Preview-URL: https://ce-23017.dp.appsmith.com

github-actions[bot] avatar May 09 '23 07:05 github-actions[bot]

/ok-to-test sha=9d3d378

nayan-rafiq avatar May 09 '23 12:05 nayan-rafiq

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

github-actions[bot] avatar May 09 '23 12:05 github-actions[bot]

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4925709318. Commit: 9d3d378. The following are new failures, please fix them before merging the PR:

  1. cypress/integration/Regression_TestSuite/ClientSideTests/OtherUIFeatures/Omnibar_spec.js
To know the list of identified flaky tests - Refer here

github-actions[bot] avatar May 09 '23 14:05 github-actions[bot]

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4925709318. Commit: 9d3d378. All cypress tests have passed 🎉

github-actions[bot] avatar May 09 '23 18:05 github-actions[bot]

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4925709318. Commit: 9d3d378. All cypress tests have passed 🎉

github-actions[bot] avatar May 09 '23 18:05 github-actions[bot]

/perf-test

nayan-rafiq avatar May 09 '23 18:05 nayan-rafiq

/ok-to-test sha=0c7be5b

nayan-rafiq avatar May 10 '23 07:05 nayan-rafiq

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

github-actions[bot] avatar May 10 '23 07:05 github-actions[bot]

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4934095132. Commit: 0c7be5b. The following are new failures, please fix them before merging the PR:

    To know the list of identified flaky tests - Refer here

    github-actions[bot] avatar May 10 '23 08:05 github-actions[bot]

    /ok-to-test sha=fd856b6

    nayan-rafiq avatar May 11 '23 03:05 nayan-rafiq

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

    github-actions[bot] avatar May 11 '23 03:05 github-actions[bot]

    Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4943604330. Commit: fd856b6. The following are new failures, please fix them before merging the PR:

    1. cypress/integration/Regression_TestSuite/ClientSideTests/BugTests/AbortAction_Spec.ts
    2. cypress/integration/Regression_TestSuite/ClientSideTests/IDE/Command_Click_Navigation_spec.js
    3. cypress/integration/Regression_TestSuite/ClientSideTests/OtherUIFeatures/Omnibar_spec.js
    4. cypress/integration/Regression_TestSuite/ServerSideTests/GenerateCRUD/Postgres1_Spec.ts
    5. cypress/integration/Regression_TestSuite/ServerSideTests/MySQL_Datatypes/False_Spec.ts
    To know the list of identified flaky tests - Refer here

    github-actions[bot] avatar May 11 '23 04:05 github-actions[bot]

    Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4943604330. Commit: fd856b6. The following are new failures, please fix them before merging the PR:

      To know the list of identified flaky tests - Refer here

      github-actions[bot] avatar May 11 '23 10:05 github-actions[bot]

      /ok-to-test sha=85b5a8e

      nayan-rafiq avatar May 11 '23 21:05 nayan-rafiq

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

      github-actions[bot] avatar May 11 '23 21:05 github-actions[bot]