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 source data #19

Merged
merged 5 commits into from
Feb 22, 2024
Merged

Add source data #19

merged 5 commits into from
Feb 22, 2024

Conversation

ghost
Copy link

@ghost ghost commented Feb 15, 2024

Adds source data table. Not sure how we should handle type hint for additional_information_uri (lisätietolinkki). Now it's just Mapped[str]. @Rikuoja any thoughts?

@ghost ghost requested a review from Rikuoja February 15, 2024 08:03
Copy link
Contributor

@Rikuoja Rikuoja left a comment

Choose a reason for hiding this comment

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

One minor change, otherwise looks very good!


type_of_source_data = relationship("TypeOfSourceData", back_populates="source_data")
name: Mapped[language_str]
language: Mapped[language_str]
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know what the language field is for. However, probably it just means the name of the language (e.g. "fin" or "eng" or "swe"). So it should just be a str, not language_str.

Copy link
Contributor

Choose a reason for hiding this comment

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

@msorvoja Okay let's just remove the whole field. Apparently it is a remnant no longer needed in Ryhti.

@Rikuoja Rikuoja merged commit 8dd0c6d into main Feb 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants