Skip to content

feat: progress, loading and error states for git flows, pull button and minor misc changes - #9052

Merged
rishabhsaxena merged 37 commits into
releasefrom
fix/git-deploy-v2
Nov 16, 2021
Merged

feat: progress, loading and error states for git flows, pull button and minor misc changes#9052
rishabhsaxena merged 37 commits into
releasefrom
fix/git-deploy-v2

Conversation

@haojin111

@haojin111 haojin111 commented Nov 9, 2021

Copy link
Copy Markdown
Contributor

Description

added status bar on deploy tab
added error box on deploy tab
updated saga structure of git commit for git error processing

Fixes #8956 - 3rd sub task

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please refer attached figma link.

Checklist:

  • 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

Test coverage results 🧪

🔴 Total coverage has decreased
// Code coverage diff between base branch:release and head branch: fix/git-deploy-v2 
Status File % Stmts % Branch % Funcs % Lines
🔴 total 54.61 (0) 36.33 (-0.01) 33.07 (-0.06) 55.13 (-0.01)
🟢 app/client/src/actions/gitSyncActions.ts 63.72 (0.08) 100 (0) 0 (0) 77.08 (0.48)
🔴 app/client/src/api/GitSyncAPI.tsx 40.82 (-0.85) 100 (0) 6.67 (0) 42.22 (0)
🔴 app/client/src/components/ads/Icon.tsx 50.25 (-0.54) 32.72 (-0.82) 100 (0) 50.13 (-0.53)
🔴 app/client/src/constants/messages.ts 73.9 (-0.14) 100 (0) 22.76 (-0.44) 79.77 (-0.02)
🔴 app/client/src/pages/Editor/gitSync/QuickGitActions/index.tsx 71.13 (0.44) 51.85 (1.85) 34.78 (-4.11) 71.59 (-1.62)
✨ 🆕 app/client/src/pages/common/SpinnerLoader.tsx 83.33 100 0 83.33
🔴 app/client/src/reducers/uiReducers/gitSyncReducer.ts 13.64 (-0.99) 100 (0) 0 (0) 13.64 (-0.99)
🔴 app/client/src/sagas/ActionSagas.ts 11.14 (-0.48) 0.69 (-0.09) 3.7 (-0.47) 13.56 (-0.68)
🔴 app/client/src/sagas/ErrorSagas.tsx 56.3 (-1.46) 37.33 (-3.85) 38.89 (0) 56.07 (-1.07)
🔴 app/client/src/sagas/GitSyncSagas.ts 11.35 (-0.08) 1.39 (-0.04) 6.67 (0) 15.11 (-0.04)
🔴 app/client/src/sagas/InitSagas.ts 41.88 (-0.26) 15.52 (0) 66.67 (0) 45.45 (-0.35)
🟢 app/client/src/sagas/JSActionSagas.ts 19.64 (0) 3.92 (1.88) 13.33 (0) 22.63 (0)
🟢 app/client/src/selectors/gitSyncSelectors.tsx 70.1 (3.43) 30 (-7.5) 17.65 (10.51) 61.54 (5.18)
🟢 app/client/src/utils/DynamicBindingUtils.ts 90.13 (6.33) 83.54 (14.02) 79.17 (3.31) 88.81 (5.79)

rishabhsaxena
rishabhsaxena previously approved these changes Nov 9, 2021
Comment thread app/client/src/pages/Editor/gitSync/Tabs/Deploy.tsx Outdated
Comment thread app/client/src/pages/Editor/gitSync/components/GitError.tsx Outdated
Comment thread app/client/src/pages/Editor/gitSync/hooks.ts Outdated
Comment thread app/client/src/sagas/GitSyncSagas.ts Outdated
Base automatically changed from fix/8956-connection-and-deploy-v2 to release November 9, 2021 09:51
@rishabhsaxena
rishabhsaxena changed the base branch from release to ChartUITestCases November 11, 2021 08:19
@rishabhsaxena
rishabhsaxena changed the base branch from ChartUITestCases to release November 11, 2021 08:19
@github-actions github-actions Bot added the Enhancement New feature or request label Nov 11, 2021
@rishabhsaxena
rishabhsaxena changed the base branch from release to ChartUITestCases November 15, 2021 03:49
rishabhsaxena
rishabhsaxena previously approved these changes Nov 16, 2021
@rishabhsaxena

