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

Automatically re-index releases if they change in 02packages.details.txt #1456

Closed
neilb opened this issue Feb 12, 2015 · 3 comments
Closed

Comments

@neilb
Copy link
Contributor

neilb commented Feb 12, 2015

MetaCPAN could identify when a release needs indexing by comparing that release's details in two different versions of 02packages. Here's a quick outline of how I think it could work.

When importing a new drop of 02packages, iterate over all releases

  • build a list of all [module,version] seen in the release
  • sort that list by module name
  • create a 'signature' for the release, by concatenating them into a string
  • if there was an entry for that release in the previous version of 02packages, compare signatures.
  • if the signature has changed, then the release has been re-indexed by PAUSE, so MetaCPAN knows to re-index.

This should be called the HAARGOMATIC, since in a discussion in #metacpan, @haarg pointed out that the need for re-indexing could be identified off sequential drops of 02packages.

@neilb neilb closed this as completed Feb 12, 2015
@oalders
Copy link
Member

oalders commented Feb 12, 2015

@neilbowers Why was this closed?

@neilb
Copy link
Contributor Author

neilb commented Feb 12, 2015

I realised I should have put it on cpan-api, so I closed it here and added it there.

@oalders
Copy link
Member

oalders commented Feb 12, 2015

OK. :) metacpan/metacpan-api#390

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