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 #390

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

Comments

@neilb
Copy link

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 wasn't an entry for that release in the previous 02packages, it's new so index it
  • 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.

@rwstauner
Copy link
Contributor

Related to #220

@ranguard
Copy link
Member

Closing as #220 links to this ticket now

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

3 participants