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 a moderation boolean to the user entries. #302

Merged
merged 1 commit into from
Mar 12, 2015
Merged

Conversation

mmulich
Copy link
Contributor

@mmulich mmulich commented Mar 11, 2015

This will allow publishing to know that a user has been vetted
for publication. If not, the publication will be put into a
wait state where an moderator will need to moderate the content.

This will allow publishing to know that a user has been vetted
for publication. If not, the publication will be put into a
wait state where an moderator will need to moderate the content.
@mmulich
Copy link
Contributor Author

mmulich commented Mar 11, 2015

ALTER TABLE users
    ADD COLUMN is_moderated boolean;

UPDATE users SET (is_moderated) = ('t')
    WHERE username IN (
        SELECT DISTINCT unnest(authors) FROM modules
        UNION
        SELECT DISTINCT unnest(maintainers) FROM modules
        UNION
        SELECT DISTINCT unnest(licensors) FROM modules
        UNION
        SELECT DISTINCT unnest(personids) FROM moduleoptionalroles);

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7098cbb on moderation into * on master*.

@reedstrm
Copy link
Contributor

Some reason ypu left licensors out of the "preapproved" list?

reedstrm added a commit that referenced this pull request Mar 12, 2015
Add a moderation boolean to the user entries.
@reedstrm reedstrm merged commit 2443a58 into master Mar 12, 2015
@mmulich mmulich deleted the moderation branch May 13, 2015 16:59
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.

3 participants