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

27/08 Daily Promotion #35891

Merged
merged 42 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6c8d4a9
fix: Fixes currentRow calculation logic in table(property pane) (#35390)
rahulbarwal Aug 20, 2024
cd80904
chore: Run a local server with docker compose while running from yarn…
sagar-qa007 Aug 20, 2024
de8caad
feat: Updates for accounting Section and Zone changes (#35753)
albinAppsmith Aug 20, 2024
d1de33b
chore: Add cleanup and update stage for tenant at the server restart …
abhvsn Aug 20, 2024
94a732b
chore: Add adhoc image builder (#35791)
abhvsn Aug 20, 2024
5268164
chore: preStop scripts (#35785)
ApekshaBhosale Aug 21, 2024
3e38ae5
chore: Do not mark User testing PRs as stale (#35806)
hetunandu Aug 21, 2024
98f7480
chore: Add metrics to pages sub-components (#35723)
subrata71 Aug 21, 2024
5dcdeaf
feat: Removed some unused or expired md files and fix for dynamic im…
albinAppsmith Aug 21, 2024
3342d5c
Updated Label Config
Nikhil-Nandagopal Aug 21, 2024
4740863
feat: Updated subtitle position to bottom (#35789)
albinAppsmith Aug 22, 2024
723ad29
chore: Cleanup Redux Actions file (#35720)
hetunandu Aug 22, 2024
ae4190f
chore: add latestDeployPreview command to index.d.ts file in cypress …
ashit-rath Aug 22, 2024
f91073e
chore: fix zone dotted highlight is not showing up on new anvil apps …
jsartisan Aug 22, 2024
26e1c88
chore: move anvil widgets to wds (#35812)
znamenskii-ilia Aug 22, 2024
87d22ca
chore: created shared utils package and moved objectKeys function to …
AmanAgarwal041 Aug 22, 2024
349ddb0
feat: Action redesign: updated Anthropic plugin config (#35754)
albinAppsmith Aug 23, 2024
bac1350
fix: Add mode property to forkApplicationSaga (#35841)
rahulbarwal Aug 23, 2024
0015466
feat: Update height of QUERY_DYNAMIC_TEXT to 200px fixed (#35838)
albinAppsmith Aug 23, 2024
28ac53b
fix: Ensure Select Column Displays Data When Options Are Not Set (#35…
jacquesikot Aug 23, 2024
9b40629
fix: moved js filter to mongoDB (#35826)
sneha122 Aug 23, 2024
4e68f16
fix: eslint plugin readme updated (#35858)
AmanAgarwal041 Aug 23, 2024
9889117
chore: adding eslint rules to warn new object and function props (#35…
vsvamsi1 Aug 24, 2024
2af307f
fix: Added back the pencil icon for editable text component (#35855)
albinAppsmith Aug 26, 2024
4d7db9e
chore: Revert "fix: Add mode property to forkApplicationSaga" (#35873)
brayn003 Aug 26, 2024
eda63fe
chore: JSONform - useRegisterFieldValidity remove unused dependency i…
ashit-rath Aug 26, 2024
81a710a
fix: Pencil icon appearing in application name (#35885)
albinAppsmith Aug 26, 2024
0a3492f
feat: Action redesign: Updating Mongo plugin form config (#35883)
ankitakinger Aug 27, 2024
c79b62e
ci: sync release to pg branch (#35888)
AnaghHegde Aug 27, 2024
68e1bcf
chore: Input morphing (#35845)
jsartisan Aug 27, 2024
55330df
ci: sync release changes to pg (#35893)
AnaghHegde Aug 27, 2024
9f387d5
fix: Correct Select Widget Mapping for Dynamic Label and Value Keys (…
jacquesikot Aug 27, 2024
5b33768
ci: Updated server logs in CI (#35896)
sagar-qa007 Aug 27, 2024
74685e3
ci: update logic for handling the merge commits (#35898)
AnaghHegde Aug 27, 2024
cfab57f
ci: Enable Cypress run for master based branches (#35897)
yatinappsmith Aug 27, 2024
5aef087
Revert "feat: Action redesign: Updating Mongo plugin form config" (#3…
ankitakinger Aug 27, 2024
84fbdde
ci: use git merge for syncing changes from release (#35902)
AnaghHegde Aug 27, 2024
7053632
ci: merge release to pg (#35905)
AnaghHegde Aug 27, 2024
cbd7ccc
fix: updated the regex expression to correctly identify the table nam…
Naveen-Goud Aug 27, 2024
9d9524c
Merge branch 'master' of https://github.com/appsmithorg/appsmith into…
albinAppsmith Aug 27, 2024
9da8c49
chore: removed sanitise action functionality from actions span (#35884)
sneha122 Aug 27, 2024
c567b13
Merge pull request #35909 from appsmithorg/conflict/ads/editor-text
yatinappsmith Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/config.json

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions .github/workflows/ad-hoc-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Ad-hoc Docker Image

on:
# This line enables manual triggering of this workflow.
workflow_dispatch:
inputs:
branch:
description: Branch to build image out of
required: false
type: string
default: master
tag:
description: Tag to use for image
required: false
type: string
default: ad-hoc

jobs:
server-build:
name: server-build
uses: ./.github/workflows/server-build.yml
secrets: inherit
with:
branch: ${{ inputs.branch }}
skip-tests: true

client-build:
name: client-build
uses: ./.github/workflows/client-build.yml
secrets: inherit
with:
branch: ${{ inputs.branch }}

rts-build:
name: rts-build
uses: ./.github/workflows/rts-build.yml
secrets: inherit
with:
branch: ${{ inputs.branch }}

package:
needs: [server-build, client-build, rts-build]
runs-on: ubuntu-latest
# Set permissions since we're using OIDC token authentication between Depot and GitHub
permissions:
contents: read
id-token: write

steps:
# Check out the specified branch in case this workflow is called by another workflow
- name: Checkout the specified branch
uses: actions/checkout@v4
with:
fetch-tags: true
ref: ${{ inputs.branch }}

- name: Download the react build artifact
uses: actions/download-artifact@v4
with:
name: client-build
path: app/client

- name: Unpack the client build artifact
if: steps.run_result.outputs.run_result != 'success'
run: |
mkdir -p app/client/build
tar -xvf app/client/build.tar -C app/client/build

- name: Download the server build artifact
uses: actions/download-artifact@v4
with:
name: server-build
path: app/server/dist

- name: Download the rts build artifact
uses: actions/download-artifact@v4
with:
name: rts-dist
path: app/client/packages/rts/dist

- name: Untar the rts folder
run: |
tar -xvf app/client/packages/rts/dist/rts-dist.tar -C app/client/packages/rts/
echo "Cleaning up the tar files"
rm app/client/packages/rts/dist/rts-dist.tar

- name: Generate info.json
run: |
if [[ -f scripts/generate_info_json.sh ]]; then
scripts/generate_info_json.sh
fi

- name: Set up Depot CLI
uses: depot/setup-action@v1

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push environment specific image to Docker Hub
if: success()
uses: depot/build-push-action@v1
with:
context: .
push: true
platforms: linux/arm64,linux/amd64
build-args: |
APPSMITH_SEGMENT_CE_KEY=${{ secrets.APPSMITH_SEGMENT_CE_KEY }}
BASE=${{ vars.DOCKER_HUB_ORGANIZATION }}/base-${{ vars.EDITION }}:nightly
tags: |
${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-${{ vars.EDITION }}:${{ inputs.tag }}
15 changes: 14 additions & 1 deletion .github/workflows/ci-test-custom-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,20 @@ jobs:
name: server-logs-${{ matrix.job }}
path: app/server/server-logs.log
overwrite: true


- name: Collect docker log as file
if: always()
run: |
docker logs appsmith >& app/server/docker-logs.log

- name: Upload server docker logs bundle on failure
uses: actions/upload-artifact@v4
if: always()
with:
name: docker-logs-${{ matrix.job }}
path: app/server/docker-logs.log
overwrite: true

# Set status = success
- name: Save the status of the run
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
branches:
- release
- master
- pg
types: [ labeled, synchronize ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
close-issue-message: 'This issue has been closed because of inactivity.'
close-pr-message: 'This PR has been closed because of inactivity.'
only-issue-labels: 'Critical'
exempt-pr-labels: 'Dont merge,WIP'
exempt-pr-labels: 'Dont merge,WIP,User Testing'


82 changes: 82 additions & 0 deletions .github/workflows/sync-release-to-pg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Merge release to pg

on:
push:
branches:
- release # Trigger on push to the release branch

jobs:
merge-release-to-pg:
runs-on: ubuntu-latest

steps:
- name: Checkout release branch
uses: actions/checkout@v3
with:
ref: release # Checkout the release branch

- name: Fetch all branches
run: git fetch origin pg

- name: Checkout pg branch
run: git checkout pg

- name: Merge release to pg
id: merge_commits
run: |

PG_HEAD=$(git rev-parse pg)
RELEASE_HEAD=$(git rev-parse release)

echo "PG_HEAD=$PG_HEAD"
echo "RELEASE_HEAD=$RELEASE_HEAD"

# Checkout the pg branch
git checkout pg

# Attempt to merge release into pg
if ! git merge release; then
echo "Merge conflict detected during merge"

# Capture the conflicting commit SHAs (both HEAD of pg and the merge commit from release)
CONFLICTING_COMMIT=$(git log -1 --pretty=format:"%H")
echo "CONFLICTING_COMMIT=$CONFLICTING_COMMIT" >> $GITHUB_ENV

git merge --abort
echo "MERGE_CONFLICT=true" >> $GITHUB_ENV
else
echo "MERGE_CONFLICT=false" >> $GITHUB_ENV
fi

- name: Push changes
if: env.MERGE_CONFLICT == 'false'
run: |
git push origin pg

- name: Notify on merge conflicts
if: env.MERGE_CONFLICT == 'true'
env:
REPOSITORY_URL: ${{ github.repositoryUrl }}
CONFLICTING_COMMIT: ${{ env.CONFLICTING_COMMIT }}
run: |
# Prepare the message for Slack
message="Merge conflict detected while merging release into pg branch. Conflicted commits:\n"
commit_url="$REPOSITORY_URL/commit/$CONFLICTING_COMMIT"
message+="$commit_url\n"

# Send the message to Slack
# This unwieldy horror of a sed command, converts standard Markdown links to Slack's unwieldy link syntax.
slack_message="$(echo "$message" | sed -E 's/\[([^]]+)\]\(([^)]+)\)/<\2|\1>/g')"

# This is the ChannelId of the proj postgres channel.
body="$(jq -nc \
--arg channel C06Q3A97USE \
--arg text "$slack_message" \
'$ARGS.named'
)"

curl --version
curl -v https://slack.com/api/chat.postMessage \
--header 'Authorization: Bearer ${{ secrets.SLACK_APPSMITH_ALERTS_TOKEN }}' \
--header 'Content-Type: application/json; charset=utf-8' \
--data-raw "$body"
97 changes: 48 additions & 49 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ app/client/tsconfig.path.json @KelvinOm
# WDS team
app/client/packages/design-system/* @appsmithorg/wds-team
app/client/packages/storybook/* @appsmithorg/wds-team
app/client/src/widgets/wds/* @appsmithorg/wds-team
app/client/src/widgets/wds/* @appsmithorg/wds-team @appsmithorg/anvil-team

# Anvil-team
app/client/src/layoutSystems/anvil/* @appsmithorg/anvil-team
app/client/src/widgets/anvil/* @appsmithorg/anvil-team

# App viewers pod
app/client/src/widgets/* @appsmithorg/app-viewers
Expand Down Expand Up @@ -53,52 +52,52 @@ app/server/appsmith-server/src/main/java/com/appsmith/server/services/FeatureFla
app/server/appsmith-server/src/test/java/com/appsmith/server/services/FeatureFlagServiceTest.java @nilanshbansal

# UI Builders Pod
app/client/generators/* @appsmithorg/ui-builders
app/client/src/actions/autoHeightActions.ts @appsmithorg/ui-builders
app/client/src/actions/autoLayoutActions.ts @appsmithorg/ui-builders
app/client/src/actions/canvasSelectionActions.ts @appsmithorg/ui-builders
app/client/src/actions/reflowActions.ts @appsmithorg/ui-builders
app/client/src/actions/widgetSelectionActions.ts @appsmithorg/ui-builders
app/client/src/components/propertyControls/* @appsmithorg/ui-builders
app/client/src/layoutSystems/* @appsmithorg/ui-builders
app/client/src/pages/Editor/Canvas.tsx @appsmithorg/ui-builders
app/client/src/pages/Editor/CanvasLayoutConversion/* @appsmithorg/ui-builders
app/client/src/pages/Editor/PropertyPane/* @appsmithorg/ui-builders
app/client/src/pages/Editor/WidgetsEditor/* @appsmithorg/ui-builders
app/client/src/reducers/entityReducers/autoHeightReducers/* @appsmithorg/ui-builders
app/client/src/reducers/entityReducers/canvasWidgetsReducer.ts @appsmithorg/ui-builders
app/client/src/reflow/* @appsmithorg/ui-builders
app/client/src/sagas/AutoLayoutUpdateSagas.tsx @appsmithorg/ui-builders
app/client/src/sagas/CanvasSagas/* @appsmithorg/ui-builders
app/client/src/sagas/ReplaySaga.ts @appsmithorg/ui-builders
app/client/src/sagas/SnapshotSagas.ts @appsmithorg/ui-builders
app/client/src/sagas/WidgetAdditionSagas.ts @appsmithorg/ui-builders
app/client/src/sagas/WidgetBlueprintSagas.ts @appsmithorg/ui-builders
app/client/src/sagas/WidgetDeletionSagas.ts @appsmithorg/ui-builders
app/client/src/sagas/WidgetOperationSagas.tsx @appsmithorg/ui-builders
app/client/src/sagas/WidgetOperationUtils.ts @appsmithorg/ui-builders
app/client/src/sagas/WidgetSelectUtils.ts @appsmithorg/ui-builders
app/client/src/sagas/WidgetSelectionSagas.ts @appsmithorg/ui-builders
app/client/src/sagas/autoHeightSagas/* @appsmithorg/ui-builders
app/client/src/sagas/layoutConversionSagas.ts @appsmithorg/ui-builders
app/client/src/selectors/autoHeightSelectors.ts @appsmithorg/ui-builders
app/client/src/selectors/autoLayoutSelectors.tsx @appsmithorg/ui-builders
app/client/src/selectors/canvasSelectors.ts @appsmithorg/ui-builders
app/client/src/selectors/widgetSelectors.ts @appsmithorg/ui-builders
app/client/src/utils/autoHeight/* @appsmithorg/ui-builders
app/client/src/utils/hooks/autoHeightUIHooks.ts @appsmithorg/ui-builders
app/client/src/utils/hooks/useAllowEditorDragToSelect.ts @appsmithorg/ui-builders
app/client/src/utils/hooks/useClickToSelectWidget.tsx @appsmithorg/ui-builders
app/client/src/utils/hooks/useDynamicAppLayout.tsx @appsmithorg/ui-builders
app/client/src/utils/hooks/usePositionedContainerZIndex.ts @appsmithorg/ui-builders
app/client/src/utils/hooks/useReflow.ts @appsmithorg/ui-builders
app/client/src/utils/hooks/useWidgetSelection.ts @appsmithorg/ui-builders
app/client/src/widgets/BaseWidget.tsx @appsmithorg/ui-builders
app/client/src/widgets/BaseWidgetHOC/* @appsmithorg/ui-builders
app/client/src/widgets/CanvasWidget.tsx @appsmithorg/ui-builders
app/client/src/widgets/ContainerWidget/* @appsmithorg/ui-builders
app/client/src/widgets/MetaHOC.tsx @appsmithorg/ui-builders
app/client/src/widgets/withWidgetProps.tsx @appsmithorg/ui-builders
app/client/generators/* @appsmithorg/anvil-team
app/client/src/actions/autoHeightActions.ts @appsmithorg/anvil-team
app/client/src/actions/autoLayoutActions.ts @appsmithorg/anvil-team
app/client/src/actions/canvasSelectionActions.ts @appsmithorg/anvil-team
app/client/src/actions/reflowActions.ts @appsmithorg/anvil-team
app/client/src/actions/widgetSelectionActions.ts @appsmithorg/anvil-team
app/client/src/components/propertyControls/* @appsmithorg/anvil-team
app/client/src/layoutSystems/* @appsmithorg/anvil-team
app/client/src/pages/Editor/Canvas.tsx @appsmithorg/anvil-team
app/client/src/pages/Editor/CanvasLayoutConversion/* @appsmithorg/anvil-team
app/client/src/pages/Editor/PropertyPane/* @appsmithorg/anvil-team
app/client/src/pages/Editor/WidgetsEditor/* @appsmithorg/anvil-team
app/client/src/reducers/entityReducers/autoHeightReducers/* @appsmithorg/anvil-team
app/client/src/reducers/entityReducers/canvasWidgetsReducer.ts @appsmithorg/anvil-team
app/client/src/reflow/* @appsmithorg/anvil-team
app/client/src/sagas/AutoLayoutUpdateSagas.tsx @appsmithorg/anvil-team
app/client/src/sagas/CanvasSagas/* @appsmithorg/anvil-team
app/client/src/sagas/ReplaySaga.ts @appsmithorg/anvil-team
app/client/src/sagas/SnapshotSagas.ts @appsmithorg/anvil-team
app/client/src/sagas/WidgetAdditionSagas.ts @appsmithorg/anvil-team
app/client/src/sagas/WidgetBlueprintSagas.ts @appsmithorg/anvil-team
app/client/src/sagas/WidgetDeletionSagas.ts @appsmithorg/anvil-team
app/client/src/sagas/WidgetOperationSagas.tsx @appsmithorg/anvil-team
app/client/src/sagas/WidgetOperationUtils.ts @appsmithorg/anvil-team
app/client/src/sagas/WidgetSelectUtils.ts @appsmithorg/anvil-team
app/client/src/sagas/WidgetSelectionSagas.ts @appsmithorg/anvil-team
app/client/src/sagas/autoHeightSagas/* @appsmithorg/anvil-team
app/client/src/sagas/layoutConversionSagas.ts @appsmithorg/anvil-team
app/client/src/selectors/autoHeightSelectors.ts @appsmithorg/anvil-team
app/client/src/selectors/autoLayoutSelectors.tsx @appsmithorg/anvil-team
app/client/src/selectors/canvasSelectors.ts @appsmithorg/anvil-team
app/client/src/selectors/widgetSelectors.ts @appsmithorg/anvil-team
app/client/src/utils/autoHeight/* @appsmithorg/anvil-team
app/client/src/utils/hooks/autoHeightUIHooks.ts @appsmithorg/anvil-team
app/client/src/utils/hooks/useAllowEditorDragToSelect.ts @appsmithorg/anvil-team
app/client/src/utils/hooks/useClickToSelectWidget.tsx @appsmithorg/anvil-team
app/client/src/utils/hooks/useDynamicAppLayout.tsx @appsmithorg/anvil-team
app/client/src/utils/hooks/usePositionedContainerZIndex.ts @appsmithorg/anvil-team
app/client/src/utils/hooks/useReflow.ts @appsmithorg/anvil-team
app/client/src/utils/hooks/useWidgetSelection.ts @appsmithorg/anvil-team
app/client/src/widgets/BaseWidget.tsx @appsmithorg/anvil-team
app/client/src/widgets/BaseWidgetHOC/* @appsmithorg/anvil-team
app/client/src/widgets/CanvasWidget.tsx @appsmithorg/anvil-team
app/client/src/widgets/ContainerWidget/* @appsmithorg/anvil-team
app/client/src/widgets/MetaHOC.tsx @appsmithorg/anvil-team
app/client/src/widgets/withWidgetProps.tsx @appsmithorg/anvil-team

# Git Pod
app/server/appsmith-git/ @appsmithorg/git-be-reviewers
Expand Down Expand Up @@ -199,7 +198,7 @@ app/client/src/ce/JSFunctionExecutionSaga.ts @ApekshaBhosale
app/client/src/ee/JSFunctionExecutionSaga.ts @ApekshaBhosale

# Enterprise Success
app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/**/* @sharat87 @vivonk @abhvsn
app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/**/* @sharat87 @abhvsn

# DevOps & Shri
deploy/**/* @sharat87 @pratapaprasanna
Expand Down
17 changes: 16 additions & 1 deletion app/client/.eslintrc.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@
"sort-destructure-keys",
"cypress",
"testing-library",
"jest"
"jest",
"@appsmith",
"react-perf"
],
"extends": [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
"plugin:testing-library/react",
"plugin:react-hooks/recommended",
"plugin:@appsmith/recommended",
"plugin:react-perf/recommended",
// Note: Please keep this as the last config to make sure that this (and by extension our .prettierrc file) overrides all configuration above it
// https://www.npmjs.com/package/eslint-plugin-prettier#recommended-configuration
"plugin:prettier/recommended"
Expand Down Expand Up @@ -65,6 +69,17 @@
],
"no-console": "error",
"no-debugger": "error",
"react-perf/jsx-no-new-array-as-prop": "warn",
"react-perf/jsx-no-new-function-as-prop": "warn",
"react-perf/jsx-no-jsx-as-prop": "warn",
"react-perf/jsx-no-new-object-as-prop": [
"warn",
{
// we are disabling this rule here for native component since it won't make much difference in performance
// we want to target react components more since there is possibility they can be pure components and new istance props should be avoided for them
"nativeAllowList": "all"
}
],
"@typescript-eslint/no-restricted-imports": [
"error",
{
Expand Down
Loading
Loading