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 References fields #3

Closed
wants to merge 2 commits into from
Closed

Conversation

Zethson
Copy link
Member

@Zethson Zethson commented Nov 19, 2024

Required for laminlabs/cellxgene. Motivated by the rich output of census collections, we add a few fields to Reference to make it more comprehensive. These fields are generally not mandatory.

  • Adds an authors field (JSONField)
  • Adds a published_at field (DateTimeField)
  • Splits text into abstract and full_text`

"""Text of the reference such as the abstract or the full-text to enable search."""
description: str = TextField(null=True, default=None)
"""Description of the reference."""
authors: list[str] | None = JSONField(null=True, default=None)
Copy link
Member

Choose a reason for hiding this comment

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

What will the authors field look like?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought of just having ["firstname lastname, firstname, lastname"] and then populating this field. I did not want to create a whole Authors table just for that.

Copy link
Member

Choose a reason for hiding this comment

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

Do you mean ["firstname lastname", "firstname lastname"]?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, yes.

findrefs/models.py Show resolved Hide resolved
@Zethson Zethson closed this Nov 19, 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.

2 participants