Skip to content

Commit

Permalink
feat!: sunset ex.Table and ex.Redis (#6903)
Browse files Browse the repository at this point in the history
Closes #5857

BREAKING CHANGE: `ex.Redis` and `ex.Table` have been removed from the standard library in favor of dedicated libraries maintained in Winglang. We recommend migrating apps to use the [redis](https://github.com/winglang/winglibs/tree/main/redis) winglib for Redis support, and the [dynamodb](https://github.com/winglang/winglibs/blob/main/dynamodb) or [postgres](https://github.com/winglang/winglibs/tree/main/postgres) winglibs for functionality similar to `ex.Table`.

## Checklist

- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [x] Tests added (always)
- [x] Docs updated (only required for features)
- [x] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
Chriscbr authored Jul 16, 2024
1 parent e9988bf commit a14c454
Show file tree
Hide file tree
Showing 134 changed files with 87 additions and 11,011 deletions.
1 change: 0 additions & 1 deletion apps/jsii-docgen/src/docgen/view/wing-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export const VISIBLE_SUBMODULES = [
"fs",
"std",
"util",
"redis",
"http",
"math",
];
Expand Down
21 changes: 0 additions & 21 deletions apps/wing-console/console/app/demo/main.w
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
bring cloud;
bring ex;
bring ui;
bring util;
bring sim;
Expand Down Expand Up @@ -92,26 +91,6 @@ topic.onMessage(inflight (message: str): str => {
return message;
});

// let r = new ex.Redis();
// new cloud.Function(inflight (message :str) :str => {
// log("{r.url()}");
// r.set("wing", message);
// let value = r.get("wing");
// log("{value}");
// return r.url();
// }) as "Redis interaction";

let table = new ex.Table(
name: "simple-table",
primaryKey: "id",
columns: {
"id" => ex.ColumnType.STRING,
"name" => ex.ColumnType.STRING,
"date" => ex.ColumnType.DATE,
"active" => ex.ColumnType.BOOLEAN,
},
);

let rateSchedule = new cloud.Schedule(cloud.ScheduleProps{
rate: 5m
}) as "Rate Schedule";
Expand Down
57 changes: 0 additions & 57 deletions apps/wing-console/console/app/test/ex.redis/index.test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/wing-console/console/app/test/ex.redis/main.w

This file was deleted.

71 changes: 0 additions & 71 deletions apps/wing-console/console/app/test/ex.table/index.test.ts

This file was deleted.

20 changes: 0 additions & 20 deletions apps/wing-console/console/app/test/ex.table/main.w

This file was deleted.

27 changes: 0 additions & 27 deletions apps/wing-console/console/design-system/src/icons/react-icon.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/wing-console/console/design-system/src/icons/redis-icon.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/wing-console/console/design-system/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export * from "./modal.js";
export * from "./notification.js";
export * from "./pill.js";
export * from "./input.js";
export * from "./row-input.js";
export * from "./table-row.js";
export * from "./tree.js";
export * from "./attribute.js";
export * from "./left-resizable-widget.js";
Expand All @@ -39,7 +37,6 @@ export * from "./response-input.js";
export * from "./json-response-input.js";
export * from "./file-preview.js";

export * from "./icons/redis-icon.js";
export * from "./icons/wing-icon.js";
export * from "./icons/spinner-icon.js";
export * from "./icons/arrow-long-right-icon.js";
Expand Down
91 changes: 0 additions & 91 deletions apps/wing-console/console/design-system/src/row-input.tsx

This file was deleted.

Loading

0 comments on commit a14c454

Please sign in to comment.