Skip to content

Commit

Permalink
Merge branch 'release' of github.com:appsmithorg/appsmith into feat/b…
Browse files Browse the repository at this point in the history
…ackup-restore-pg
  • Loading branch information
abhvsn committed Nov 13, 2024
2 parents a31fffe + d90faa2 commit 7933a05
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/config.json

Large diffs are not rendered by default.

31 changes: 30 additions & 1 deletion .github/workflows/sync-release-to-pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,36 @@ jobs:
- name: Push changes
if: env.MERGE_CONFLICT == 'false'
run: |
git push origin pg
set -e
git push origin pg || echo "PUSH_FAILURE=true" >> $GITHUB_ENV
- name: Capture push failure message
if: env.PUSH_FAILURE == 'true'
run: |
# Capture the last git error message
push_error_message=$(git push origin pg 2>&1 | tail -n 1)
echo "PUSH_ERROR_MESSAGE=$push_error_message" >> $GITHUB_ENV
- name: Notify on push failure
if: env.PUSH_FAILURE == 'true'
env:
SLACK_MESSAGE: "Push to pg branch failed: ${{ env.PUSH_ERROR_MESSAGE }}"
run: |
# Format the Slack message
slack_message="${{ env.SLACK_MESSAGE }}"
# Set the Slack message body with channel ID and text
body="$(jq -nc \
--arg channel C07JMLWEXDJ \
--arg text "$slack_message" \
'$ARGS.named'
)"
# Send the message to Slack
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"
- name: Notify on merge conflicts
if: env.MERGE_CONFLICT == 'true'
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/test-vulnerabilities-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,20 @@ jobs:
- name: Check for new vulnerabilities in Scout and Trivy files
if: always()
run: |
# Check if Scout vulnerabilities file is not empty
if [ -s "scout_new_vulnerabilities.csv" ]; then
# Check if Scout vulnerabilities file has data after the header
if [ $(tail -n +2 scout_new_vulnerabilities.csv | wc -l) -gt 0 ]; then
echo "Scout vulnerabilities detected."
cat scout_new_vulnerabilities.csv
exit 1 # Fail the job if data exists
else
echo "No new Scout vulnerabilities detected."
fi
# Check if Trivy vulnerabilities file is not empty
if [ -s "trivy_new_vulnerabilities.csv" ]; then
# Check if Trivy vulnerabilities file has data after the header
if [ $(tail -n +2 trivy_new_vulnerabilities.csv | wc -l) -gt 0 ]; then
echo "Trivy vulnerabilities detected."
cat trivy_new_vulnerabilities.csv
exit 1 # Fail the job if data exists
else
echo "No new Trivy vulnerabilities detected."
fi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const getSizes = (size: ButtonSizes, isIconButton?: boolean) => {
? "var(--ads-v2-spaces-2)"
: "var(--ads-v2-spaces-2) var(--ads-v2-spaces-3)"};
--button-gap: var(--ads-v2-spaces-2);
--button-min-width: 60px;
`,
md: css`
--button-font-weight: 600;
Expand All @@ -37,6 +38,7 @@ const getSizes = (size: ButtonSizes, isIconButton?: boolean) => {
? "var(--ads-v2-spaces-3)"
: "var(--ads-v2-spaces-3) var(--ads-v2-spaces-4)"};
--button-gap: var(--ads-v2-spaces-3);
--button-min-width: 80px;
`,
};

Expand Down Expand Up @@ -175,6 +177,8 @@ export const ButtonContent = styled.div<{
box-sizing: border-box;
padding: var(--button-padding);
border-radius: inherit;
min-width: ${({ isIconButton }) =>
isIconButton ? "unset" : "var(--button-min-width)"};
& > .${ButtonContentChildrenClassName} {
display: flex;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 4 additions & 10 deletions app/client/src/assets/icons/menu/js-function.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/client/src/ce/pages/Applications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export function LeftPaneSection(props: {
<Button
data-testid="t--workspace-new-workspace-auto-create"
isDisabled={props.isFetchingWorkspaces}
isIconButton
kind="tertiary"
onClick={createNewWorkspace}
startIcon="add-line"
Expand Down

0 comments on commit 7933a05

Please sign in to comment.