Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing user ID in CPAN accounts #1132

Open
jackdeguest opened this issue Sep 3, 2023 · 5 comments
Open

Missing user ID in CPAN accounts #1132

jackdeguest opened this issue Sep 3, 2023 · 5 comments

Comments

@jackdeguest
Copy link

The following endpoints use user IDs such as FepgBJBZQ8u92eG_TcyIGQ (here OALDERS's ID), but not all CPAN accounts have IDs (mine does not), so they would only work with those who have a user ID, which is not likely intentional.

  • /v1/author/by_user
  • /v1/author/by_user/{user}
  • /v1/favorite/{user}/{distribution}
  • /v1/favorite/agg_by_distributions see sub options
  • /v1/favorite/by_user/{user}
@haarg
Copy link
Member

haarg commented Sep 4, 2023

These are all meant to work with users that don't have a connected PAUSE account. I don't see anything wrong here.

@jackdeguest
Copy link
Author

These are all meant to work with users that don't have a connected PAUSE account. I don't see anything wrong here.

I do not understand. In the instance I provided, Olaf has both a pause ID (OALDERS) and a user ID FepgBJBZQ8u92eG_TcyIGQ

@haarg
Copy link
Member

haarg commented Sep 4, 2023

The APIs are meant to work with all users, including those that do not have a connected PAUSE account.

@jackdeguest
Copy link
Author

The APIs are meant to work with all users, including those that do not have a connected PAUSE account.

Got it, thank you. Candidly, I would have thought Pause account owners would have been a subset of people with user IDs.

@haarg
Copy link
Member

haarg commented Sep 4, 2023

Users are people that have logged in the site. Without logging in, it's impossible to have favorites. And it isn't possible to log in with just a PAUSE account. Creating a user record for all PAUSE accounts would have no purpose, as there is no data to associate with them. And then linking to a PAUSE account would require merging two user records and throwing away the (empty, useless) user associated with the PAUSE account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants