appsmith
appsmith copied to clipboard
fix: discard popup for gsheet updates
Description
For a GSheet DS, Add a ds & click on back.. In the pop-up when alerted to save - click on save.. User is taken to Authorise the sheet also, Hence this "save" button text is replaced with "save and authorize" in case of Google sheet datasource.
This PR also contains cypress improvements mentioned by @Parthvi12. https://github.com/appsmithorg/appsmith/pull/18690
Add a TL;DR when description is extra long (helps content team)
Fixes #18035
Type of change
- Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
- Manual
- Cypress
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
- [ ] 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
appsmith | ✅ Ready (Inspect) | Visit Preview | Dec 20, 2022 at 4:01PM (UTC) |
Unable to find test scripts. Please add necessary tests to the PR.
/ok-to-test sha=c749408
Unable to find test scripts. Please add necessary tests to the PR.
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3636337596.
Workflow: Appsmith External Integration Test Workflow
.
Commit: c749408
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3636337596_1
@sneha122
- Consider the user has Auth for "Read files" and then goes back and edit on the scope. What is the expectation here should the user re - Authorise this cc : @rohan-arthur @parth-appsmith
- [BUG] : Once the datasource is Authorised the Pop up must have button as Save and Re-Authorise. Currently we are displaying it as Save and Authorise.
@sneha122
- Consider the user has Auth for "Read files" and then goes back and edit on the scope. What is the expectation here should the user re - Authorise this cc : @rohan-arthur @parth-appsmith
- [BUG] : Once the datasource is Authorised the Pop up must have button as Save and Re-Authorise. Currently we are displaying it as Save and Authorise.
@prapullac This bug has been fixed. While fixing this bug, I found that when we create gsheet datasource, save and authorize it, Now after editing this same datasource and changing the scope should ideally make the datasource form dirty and on click of back button it should show discard popup, but it was not showing discard popup, I have fixed that bug as well. Please check that as well. Note: It happens only when I open gsheet datasource for editing from entity explorer
/ok-to-test sha=184e4b4
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3684008743.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 184e4b4
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3684008743_1
/ok-to-test sha=3393cc1
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3693978591.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 3393cc1
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3693978591_1
/ok-to-test sha=57cf6c2
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3694107233.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 57cf6c2
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3694107233_1
/ok-to-test sha=e9e87dc
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3702147568.
Workflow: Appsmith External Integration Test Workflow
.
Commit: e9e87dc
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3702147568_1
@sneha122
- Consider the user has Auth for "Read files" and then goes back and edit on the scope. What is the expectation here should the user re - Authorise this cc : @rohan-arthur @parth-appsmith
- [BUG] : Once the datasource is Authorised the Pop up must have button as Save and Re-Authorise. Currently we are displaying it as Save and Authorise.
@prapullac This bug has been fixed. While fixing this bug, I found that when we create gsheet datasource, save and authorize it, Now after editing this same datasource and changing the scope should ideally make the datasource form dirty and on click of back button it should show discard popup, but it was not showing discard popup, I have fixed that bug as well. Please check that as well. Note: It happens only when I open gsheet datasource for editing from entity explorer
@prapullac Tracking this issue in #18982
/ok-to-test sha=2dc61ee
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3704955389.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 2dc61ee
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3704955389_1
/ok-to-test sha=c523faa
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3705135512.
Workflow: Appsmith External Integration Test Workflow
.
Commit: c523faa
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3705135512_1
/ok-to-test sha=9052ff4
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3711395168.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 9052ff4
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3711395168_1
/ok-to-test sha=950aa80
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3712468205.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 950aa80
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3712468205_1
/ok-to-test sha=673e66e
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3720631652.
Workflow: Appsmith External Integration Test Workflow
.
Commit: 673e66e
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3720631652_1
/perf-test
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3738163362.
Workflow: Performance Tests Workflow
.
Commit: ``.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3738163362_1
/ok-to-test sha=d8f6d12
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3746751626.
Workflow: Appsmith External Integration Test Workflow
.
Commit: d8f6d12
.
PR: 18719.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=18719&runId=3746751626_1