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: Initial migration for Workspaces and pipeline step #600

Merged
merged 6 commits into from
Jan 16, 2025

Conversation

aponcedeleonch
Copy link
Contributor

@aponcedeleonch aponcedeleonch commented Jan 15, 2025

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
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 <[email protected]>
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 <[email protected]>
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.
Copy link
Contributor

@JAORMX JAORMX left a comment

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
4 checks passed
@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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants