Profile ID Rules

  • By default, a Profile URL should be resolved into a service and a username

  • If the user is reachable by EITHER a username or a user_id, then use the username as the service_id.

  • If the user is reachable only by a series of numbers, then place this series of numbers in the username field.

  • If the user's profile is only reachable by a combination of a username and another attribute, such as a user_id or a subdomain, put the subdomain in the user_id field, and the username in the username field.

  • If a URL is parsable by the SocialUrlParser, is should be generatable by the SocialUrlGenerator.

  • If a service is listed in the SocialUrlParser, there must be a list of Ids to reject in the Bax::Data::Store::Profiles folder.

  • If a service is listed in either the the SocialURLParser or Generator, it's service must be listed in the global_service_keys mixin (Bax::Mixins::SocialParsingData.

Last updated