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

feat: add nests (a.k.a namespaces) #4112

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f23c0e3
feat(nest): update proto definitions
andresmanelli Nov 8, 2024
37b805f
feat(nest): update sql migrations
andresmanelli Nov 8, 2024
b4a4c82
feat(nest): update store
andresmanelli Nov 8, 2024
94f9ed2
feat(nest): update router
andresmanelli Nov 8, 2024
388d66b
feat(nest): add global nest selection
andresmanelli Nov 8, 2024
803888f
feat(nest): add nest banner
andresmanelli Nov 8, 2024
9a62aa9
feat(nest): filter requests with selected nest
andresmanelli Nov 8, 2024
0cfd2fc
feat(nest): fix eslint
andresmanelli Nov 8, 2024
5a5f7eb
feat(nest): fix migrations
andresmanelli Nov 8, 2024
57bdf76
feat(nest): update metadata on nest change
andresmanelli Nov 10, 2024
c5b1939
feat(nest): update proto to use nest name as input
andresmanelli Nov 11, 2024
76c6451
feat(nest): add nest_service.go
andresmanelli Nov 11, 2024
7e5e73e
feat(nest): use nest type to list nests and filter metadata
andresmanelli Nov 11, 2024
22e4432
fix buf lint
andresmanelli Nov 11, 2024
37b640e
feat(nest): add default nest user setting
andresmanelli Nov 12, 2024
8a75c56
feat(nest): add create nest popover
andresmanelli Nov 13, 2024
754e766
feat(nest): fix swagger docs
andresmanelli Nov 13, 2024
7d6832a
feat(nest): fix eslint
andresmanelli Nov 13, 2024
63991de
feat(nest): rewrite function as static
andresmanelli Nov 13, 2024
6dacec3
feat(nest): add missing nest entry in create and update memo for mysq…
andresmanelli Nov 13, 2024
a3a1f0f
feat(nest): update migration scripts
andresmanelli Nov 13, 2024
e8057c3
feat(nest): change uid to name
andresmanelli Nov 13, 2024
92cf6c0
feat(nest): remove pagination for nests
andresmanelli Nov 13, 2024
076bd71
feat(nest): remove and clean update timestamp logic
andresmanelli Nov 13, 2024
7b1a198
feat(nest): fix fetch nests on sign in
andresmanelli Nov 13, 2024
1a97d16
feat(nest): fix tags in explore view
andresmanelli Nov 13, 2024
d2b9bd8
feat(nest): set default nest for all existing memos
andresmanelli Nov 14, 2024
96c6e18
feat(nest): fix create table for migrations
andresmanelli Nov 14, 2024
44297d4
feat(nest): fix hide nest banner if no user is logged in
andresmanelli Nov 14, 2024
7429a00
feat(nest): add default nest user setting
andresmanelli Nov 14, 2024
5d802ca
feat(nest): fix eslint
andresmanelli Nov 14, 2024
5f3226c
feat(nest): fix golangci
andresmanelli Nov 14, 2024
3ae5603
feat(nest): put migration in 0.23 directory
andresmanelli Nov 15, 2024
6a46326
feat(nest): add first revision of delete nest functionality
andresmanelli Nov 16, 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
8 changes: 8 additions & 0 deletions store/migration/mysql/prod/0.24/00__nests.sql
andresmanelli marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ ALTER TABLE
ADD
COLUMN nest INT NOT NULL DEFAULT 0;

CREATE TABLE nest (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` VARCHAR(256) NOT NULL,
`creator_id` INT NOT NULL,
`created_ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`row_status` VARCHAR(256) NOT NULL DEFAULT 'NORMAL'
);

INSERT INTO
nest (name, creator_id)
SELECT
Expand Down
8 changes: 8 additions & 0 deletions store/migration/postgres/prod/0.24/00__nests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ ALTER TABLE
ADD
COLUMN nest INTEGER NOT NULL DEFAULT 0;

CREATE TABLE nest (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
creator_id INTEGER NOT NULL,
created_ts BIGINT NOT NULL DEFAULT EXTRACT(EPOCH FROM NOW()),
row_status TEXT NOT NULL DEFAULT 'NORMAL'
);

INSERT INTO
nest (name, creator_id)
SELECT
Expand Down
8 changes: 8 additions & 0 deletions store/migration/sqlite/prod/0.24/00__nests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ ALTER TABLE
ADD
COLUMN nest INTEGER NOT NULL DEFAULT 0;

CREATE TABLE nest (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
creator_id INTEGER NOT NULL,
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL'
);

INSERT INTO
nest (name, creator_id)
SELECT
Expand Down