Skip to content

Commit 92993cc

Browse files
authored
chore: Remove unused services (appsmithorg#30292)
I've been doing this in pieces bit by bit, not to rock the boat too much too fast, but it's taking too long, and too much effort. Instead opting for a rip-the-bandaid style, hopefully without the pain.
1 parent 3a65d5a commit 92993cc

File tree

125 files changed

+14
-4565
lines changed

Some content is hidden

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

125 files changed

+14
-4565
lines changed

.env.example

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ APPSMITH_SIGNUP_DISABLED=
2121
# Segment
2222
APPSMITH_SEGMENT_KEY=
2323

24-
# RapidAPI
25-
APPSMITH_RAPID_API_KEY_VALUE=
26-
APPSMITH_MARKETPLACE_ENABLED=
27-
28-
2924
# Algolia Search (Docs)
3025
APPSMITH_ALGOLIA_API_ID=
3126
APPSMITH_ALGOLIA_API_KEY=

app/client/cypress/locators/apiWidgetslocator.json

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"createApiOnSideBar": "button:contains('Create new API')",
2727
"saveButton": "button:contains('Save')",
2828
"addHeader": ".t--addApiHeader svg",
29-
"marketPlaceapi": ".t--eachProviderCard p",
30-
"addPageButton": ".t--addToPageBtn",
3129
"apidocumentaionLink": ".t--apiDocumentationLink",
3230
"postbody": "(//div[contains(@class,'CodeMirror-wrap')]//textarea)[2]",
3331
"paginationTab": "//span[text()='Pagination']",

app/client/cypress/support/commands.js

-12
Original file line numberDiff line numberDiff line change
@@ -923,10 +923,6 @@ Cypress.Commands.add("startServerAndRoutes", () => {
923923
"getAppPageEdit",
924924
);
925925
cy.intercept("GET", "/api/v1/actions*").as("getActions");
926-
cy.intercept("GET", "api/v1/providers/categories").as("getCategories");
927-
cy.intercept("GET", "api/v1/import/templateCollections").as(
928-
"getTemplateCollections",
929-
);
930926
cy.intercept("PUT", "/api/v1/pages/*").as("updatePage");
931927
cy.intercept("PUT", "api/v1/applications/*/page/*/makeDefault").as(
932928
"makePageDefault",
@@ -966,14 +962,6 @@ Cypress.Commands.add("startServerAndRoutes", () => {
966962
"curlImport",
967963
);
968964
cy.intercept("DELETE", "/api/v1/actions/*").as("deleteAction");
969-
cy.intercept(
970-
"GET",
971-
"/api/v1/marketplace/providers?category=*&page=*&size=*",
972-
).as("get3PProviders");
973-
cy.intercept("GET", "/api/v1/marketplace/templates?providerId=*").as(
974-
"get3PProviderTemplates",
975-
);
976-
cy.intercept("POST", "/api/v1/items/addToPage").as("add3PApiToPage");
977965

978966
cy.intercept("GET", "/api/v1/plugins/*/form").as("getPluginForm");
979967
cy.intercept("DELETE", "/api/v1/applications/*").as("deleteApplication");

app/client/docker/templates/nginx-app.conf.template

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ server {
2929
proxy_pass __APPSMITH_CLIENT_PROXY_PASS__;
3030
sub_filter __APPSMITH_SENTRY_DSN__ '${APPSMITH_SENTRY_DSN}';
3131
sub_filter __APPSMITH_SMART_LOOK_ID__ '${APPSMITH_SMART_LOOK_ID}';
32-
sub_filter __APPSMITH_MARKETPLACE_ENABLED__ '${APPSMITH_MARKETPLACE_ENABLED}';
3332
sub_filter __APPSMITH_SEGMENT_KEY__ '${APPSMITH_SEGMENT_KEY}';
3433
sub_filter __APPSMITH_ALGOLIA_API_ID__ '${APPSMITH_ALGOLIA_API_ID}';
3534
sub_filter __APPSMITH_ALGOLIA_SEARCH_INDEX_NAME__ '${APPSMITH_ALGOLIA_SEARCH_INDEX_NAME}';

app/client/jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ module.exports = {
7878
smartLook: {
7979
id: parseConfig("__APPSMITH_SMART_LOOK_ID__"),
8080
},
81-
enableRapidAPI: parseConfig("__APPSMITH_MARKETPLACE_ENABLED__"),
8281
segment: {
8382
apiKey: parseConfig("__APPSMITH_SEGMENT_KEY__"),
8483
ceKey: parseConfig("__APPSMITH_SEGMENT_CE_KEY__"),

app/client/public/index.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
config.indexOf("%") === 0
2828
)
2929
return "";
30-
30+
3131
const result = config.trim();
3232
if (result.toLowerCase() === "false" || result === "") {
3333
return false;
3434
} else if (result.toLowerCase() === "true") {
3535
return true;
3636
}
37-
37+
3838
return result;
3939
};
4040
const CLOUD_HOSTING = parseConfig("__APPSMITH_CLOUD_HOSTING__");
@@ -44,7 +44,7 @@
4444
NREUM = undefined
4545
</script>
4646
<script>
47-
47+
4848
const enableNewRelic=parseConfig("__APPSMITH_NEW_RELIC_ACCOUNT_ENABLE__");
4949
//only when newRelic is enabled do we load the browser agent script
5050
if (!!enableNewRelic) {
@@ -55,8 +55,8 @@
5555
//we load the new relic browser agent script from our CDN.
5656
script.src = "https://assets.appsmith.com/newRelicBrowserAgent1.js";
5757
script.onload = () => {
58-
// we have defined and init function within the Browser agent script.
59-
// This init fn gets assigned to a global var called NEW_RELIC_BROWSER_AGENT, when the script tag element loads
58+
// we have defined and init function within the Browser agent script.
59+
// This init fn gets assigned to a global var called NEW_RELIC_BROWSER_AGENT, when the script tag element loads
6060
// we call the init fn with all env vars. Through this step browser agent has the required license key to push telemetry info to new relic.
6161
NEW_RELIC_BROWSER_AGENT && NEW_RELIC_BROWSER_AGENT.init([accountId,applicationId,browserAgentlicenseKey]);
6262
};
@@ -265,7 +265,6 @@
265265
smartLook: {
266266
id: parseConfig("__APPSMITH_SMART_LOOK_ID__"),
267267
},
268-
enableRapidAPI: parseConfig("__APPSMITH_MARKETPLACE_ENABLED__"),
269268
segment: {
270269
apiKey: parseConfig("__APPSMITH_SEGMENT_KEY__"),
271270
ceKey: parseConfig("__APPSMITH_SEGMENT_CE_KEY__"),
@@ -278,7 +277,7 @@
278277
otlpLicenseKey: parseConfig("__APPSMITH_NEW_RELIC_OTLP_LICENSE_KEY__"),
279278
//OTLP following the naming convention of Sdk initialisation
280279
otlpServiceName: parseConfig("__APPSMITH_NEW_RELIC_OTEL_SERVICE_NAME__"),
281-
otlpEndpoint:parseConfig("__APPSMITH_NEW_RELIC_OTEL_EXPORTER_OTLP_ENDPOINT__"),
280+
otlpEndpoint:parseConfig("__APPSMITH_NEW_RELIC_OTEL_EXPORTER_OTLP_ENDPOINT__"),
282281

283282
},
284283
fusioncharts: {

app/client/src/actions/collectionAction.ts

-7
This file was deleted.

app/client/src/actions/providerActions.ts

-61
This file was deleted.

app/client/src/api/CollectionApi.ts

-14
This file was deleted.

app/client/src/api/PluginApi.ts

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export enum UIComponentTypes {
1111
DbEditorForm = "DbEditorForm",
1212
UQIDbEditorForm = "UQIDbEditorForm",
1313
ApiEditorForm = "ApiEditorForm",
14-
RapidApiEditorForm = "RapidApiEditorForm",
1514
JsEditorForm = "JsEditorForm",
1615
}
1716

app/client/src/api/ProvidersApi.ts

-118
This file was deleted.

app/client/src/ce/RouteBuilder.ts

-10
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,6 @@ export const curlImportPageURL = (props: URLBuilderParams): string =>
9898
suffix: "api/curl/curl-import",
9999
});
100100

101-
export const providerTemplatesURL = (
102-
props: URLBuilderParams & {
103-
providerId: string;
104-
},
105-
): string =>
106-
urlBuilder.build({
107-
...props,
108-
suffix: `api/provider/${props.providerId}`,
109-
});
110-
111101
export const saasEditorDatasourceIdURL = (
112102
props: URLBuilderParams & {
113103
pluginPackageName: string;

app/client/src/ce/api/ApiUtils.ts

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const appsmithConfig = getAppsmithConfigs();
3535

3636
export const BLOCKED_ROUTES = [
3737
"v1/app-templates",
38-
"v1/marketplace",
3938
"v1/datasources/mocks",
4039
"v1/usage-pulse",
4140
"v1/applications/releaseItems",

app/client/src/ce/configs/index.ts

-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export interface INJECTED_CONFIGS {
1212
smartLook: {
1313
id: string;
1414
};
15-
enableRapidAPI: boolean;
1615
segment: {
1716
apiKey: string;
1817
ceKey: string;
@@ -103,9 +102,6 @@ export const getConfigsFromEnvVars = (): INJECTED_CONFIGS => {
103102
| "debug"
104103
| "error"
105104
| undefined) || "error",
106-
enableRapidAPI: process.env.REACT_APP_MARKETPLACE_URL
107-
? process.env.REACT_APP_MARKETPLACE_URL.length > 0
108-
: false,
109105
cloudHosting: process.env.REACT_APP_CLOUD_HOSTING
110106
? process.env.REACT_APP_CLOUD_HOSTING.length > 0
111107
: false,
@@ -284,10 +280,6 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => {
284280
enabled: googleRecaptchaSiteKey.enabled,
285281
apiKey: googleRecaptchaSiteKey.value,
286282
},
287-
enableRapidAPI:
288-
ENV_CONFIG.enableRapidAPI ||
289-
APPSMITH_FEATURE_CONFIGS?.enableRapidAPI ||
290-
false,
291283
enableMixpanel:
292284
ENV_CONFIG.enableMixpanel ||
293285
APPSMITH_FEATURE_CONFIGS?.enableMixpanel ||

app/client/src/ce/configs/types.ts

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export interface AppsmithUIConfigs {
4646
snippetIndex: string;
4747
};
4848

49-
enableRapidAPI: boolean;
5049
enableMixpanel: boolean;
5150

5251
cloudHosting: boolean;

0 commit comments

Comments
 (0)