Skip to content

Follow up engagement stat

OnceUponAFoodsharingTime requested to merge followUp_engagement_stat into master

What does this MR do?

Code improvement to reduce redundancy.

Switched data into tabs for each week. If there is no data week is not displayed.

  • two weeks into the future
  • week now
  • two weeks in the past

Added engagement appreciation for

  • Thanks for number of aktive stores managed
  • Thanks for number of secured pick ups (short term filling of slots) (20 Hours before pickup)
  • Thanks for number of Events Created
  • Thanks for number of Events participated
  • Thanks for number of baskets offered & overall weight
  • Thanks for number of baskets picked up by different foodsavers

Engagement statistic visible to

  • oneself
  • bots and orga who are allowed to administrate profiles
  • store manager role and in the same store as other person
  • store manager role and in the same home district

It has been cleared with the "Datenschutzbeauftragter" and it is covered by the "Datenschutzerklärung". "An deiner Erkennbarkeit und der Darstellung deines Engagements besteht ein berechtigtes Interesses anderer Nutzer*innen. Rechtsgrundlage der Verarbeitung ist damit Art. 6 Abs. 1 S. 1 lit. f DSGVO.“ and other parts. https://foodsharing.de/?page=bezirk&bid=2296&sub=forum&tid=167244&pid=966547#post-966547 Also it is restricted to a minimum of store manager role who have agreed to be responsible with the data.

How confident are you it won't break things if deployed?

Quite

Links to related issues

How to test

  1. Checkout branch locally
  2. seed data
  3. Login as userengagement@example.com
  4. Go to your profile page or the profile page of another user

Screenshots

image

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • set a "for:" label to indicate who will be affected by this change
  • added to the next milestone (see https://gitlab.com/foodsharing-dev/foodsharing/-/milestones, unless it has a "for:Dev" label)
  • added an entry to CHANGELOG.md
  • added a short text that can be used in the release notes
  • Once your MR has been merged, you are responsible to create a testing issue in the Beta Testing forum: https://foodsharing.de/?page=bezirk&bid=734&sub=forum. Please change the MRs label to "state:Beta testing".
    • Consider writing a detailed description in German.
    • Describe in a few sentences, what should be tested from a user perspective.
    • Also mention different settings (e.g. different browsers, roles, ...) how this change can be tested.
    • Be aware, that also non technical people should understand.

Release notes text in German

Es gibt eine Engagemenstatistik für Botschafter und für Betriebsverantwortliche deines Stammbezirkes. Wir danken dir dort für deinen Einsatz bei foodsharing in verschiedenen Bereichen, für die du dich engagierst.

Edited by OnceUponAFoodsharingTime

Merge request reports