Chris Morgan
9f956d4ccc
Assorted spelling fixes from Francois Gouget
2008-06-26 12:07:29 -04:00
Jeremy Newman
7666f6d0da
replace session management routines with memcached
2008-02-08 13:15:54 -06:00
Alexander Nicolaysen Sørnes
d8c67b4740
test_om_objects: Extend objectGetEntries test
2008-01-23 14:35:57 -05:00
Alexander Nicolaysen Sørnes
55d9f32c0a
test_om_objects: Cleanup properly when testing objectGetEntries
2008-01-23 14:35:39 -05:00
Alexander Nicolaysen Sørnes
1f081f4be1
test_om_objects: Test unQueue()
2008-01-23 10:45:39 -05:00
Alexander Nicolaysen Sørnes
9b92c2221c
Use sState for objectGetEntries[Count]()
2008-01-20 16:13:27 -05:00
Alexander Nicolaysen Sørnes
0f41ee390c
maintainer notifications: Only check data for accepted versions
2008-01-17 10:52:08 -05:00
Alexander Nicolaysen Sørnes
42239a6378
Order a version's testData table by Wine version, then date
2007-12-19 21:00:50 -05:00
Alexander Nicolaysen Sørnes
8c7bd3a5e9
Add initial un-delete support
2007-12-18 20:17:06 -05:00
Alexander Nicolaysen Sørnes
aee69c1735
version: Rename 'queued' to 'state'
2007-12-15 12:23:16 -05:00
Alexander Nicolaysen Sørnes
7e66843cc4
Replace browse_newest_apps class using sorting
2007-11-09 19:42:05 -05:00
Alexander Nicolaysen Sørnes
8d9cefe7b6
vote: Add support for deleting votes
2007-10-10 20:30:18 -04:00
Alexander Nicolaysen Sørnes
835d82e49b
Add new voting system
2007-10-09 21:59:54 -04:00
Chris Morgan
75e6f9dcc3
Add php5 scope keywords to the objectcManager class
2007-09-28 21:25:33 -04:00
Chris Morgan
2827e0654e
Alexander Nicolaysen Sørnes <alex@thehandofagony.com>
...
Let objectManager handle deletion and delete notification.
2007-09-14 23:02:12 -04:00
Chris Morgan
3c6340e581
Set a specific name for the vendor object created during the unit tests
2007-09-08 22:25:52 +00:00
Chris Morgan
43a7ea8f1d
Add object manager support to the bug class. Add menu entries for displaying the bug queue and
...
list of bugs and remove the existing link to admin/adminBugs.php. Remove now unused
admin/adminBugs.php. Remove now unused getNumberOfQueuedBugLinks() and getNumberOfBugLinks()
from util.php. Add object manager unit test support for the bug class.
2007-08-27 03:48:44 +00:00
Chris Morgan
73c3e584e3
Check for failure returned from testData::create()
2007-08-04 04:51:14 +00:00
Chris Morgan
0290064883
Check for error codes returned from application::create() and version::create()
2007-08-04 04:50:14 +00:00
Chris Morgan
6119246b51
Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
...
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to
mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database,
depending on whichever database was last opened by mysql_connect().
2007-08-03 23:27:25 +00:00
Chris Morgan
62820d242c
Purge and check session message count before and after the unit tests. The unit tests generate
...
a lot of session messages and we don't want to leave these around after the tests.
2007-07-30 01:56:39 +00:00
Alexander Nicolaysen Sørnes
89c50400de
Add objectManager support to the monitor class
2007-07-30 01:22:55 +00:00
Chris Morgan
a923d0ff2f
Add objectManager support to the note class
2007-07-30 00:27:37 +00:00
Chris Morgan
a9aef35628
Call $oObject->objectGetId() to retrieve an object's id instead of directly accessing the
...
objects member variables
2007-07-29 16:01:26 +00:00
Chris Morgan
93dc3e0396
Add support for mysql versions >=4.0x by adding multiple hash attempts when logging in. We now
...
attempt sha1(), password() and if mysql >= 4.0x, old_password() hashes. Switch the default user
hash from mysql's password() function to a sha1() hash. Update user::login() to flag logins
with password() and old_password() hashes. If the flag is set we call user::update_password()
to update the users password hash to one generated from the sha1 of the users password. Add a
unit test to test logging in and upgrading from the old hashes.
2007-07-26 14:39:15 +00:00
Chris Morgan
652fd5d517
Remove explicit user::login() call from create_and_login_user() since user::create() calls
...
user::login() if the user creation is successful
2007-07-26 14:30:32 +00:00
Chris Morgan
19f6cbc156
Unit test cleanups. Fixes tests so they don't leave left over entries in the database. Add a
...
check to ensure that row counts in most tables are unchanged from the start and end of the
tests. Refactor some code.
2007-07-26 03:47:34 +00:00
Chris Morgan
33faa569eb
Clean up database creation to create the mysql interface user and grant permissions. Group
...
database setup together so the user is prompted for only a couple of times during
initialization.
2007-07-24 21:49:23 +00:00
Chris Morgan
b5a41fba77
Add the long awaited 'maintainer notification' system. This system, running from the cron
...
cleanup scripts, will look for maintainers that have queued entries that the maintainer can
process. If the queued entries aren't processed for X days an email is sent. In X*2 days
another email is sent. After X*3 days the maintainer is stripped of their maintainership as
they aren't really maintaining the application anyway. The hope is that this system lets
maintainers know that they have pending queued entries to process to reduce the pressure on the
appdb admins to handled hundreds of queued entries.
2007-07-20 22:24:37 +00:00
Chris Morgan
88a832199d
Implement browsing of newest apps in the object manager infrastructure
2007-07-16 03:04:07 +00:00
Alexander Nicolaysen Sørnes
2c32bc608b
Cleanup appData test
2007-06-19 00:27:13 +00:00
Alexander Nicolaysen Sørnes
051a1e5d0c
Cleanup objectManager tests so all objects created during the test are deleted
2007-06-19 00:26:21 +00:00
Alexander Nicolaysen Sørnes
cd198f44d7
Replace objectOutputTableRow() with objectGetTableRow(). Redesign the table output mechanism so
...
that we fetch a table row from a class instead of letting the class display it. Move adding of
edit/delete links from the classes to the objectManager. Fix a hole in the distribution class
where an uninitialized variable could have been used in the constructor.
2007-06-14 00:50:35 +00:00
Alexander Nicolaysen Sørnes
f7b24fab9a
Object constructors shouldn't require an id if passed a $oRow object. Gets rid of
...
objectGetInstanceFromRow() since we can pass the row into the constructor instead.
2007-06-10 18:51:33 +00:00
Alexander Nicolaysen Sørnes
cb18a07f60
downloadurl: Add more objectManager functions. Allow us to unqueue queued downloadurls that are
...
currently stuck in limbo.
2007-05-31 02:40:01 +00:00
Alexander Nicolaysen Sørnes
11ecfa230b
Add allowAnonymousSubmissions(). objectManager checks the return value of this new function and
...
exists with an error during certain actions if the user is not logged in and the function returns
false
2007-04-29 23:00:01 +00:00
Alexander Nicolaysen Sørnes
b11cce6711
Use objectManager to submit and process applications. Remove now unused appsubmit.php
...
admin/adminAppQueue.php
2007-04-24 23:48:14 +00:00
Alexander Nicolaysen Sørnes
8cf53f1679
Use mustBeQueued() to determine unqueueing in objectManager
2007-04-22 00:39:53 +00:00
Alexander Nicolaysen Sørnes
dad5de17b1
Test version/testData queues. Test version_queue and testData_queue with the objectManager
...
tests
2007-04-21 00:58:08 +00:00
Alexander Nicolaysen Sørnes
b584fe1df7
Fix maintainer listing for versions. getMaintainersForAppIdVersionId() did not check that
...
additional entries had a superMaintainer = 1 so a maintainer of one version would be listed
as the maintainer for all versions of the application. Correct that issue and update the
unit test.
2007-04-16 23:19:44 +00:00
Alexander Nicolaysen Sørnes
ba3f966da4
test maintainer::getMaintainersForAppIdVersionId()
2007-04-08 23:06:27 +00:00
Alexander Nicolaysen Sørnes
9de4e9b63b
Test version class in objectManager tests
2007-04-08 23:01:22 +00:00
Alexander Nicolaysen Sørnes
eeaf2c3642
Add test for testData::getNewestTestIdFromVersionId()
2007-04-03 00:05:35 +00:00
Alexander Nicolaysen Sørnes
6b9abce52c
Avoid overlapping maintainer entries. When a user becomes a super maintainer of an
...
application remove all of their maintainer entries for the application versions. Update unit
tests to test maintainter overlapping.
2007-04-01 00:08:12 +00:00
Chris Morgan
e2b15c0566
Keep track of global success or failure and print out a summary success or failure when the
...
tests are complete. Makes it less likely that a test failure will be missed.
2007-03-31 17:12:55 +00:00
Alexander Nicolaysen Sørnes
c545581571
objectManager, add rejection support. Add support in objectManager for handling rejected
...
data.
2007-03-24 18:30:16 +00:00
Alexander Nicolaysen Sørnes
7d6772b5b1
Test more classes with objectManager
2007-03-24 02:04:16 +00:00
Alexander Nicolaysen Sørnes
ed7026be6e
Let objectManager output table headers. A class returns an array of header cells and then
...
the objectManager adds an edit column if appropriate.
2007-03-17 21:04:43 +00:00
Alexander Nicolaysen Sørnes
641e1c32f6
Test objectGetEntries() in the objectManager tests
2007-03-17 00:50:10 +00:00
Alexander Nicolaysen Sørnes
fef587a60e
Fix appData::listSubmittedBy() to run faster. Add a unit test for appData::listSubmittedBy()
2007-03-15 23:43:46 +00:00