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 article contributors #335

Merged
merged 13 commits into from
May 2, 2024
Merged

Add article contributors #335

merged 13 commits into from
May 2, 2024

Conversation

nonumpa
Copy link
Member

@nonumpa nonumpa commented Mar 18, 2024

Changes

  • Added contributors as a nested object in article that includes following fields :
  • Added article.transcribedAt which returns the latest value of contributors.updatedAt
  • ListArticles can filter by contributors.userId

Reference : https://g0v.hackmd.io/OhGIQzoxR5eF6audQuS_FQ#articles

Snapshot

Playground - http___localhost_5000_graphql · 1 51pm · 03-18
Note: UserDB does not contain user: ai-transcript, so it returns null.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should also do similar updates to CreateMediaArticle

src/graphql/models/Article.js Outdated Show resolved Hide resolved
src/graphql/models/Article.js Outdated Show resolved Hide resolved
src/graphql/queries/ListArticles.js Outdated Show resolved Hide resolved
src/graphql/queries/ListArticles.js Outdated Show resolved Hide resolved
src/graphql/queries/ListArticles.js Outdated Show resolved Hide resolved
@nonumpa nonumpa force-pushed the contributors branch 2 times, most recently from c3ca7a0 to 53b96de Compare April 22, 2024 11:43
@coveralls
Copy link

Coverage Status

coverage: 88.312% (+0.09%) from 88.222%
when pulling 625fbb1 on contributors
into 4db9ec1 on master.

@nonumpa nonumpa requested a review from MrOrz April 26, 2024 17:39
@MrOrz MrOrz merged commit 0b486ac into master May 2, 2024
4 checks passed
@nonumpa nonumpa deleted the contributors branch May 3, 2024 03:02
@nonumpa nonumpa linked an issue May 3, 2024 that may be closed by this pull request
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.

Add contributors field to article to know who had edited the transcript
3 participants