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: Move Maps API Key to database #20771

Merged
merged 51 commits into from
Jul 24, 2023
Merged

Conversation

sharat87
Copy link
Member

@sharat87 sharat87 commented Feb 20, 2023

  1. Changing the Maps API Key doesn't need restart anymore.
  2. The isRestartRequired field in the response of updating env settings, was being ignored. The client owns the decision of when to restart (which is correct), so removed this from the server.
  3. Write Maps API Key to the database, in the tenant configuration.
  4. The Settings page for Maps Ke gets the current value from /tenant/current response, and not /admin/env.
  5. Removed APPSMITH_GOOGLE_MAPS_API_KEY from /admin/env response.
  6. Tests.

DO NOT MERGE. Please only review/approve. This is expected to break EE once it goes there, which I intend to solve alongside merging this.

Changing the Maps API Key will update it both in the tenant config in the database, as well as in the docker.env file. This is predominantly for backwards compatibility, and phased rollout. As part of a separate PR, we'll have a migration that proactively copies the env variable value to the database, and comment out the value in the docker.env file. Then we can stop updating the docker.env file as well.

New

Screenshot 2023-02-25 at 7 30 14 AM

Old

Screenshot 2023-02-25 at 7 23 05 AM

@vercel
Copy link

vercel bot commented Feb 20, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated
appsmith ⬜️ Ignored (Inspect) Feb 26, 2023 at 8:54AM (UTC)

@github-actions github-actions bot added the skip-changelog Adding this label to a PR prevents it from being listed in the changelog label Feb 20, 2023
@sharat87 sharat87 marked this pull request as ready for review February 22, 2023 02:38
@sharat87
Copy link
Member Author

/ok-to-test sha=4dd2da0

@github-actions
Copy link

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

@github-actions
Copy link

The following are new failures, please fix them before merging the PR cypress/integration/Regression_TestSuite/ClientSideTests/EmbedSettings/EmbedSettings_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/FormLogin/EnableFormLogin_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/Git/GitSync/RegenerateSSHKey_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/Github/EnableGithub_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/Google/EnableGoogle_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/DatasourcePageLayout_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/Listv2_BasicServerSideData_spec.js cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV2/TableV2_PropertyPane_spec.js cypress/integration/Regression_TestSuite/UpgradeAppsmith/UpgradeAppsimth_spec.js

@sharat87
Copy link
Member Author

/ok-to-test sha=ddb544c

@github-actions
Copy link

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

@github-actions
Copy link

The following are new failures, please fix them before merging the PR
  1. cypress/integration/Regression_TestSuite/ClientSideTests/EmbedSettings/EmbedSettings_spec.js
  2. cypress/integration/Regression_TestSuite/ClientSideTests/FormLogin/EnableFormLogin_spec.js
  3. cypress/integration/Regression_TestSuite/ClientSideTests/Github/EnableGithub_spec.js
  4. cypress/integration/Regression_TestSuite/ClientSideTests/Google/EnableGoogle_spec.js
  5. cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/JSEditorIndent_spec.js
  6. cypress/integration/Regression_TestSuite/ClientSideTests/VisualTests/WidgetsLayout_spec.js
  7. cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/Chart/Chart_Widget_Loading_spec.js
  8. cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/ListV2/Childwigets/List_Select_Widgets_spec.js
  9. cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV2/TableV2_PropertyPane_spec.js

@sharat87
Copy link
Member Author

/ok-to-test sha=94fc749

@github-actions
Copy link

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

@sharat87 sharat87 added skip-changelog Adding this label to a PR prevents it from being listed in the changelog and removed skip-changelog Adding this label to a PR prevents it from being listed in the changelog labels Jul 18, 2023
@sharat87
Copy link
Member Author

Cypress tests have actually all passed. The failure is due to this:

shot-2023-07-18-08-05-46

Here's Cypress dashboard:

shot-2023-07-18-08-07-12

@ankitakinger
Copy link
Contributor

/ok-to-test

@github-actions
Copy link

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

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5587891428.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js

  2. cypress/e2e/Regression/ServerSide/QueryPane/S3_1_spec.js
To know the list of identified flaky tests - Refer here

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5587891428.
Commit: ``.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

ankitakinger
ankitakinger previously approved these changes Jul 18, 2023
Copy link
Contributor

@ankitakinger ankitakinger left a comment

Choose a reason for hiding this comment

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

FE changes looks good to me

@sharat87
Copy link
Member Author

/build-deploy-preview

@github-actions
Copy link

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

@github-actions
Copy link

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

@sharat87
Copy link
Member Author

Changing the Maps key crashes frontend. 😭

shot-2023-07-19-04-22-22.mp4

Slack thread here.

@sharat87
Copy link
Member Author

/ok-to-test

@github-actions
Copy link

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

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5619645138.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Regression/ClientSide/BugTests/DatasourceSchema_spec.ts

  2. cypress/e2e/Regression/ClientSide/OtherUIFeatures/ApplicationURL_spec.js
To know the list of identified flaky tests - Refer here

ankitakinger
ankitakinger previously approved these changes Jul 21, 2023
@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/5619645138.
Commit: ``.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

@sharat87 sharat87 merged commit 3129e88 into release Jul 24, 2023
@sharat87 sharat87 deleted the chore/maps-key-without-restart branch July 24, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Adding this label to a PR prevents it from being listed in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants