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

Purge unused viewpoints #6

Open
benel opened this issue Jan 16, 2012 · 2 comments
Open

Purge unused viewpoints #6

benel opened this issue Jan 16, 2012 · 2 comments
Labels

Comments

@benel
Copy link
Member

benel commented Jan 16, 2012

When 100 students used Argos with LaSuli, they created far more viewpoints that what they needed.
One of them even created 250 viewpoints himself!

An easy way to purge most of those viewpoints would be:

  1. to generate a view of all viewpoints having no topics,
  2. to build a list of this view conforming to the bulk delete API of CouchDB,
  3. to post this list with JQuery.
@benel
Copy link
Member Author

benel commented Mar 15, 2016

I'm not sure about the way to purge corpora:

  • with no viewpoint registered to the same user?
  • with no related items?

@benel
Copy link
Member Author

benel commented Mar 15, 2016

We could also add the case where Object.keys(o.topics).length < 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant