Skip to content

feat: pair application with invitation

Rastislav Kruták requested to merge rkrutak/STR-1331/pair_app_with_invite into main

Description

  • if the user got an invitation link with pre-approved invitation token check that the invitation exists and is in a pending state
  • on submit the group application send also the invitation token

How to test

See perun!4404 (merged)

Author's checklist

  • I have followed the contribution guidelines
  • This MR has been tested or does not change functionality
  • I have added relevant merge request dependencies (if this MR has any)
  • I have added the correct labels
  • I have assigned reviewers (if any are relevant)
  • I have edited the documentation (if the changes require it) or I have noted the need for the change if I do not have access to the documentation
  • I have marked all introduced BREAKING CHANGES or necessary DEPLOYMENT NOTES in the commit message(s)

Reviewer's checklist

  • This MR has been tested or does not change functionality
  • This MR has correct commit message format

Other information

According to the task this MR should also read redirect url from the invitation and allow user to go there after submitting the application. I have not implemented this as I am not sure what is the meaning of it and how should it be presented to the user. And I assume that most of the time the user is going to end up in a spot where it maybe does not make sense (unverfied email, waiting for VO application approval)?

Another thing is, that I've added skipping mail verification if the email in application is the same one with the one from invitation. However when filling out the application there will still be a hint that the email will need to be verified. I would suggest to merge this as is and I will then try to adress both issues in this followup task for the old gui https://perunaai.atlassian.net/jira/software/c/projects/STR/boards/27?selectedIssue=STR-1332.

Related issues

re STR-1331

Edited by Rastislav Kruták

Merge request reports