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

FCL 582 Get related documents (e.g. Press Summary for Judgment) #846

Merged
merged 6 commits into from
Feb 3, 2025

Conversation

dragon-dxw
Copy link
Collaborator

@dragon-dxw dragon-dxw commented Jan 17, 2025

Summary of changes

https://national-archives.atlassian.net/browse/FCL-582

Checklist

  • I have created/updated method docstrings (if necessary)
  • I have considered if this is a breaking change
  • I have updated the changelog (if necessary)

@dragon-dxw dragon-dxw marked this pull request as draft January 17, 2025 17:42
@dragon-dxw dragon-dxw force-pushed the FCL-582-related-documents-in-api branch 4 times, most recently from b867498 to b7a4d18 Compare January 27, 2025 17:10
@dragon-dxw dragon-dxw changed the title Fcl 582 related documents in api ⚠️ Fcl 582 related documents in api Jan 28, 2025
@dragon-dxw dragon-dxw force-pushed the FCL-582-related-documents-in-api branch from b7a4d18 to b1d72e5 Compare January 31, 2025 15:32
@dragon-dxw dragon-dxw changed the title ⚠️ Fcl 582 related documents in api ⚠️ FCL 582 Get related documents in api Jan 31, 2025
@dragon-dxw dragon-dxw changed the title ⚠️ FCL 582 Get related documents in api ⚠️ FCL 582 Get related documents (e.g. Press Summary for Judgment) Jan 31, 2025
@dragon-dxw dragon-dxw force-pushed the FCL-582-related-documents-in-api branch from b1d72e5 to 2aa2df1 Compare January 31, 2025 17:17
@dragon-dxw dragon-dxw marked this pull request as ready for review January 31, 2025 17:18
@dragon-dxw
Copy link
Collaborator Author

Open questions:
Should I be looking for a ukncn string or a NeutralCitationIdentifier class?

@@ -21,8 +21,10 @@ class IdentifierResolutions(list["IdentifierResolution"]):
def from_marklogic_output(table: list[str]) -> "IdentifierResolutions":
return IdentifierResolutions(list(IdentifierResolution.from_marklogic_output(row) for row in table))

def published(self) -> "IdentifierResolutions":
def published(self, only_published: bool = True) -> "IdentifierResolutions":
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Essentially I think x.published(only_published=only_published) is cleaner than

if only_published:
   new_x = x.published()
else:
   new_x = x

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm confused by what this is trying to achieve; isn't .published always only_published = True?

@dragon-dxw dragon-dxw force-pushed the FCL-582-related-documents-in-api branch from 17f4241 to 32b9174 Compare February 3, 2025 16:14
@dragon-dxw dragon-dxw changed the title ⚠️ FCL 582 Get related documents (e.g. Press Summary for Judgment) FCL 582 Get related documents (e.g. Press Summary for Judgment) Feb 3, 2025
@dragon-dxw dragon-dxw added this pull request to the merge queue Feb 3, 2025
Merged via the queue into main with commit 5f66454 Feb 3, 2025
14 checks passed
@dragon-dxw dragon-dxw deleted the FCL-582-related-documents-in-api branch February 3, 2025 16:52
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