Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As already described in #205, at its current state, referrals are saved anonymously, which leads to a few issues. This referral aims to resolve that, but also added a few niceties.
Referral
model to link to an owneruserId
that links to aUser
/referral new
command:expiry_date
an optional field. It will now default to 30 days from the added date./referral random
message to also include the display name or the userid of the adder. This will help the end-user knows who to give rep when they use the code.Motivation and Context
Resolves #205
Resolves #177
How Has This Been Tested?
What's next?
This PR has to stay in draft for the time being so the admins can truncate the referrals table before this change can be migrated.
Screenshots (if appropriate):
Types of changes
Checklist: