alan-turing-institute / AutSPACEs

Code respository for AutSPACEs: the Autistica/Turing citizen science platform
MIT License
36 stars 18 forks source link

Remind the user to complete their profile #578

Closed llewelld closed 1 year ago

llewelld commented 1 year ago

If the user submits an experience with either the research or public flags set, but hasn't yet completed their user profile, this change will redirect the user to the profile page with a suitable message requesting that they complete it.

Fixes #534.

llewelld commented 1 year ago

This will need to be rejigged slightly after #569 has been merged to move the updated profile messages into the new profile messages file.

github-actions[bot] commented 1 year ago

Coverage report

The coverage rate went from 98.9% to 98.92% :arrow_up:

100% of new lines are covered.

Diff Coverage details (click to unfold) ### server/apps/main/views.py `100%` of new lines are covered (`97.55%` of the complete file). ### server/apps/users/views.py `100%` of new lines are covered (`100%` of the complete file). ### server/apps/main/tests/test_views.py `100%` of new lines are covered (`99.14%` of the complete file).
llewelld commented 1 year ago

Switching to draft while I update the unit tests.

llewelld commented 1 year ago

Tests added and rebased. Removing draft flag.

llewelld commented 1 year ago

After user testing and discussion, we're going to add in a 'Success' page after the user submits a Story, so this nudging will have to be moved to this success page in this case. Consequently it doesn't make sense to keep this so I'm closing it.

llewelld commented 1 year ago

See #588 for the ticket concerning the success page.