minmatarfleet / minmatar.org

Platform for Minmatar Fleet
https://my.minmatar.org/
MIT License
4 stars 12 forks source link

New referral link system #928

Open silvatek opened 2 days ago

silvatek commented 2 days ago

Context We had a referrals system on the old tools site that created custom links for individual alliance members to share, and that counted usage of those links.

https://tools.minmatar.org/referrals/

Referral links are created by authenticated alliance members, but shared outside the alliance as part of our general recruitment strategy. Once a link has been shared we have no control over what happens to it, or who can see it and use it.

This functionality, or similar, needs to be replicated on the new my.minmatar.org site.

Solution Elements

Decisions 1. Frontend or backend redirect Will the redirect be implemented in the frontend (my.minmatar.org) or backend (api.minmatar.org)?

Could we add another "my" route to the reverse proxy that is handled by the backend?

2. Predefined referral targets, or allow any target Will we support referral links to any target, or only a defined set?

3. Different mechanisms for frontend and other targets Will we implement different mechanisms for links to my.minmatar.org targets and targets on other sites (including the wiki)?

4. Referral reporting What do we want to report on?

5. Exposing user IDs in referral links Referral links are released to the general public, so we should be cautious about including raw user IDs in them.

Preferences

bearthatcares commented 2 days ago

IMO,

  1. API should do the redirect since it's easier that way
  2. Any target is probably more flexible for the future
  3. Shouldn't matter if we allow any target... any caller can basically just make a redirect link
  4. of referrals per person