<feed xmlns='http://www.w3.org/2005/Atom'>
<title>markzz/aurweb.git/support/schema/gendummydata.py, branch v1.9.1</title>
<subtitle>aurweb working repository</subtitle>
<id>https://git.markzz.net/markzz/aurweb.git/atom/support/schema/gendummydata.py?h=v1.9.1</id>
<link rel='self' href='https://git.markzz.net/markzz/aurweb.git/atom/support/schema/gendummydata.py?h=v1.9.1'/>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/'/>
<updated>2011-04-13T10:14:37Z</updated>
<entry>
<title>Make "gendummydata.py" Python 3 compliant.</title>
<updated>2011-04-13T10:14:37Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-04-12T12:47:54Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=31cda618ca3c726c6f5f89a52a7da2b8c9663aef'/>
<id>urn:sha1:31cda618ca3c726c6f5f89a52a7da2b8c9663aef</id>
<content type='text'>
* Transform into valid Python 3.x code using 2to3.

* Change shebang from "/usr/bin/python2" to "/usr/bin/python3".

* Invoke with "python3" instead of "python2" in "reloadtestdb.sh".

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Fix dependency generation in "gendummydata.py".</title>
<updated>2011-04-12T11:03:17Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-04-12T10:31:03Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=e1bf49e03c91d0e102531d07199903c2f7a6d523'/>
<id>urn:sha1:e1bf49e03c91d0e102531d07199903c2f7a6d523</id>
<content type='text'>
Package dependencies are no longer stored as references to the
"Packages" table but kept directly in "PackageDepends", so the dummy
data generation script should be fixed to create package names instead
of references, also. Regression introduced in commit
7c91c592458b7532806ef75fe09146f82f085f3b.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>wrap long SQL commands to improve formatting and readability</title>
<updated>2011-04-12T09:57:31Z</updated>
<author>
<name>elij</name>
<email>elij.mx@gmail.com</email>
</author>
<published>2011-04-07T02:23:44Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=3d3fed6910cd14d5e5dd7c3c3d6cc91223f4a9ee'/>
<id>urn:sha1:3d3fed6910cd14d5e5dd7c3c3d6cc91223f4a9ee</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>replace print statements with logging module in gendummydata</title>
<updated>2011-04-12T09:57:31Z</updated>
<author>
<name>elij</name>
<email>elij.mx@gmail.com</email>
</author>
<published>2011-04-07T02:23:43Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=e08731d24c52f41929aab179b92fe8d4cadbd808'/>
<id>urn:sha1:e08731d24c52f41929aab179b92fe8d4cadbd808</id>
<content type='text'>
use the logging module instead of writing directly to stderr
this makes the code cleaner as it removes the numerous tests for the value
of DBUG, yet allows devs to control the level of output verbosity.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>remove mysql dependency from gendummydata</title>
<updated>2011-04-12T09:56:32Z</updated>
<author>
<name>elij</name>
<email>elij.mx@gmail.com</email>
</author>
<published>2011-04-07T02:23:42Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=2e444a79d55bce6cb3a908b50c115f2419913b53'/>
<id>urn:sha1:2e444a79d55bce6cb3a908b50c115f2419913b53</id>
<content type='text'>
- remove need to use mysql for escaping the sql -- removing single quote
  should be enough
- instead of using sql to fetch categories from a live database, simply
  consider categories an integer range, specified to the size of that in the
  aur-schema.

Lukas: Add "CATEGORIES_COUNT" initialization. Fix random number range
used in genCategory() (AUTO_INCREMENT columns are 1-based by default,
not 0-based).

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>gendummydata.py: Do not touch output file until we need it.</title>
<updated>2011-03-30T08:27:23Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-03-30T08:27:23Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=11366b8a1a156fa645c4f24d4c3bf939e064d4c9'/>
<id>urn:sha1:11366b8a1a156fa645c4f24d4c3bf939e064d4c9</id>
<content type='text'>
Ensures there's no leftover (empty) file if something during
initialization fails.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Allow DB connection values to come from the environment</title>
<updated>2011-03-04T09:29:14Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-03-01T15:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=abd41bbb51ea2340bd06648cc0cd5b9144cce91e'/>
<id>urn:sha1:abd41bbb51ea2340bd06648cc0cd5b9144cce91e</id>
<content type='text'>
Stop hardcoding everything everywhere for those of us that don't use the
localhost/aur/aur/AUR setup. Also allow for the dummy data to be created
in the reload script if it does not exist. Finally, remove two
assumptions that the AUR database already exists.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Use a single transaction to write dummy data</title>
<updated>2011-03-04T09:29:13Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-03-01T15:58:09Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=b9690972d084c09f5cc080322db29c54be872045'/>
<id>urn:sha1:b9690972d084c09f5cc080322db29c54be872045</id>
<content type='text'>
This is immensely faster when using InnoDB since we don't need to sync
after each and every INSERT statement.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Fix some minor bugs in "support/schema/gendummydata.py".</title>
<updated>2011-02-27T18:46:30Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-02-27T17:19:03Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=bc238965cbb191f8c677d941622d13c8c0472ab1'/>
<id>urn:sha1:bc238965cbb191f8c677d941622d13c8c0472ab1</id>
<content type='text'>
The dummy data generation script used to create wrong package IDs for
both "PackageVotes" and "PackageDepends" tables which led to errors when
reloading the test data (constraints failed). This is fixed by no longer
creating entries with zero ("0") package IDs.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Define "Packages.SubmitterUID" and "Packages.MaintainerUID" as "NULL".</title>
<updated>2011-02-27T18:46:19Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-02-27T16:12:43Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=1e3fa38de5f940fef474fc3961c70b357b976308'/>
<id>urn:sha1:1e3fa38de5f940fef474fc3961c70b357b976308</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
</feed>
