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

Dev #1

Merged
merged 141 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
88b987f
chore: removed unwanted metrics (#37052)
NilanshBansal Oct 24, 2024
23a5772
chore: Create query selector (#37018)
jsartisan Oct 24, 2024
0b93768
chore: refactor query duplication flow (#36915)
ayushpahwa Oct 24, 2024
1702304
chore: remove an extra eval cycle caused by the FETCH_FORM_CONFIG_SUC…
dvj1988 Oct 24, 2024
3d9d08a
chore: Adding new name editor for JS object in toolbar (#37056)
ankitakinger Oct 24, 2024
abc064b
chore: Update dispatch option (#37066)
sagar-qa007 Oct 25, 2024
8c200d6
chore: Add host explicitly for pg_isready signal at the startup (#37067)
abhvsn Oct 25, 2024
56ef430
chore: capture performance of parsing api response (#37081)
vsvamsi1 Oct 25, 2024
839e89e
chore: add new ADD_ACTION blueprint operation type (#37078)
KelvinOm Oct 25, 2024
cd26aed
chore: Updating types for support on EE (#37077)
ankitakinger Oct 25, 2024
2ad374a
fix: Change the value of pageOffset when enabling server side paginat…
phennapa-saeliw Oct 25, 2024
85226f4
chore: fix blueprint operation inconsistency for zone (#36980)
jsartisan Oct 25, 2024
e50ec78
chore: Reordering response pane tabs to default to schema tab (#37100)
ankitakinger Oct 25, 2024
602fe2b
test: fix tabs skipped test CE (#37023)
NandanAnantharamu Oct 25, 2024
7e1d18d
feat: Disabled datasource selector in query pages (#36940)
albinAppsmith Oct 25, 2024
4f3645b
fix: avoiding unnecessary update page layouts in js action update (#3…
sneha122 Oct 25, 2024
437f689
test: fix datepicker tests (#37042)
NandanAnantharamu Oct 26, 2024
836bf20
chore: Editable name refactor (#37069)
hetunandu Oct 28, 2024
5bca179
chore: Add JSObject creation flow metrics (#37064)
Oct 28, 2024
5e46804
fix: edge case to ignore parsing very large numbers (#37104)
rahulbarwal Oct 28, 2024
5da5a1e
chore: chore: add SVGR to appsmith-icon package, add processing for c…
KelvinOm Oct 28, 2024
64f1342
feat: remove release_table_cell_label_value_enabled feature flag (#37…
jacquesikot Oct 28, 2024
27bdeb9
chore: Distributed tracing for client (#37101)
nidhi-nair Oct 29, 2024
d6305ba
chore: chat widget polish fixes (#37124)
jsartisan Oct 29, 2024
e7e3d5e
chore: Removed manipulation for custom traceparent header (#37121)
nidhi-nair Oct 30, 2024
77db05e
chore: update inline code styles (#37136)
jsartisan Oct 30, 2024
502d21b
fix: fix appsmith-ce helm charts (#37137)
pratapaprasanna Oct 30, 2024
764d8f3
chore: fix prop name in options control (#37130)
jsartisan Oct 30, 2024
c6cf919
fix:- added elipsis and tooltip to the button content in table widget…
skjameela Oct 30, 2024
2cfe0b0
fix(#16584): filterTableData source of truth (#36849)
anasKhafaga Oct 30, 2024
5458e89
chore: fix code style in markdown (#37141)
jsartisan Oct 30, 2024
ff70e3a
fix: use feature flags when hide form control (#37143)
znamenskii-ilia Oct 30, 2024
38c9bc0
fix: datasource name not reflecting in schema pane (#37131)
albinAppsmith Oct 31, 2024
ee02c0f
chore: Query Editor full width option (#37138)
hetunandu Oct 31, 2024
a647668
base changes to populate system info to executeActionDTO (#37091)
nsarupr Oct 31, 2024
ac9e101
chore: Add Rename context menu (#37116)
hetunandu Oct 31, 2024
951be4a
feat: add react-compiler eslint plugin (#37139)
znamenskii-ilia Oct 31, 2024
9a9a7c4
fix: API Body format focus retention (#37150)
hetunandu Nov 1, 2024
29be788
ci: Removed port 22 from ted in ci-test (#37180)
yatinappsmith Nov 1, 2024
6c13656
CI: disabled ssh sockets which can interfear with ted (#37183)
yatinappsmith Nov 1, 2024
72670ae
feat: allow HTTP port customization in Helm chart (#36763)
damienleger Nov 1, 2024
f2c3125
chore: adds automation for request templates component (#37140)
rahulbarwal Nov 1, 2024
bc165cf
chore: decouple editor components (#37102)
vsvamsi1 Nov 4, 2024
c894350
chore: improved performance of getUnevaluatedDataTree (#37189)
vsvamsi1 Nov 4, 2024
c42be90
fix:query response count on error in QueryDebuggerTabs (#35363)
raushan3737 Nov 4, 2024
7ccb2ea
chore: Added instance identifiers to observation registry filter (#37…
nidhi-nair Nov 4, 2024
3bd61a2
chore: fixed type issue for moduleInstances (#37208)
vsvamsi1 Nov 5, 2024
6dc6194
chore: Add mongo data migration check before initializing the postgre…
abhvsn Nov 5, 2024
6660bd9
chore: New schema change for vulnerabilities test (#37204)
sagar-qa007 Nov 5, 2024
79a7979
fix: Paddings and scrolls in Plugin Action Editor (#37203)
hetunandu Nov 5, 2024
0b2cffb
test: fixed datepicker skipped tests set 2 (#37126)
NandanAnantharamu Nov 5, 2024
db713e9
chore: [Plugin Action Editor] Query Form evaluation (#37224)
hetunandu Nov 5, 2024
4e18827
fix: Only trigger restart if current user is an instance admin. (#37227)
trishaanand Nov 5, 2024
0288f5b
fix: Enhance URL handling in table by rendering URL column types with…
rahulbarwal Nov 6, 2024
3650796
fix: remove gap between tabs and list (#37242)
alex-golovanov Nov 6, 2024
756dc54
fix: skipped unnecessary code for js object updates (#37125)
sneha122 Nov 6, 2024
ff3f22e
chore: add pageId and applicationSlug to all traces (#37219)
dvj1988 Nov 6, 2024
b23ba1d
fix: JSON form validation trigger on child component update (#37128)
rahulbarwal Nov 6, 2024
1898478
chore: Adding the logic to fetch datasource structure for schema tab,…
ankitakinger Nov 6, 2024
ec246fd
fix: adjust spacing for filter/sort/pagination form controls (#37221)
alex-golovanov Nov 6, 2024
2f7e4e5
chore: Updating the copy in the action settings pane (#37260)
ankitakinger Nov 6, 2024
08ff8a9
fix: Using create action permission for schema generation (#37243)
trishaanand Nov 7, 2024
359e395
fix: False positive report GHSA-2jcg-qqmg-46q6 (#37269)
sharat87 Nov 7, 2024
0c406b0
feat: Enhance date validation logic and add tests for timePrecision i…
rahulbarwal Nov 7, 2024
ae7f8c7
feat: add unmount field validation logic to JSON form widget (#37220)…
rahulbarwal Nov 7, 2024
83e7558
chore: use spybean for SessionUserService and remove unused method fo…
nsarupr Nov 7, 2024
d00c15d
chore: new update for failing job on new vulnerabilities (#37273)
sagar-qa007 Nov 7, 2024
15824af
chore: Fix condition syntax in Dockerfile (#37270)
sharat87 Nov 7, 2024
879fb6d
chore: Adding step for install (#37276)
sagar-qa007 Nov 7, 2024
9ffcb64
chore: Add documentation for property pane config (#36880)
jsartisan Nov 7, 2024
1f25adc
chore: remove padding for anvil embed apps (#37173)
KelvinOm Nov 7, 2024
5e89aa0
chore: Opening response pane by default on query creation and for pag…
ankitakinger Nov 8, 2024
da6d497
fix: Support `NO_PROXY` for RTS-Temporal connection (#37284)
sharat87 Nov 8, 2024
806c710
chore: Modified default behaviour of consolidated API for missing url…
sondermanish Nov 8, 2024
f6787db
chore: Updating the UI for save and edit datasource button in API edi…
ankitakinger Nov 8, 2024
c2bf6c8
chore: add spotless for sql files for postgres (#37016)
AnaghHegde Nov 9, 2024
ec1d737
fix: Analytics identify user not called correctly (#37303)
hetunandu Nov 11, 2024
99841a3
Updated Label Config
Nikhil-Nandagopal Nov 11, 2024
5c075e8
fix: Adding permission check for the view tab on datasource editor (#…
ankitakinger Nov 11, 2024
d8d0d1a
feat: Custom Widget Editor integration with AI (#37257)
hetunandu Nov 11, 2024
8cbf8a5
fix: Implement dynamic dropdown width in SelectField in JSONForm (#37…
rahulbarwal Nov 12, 2024
b24b66f
chore: Add span for measuring performance of consolidated api (#37328)
rajatagrawal Nov 12, 2024
12ab7e6
fix: Bug where identifyUser not called in cloud (#37329)
hetunandu Nov 12, 2024
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)
ayushpahwa 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
aa8b153
chore: add sheet + sidebar (#37408)
jsartisan Nov 15, 2024
1c9e8c1
chore(deps): bump elliptic from 6.5.7 to 6.6.0 in /app/client (#37120)
dependabot[bot] Nov 15, 2024
d6f6920
chore: Remove `shelljs` from `appsmithctl` (#37401)
sharat87 Nov 15, 2024
5db7890
feat: pass workspace id to form control (#37413)
znamenskii-ilia Nov 15, 2024
952fb93
fix: Query Editor Routing in the redesign flow (#37411)
hetunandu Nov 16, 2024
cd3ed89
chore: Abstraction of Bottom View in Cypress (#37410)
hetunandu Nov 17, 2024
c70adf7
chore: Switch from OTLP HTTP/protobuf (New Relic) to HTTP/JSON (Grafa…
subhrashisdas Nov 18, 2024
bbf298a
test: added test for incompatible file (#37323)
NandanAnantharamu Nov 18, 2024
756eb6c
chore(deps): bump rollup from 2.79.1 to 2.79.2 in /app/client (#36611)
dependabot[bot] Nov 19, 2024
0aa8537
chore(deps): bump http-proxy-middleware from 2.0.6 to 2.0.7 in /app/c…
dependabot[bot] Nov 19, 2024
94a3add
chore(deps): bump cross-spawn from 7.0.3 to 7.0.5 in /app/client (#37…
dependabot[bot] Nov 19, 2024
afd2fcc
chore: Format appsmithctl code (#37532)
sharat87 Nov 19, 2024
72eb2cd
chore: Updating generate page interaction to show it in a modal follo…
ankitakinger Nov 19, 2024
3b87740
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
hajrezvan Nov 19, 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.

1 change: 1 addition & 0 deletions .github/workflows/ci-test-custom-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ jobs:
working-directory: "."
run: |
sudo /etc/init.d/ssh stop ;
sudo systemctl disable --now ssh.socket
mkdir -p ~/git-server/keys
ted_tag="${{inputs.ted_tag}}"
docker run --name test-event-driver -d -p 22:22 -p 5001:5001 -p 3306:3306 \
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/server-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,27 @@ on:
type: string
default: "false"

workflow_dispatch:
inputs:
pr:
description: "PR number for the workflow"
required: false
type: number
skip-tests:
description: "Skip tests flag"
required: false
type: string
default: "false"
branch:
description: "Branch for the build"
required: false
type: string
is-pg-build:
description: "Flag for PG build"
required: false
type: string
default: "false"

# Change the working directory for all the jobs in this workflow
defaults:
run:
Expand Down
101 changes: 21 additions & 80 deletions .github/workflows/test-vulnerabilities-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,85 +29,6 @@ jobs:
- name: Install pg
run: npm install pg

- name: Fetch vulnerability data
id: vulnerability_data
env:
DB_HOST: ${{ secrets.CYPRESS_DB_HOST }}
DB_NAME: ${{ secrets.CYPRESS_DB_NAME }}
DB_USER: ${{ secrets.CYPRESS_DB_USER }}
DB_PWD: ${{ secrets.CYPRESS_DB_PWD }}
uses: actions/github-script@v7
with:
script: |
const { Pool } = require("pg");
const fs = require('fs');
const path = require('path');
const { DB_HOST, DB_NAME, DB_USER, DB_PWD } = process.env;

const pool = new Pool({
user: DB_USER,
host: DB_HOST,
database: DB_NAME,
password: DB_PWD,
port: 5432,
connectionTimeoutMillis: 60000,
});

(async () => {
const client = await pool.connect();
try {
// Fetch vurn_id, product, scanner_tool, and priority from the database
const result = await client.query(`SELECT vurn_id, product, scanner_tool, priority FROM vulnerability_tracking`);
console.log('Vulnerability Data:', result.rows);

// Extract relevant fields from the result
const extractedData = result.rows.map(({ vurn_id, product, scanner_tool, priority }) => ({
vurn_id,
product,
scanner_tool,
priority
}));
console.log('Extracted Vulnerability Data:', extractedData);

// Prepare CSV content
const csvContent = [
['vurn_id', 'product', 'scanner_tool', 'priority'], // Add priority column header
...extractedData.map(row => [row.vurn_id, row.product, row.scanner_tool, row.priority])
]
.map(e => e.join(',')) // Join columns
.join('\n'); // Join rows

// Write to CSV file in workspace
const csvFilePath = path.join(process.env.GITHUB_WORKSPACE, 'vulnerability_base_data.csv');
fs.writeFileSync(csvFilePath, csvContent);
console.log(`Data successfully written to ${csvFilePath}`);

// Prepare TXT content
const txtContent = extractedData
.map(row => `vurn_id: ${row.vurn_id}, product: ${row.product}, scanner_tool: ${row.scanner_tool}, priority: ${row.priority}`)
.join('\n'); // Join rows

// Write to TXT file in workspace
const txtFilePath = path.join(process.env.GITHUB_WORKSPACE, 'vulnerability_base_data.txt');
fs.writeFileSync(txtFilePath, txtContent);
console.log(`Data successfully written to ${txtFilePath}`);

client.release();
return extractedData; // Return the extracted data
} catch (err) {
console.error('Error fetching vulnerability data:', err);
client.release();
}
})();

- name: Upload Vulnerability Data
uses: actions/upload-artifact@v3
with:
name: vulnerability-data
path: |
vulnerability_base_data.csv
vulnerability_base_data.txt

# Run Scout vulnerability data script
- name: Run Scout vulnerability data script
if: always()
Expand Down Expand Up @@ -140,4 +61,24 @@ jobs:
"${{ github.event.pull_request.number }}" \
"${{ github.event.pull_request.html_url }}" \
"${{ github.run_id }}"


- name: Check for new vulnerabilities in Scout and Trivy files
if: always()
run: |
# 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 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
37 changes: 22 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,10 @@ RUN <<END
exit 1
fi

if ! [ -f server/mongo/server.jar && -f server/pg/server.jar ]; then
if ! [ -f server/mongo/server.jar -a -f server/pg/server.jar ]; then
echo "Missing one or both server.jar files in the right place. Are you using the build script?" >&2
exit 1
fi

mkdir -p ./editor ./rts

# Ensure all *.sh scripts are executable.
find . -name node_modules -prune -or -type f -name '*.sh' -print -exec chmod +x '{}' ';'

# Ensure all custom command-scripts have executable permission
chmod +x /opt/bin/*
END

# Add client UI - Application Layer
Expand All @@ -39,13 +31,28 @@ COPY ./app/client/packages/rts/dist rts/

ENV PATH /opt/bin:/opt/appsmith/utils/node_modules/.bin:/opt/java/bin:/opt/node/bin:$PATH

RUN cd ./utils && npm install --only=prod && npm install --only=prod -g . && cd - \
&& chmod +x /opt/bin/* *.sh /watchtower-hooks/*.sh \
RUN <<END
set -o errexit

cd ./utils
npm install --only=prod
npm install --only=prod -g .
rm -rf utils/node_modules/resolve/test
cd -

# Make all `*.sh` files executable, excluding `node_modules`.
find . \( -name node_modules -prune \) -o \( -type f -name '*.sh' \) -exec chmod +x '{}' +

# Ensure all custom command-scripts have executable permission
chmod +x /opt/bin/* /watchtower-hooks/*.sh

# Disable setuid/setgid bits for the files inside container.
&& find / \( -path /proc -prune \) -o \( \( -perm -2000 -o -perm -4000 \) -print -exec chmod -s '{}' + \) || true \
&& mkdir -p /.mongodb/mongosh /appsmith-stacks \
&& chmod ugo+w /etc /appsmith-stacks \
&& chmod -R ugo+w /var/run /.mongodb /etc/ssl /usr/local/share
find / \( -path /proc -prune \) -o \( \( -perm -2000 -o -perm -4000 \) -exec chmod -s '{}' + \) || true

mkdir -p /.mongodb/mongosh /appsmith-stacks
chmod ugo+w /etc /appsmith-stacks
chmod -R ugo+w /var/run /.mongodb /etc/ssl /usr/local/share
END

LABEL com.centurylinklabs.watchtower.lifecycle.pre-check=/watchtower-hooks/pre-check.sh
LABEL com.centurylinklabs.watchtower.lifecycle.pre-update=/watchtower-hooks/pre-update.sh
Expand Down
2 changes: 2 additions & 0 deletions app/client/.eslintrc.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
],
"plugins": [
"react",
"eslint-plugin-react-compiler",
"@typescript-eslint",
"prettier",
"sort-destructure-keys",
Expand Down Expand Up @@ -41,6 +42,7 @@
"project": "./tsconfig.json"
},
"rules": {
"react-compiler/react-compiler": "warn",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe(
_.agHelper.AddDsl("uiBindDsl");
});
// Skipping tests due to issue - https://www.notion.so/appsmith/f353d8c6bd664f79ad858a42010cdfc8?v=f04cde23f6424aeb9d5a6e389cd172bd&p=0717892d43684c40bae4e2c87b8308cb&pm=s
it.skip("1. DatePicker-Text, Validate selectedDate functionality", function () {
it("1. DatePicker-Text, Validate selectedDate functionality", function () {
/**
* Bind DatePicker1 to Text for "selectedDate"
*/
Expand All @@ -25,9 +25,8 @@ describe(
* Set the Calender for today's date in DatePicker1
*/
cy.openPropertyPane("datepickerwidget");
cy.get(formWidgetsPage.defaultDate).click();
cy.ClearDateFooter();
cy.SetDateToToday();
cy.get(formWidgetsPage.datepickerWidget).first().click();
cy.get(formWidgetsPage.datepickerFooter).contains("Today").click();

cy.getDate(1, "YYYY-MM-DD").then((date) => {
cy.log("retured date" + date);
Expand All @@ -43,15 +42,15 @@ describe(
cy.get(publishPage.datepickerWidget + commonlocators.inputField)
.eq(0)
.click();
cy.ClearDateFooter();
cy.setDate(1, "ddd MMM DD YYYY");
cy.SetDateToToday();
cy.setDate(1, "ddd MMM DD YYYY", "v1");
cy.get(commonlocators.labelTextStyle).should("contain", nextDay);
});

cy.get(commonlocators.backToEditor).click();
});

it.skip("2. DatePicker1-text: Change the date in DatePicker1 and Validate the same in text widget", function () {
it("2. DatePicker1-text: Change the date in DatePicker1 and Validate the same in text widget", function () {
cy.openPropertyPane("textwidget");

/**
Expand All @@ -75,9 +74,9 @@ describe(
*/
cy.openPropertyPane("datepickerwidget");
cy.get(formWidgetsPage.defaultDate).click();
cy.ClearDateFooter();
cy.setDate(1, "ddd MMM DD YYYY");
// cy.get(commonlocators.onDateSelectedField).click();
cy.get(formWidgetsPage.dayPickerToday).click();
cy.get(formWidgetsPage.defaultDate).click();
cy.setDate(1);

/**
*Validate the date in text widget
Expand All @@ -89,7 +88,7 @@ describe(
});
});

it.skip("3. Validate the Date is not changed in DatePicker2", function () {
it("3. Validate the Date is not changed in DatePicker2", function () {
cy.log("dateDp2:" + dateDp2);
cy.get(formWidgetsPage.datepickerWidget + commonlocators.inputField)
.eq(1)
Expand Down Expand Up @@ -124,7 +123,7 @@ describe(
_.deployMode.NavigateBacktoEditor();
});

it.skip("5. Checks if on deselection of date triggers the onDateSelected action or not.", function () {
it("5. Checks if on deselection of date triggers the onDateSelected action or not.", function () {
/**
* bind datepicker to show a message "Hello" on date selected
*/
Expand All @@ -135,7 +134,6 @@ describe(
* checking if on selecting the date triggers the message
*/
cy.get(formWidgetsPage.datepickerWidget).first().click();
cy.ClearDateFooter();
cy.SetDateToToday();
cy.get(commonlocators.toastmsg).contains("hello");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import * as _ from "../../../../support/Objects/ObjectsCore";
import EditorNavigation, {
EntityType,
} from "../../../../support/Pages/EditorNavigation";
import BottomPane from "../../../../support/Pages/IDE/BottomPane";

let valueToTest: any, jsName: any;

describe(
Expand All @@ -17,7 +19,7 @@ describe(
_.dataManager.dsValues[_.dataManager.defaultEnviorment].mockApiUrl,
);
_.apiPage.RunAPI();
_.agHelper.GetNClick(_.dataSources._queryResponse("JSON"));
BottomPane.response.switchResponseType("JSON");
_.apiPage.ReadApiResponsebyKey("name");
cy.get("@apiResp").then((value) => {
valueToTest = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ return WhatTrumpThinks.run().then((res) => { showAlert("Today's Trump quote for
);
agHelper.ValidateToastMessage(
"will be executed automatically on page load",
); //Validating 'Run API on Page Load' is set once api response is mapped
); //Validating 'Run the API on Page Load' is set once api response is mapped
EditorNavigation.SelectEntityByName("Button1", EntityType.Widget);
propPane.EnterJSContext(
"onClick",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
import EditorNavigation, {
EntityType,
} from "../../../../support/Pages/EditorNavigation";
import BottomPane from "../../../../support/Pages/IDE/BottomPane";

let dsName: any;
let queryName: string;
Expand Down Expand Up @@ -43,7 +44,11 @@ describe(

EditorNavigation.SelectEntityByName(queryName, EntityType.Query);

agHelper.AssertElementVisibility(dataSources._queryResponse("TABLE"));
BottomPane.response.switchToResponseTab();

agHelper.AssertElementVisibility(
BottomPane.response.getResponseTypeSelector("TABLE"),
);
});
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe(
cy.xpath(queryLocators.querySettingsTab).click();

cy.get(".label-icon-wrapper")
.contains("Run query on page load")
.contains("Run the query on page load")
.parent()
.then(($el) => {
cy.window().then((win) => {
Expand All @@ -45,7 +45,7 @@ describe(
});

cy.get(".label-icon-wrapper")
.contains("Request confirmation before running query")
.contains("Request confirmation before running this query")
.parent()
.then(($el) => {
cy.window().then((win) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
homePage,
partialImportExport,
agHelper,
} from "../../../../support/Objects/ObjectsCore";

describe(
"Partial import App",
{ tags: ["@tag.ImportExport", "@tag.Git"] },
() => {
beforeEach(() => {
partialImportExport.OpenImportModal();
});

it("1. Verify Importing App into Page shows error message for incompatible json file ", () => {
homePage.ImportApp("PartialImportAppNegative.json", "", true);
agHelper.ValidateToastMessage(
"Unable to import artifact in workspace The file is not compatible with the current partial import operation. Please check the file and try again.. {1}",
);
});
},
);
Loading
Loading