Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

feat: Initial migration for Workspaces and pipeline step#600

Merged
aponcedeleonch merged 6 commits into
mainstacklok/codegate:mainfrom
workspaces-stepstacklok/codegate:workspaces-stepCopy head branch name to clipboard
Jan 16, 2025
Merged

feat: Initial migration for Workspaces and pipeline step#600
aponcedeleonch merged 6 commits into
mainstacklok/codegate:mainfrom
workspaces-stepstacklok/codegate:workspaces-stepCopy head branch name to clipboard

Conversation

@aponcedeleonch

@aponcedeleonch aponcedeleonch commented Jan 15, 2025

Copy link
Copy Markdown
Member

Related: #454

We noticed most of the incoming-requests which contain a code-snippet only list a relative path with respect to where the code editor is opened. This would make difficult to accurately distinguish between repositories in Codegate. For example, a user could open 2 different code Python repositorites in different session and both repositories contain a pyproject.toml. It would be impossible for Codegate to determine the real repository of the file only using the relative path.

Hence, the initial implementation of Workspaces will rely on a pipeline step that is able to take commands a process them. Some commands could be:

  • List workspaces
  • Add workspace
  • Switch active workspace
  • Delete workspace

It would be up to the user to select the desired active workspace.

This PR introduces an initial migration for Workspaces and the pipeline step with the list command.

Continue sample output:
image

@aponcedeleonch aponcedeleonch requested a review from JAORMX January 15, 2025 18:45
Comment thread migrations/versions/5c2f3eee5f90_introduce_workspaces.py Outdated
Comment thread migrations/versions/5c2f3eee5f90_introduce_workspaces.py
Comment thread src/codegate/pipeline/workspace/workspace.py Outdated
Comment thread src/codegate/db/models.py
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 16, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 16, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
Comment thread src/codegate/pipeline/workspace/workspace.py Outdated
Comment thread src/codegate/db/connection.py
Related: #454

We noticed most of the incoming-requests which contain a code-snippet
only list a relative path with respect to where the code editor is
opened. This would make difficult to accurately distinguish between
repositories in Codegate. For example, a user could open 2 different
code Python repositorites in different session and both repositories
contain a `pyproject.toml`. It would be impossible for Codegate to
determine the real repository of the file only using the relative path.

Hence, the initial implementation of Workspaces will rely on a pipeline
step that is able to take commands a process them. Some commands could be:
- List workspaces
- Add workspace
- Switch active workspace
- Delete workspace

It would be up to the user to select the desired active workspace.

This PR introduces an initial migration for Workspaces and the pipeline
step with the `list` command.

@JAORMX JAORMX left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elegant AF

shipit 🚢

@aponcedeleonch aponcedeleonch merged commit 147205a into main Jan 16, 2025
@aponcedeleonch aponcedeleonch deleted the workspaces-step branch January 16, 2025 16:50
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 17, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 17, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 17, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 17, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
JAORMX added a commit to JAORMX/codegate that referenced this pull request Jan 17, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
stacklok#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
JAORMX added a commit that referenced this pull request Jan 17, 2025
This adds a simple and unimplemented REST API for workspaces. Workspaces
will be the base for all other resources in terms of REST resource
mapping, so these go first.

These are initially left entirely unimplemented as
#600 needs to merge

Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.