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

refactor(stage): create an abstraction for file locations #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nunogoncalves03
Copy link
Member

We have recently updated the Management API to include new endpoints for managing files in personal and shared spaces. Thus, we would like to update the Python SDK to support these resources as well.

Since the methods for stage files and personal/shared space files are quite similar, we would like to refactor the Python SDK by introducing an abstract class called FileLocation. This class will initially be implemented by Stage and later by the other file spaces.

This PR introduces the abstract class and modifies the previously implemented file objects to make them generic for future use with other file spaces.

cc: @ricardoasmarques @kanitsharma

@nunogoncalves03 nunogoncalves03 added the feature New feature or request label Nov 25, 2024
@nunogoncalves03 nunogoncalves03 self-assigned this Nov 25, 2024
@nunogoncalves03 nunogoncalves03 changed the title feat(stage): create an abstraction for FileLocation feat(stage): create an abstraction for file locations Nov 25, 2024
@nunogoncalves03 nunogoncalves03 changed the title feat(stage): create an abstraction for file locations refactor(stage): create an abstraction for file locations Nov 25, 2024
Base automatically changed from ngoncalves/stage-starter-workspaces to main November 25, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant