Skip to content

Commit 0f49354

Browse files
author
Rishabh-Rathod
committed
Merge branch 'release' into feature/add-s3-crud-support
2 parents e16e353 + 17edf11 commit 0f49354

File tree

43 files changed

+500
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+500
-165
lines changed

app/client/.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
"react/jsx-sort-props": "error",
3636
"react/jsx-fragments": "error",
3737
"react/jsx-no-useless-fragment": "error",
38-
"sort-destructure-keys/sort-destructure-keys": ["error", {"caseSensitive": false}]
38+
"sort-destructure-keys/sort-destructure-keys": ["error", {"caseSensitive": false}],
39+
"no-console": ["error", {
40+
"allow": ["error"]
41+
}]
3942
},
4043
"settings": {
4144
"react": {

app/client/cypress/integration/Smoke_TestSuite/ServerSideTests/Datasources/MockDatasource_spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ describe("Create, test, save then delete a user mock datasource", function() {
88
it("Create, test, save then delete a user mock datasource", function() {
99
cy.NavigateToDatasourceEditor();
1010
cy.get(datasource.mockUserDatabase).click();
11+
cy.wait(1000);
1112
cy.get(datasource.mockUserDatasources)
1213
.last()
1314
.click({ force: true });
@@ -18,6 +19,7 @@ describe("Create, test, save then delete a user mock datasource", function() {
1819
it("Create with whitespaces in host address and database name, test, save then delete a user mock datasource", function() {
1920
cy.NavigateToDatasourceEditor();
2021
cy.get(datasource.mockUserDatabase).click();
22+
cy.wait(1000);
2123
cy.get(datasource.mockUserDatasources)
2224
.last()
2325
.click({ force: true });

app/client/cypress/locators/DatasourcesEditor.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"basic": "//div[contains(@class,'option') and text()='Basic']",
4848
"basicUsername": "input[name='authentication.username']",
4949
"basicPassword": "input[name='authentication.password']",
50-
"mockUserDatabase":"div[id='mock-database'] span:contains('users')",
51-
"mockUserDatasources":".t--datasource-name:contains('USERS - Mock')"
50+
"mockUserDatabase":"div[id='mock-database'] span:contains('Users')",
51+
"mockUserDatasources":".t--datasource-name:contains('Users')"
5252
}

app/client/src/api/ApiUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ export const apiFailureResponseInterceptor = (error: any) => {
139139
// Something happened in setting up the request that triggered an Error
140140
log.error("Error", error.message);
141141
}
142-
console.log(error.config);
142+
log.debug(error.config);
143143
return Promise.resolve(error);
144144
};

app/client/src/comments/AppComments/AppCommentsFilterPopover.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
} from "actions/commentActions";
1818

1919
import "@blueprintjs/popover2/lib/css/blueprint-popover2.css";
20+
import log from "loglevel";
2021

2122
export const options = [
2223
{ label: "Show all comments", value: "show-all" },
@@ -49,7 +50,7 @@ const useSetResolvedFilterFromQuery = () => {
4950
useEffect(() => {
5051
const url = new URL(window.location.href);
5152
const searchParams = url.searchParams;
52-
console.log(window.location.href, "window.location.href");
53+
log.debug(window.location.href, "window.location.href");
5354
if (searchParams.get("isResolved")) {
5455
dispatch(setShouldShowResolvedComments(true));
5556
}

app/client/src/components/ads/Button.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ type ButtonProps = CommonComponentProps & {
6262
tag?: "a" | "button";
6363
type?: "submit" | "reset" | "button";
6464
target?: string;
65+
width?: string;
6566
};
6667

6768
const defaultProps = {
@@ -292,7 +293,8 @@ const btnFontStyles = (props: ThemeProp & ButtonProps): BtnFontType => {
292293
};
293294

294295
const ButtonStyles = css<ThemeProp & ButtonProps>`
295-
width: ${(props) => (props.fill ? "100%" : "auto")};
296+
width: ${(props) =>
297+
props.width ? props.width : props.fill ? "100%" : "auto"};
296298
height: ${(props) => btnFontStyles(props).height}px;
297299
border: none;
298300
text-decoration: none;

app/client/src/components/designSystems/appsmith/IconButtonComponent.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ function IconButtonComponent(props: IconButtonComponentProps) {
226226
* we will use that for the dimension of the widget
227227
*/
228228
const dimension = useMemo(() => {
229-
console.log({ width, height });
230229
if (width > height) {
231230
return height - WIDGET_PADDING * 2;
232231
}

app/client/src/components/designSystems/appsmith/TableComponent/CascadeFields.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function RenderOptions(props: {
215215
trigger: {
216216
content: (
217217
<DropdownTrigger className={props.className}>
218-
<AutoToolTipComponentWrapper isCellVisible title={selectedValue}>
218+
<AutoToolTipComponentWrapper title={selectedValue}>
219219
{selectedValue}
220220
</AutoToolTipComponentWrapper>
221221
<Icon color={Colors.SLATE_GRAY} icon="caret-down" iconSize={16} />

app/client/src/components/designSystems/blueprint/InputComponent.test.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import InputComponent from "components/designSystems/blueprint/InputComponent";
55
import { Provider } from "react-redux";
66
import ReactDOM from "react-dom";
77
import { act } from "react-dom/test-utils";
8+
import { noop } from "utils/AppsmithUtils";
89

910
let container: HTMLDivElement | null;
1011

@@ -30,15 +31,9 @@ describe("<InputComponent />", () => {
3031
isLoading={false}
3132
label="label"
3233
multiline
33-
onCurrencyTypeChange={(code?: string) => {
34-
console.log(code);
35-
}}
36-
onFocusChange={(state: boolean) => {
37-
console.log(state);
38-
}}
39-
onValueChange={(valueAsString: string) => {
40-
console.log(valueAsString);
41-
}}
34+
onCurrencyTypeChange={noop}
35+
onFocusChange={noop}
36+
onValueChange={noop}
4237
showError={false}
4338
value="something"
4439
widgetId="24234r35"

app/client/src/components/propertyControls/IconSelectControl.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ class IconSelectControl extends BaseControl<
101101
componentDidMount() {
102102
this.timer = setTimeout(() => {
103103
const iconSelectTargetElement = this.iconSelectTargetRef.current;
104-
console.log(
105-
`target width: => `,
106-
iconSelectTargetElement?.getBoundingClientRect().width,
107-
);
108104
this.setState((prevState: IconSelectControlState) => {
109105
return {
110106
...prevState,

0 commit comments

Comments
 (0)