This repository was archived by the owner on Nov 8, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork20
feat(artiment-auditon): pending for artiment#440
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
d588b0c
refactor(pending-state): basic flag for articles
mydearxym16bed53
refactor(pending-state): pasic set/unset operate
mydearxym8deab33
refactor(pending-state): basic legal/illegal workflow for articles
mydearxym55badbe
refactor(pending): test re-org, fix edge case
mydearxym3067c86
refactor(pending): audition hook for article
mydearxym6707540
refactor(audit-hooks): add comment support, more tests
mydearxymd0da50c
refactor(audit-hooks): enhance with cron job & more tests
mydearxym6b579ba
refactor(comment): test with audit meta
mydearxymc64ee65
fix(repo): missing pending field
mydearxym8875645
fix: test error
mydearxymFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
6 changes: 5 additions & 1 deletionconfig/config.exs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
13 changes: 12 additions & 1 deletionlib/groupher_server/accounts/models/embeds/user_meta.ex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
61 changes: 37 additions & 24 deletionslib/groupher_server/cms/cms.ex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletionslib/groupher_server/cms/constant.ex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule GroupherServer.CMS.Constant do | ||
@moduledoc """ | ||
constant used for CMS | ||
NOTE: DO NOT modify, unless you know what you are doing | ||
""" | ||
@artiment_legal 0 | ||
@artiment_illegal 1 | ||
@artiment_audit_failed 2 | ||
def pending(:legal), do: @artiment_legal | ||
def pending(:illegal), do: @artiment_illegal | ||
def pending(:audit_failed), do: @artiment_audit_failed | ||
end |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.