openlibrary icon indicating copy to clipboard operation
openlibrary copied to clipboard

Unused reduce_seeds in internetarchive/openlibrary

Open Adeelp1 opened this issue 8 months ago • 6 comments

Question

Is the reduce_seeds function in openlibrary/core/lists/engine.py currently used within this repository, or is it intended for use in an external context?

Additional context

While exploring the codebase, I noticed that reduce_seeds does not appear to be referenced anywhere in this repository.

However, I found that a similar function is used in the openlibrary/openlibrary repo as part of a processing flow.

I wanted to confirm whether:

  • this function is expected to be used externally (e.g., scripts, pipelines), or
  • it is currently unused and could be considered for cleanup/refactor.
Resolution Details (for maintainers)

Issue resolution criteria

Clarify whether reduce_seeds is actively used. If unused, confirm whether it should be removed or documented.

Stakeholders

@Adeelp1

Adeelp1 avatar Mar 17 '26 16:03 Adeelp1

@Adeelp1 Can i work on this issue..?

Sbragul26 avatar Mar 18 '26 06:03 Sbragul26

I'm working on this

eshanthh avatar Mar 18 '26 06:03 eshanthh

Thanks for your interest!

This issue is mainly to clarify whether reduce_seeds is actually used or meant for some external purpose, not really a bug or something to fix right now.

Once a maintainer confirms, there might be a follow-up task (like cleanup or docs), and that would be a good thing to work on 👍

Adeelp1 avatar Mar 18 '26 07:03 Adeelp1

Seems unused, low priority, @Adeelp1 feel free to remove.

mekarpeles avatar Mar 18 '26 23:03 mekarpeles

Thanks! I’ll work on this.

Adeelp1 avatar Mar 19 '26 15:03 Adeelp1

While working on this, I noticed that the SubjectProcessor class is only used within reduce_seeds().

Since reduce_seeds is being removed, SubjectProcessor would also become unused.

Should I remove the SubjectProcessor class as well, or keep it for now?

Adeelp1 avatar Mar 19 '26 15:03 Adeelp1