-
Notifications
You must be signed in to change notification settings - Fork 412
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 workspace_id
param to GET /api/v1/me/datasets
#3727
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
The URL of the deployed environment for this PR is https://argilla-quickstart-pr-3727-ki24f765kq-no.a.run.app |
Co-authored-by: Gabriel Martín Blázquez <[email protected]>
workspace = await WorkspaceFactory.create() | ||
dataset = await DatasetFactory.create(workspace=workspace) | ||
user = await UserFactory.create(role=role, workspaces=[dataset.workspace] if with_workspace else []) | ||
|
||
another_workspace = await WorkspaceFactory.create() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Just a comment) we should start thinking about a seed script to feed integration test data in a different way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With "a different way" do you mean without using the factories? Ideally we can define a function on each test suite (we are already doing that in some places) to call a self
function for e.g. create a dataset (with different args), to call that function instead of explicit calls to the factories
Description
This PR adds the
workspace_id
param toGET /api/v1/me/datasets
so that the workspace filtering when listingFeedbackTask
datasets is applied in the API-side, as well as making sure that no local filters are applied e.g.FeedbackDataset.list(workspace=...)
Closes #3726
Type of change
How Has This Been Tested
GET /api/v1/me/datasets
using theworkspace_id
param, including also the updated policies for non-owner userslist_datasets
in the Python SDK using theworkspace_id
argFeedbackDataset.list
in the Python client using theworkspace
argChecklist