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

tec: Associate time spent with corresponding message #800

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

marien-probesys
Copy link
Member

@marien-probesys marien-probesys commented Nov 19, 2024

Related issue(s)

#612

How to test manually

  1. Answer with a message containing the string #oncall and add time spent
  2. In the database (./docker/bin/psql bileto), run:
SELECT u.email, SUM(ts.real_time)
FROM time_spent ts, users u, message m
WHERE ts.created_by_id = u.id
AND ts.message_id = m.id
AND m.content LIKE '%#oncall%'
AND ts.created_at >= '2024-11-01'
AND ts.created_at < '2024-12-01'
GROUP BY u.email;
  1. verify it shows the time spent

Checklist

  • Code is manually tested
  • Permissions / authorizations are verified
  • New data can be imported (see Import missing data #751)
  • Interface works on both mobiles and big screens
  • Interface works in both light and dark modes
  • Interface works on both Firefox and Chrome
  • Accessibility has been tested
  • Translations are synchronized
  • Tests are up to date
  • Copyright notices are up to date
  • Documentation is up to date
  • Pull request has been reviewed and approved

@marien-probesys marien-probesys merged commit c041744 into main Nov 19, 2024
6 checks passed
@marien-probesys marien-probesys deleted the 612/tec/associate-timespent-and-message branch November 19, 2024 15:25
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.

1 participant