Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit3f5e07a

Browse files
committed
refactor: ignore delete document result
1 parentf8a6511 commit3f5e07a

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

‎lib/groupher_server/cms/delegates/article_curd.ex‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ defmodule GroupherServer.CMS.Delegate.ArticleCURD do
352352
end)
353353
|>Multi.run(:delete_document,fn_,_->
354354
Document.remove(thread,article.id)
355+
# for those history & test setup case
356+
{:ok,:pass}
355357
end)
356358
# TODO: notify author
357359
|>Repo.transaction()

‎test/groupher_server/cms/articles/blog_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ defmodule GroupherServer.Test.Articles.Blog do
168168
assertarticle_doc.body==blog_doc.body
169169
end
170170

171-
@tag:wip
172171
test"delete blog should also delete related document",~m(user community blog_attrs)ado
173172
{:ok,blog}=CMS.create_article(community,:blog,blog_attrs,user)
174173
{:ok,_article_doc}=ORM.find_by(ArticleDocument,%{article_id:blog.id,thread:"BLOG"})

‎test/groupher_server/cms/articles/job_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ defmodule GroupherServer.Test.Articles.Job do
169169
assertarticle_doc.body==job_doc.body
170170
end
171171

172-
@tag:wip
173172
test"delete job should also delete related document",~m(user community job_attrs)ado
174173
{:ok,job}=CMS.create_article(community,:job,job_attrs,user)
175174
{:ok,_article_doc}=ORM.find_by(ArticleDocument,%{article_id:job.id,thread:"JOB"})

‎test/groupher_server/cms/articles/post_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ defmodule GroupherServer.Test.CMS.Articles.Post do
203203
assertarticle_doc.body==post_doc.body
204204
end
205205

206-
@tag:wip
207206
test"delete post should also delete related document",~m(user community post_attrs)ado
208207
{:ok,post}=CMS.create_article(community,:post,post_attrs,user)
209208
{:ok,_article_doc}=ORM.find_by(ArticleDocument,%{article_id:post.id,thread:"POST"})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp