feat: add updated_at
and created_at
attributes for FeedbackDataset
in Argilla
#3709
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the args
created_at
andupdated_at
to theRemoteFeedbackDataset
andFilteredRemoteFeedbackDataset
classes, as well as the propertiescreated_at
andupdated_at
which are set during the init via a protected attribute and not modified while the class is still instantiated.This is useful towards the
python -m argilla datasets list
command of the CLI, as those were the only fields that were present for theTextClassification
,TokenClassification
, andText2Text
datasets, while those were missing for theFeedbackDataset
, so the generated table had a mismatch between the available information for ones and the others.Besides that, the
datasets list
command has also been updated so as to use those properties and display the same information as in the other datasets.Closes #3664
Side-note
We've decided not to add the request to
GET /api/v1/datasets/{dataset_id}
in theupdated_at
property, even though it may be needed in the future, as the last update date may be one but we may have applied changes later on, whileupdated_at
will still show the one fulfilled during the class insntatiation.Type of change
How Has This Been Tested
(Please describe the tests that you ran to verify your changes. And ideally, reference
tests
)RemoteFeedbackDataset
attributes/propertiesFilteredRemoteFeedbackDataset
attributes/propertiesChecklist