Copy link
Copy Markdown
Contributor

/ok-to-test sha=e5fd861

@github-actions

Copy link
Copy Markdown

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/1466197002.
Workflow: Appsmith External Integration Test Workflow.
Commit: e5fd861.
PR: 9052.

@rishabhsaxena rishabhsaxena changed the title feat: 8956 - 3rd sub task added status bar and git error on deploy tab feat: progress, loading and error states for git flows, pull button and minor misc changes Nov 16, 2021
@github-actions

Copy link
Copy Markdown

Unable to find test scripts. Please add necessary tests to the PR.

@rishabhsaxena
rishabhsaxena merged commit 616a1fa into release Nov 16, 2021
@rishabhsaxena
rishabhsaxena deleted the fix/git-deploy-v2 branch November 16, 2021 10:24
subrata71 added a commit that referenced this pull request Aug 12, 2026
Linear: https://linear.app/appsmith/issue/APP-15742

## Why

`docker scout cves --only-fixed` on the shipped release image reports
176 fixable vulnerabilities. This is the **CE-owned share of the base
image fixes** — the regions of `deploy/docker/base.dockerfile` that CE
and EE hold in common.

Follows the same ownership split as #41873 (golang bump for the
mongo-tools builder), #41808 (Caddy/xcaddy) and #41850 (mongo-tools from
source).

## What changed

| Change | Effect |
|---|---|
| Purge `software-properties-common` after `add-apt-repository` | clears
**12** findings (7 high) |
| mongo-tools Go toolchain `1.26.4` → `1.26.5` | clears the `stdlib`
findings |
| `x/net` pin `0.55.0` → `0.56.0` (Caddy + mongo-tools) | clears
CVE-2026-46600 |
| New `x/text` → `0.39.0` pin (Caddy + mongo-tools) | clears
CVE-2026-56852 |

### Why `software-properties-common` can go

It exists solely for the `add-apt-repository -y ppa:git-core/ppa` call,
but drags in `python3-launchpadlib` and with it `python3-cryptography`,
`python3-jwt` and `python3-httplib2`. The PPA's sources entry and
signing key persist independently of the tool that wrote them, so
purging after registration is safe.

Verified by building the dependency-package block in isolation:

- `python3-cryptography`, `python3-jwt`, `python3-httplib2`,
`python3-launchpadlib`, `software-properties-common` — all removed, no
`.dist-info` left behind.
- `git 2.54.0` (Ubuntu 24.04 ships 2.43, so the PPA is still active),
`supervisord 4.2.5`, `mongod 7.0.39`, `mongosh 2.9.2`, `psql 14.23` —
all working.
- `/etc/apt/sources.list.d/git-core-ubuntu-ppa-noble.sources` still
present.

### On the Go pins

Verify these with `go version -m <binary>`, not by grepping for
`module@version` strings — the grep reports the *pre-replace* version
and makes a working pin look inert. Confirmed on the built binaries:

```
caddy      dep golang.org/x/text v0.38.0 => v0.39.0
mongodump  dep golang.org/x/text v0.39.0
```

## Scope

EE-only parts of this file — the Keycloak upgrade and the Temporal
builder — are handled separately in appsmith-ee#9404, matching the
existing split (#9060 for Keycloak, #9155 / #9052 for Temporal). Nothing
in this PR touches a region that does not exist in EE, so it should sync
cleanly.

A full base-image rebuild and rescan was done on the EE side with both
halves applied: **123 → 52 findings (−58%)**, high 42 → 20.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Updated build tooling and platform components to newer versions for
improved compatibility and maintenance.
* Refined MongoDB tooling builds with more consistent dependency
versions.
* Reduced unnecessary packages from runtime images after setup, helping
keep deployments leaner.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] [GitSync] Progress bar and error states on the connection and deploy tabs

3 participants