app/soc/content/seed_db.html
author Daniel Bentley <dbentley@google.com>
Sun, 12 Apr 2009 09:06:45 +0000
branchgae-fetch-limitation-fix
changeset 2313 c39a81bce1bd
parent 2200 a1a7c262235d
permissions -rw-r--r--
Use offset_linkid instead of offset to scan >1000 entities. this is a first-cut. It works in all the ways I could make earlier versions fail. It passes link_id as URL parameters. It also has a new class LinkCreator which makes the main body of getListContents even easier to write. I wasn't sure if link_id's could have non alphanumeric characters; if so, they need to be URL encoded/decoded. I also need to go and remove any mention of raw offsets now, because we don't use them. I believe I've talked about this approach with a few of you and it sounded reasonable. Feel free to roll-back/fix/amend/comment-for-me-to-fix. This is my first big-logic-change to Melange. Patch by: Dan Bentley

<html>
<head><title>Seed DB links</title></head>
<body>

<p>
  <a href="../../seed_db">Seed DB</a> <br />
  <a href="../../clear_db">Clear DB</a> <br />
  <a href="../../reseed_db">Reseed DB</a> <br />
</p>

<p>
  <a href="../../seed_many?start=0&step=15&seed_type=user&end=15&goal=200">
  200 Users</a> <br />
</p>

<p>
  <a href="../../seed_many?start=0&step=15&seed_type=org&end=15&goal=200">
  200 Organizations</a> <br />

  <a href="../../seed_many?start=0&step=15&seed_type=org_app&end=15&goal=200">
  200 Organizations Pre-Accepted Applications</a> <br />

  <a href="../../seed_many?start=200&step=15&seed_type=org_app&end=215&goal=400&status=pre-rejected">
  200 Organizations Pre-Rejected Applications</a> <br />
</p>

<p>
  <a href="../../seed_many?start=0&step=15&seed_type=mentor&end=15&goal=200">
  200 Mentors</a> <br />
</p>

<p>
  <a href="../../seed_many?start=0&step=15&seed_type=student&end=15&goal=200">
  200 Students</a> <br />
</p>

<p>
  <a href="../../seed_many?start=0&step=5&seed_type=student_proposal&end=5&goal=25">
  25*rand Student Proposals</a> <br />
</p>

</body>
</html>