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

Refactor Person methods #350

Merged
merged 1 commit into from
May 16, 2024
Merged

Refactor Person methods #350

merged 1 commit into from
May 16, 2024

Conversation

damisul
Copy link
Collaborator

@damisul damisul commented May 15, 2024

As a followup to comments in #345 (comment)

Updated method Person.published_manifestations, to accept several roles to filter.
Added method Person.manifestations with optional roles array as an argument to return all manifestations (including unpublished).

Updated several methods in Person to consider work as 'original' work only when person is listed as an author (previously it worked for any work-level involvements, e.g. illustrators) using published_manifestations and manifestations methods.

@damisul damisul force-pushed the person_methods_adjustements branch from 69b3e3c to f7c6dd3 Compare May 15, 2024 21:12
@damisul damisul force-pushed the person_methods_adjustements branch from f7c6dd3 to 0d32889 Compare May 15, 2024 21:15
@damisul damisul requested a review from abartov May 15, 2024 21:20
…ncluding unpublished, and refactored other methods in `Person` class to utilize it and `published_manifestations`. Added missing filtering by author role to some of the methods.

Fixed some liter complaints.
@damisul damisul force-pushed the person_methods_adjustements branch from 0d32889 to 43756cf Compare May 15, 2024 21:24
@abartov abartov merged commit 7eb513e into master May 16, 2024
7 checks passed
@abartov abartov deleted the person_methods_adjustements branch May 16, 2024 18:26
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.

2 participants