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

Add more types to subjects.py #8560

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

cdrini
Copy link
Collaborator

@cdrini cdrini commented Nov 24, 2023

Refactor. Add a dataclass for SubjectMeta, and make it a little less opaque how the Engine is found. Also add some more types.

Technical

Testing

  • ✅ Subjects pages load
  • ✅ People pages load
  • ✅ Place pages load
  • ✅ Time pages load
  • ✅ Publisher pages load
  • ✅ Languages pages load the same

Screenshot

Stakeholders

@cdrini cdrini changed the title Refactor/subjects py Add more types to subjects.py Nov 24, 2023
@cdrini cdrini added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Nov 24, 2023
@cdrini cdrini marked this pull request as ready for review November 24, 2023 02:13
@mekarpeles mekarpeles self-assigned this Nov 27, 2023
Engine: type['SubjectEngine'] = SubjectEngine


SUBJECTS = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUBJECTS is kind of confusing as a var name, makes me think its a list of strings or something. This is not a blocker, though proposing a cleanup of e.g.

Suggested change
SUBJECTS = [
SUBJECT_META_ENGINES = [

@mekarpeles mekarpeles merged commit cb6c053 into internetarchive:master Nov 30, 2023
3 checks passed
@mekarpeles
Copy link
Member

One comment about var naming SUBJECT

@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants