Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d4007e1
chore: Switch server tracing configs to use OTEL (#37333)
nidhi-nair Nov 12, 2024
276b39b
feat: add CarbonConnect component (#37280)
znamenskii-ilia Nov 12, 2024
5af1bbe
feat: feature flag for eslint migration (#36543)
Nov 12, 2024
91cf54b
chore: Updating the settings icon throughout the product (#37330)
ankitakinger Nov 12, 2024
8773bdd
chore: Update ObservationHelper to allow sampling of spans (#37345)
nidhi-nair Nov 12, 2024
7ba83bf
chore: beautify the slack message for the sync to pg workflow message…
AnaghHegde Nov 13, 2024
f8f3edc
chore: Minor change for log in workflow (#37346)
sagar-qa007 Nov 13, 2024
c18d521
chore: add alerts for push failures in sync release to pg flow (#37355)
AnaghHegde Nov 13, 2024
074892f
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
27fef3e
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
4ff3a00
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
388c34f
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
e5acc63
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
1e72b33
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
fdfa6de
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
54d5a1a
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
ffef866
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
f029cf7
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
7384bde
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
2a66e80
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
38c2859
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
6b212f0
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
4fb1043
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
81c6a1e
Updated Label Config
Nikhil-Nandagopal Nov 13, 2024
df7521e
chore: Update ADS button min width (#37338)
hetunandu Nov 13, 2024
d90faa2
chore: Updating the function icon on JS editor (#37340)
ankitakinger Nov 13, 2024
748a5ec
chore: Remove `shelljs` use from backup command (#37356)
sharat87 Nov 14, 2024
035d315
fix: misc Button implementations not using isIconButton prop (#37382)
hetunandu Nov 14, 2024
7e209d2
chore: Remove unused `UserData.role` (#37381)
sharat87 Nov 14, 2024
a007bd0
chore: Remove unused JSON superuser signup route (#37378)
sharat87 Nov 14, 2024
fc9652c
chore: Handle changed NodeJS download links (#37341)
sharat87 Nov 14, 2024
8a45e5a
chore: update sync to pg workflow to use github pat for accessing the…
AnaghHegde Nov 14, 2024
17537e7
chore: Plugin Action Editor routing (#37389)
hetunandu Nov 14, 2024
b226301
chore: Remove `shelljs` from more `appsmithctl` commands (#37383)
sharat87 Nov 14, 2024
4f69389
chore: Fix role field serialization
sharat87 Nov 14, 2024
6d524c1
chore(deps): bump net.snowflake:snowflake-jdbc from 3.13.29 to 3.20.0…
dependabot[bot] Nov 15, 2024
3e67be8
Updated Label Config
Nikhil-Nandagopal Nov 15, 2024
6fc6327
fix: SMTP datasource should work without username and password (#37319)
shanid544 Nov 15, 2024
646f29f
chore: Remove unused JSON signup API handler (#37387)
sharat87 Nov 15, 2024
1deab1f
chore(deps): bump commons-io:commons-io from 2.13.0 to 2.17.0 in /app…
dependabot[bot] Nov 15, 2024
a601acf
chore: Fix string equality checks (#37397)
sharat87 Nov 15, 2024
77bae7c
chore: Don't break when Appsmtih API URL isn't set (#37309)
sharat87 Nov 15, 2024
6883e49
fix: added edge case fixes for consolidated api and publishing (#37399)
sondermanish Nov 15, 2024
7f2c4c6
chore(deps): Remove commons-io from /app/server/appsmith-server (#37403)
dependabot[bot] Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/config.json

Large diffs are not rendered by default.

35 changes: 32 additions & 3 deletions .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 https://${{ secrets.PAT_GITHUB }}@github.com/${{ github.repository }} HEAD: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 https://${{ secrets.PAT_GITHUB }}@github.com/${{ github.repository }} HEAD: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 All @@ -59,9 +88,9 @@ jobs:
CONFLICTING_COMMIT: ${{ env.CONFLICTING_COMMIT }}
run: |
# Prepare the message for Slack
message="Merge conflict detected while merging release into pg branch. Conflicted commits:\n"
message="Merge conflict detected while merging release into pg branch. Conflicted commits:"
commit_url="$REPOSITORY_URL/commit/$CONFLICTING_COMMIT"
message+="$commit_url\n"
message+="$commit_url"

# Send the message to Slack
# This unwieldy horror of a sed command, converts standard Markdown links to Slack's unwieldy link syntax.
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
3 changes: 0 additions & 3 deletions app/client/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,6 @@ Cypress.Commands.add("SignupFromAPI", (uname, pword) => {
cy.request({
method: "POST",
url: "api/v1/users",
headers: {
"content-type": "application/json",
},
followRedirect: false,
form: true,
body: {
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function CodeBlock({ code }: CodeBlockProps) {
}}
>
<Code>{code}</Code>
<Button kind="tertiary" startIcon="copy-control" />
<Button isIconButton kind="tertiary" startIcon="copy-control" />
</Wrapper>
);
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7311,7 +7311,7 @@
"controlType": "OPEN_CONFIG_PANEL",
"buttonConfig": {
"label": "Configure",
"icon": "settings-2-line"
"icon": "settings-v3"
},
"label": "Configure menu items",
"isBindProperty": false,
Expand Down Expand Up @@ -47874,7 +47874,7 @@
"controlType": "OPEN_CONFIG_PANEL",
"buttonConfig": {
"label": "Configure",
"icon": "settings-2-line"
"icon": "settings-v3"
},
"label": "Configure menu items",
"isBindProperty": false,
Expand Down
9 changes: 9 additions & 0 deletions app/client/packages/rts/src/constants/routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const BASE_API_URL = "http://localhost:8091";

export const RTS_BASE_PATH = "/rts";
export const RTS_BASE_API_PATH = "/rts-api/v1";
export const RTS_BASE_API_URL = `${BASE_API_URL}${RTS_BASE_API_PATH}`;

export const BASE_APPSMITH_API_URL =
process.env.APPSMITH_API_BASE_URL || "http://localhost:8080/api/v1";
export const INTERNAL_BASE_URL = "http://localhost:8080/internal/v1";
4 changes: 2 additions & 2 deletions app/client/packages/rts/src/middlewares/socket-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Socket } from "socket.io";
import log from "loglevel";
import axios from "axios";

const API_BASE_URL = process.env.APPSMITH_API_BASE_URL;
import { BASE_APPSMITH_API_URL } from "@constants/routes";

export async function tryAuth(socket: Socket) {
/* ********************************************************* */
Expand Down Expand Up @@ -35,7 +35,7 @@ export async function tryAuth(socket: Socket) {
try {
response = await axios.request({
method: "GET",
url: API_BASE_URL + "/users/me",
url: BASE_APPSMITH_API_URL + "/users/me",
headers: {
Cookie: sessionCookie,
},
Expand Down
11 changes: 1 addition & 10 deletions app/client/packages/rts/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,14 @@ import ast_routes from "./routes/ast_routes";
import dsl_routes from "./routes/dsl_routes";
import health_check_routes from "./routes/health_check_routes";

const RTS_BASE_PATH = "/rts";

export const RTS_BASE_API_PATH = "/rts-api/v1";
import { RTS_BASE_PATH, RTS_BASE_API_PATH } from "@constants/routes";

// Setting the logLevel for all log messages
const logLevel: LogLevelDesc = (process.env.APPSMITH_LOG_LEVEL ||
"debug") as LogLevelDesc;

log.setLevel(logLevel);

const API_BASE_URL = process.env.APPSMITH_API_BASE_URL;

if (API_BASE_URL == null || API_BASE_URL === "") {
log.error("Please provide a valid value for `APPSMITH_API_BASE_URL`.");
process.exit(1);
}

const APPSMITH_RTS_PORT = process.env.APPSMITH_RTS_PORT || 8091;

//Disable x-powered-by header to prevent information disclosure
Expand Down
3 changes: 2 additions & 1 deletion app/client/packages/rts/src/test/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import app, { RTS_BASE_API_PATH } from "../server";
import app from "../server";
import { RTS_BASE_API_PATH } from "@constants/routes";
import supertest from "supertest";

const singleScript = {
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/IDE/Components/ToolbarSettingsPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ToolbarSettingsPopover = (props: Props) => {
<ToggleButton
data-testid={props.dataTestId}
disabled={props.disabled}
icon="settings-2-line"
icon="settings-v3"
isSelected={isOpen}
onClick={handleButtonClick}
size="md"
Expand Down
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.
Loading