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: add last_activity_at to feedback datasets #3992

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

jfcalvo
Copy link
Member

@jfcalvo jfcalvo commented Oct 19, 2023

Description

This PR adds a new DateTime column to datasets table with name last_activity_at.

This new column will be updated for the following cases:

  • When a dataset is created or updated.
  • When a response for a record belonging to the dataset has been created, updated or deleted.

The idea is that we can use last_activity_at to record the last time that an activity associated with a dataset happened and use it instead of updated_at to show recent activity on the UI.

Closes #3981

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested

  • Adding new tests and running them locally.
  • Running tests using PostgreSQL locally.

Checklist

  • I added relevant documentation
  • follows the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@jfcalvo
Copy link
Member Author

jfcalvo commented Oct 19, 2023

@damianpumar please feel free to add here the frontend changes, using this new dataset attribute instead of updated_at for feedback datasets.

Once it's done please set the PR as ready for review.

@damianpumar damianpumar marked this pull request as ready for review October 19, 2023 11:17
@github-actions
Copy link

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-3992-ki24f765kq-no.a.run.app

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

All modified lines are covered by tests ✅

see 292 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@damianpumar
Copy link
Contributor

damianpumar commented Oct 19, 2023

@damianpumar please feel free to add here the frontend changes, using this new dataset attribute instead of updated_at for feedback datasets.

Once it's done please set the PR as ready for review.

From my side is done!

@frascuchon frascuchon changed the title feat: add last_activity_at to feedback datasets feat: add last_activity_at to feedback datasets Oct 19, 2023
@jfcalvo jfcalvo merged commit f758a94 into develop Oct 20, 2023
@jfcalvo jfcalvo deleted the feature/add-last-activity-at-to-feedback-datasets branch October 20, 2023 07:48
damianpumar added a commit that referenced this pull request Oct 24, 2023
# Description

This PR adds a new `DateTime` column to `datasets` table with name
`last_activity_at`.

This new column will be updated for the following cases:
* When a dataset is created or updated.
* When a response for a record belonging to the dataset has been
created, updated or deleted.

The idea is that we can use `last_activity_at` to record the last time
that an activity associated with a dataset happened and use it instead
of `updated_at` to show recent activity on the UI.

Closes #3981

**Type of change**

- [x] New feature (non-breaking change which adds functionality)

**How Has This Been Tested**

- [x] Adding new tests and running them locally.
- [x] Running tests using PostgreSQL locally.

**Checklist**

- [ ] I added relevant documentation
- [x] follows the style guidelines of this project
- [x] I did a self-review of my code
- [ ] I made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [ ] I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)

---------

Co-authored-by: Damián Pumar <[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.

[FEATURE] Add last_activity_at to Feedback Datasets
4 participants